@infrab4a/connect 1.0.0-beta.1 → 1.0.0-beta.11

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 (915) hide show
  1. package/bundles/infrab4a-connect.umd.js +1583 -246
  2. package/bundles/infrab4a-connect.umd.js.map +1 -1
  3. package/domain/catalog/models/category.d.ts +23 -0
  4. package/domain/catalog/models/enums/shops.enum.d.ts +5 -0
  5. package/domain/catalog/models/product.d.ts +36 -0
  6. package/domain/catalog/models/types/product-review.type.d.ts +15 -0
  7. package/domain/catalog/models/variant.d.ts +18 -0
  8. package/domain/catalog/repositories/category.repository.d.ts +15 -0
  9. package/domain/catalog/repositories/product.repository.d.ts +5 -0
  10. package/domain/catalog/repositories/subscription-product.repository.d.ts +4 -0
  11. package/domain/catalog/repositories/variant.repository.d.ts +4 -0
  12. package/domain/generic/model/base.model.d.ts +10 -0
  13. package/domain/generic/model/index.d.ts +3 -0
  14. package/domain/generic/model/types/base-model-builder.type.d.ts +15 -0
  15. package/domain/generic/model/types/identifier-model.type.d.ts +7 -0
  16. package/domain/generic/model/types/index.d.ts +5 -0
  17. package/domain/generic/model/types/model-base-structure.type.d.ts +6 -0
  18. package/domain/generic/model/types/non-function-properties.type.d.ts +12 -0
  19. package/domain/generic/model/types/non-function-property-name.type.d.ts +4 -0
  20. package/domain/generic/repository/create.repository.d.ts +8 -0
  21. package/domain/generic/repository/crud.repository.d.ts +19 -0
  22. package/domain/generic/repository/delete.repository.d.ts +7 -0
  23. package/domain/generic/repository/enums/where.enum.d.ts +13 -0
  24. package/domain/generic/repository/find.repository.d.ts +10 -0
  25. package/domain/generic/repository/get.repository.d.ts +5 -0
  26. package/domain/generic/repository/read.repository.d.ts +14 -0
  27. package/domain/generic/repository/types/index.d.ts +6 -0
  28. package/domain/generic/repository/types/repository-find-filters.type.d.ts +13 -0
  29. package/domain/generic/repository/types/repository-update-params.type.d.ts +11 -0
  30. package/domain/generic/repository/types/where-options.type.d.ts +2 -0
  31. package/domain/generic/repository/update.repository.d.ts +6 -0
  32. package/domain/index.d.ts +6 -0
  33. package/domain/location/models/address.d.ts +22 -0
  34. package/domain/shop-settings/models/home.d.ts +17 -0
  35. package/domain/shop-settings/models/shop-menu.d.ts +7 -0
  36. package/domain/shop-settings/models/types/home-data.type.d.ts +15 -0
  37. package/domain/shop-settings/models/types/index.d.ts +5 -0
  38. package/domain/shop-settings/repositories/home.repository.d.ts +4 -0
  39. package/domain/shop-settings/repositories/shop-menu.repository.d.ts +4 -0
  40. package/domain/shopping/models/buy-2-win.d.ts +16 -0
  41. package/domain/shopping/models/checkout.d.ts +27 -0
  42. package/domain/shopping/models/coupons/coupon.d.ts +26 -0
  43. package/domain/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +4 -0
  44. package/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +6 -0
  45. package/domain/shopping/models/coupons/enums/index.d.ts +3 -0
  46. package/domain/shopping/models/coupons/financial-coupon.d.ts +9 -0
  47. package/domain/shopping/models/coupons/index.d.ts +3 -0
  48. package/domain/shopping/models/payment.d.ts +67 -0
  49. package/domain/shopping/models/shipping-method.d.ts +16 -0
  50. package/domain/shopping/models/subscription/checkout.d.ts +21 -0
  51. package/domain/shopping/models/subscription/plan.d.ts +10 -0
  52. package/domain/shopping/repositories/buy-2-win.repository.d.ts +4 -0
  53. package/domain/shopping/repositories/checkout.repository.d.ts +4 -0
  54. package/domain/shopping/repositories/coupon.repository.d.ts +4 -0
  55. package/domain/shopping/repositories/order.repository.d.ts +4 -0
  56. package/domain/shopping/repositories/payment.repository.d.ts +4 -0
  57. package/domain/shopping/repositories/subscription/checkout.repository.d.ts +4 -0
  58. package/domain/shopping/repositories/subscription/plan.repository.d.ts +4 -0
  59. package/domain/users/models/beauty-profile.d.ts +11 -0
  60. package/domain/users/models/lead.d.ts +7 -0
  61. package/domain/users/models/subscription/edition.d.ts +16 -0
  62. package/domain/users/models/subscription/payment.d.ts +13 -0
  63. package/domain/users/models/subscription/subscription.d.ts +28 -0
  64. package/domain/users/models/user-address.d.ts +7 -0
  65. package/domain/users/models/user-payment-method.d.ts +14 -0
  66. package/domain/users/models/user.d.ts +26 -0
  67. package/domain/users/repositories/beauty-profile.repository.d.ts +4 -0
  68. package/domain/users/repositories/edition.repository.d.ts +4 -0
  69. package/domain/users/repositories/lead.repository.d.ts +4 -0
  70. package/domain/users/repositories/subscription-payment.repository.d.ts +4 -0
  71. package/domain/users/repositories/subscription.repository.d.ts +4 -0
  72. package/domain/users/repositories/user-address.repository.d.ts +4 -0
  73. package/domain/users/repositories/user-payment-method.repository.d.ts +4 -0
  74. package/domain/users/repositories/user.repository.d.ts +6 -0
  75. package/domain/users/services/authentication.service.d.ts +12 -0
  76. package/domain/users/use-cases/index.d.ts +4 -0
  77. package/domain/users/use-cases/recovery-password.d.ts +6 -0
  78. package/esm2015/domain/catalog/index.js +3 -0
  79. package/esm2015/domain/catalog/models/category.js +10 -0
  80. package/esm2015/domain/catalog/models/enums/index.js +2 -0
  81. package/esm2015/domain/catalog/models/enums/shops.enum.js +7 -0
  82. package/esm2015/domain/catalog/models/index.js +6 -0
  83. package/esm2015/domain/catalog/models/product.js +14 -0
  84. package/esm2015/domain/catalog/models/types/category-condition.type.js +2 -0
  85. package/esm2015/domain/catalog/models/types/category-filter.type.js +2 -0
  86. package/esm2015/domain/catalog/models/types/index.js +8 -0
  87. package/esm2015/domain/catalog/models/types/product-review.type.js +2 -0
  88. package/esm2015/domain/catalog/models/types/shops-description.type.js +2 -0
  89. package/esm2015/domain/catalog/models/types/shops-price.type.js +2 -0
  90. package/esm2015/domain/catalog/models/types/stock.type.js +2 -0
  91. package/esm2015/domain/catalog/models/types/variant-grade.type.js +2 -0
  92. package/esm2015/domain/catalog/models/variant.js +10 -0
  93. package/esm2015/domain/catalog/repositories/category.repository.js +2 -0
  94. package/esm2015/domain/catalog/repositories/index.js +5 -0
  95. package/esm2015/domain/catalog/repositories/product.repository.js +2 -0
  96. package/esm2015/domain/catalog/repositories/subscription-product.repository.js +2 -0
  97. package/esm2015/domain/catalog/repositories/variant.repository.js +2 -0
  98. package/esm2015/domain/generic/index.js +3 -0
  99. package/esm2015/domain/generic/model/base.model.js +23 -0
  100. package/esm2015/domain/generic/model/identifier-fields.js +2 -0
  101. package/esm2015/domain/generic/model/index.js +4 -0
  102. package/esm2015/domain/generic/model/types/base-model-builder.type.js +2 -0
  103. package/esm2015/domain/generic/model/types/identifier-model.type.js +2 -0
  104. package/esm2015/domain/generic/model/types/index.js +6 -0
  105. package/esm2015/domain/generic/model/types/model-base-structure.type.js +2 -0
  106. package/esm2015/domain/generic/model/types/non-function-properties.type.js +2 -0
  107. package/esm2015/domain/generic/model/types/non-function-property-name.type.js +2 -0
  108. package/esm2015/domain/generic/repository/create.repository.js +2 -0
  109. package/esm2015/domain/generic/repository/crud.repository.js +2 -0
  110. package/esm2015/domain/generic/repository/delete.repository.js +2 -0
  111. package/esm2015/domain/generic/repository/enums/index.js +3 -0
  112. package/esm2015/domain/generic/repository/enums/update-option-actions.enum.js +9 -0
  113. package/esm2015/domain/generic/repository/enums/where.enum.js +15 -0
  114. package/esm2015/domain/generic/repository/find.repository.js +2 -0
  115. package/esm2015/domain/generic/repository/get.repository.js +2 -0
  116. package/esm2015/domain/generic/repository/index.js +10 -0
  117. package/esm2015/domain/generic/repository/read.repository.js +2 -0
  118. package/esm2015/domain/generic/repository/types/index.js +7 -0
  119. package/esm2015/domain/generic/repository/types/repository-find-filters.type.js +2 -0
  120. package/esm2015/domain/generic/repository/types/repository-find-result.type.js +2 -0
  121. package/esm2015/domain/generic/repository/types/repository-limit-options.type.js +2 -0
  122. package/esm2015/domain/generic/repository/types/repository-order-by-list.type.js +2 -0
  123. package/esm2015/domain/generic/repository/types/repository-update-params.type.js +2 -0
  124. package/esm2015/domain/generic/repository/types/where-options.type.js +2 -0
  125. package/esm2015/domain/generic/repository/update.repository.js +2 -0
  126. package/esm2015/domain/index.js +7 -0
  127. package/esm2015/domain/location/index.js +2 -0
  128. package/esm2015/domain/location/models/address.js +7 -0
  129. package/esm2015/domain/location/models/index.js +3 -0
  130. package/esm2015/domain/location/models/types/index.js +4 -0
  131. package/esm2015/domain/location/models/types/location-bound.type.js +2 -0
  132. package/esm2015/domain/location/models/types/location-geometry.type.js +2 -0
  133. package/esm2015/domain/location/models/types/location-lat-lng.type.js +2 -0
  134. package/esm2015/domain/shop-settings/enums/filter-type.enum.js +21 -0
  135. package/esm2015/domain/shop-settings/enums/index.js +3 -0
  136. package/esm2015/domain/shop-settings/enums/questions-filters.enum.js +21 -0
  137. package/esm2015/domain/shop-settings/helpers/beauty-questions.helper.js +46 -0
  138. package/esm2015/domain/shop-settings/helpers/index.js +2 -0
  139. package/esm2015/domain/shop-settings/index.js +5 -0
  140. package/esm2015/domain/shop-settings/models/home.js +7 -0
  141. package/esm2015/domain/shop-settings/models/index.js +4 -0
  142. package/esm2015/domain/shop-settings/models/shop-menu.js +7 -0
  143. package/esm2015/domain/shop-settings/models/types/banner.type.js +2 -0
  144. package/esm2015/domain/shop-settings/models/types/benefit.type.js +2 -0
  145. package/esm2015/domain/shop-settings/models/types/home-data.type.js +2 -0
  146. package/esm2015/domain/shop-settings/models/types/index.js +6 -0
  147. package/esm2015/domain/shop-settings/models/types/menu-nav.type.js +2 -0
  148. package/esm2015/domain/shop-settings/models/types/sub-menu.type.js +2 -0
  149. package/esm2015/domain/shop-settings/repositories/home.repository.js +2 -0
  150. package/esm2015/domain/shop-settings/repositories/index.js +3 -0
  151. package/esm2015/domain/shop-settings/repositories/shop-menu.repository.js +2 -0
  152. package/esm2015/domain/shopping/index.js +3 -0
  153. package/esm2015/domain/shopping/models/buy-2-win.js +14 -0
  154. package/esm2015/domain/shopping/models/checkout.js +38 -0
  155. package/esm2015/domain/shopping/models/coupons/coupon.js +23 -0
  156. package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +6 -0
  157. package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +8 -0
  158. package/esm2015/domain/shopping/models/coupons/enums/exclusivities.enum.js +7 -0
  159. package/esm2015/domain/shopping/models/coupons/enums/index.js +4 -0
  160. package/esm2015/domain/shopping/models/coupons/financial-coupon.js +28 -0
  161. package/esm2015/domain/shopping/models/coupons/index.js +4 -0
  162. package/esm2015/domain/shopping/models/enums/checkout-types.enum.js +6 -0
  163. package/esm2015/domain/shopping/models/enums/index.js +3 -0
  164. package/esm2015/domain/shopping/models/enums/order-status.enum.js +12 -0
  165. package/esm2015/domain/shopping/models/index.js +12 -0
  166. package/esm2015/domain/shopping/models/line-item.js +4 -0
  167. package/esm2015/domain/shopping/models/order.js +11 -0
  168. package/esm2015/domain/shopping/models/payment.js +169 -0
  169. package/esm2015/domain/shopping/models/shipping-method.js +7 -0
  170. package/esm2015/domain/shopping/models/subscription/checkout.js +28 -0
  171. package/esm2015/domain/shopping/models/subscription/index.js +3 -0
  172. package/esm2015/domain/shopping/models/subscription/plan.js +7 -0
  173. package/esm2015/domain/shopping/models/types/index.js +8 -0
  174. package/esm2015/domain/shopping/models/types/payment-address.type.js +2 -0
  175. package/esm2015/domain/shopping/models/types/payment-billing.type.js +2 -0
  176. package/esm2015/domain/shopping/models/types/payment-card.type.js +2 -0
  177. package/esm2015/domain/shopping/models/types/payment-customer.type.js +2 -0
  178. package/esm2015/domain/shopping/models/types/payment-document.type.js +2 -0
  179. package/esm2015/domain/shopping/models/types/payment-item.type.js +2 -0
  180. package/esm2015/domain/shopping/models/types/payment-shipping.type.js +2 -0
  181. package/esm2015/domain/shopping/repositories/buy-2-win.repository.js +2 -0
  182. package/esm2015/domain/shopping/repositories/checkout.repository.js +2 -0
  183. package/esm2015/domain/shopping/repositories/coupon.repository.js +2 -0
  184. package/esm2015/domain/shopping/repositories/index.js +8 -0
  185. package/esm2015/domain/shopping/repositories/legacy-order.repository.js +2 -0
  186. package/esm2015/domain/shopping/repositories/order.repository.js +2 -0
  187. package/esm2015/domain/shopping/repositories/payment.repository.js +2 -0
  188. package/esm2015/domain/shopping/repositories/subscription/checkout.repository.js +2 -0
  189. package/esm2015/domain/shopping/repositories/subscription/index.js +3 -0
  190. package/esm2015/domain/shopping/repositories/subscription/plan.repository.js +2 -0
  191. package/esm2015/domain/users/errors/index.js +4 -0
  192. package/esm2015/domain/users/errors/unauthorized.error.js +7 -0
  193. package/esm2015/domain/users/errors/user-already-registered.error.js +7 -0
  194. package/esm2015/domain/users/errors/weak-password.error.js +7 -0
  195. package/esm2015/domain/users/index.js +6 -0
  196. package/esm2015/domain/users/models/beauty-profile.js +12 -0
  197. package/esm2015/domain/users/models/enums/accessory-importances.enum.js +7 -0
  198. package/esm2015/domain/users/models/enums/area.enum.js +13 -0
  199. package/esm2015/domain/users/models/enums/beard-problems.enum.js +11 -0
  200. package/esm2015/domain/users/models/enums/beard-sizes.enum.js +9 -0
  201. package/esm2015/domain/users/models/enums/beauty-product-importances.enum.js +8 -0
  202. package/esm2015/domain/users/models/enums/body-problems.enum.js +13 -0
  203. package/esm2015/domain/users/models/enums/body-shapes.enum.js +9 -0
  204. package/esm2015/domain/users/models/enums/body-tattoos.enum.js +7 -0
  205. package/esm2015/domain/users/models/enums/face-skin-oilinesses.enum.js +9 -0
  206. package/esm2015/domain/users/models/enums/face-skin-problems.enum.js +12 -0
  207. package/esm2015/domain/users/models/enums/face-skin-tones.enum.js +10 -0
  208. package/esm2015/domain/users/models/enums/family-incomes.enum.js +10 -0
  209. package/esm2015/domain/users/models/enums/fragrance-importances.enum.js +7 -0
  210. package/esm2015/domain/users/models/enums/hair-colors.enum.js +12 -0
  211. package/esm2015/domain/users/models/enums/hair-problems.enum.js +12 -0
  212. package/esm2015/domain/users/models/enums/hair-strands.enum.js +10 -0
  213. package/esm2015/domain/users/models/enums/hair-types.enum.js +9 -0
  214. package/esm2015/domain/users/models/enums/index.js +21 -0
  215. package/esm2015/domain/users/models/enums/office-position.enum.js +8 -0
  216. package/esm2015/domain/users/models/enums/product-spents.enum.js +10 -0
  217. package/esm2015/domain/users/models/enums/user-type.enum.js +10 -0
  218. package/esm2015/domain/users/models/index.js +8 -0
  219. package/esm2015/domain/users/models/lead.js +7 -0
  220. package/esm2015/domain/users/models/subscription/edition.js +7 -0
  221. package/esm2015/domain/users/models/subscription/enums/billing-status.enum.js +5 -0
  222. package/esm2015/domain/users/models/subscription/enums/edition-status.enum.js +6 -0
  223. package/esm2015/domain/users/models/subscription/enums/index.js +5 -0
  224. package/esm2015/domain/users/models/subscription/enums/payment-type.enum.js +7 -0
  225. package/esm2015/domain/users/models/subscription/enums/status.enum.js +6 -0
  226. package/esm2015/domain/users/models/subscription/index.js +5 -0
  227. package/esm2015/domain/users/models/subscription/payment.js +14 -0
  228. package/esm2015/domain/users/models/subscription/subscription.js +43 -0
  229. package/esm2015/domain/users/models/user-address.js +7 -0
  230. package/esm2015/domain/users/models/user-payment-method.js +7 -0
  231. package/esm2015/domain/users/models/user.js +26 -0
  232. package/esm2015/domain/users/repositories/beauty-profile.repository.js +2 -0
  233. package/esm2015/domain/users/repositories/edition.repository.js +2 -0
  234. package/esm2015/domain/users/repositories/index.js +9 -0
  235. package/esm2015/domain/users/repositories/lead.repository.js +2 -0
  236. package/esm2015/domain/users/repositories/subscription-payment.repository.js +2 -0
  237. package/esm2015/domain/users/repositories/subscription.repository.js +2 -0
  238. package/esm2015/domain/users/repositories/user-address.repository.js +2 -0
  239. package/esm2015/domain/users/repositories/user-payment-method.repository.js +2 -0
  240. package/esm2015/domain/users/repositories/user.repository.js +2 -0
  241. package/esm2015/domain/users/services/authentication.service.js +2 -0
  242. package/esm2015/domain/users/services/index.js +4 -0
  243. package/esm2015/domain/users/services/register.service.js +2 -0
  244. package/esm2015/domain/users/services/types/basic-user-data.type.js +2 -0
  245. package/esm2015/domain/users/services/types/index.js +2 -0
  246. package/esm2015/domain/users/use-cases/authentication.js +40 -0
  247. package/esm2015/domain/users/use-cases/index.js +5 -0
  248. package/esm2015/domain/users/use-cases/recovery-password.js +12 -0
  249. package/esm2015/domain/users/use-cases/register.js +34 -0
  250. package/esm2015/domain/users/use-cases/signout.js +12 -0
  251. package/esm2015/errors/duplicated-results.error.js +7 -0
  252. package/esm2015/errors/index.js +5 -0
  253. package/esm2015/errors/invalid-argument.error.js +7 -0
  254. package/esm2015/errors/not-found.error.js +7 -0
  255. package/esm2015/errors/required-argument.error.js +8 -0
  256. package/esm2015/index.js +6 -0
  257. package/esm2015/infra/elasticsearch/adapters/axios.adapter.js +22 -0
  258. package/esm2015/infra/elasticsearch/adapters/elastic-search.adapter.js +2 -0
  259. package/esm2015/infra/elasticsearch/adapters/index.js +3 -0
  260. package/esm2015/infra/elasticsearch/index.js +4 -0
  261. package/esm2015/infra/elasticsearch/indexes/index.js +2 -0
  262. package/esm2015/infra/elasticsearch/indexes/products-index.js +59 -0
  263. package/esm2015/infra/elasticsearch/types/elastic-search-result.js +2 -0
  264. package/esm2015/infra/elasticsearch/types/index.js +2 -0
  265. package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +52 -0
  266. package/esm2015/infra/firebase/auth/index.js +3 -0
  267. package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +26 -0
  268. package/esm2015/infra/firebase/auth/types/firebase-user-with-id.type.js +2 -0
  269. package/esm2015/infra/firebase/firestore/index.js +4 -0
  270. package/esm2015/infra/firebase/firestore/mixins/index.js +10 -0
  271. package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +31 -0
  272. package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +10 -0
  273. package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +18 -0
  274. package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +86 -0
  275. package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +23 -0
  276. package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +24 -0
  277. package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +17 -0
  278. package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +11 -0
  279. package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +45 -0
  280. package/esm2015/infra/firebase/firestore/models/user-search.js +7 -0
  281. package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +70 -0
  282. package/esm2015/infra/firebase/firestore/repositories/catalog/index.js +5 -0
  283. package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +25 -0
  284. package/esm2015/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +14 -0
  285. package/esm2015/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +12 -0
  286. package/esm2015/infra/firebase/firestore/repositories/index.js +5 -0
  287. package/esm2015/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +56 -0
  288. package/esm2015/infra/firebase/firestore/repositories/shop-settings/index.js +3 -0
  289. package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +12 -0
  290. package/esm2015/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +12 -0
  291. package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +12 -0
  292. package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +12 -0
  293. package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +29 -0
  294. package/esm2015/infra/firebase/firestore/repositories/shopping/index.js +9 -0
  295. package/esm2015/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +9 -0
  296. package/esm2015/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +12 -0
  297. package/esm2015/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +12 -0
  298. package/esm2015/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +12 -0
  299. package/esm2015/infra/firebase/firestore/repositories/users/index.js +10 -0
  300. package/esm2015/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +12 -0
  301. package/esm2015/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +14 -0
  302. package/esm2015/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +12 -0
  303. package/esm2015/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +14 -0
  304. package/esm2015/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +14 -0
  305. package/esm2015/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +14 -0
  306. package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +70 -0
  307. package/esm2015/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +14 -0
  308. package/esm2015/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +12 -0
  309. package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +2 -0
  310. package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +2 -0
  311. package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +2 -0
  312. package/esm2015/infra/firebase/firestore/types/index.js +4 -0
  313. package/esm2015/infra/firebase/index.js +3 -0
  314. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.js +13 -0
  315. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-where.enum.js +15 -0
  316. package/esm2015/infra/hasura-graphql/enums/index.js +3 -0
  317. package/esm2015/infra/hasura-graphql/index.js +4 -0
  318. package/esm2015/infra/hasura-graphql/mixins/helpers/attribute-option.helper.js +32 -0
  319. package/esm2015/infra/hasura-graphql/mixins/helpers/filter-option.helper.js +18 -0
  320. package/esm2015/infra/hasura-graphql/mixins/helpers/graphql-field.helper.js +74 -0
  321. package/esm2015/infra/hasura-graphql/mixins/helpers/index.js +4 -0
  322. package/esm2015/infra/hasura-graphql/mixins/index.js +8 -0
  323. package/esm2015/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.js +27 -0
  324. package/esm2015/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.js +10 -0
  325. package/esm2015/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.js +29 -0
  326. package/esm2015/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.js +86 -0
  327. package/esm2015/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.js +34 -0
  328. package/esm2015/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.js +94 -0
  329. package/esm2015/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.js +53 -0
  330. package/esm2015/infra/hasura-graphql/models/category-hasura-graphql.js +4 -0
  331. package/esm2015/infra/hasura-graphql/models/index.js +4 -0
  332. package/esm2015/infra/hasura-graphql/models/product-hasura-graphql.js +4 -0
  333. package/esm2015/infra/hasura-graphql/models/variant-hasura-graphql.js +9 -0
  334. package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +112 -0
  335. package/esm2015/infra/hasura-graphql/repositories/catalog/index.js +4 -0
  336. package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +111 -0
  337. package/esm2015/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.js +61 -0
  338. package/esm2015/infra/hasura-graphql/repositories/index.js +2 -0
  339. package/esm2015/infra/hasura-graphql/types/fields.type.js +2 -0
  340. package/esm2015/infra/hasura-graphql/types/graphql.repository.type.js +2 -0
  341. package/esm2015/infra/hasura-graphql/types/hasura-graphql-auth-options.type.js +2 -0
  342. package/esm2015/infra/hasura-graphql/types/hasura-graphql-fields.type.js +2 -0
  343. package/esm2015/infra/hasura-graphql/types/hasura-graphql-headers.type.js +2 -0
  344. package/esm2015/infra/hasura-graphql/types/index.js +9 -0
  345. package/esm2015/infra/hasura-graphql/types/nested-field.type.js +2 -0
  346. package/esm2015/infra/hasura-graphql/types/query-builder-options.type.js +2 -0
  347. package/esm2015/infra/hasura-graphql/types/variable-options.type.js +2 -0
  348. package/esm2015/infra/index.js +4 -0
  349. package/esm2015/infrab4a-connect.js +2 -2
  350. package/esm2015/utils/index.js +8 -0
  351. package/esm2015/utils/is-uuid.js +3 -0
  352. package/esm2015/utils/mixins/base.mixin.js +6 -0
  353. package/esm2015/utils/mixins/index.js +4 -0
  354. package/esm2015/utils/mixins/merge-constructor-params.type.js +2 -0
  355. package/esm2015/utils/mixins/mixin-ctor.type.js +2 -0
  356. package/esm2015/utils/parse-datetime.js +14 -0
  357. package/esm2015/utils/types/array-element.type.js +2 -0
  358. package/esm2015/utils/types/index.js +3 -0
  359. package/esm2015/utils/types/prop.type.js +2 -0
  360. package/fesm2015/infrab4a-connect.js +1043 -149
  361. package/fesm2015/infrab4a-connect.js.map +1 -1
  362. package/index.d.ts +5 -0
  363. package/infra/elasticsearch/adapters/axios.adapter.d.ts +11 -0
  364. package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +4 -0
  365. package/infra/elasticsearch/adapters/index.d.ts +2 -0
  366. package/infra/elasticsearch/index.d.ts +3 -0
  367. package/infra/elasticsearch/indexes/index.d.ts +1 -0
  368. package/infra/elasticsearch/indexes/products-index.d.ts +11 -0
  369. package/infra/elasticsearch/types/elastic-search-result.d.ts +7 -0
  370. package/infra/elasticsearch/types/index.d.ts +1 -0
  371. package/infra/firebase/auth/authentication-firebase-auth.service.d.ts +12 -0
  372. package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +4 -0
  373. package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +4 -0
  374. package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +4 -0
  375. package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +4 -0
  376. package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +4 -0
  377. package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +4 -0
  378. package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +11 -0
  379. package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +7 -0
  380. package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +7 -0
  381. package/infra/firebase/firestore/models/user-search.d.ts +9 -0
  382. package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +17 -0
  383. package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +9 -0
  384. package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +13 -0
  385. package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +8 -0
  386. package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +16 -0
  387. package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +8 -0
  388. package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +8 -0
  389. package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +8 -0
  390. package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +8 -0
  391. package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +12 -0
  392. package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +8 -0
  393. package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +8 -0
  394. package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +8 -0
  395. package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +8 -0
  396. package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +13 -0
  397. package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +8 -0
  398. package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +13 -0
  399. package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +13 -0
  400. package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +13 -0
  401. package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +19 -0
  402. package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +13 -0
  403. package/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +9 -0
  404. package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +6 -0
  405. package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +8 -0
  406. package/infra/firebase/firestore/types/firestore.repository.type.d.ts +12 -0
  407. package/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.d.ts +11 -0
  408. package/infra/hasura-graphql/enums/hasura-graphql-where.enum.d.ts +13 -0
  409. package/infra/hasura-graphql/enums/index.d.ts +2 -0
  410. package/infra/hasura-graphql/index.d.ts +3 -0
  411. package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +17 -0
  412. package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +6 -0
  413. package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +8 -0
  414. package/infra/hasura-graphql/mixins/helpers/index.d.ts +3 -0
  415. package/infra/hasura-graphql/mixins/index.d.ts +7 -0
  416. package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +8 -0
  417. package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +11 -0
  418. package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +7 -0
  419. package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +30 -0
  420. package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +24 -0
  421. package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +11 -0
  422. package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +14 -0
  423. package/infra/hasura-graphql/models/category-hasura-graphql.d.ts +6 -0
  424. package/infra/hasura-graphql/models/index.d.ts +3 -0
  425. package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +7 -0
  426. package/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +9 -0
  427. package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +22 -0
  428. package/infra/hasura-graphql/repositories/catalog/index.d.ts +3 -0
  429. package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +11 -0
  430. package/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +10 -0
  431. package/infra/hasura-graphql/repositories/index.d.ts +1 -0
  432. package/infra/hasura-graphql/types/fields.type.d.ts +2 -0
  433. package/infra/hasura-graphql/types/graphql.repository.type.d.ts +21 -0
  434. package/infra/hasura-graphql/types/hasura-graphql-auth-options.type.d.ts +8 -0
  435. package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +42 -0
  436. package/infra/hasura-graphql/types/hasura-graphql-headers.type.d.ts +7 -0
  437. package/infra/hasura-graphql/types/index.d.ts +8 -0
  438. package/infra/hasura-graphql/types/nested-field.type.d.ts +7 -0
  439. package/infra/hasura-graphql/types/query-builder-options.type.d.ts +7 -0
  440. package/infra/hasura-graphql/types/variable-options.type.d.ts +9 -0
  441. package/infra/index.d.ts +3 -0
  442. package/infrab4a-connect.d.ts +1 -1
  443. package/package.json +4 -1
  444. package/utils/index.d.ts +7 -0
  445. package/utils/is-uuid.d.ts +1 -0
  446. package/utils/mixins/index.d.ts +3 -0
  447. package/utils/mixins/merge-constructor-params.type.d.ts +3 -0
  448. package/utils/mixins/mixin-ctor.type.d.ts +1 -0
  449. package/utils/parse-datetime.d.ts +1 -0
  450. package/utils/types/array-element.type.d.ts +1 -0
  451. package/utils/types/index.d.ts +2 -0
  452. package/esm2015/lib/domain/catalog/index.js +0 -3
  453. package/esm2015/lib/domain/catalog/models/category.js +0 -7
  454. package/esm2015/lib/domain/catalog/models/enums/index.js +0 -2
  455. package/esm2015/lib/domain/catalog/models/enums/shops.enum.js +0 -6
  456. package/esm2015/lib/domain/catalog/models/index.js +0 -6
  457. package/esm2015/lib/domain/catalog/models/product.js +0 -11
  458. package/esm2015/lib/domain/catalog/models/types/category-condition.type.js +0 -2
  459. package/esm2015/lib/domain/catalog/models/types/category-filter.type.js +0 -2
  460. package/esm2015/lib/domain/catalog/models/types/index.js +0 -8
  461. package/esm2015/lib/domain/catalog/models/types/product-review.type.js +0 -2
  462. package/esm2015/lib/domain/catalog/models/types/shops-description.type.js +0 -2
  463. package/esm2015/lib/domain/catalog/models/types/shops-price.type.js +0 -2
  464. package/esm2015/lib/domain/catalog/models/types/stock.type.js +0 -2
  465. package/esm2015/lib/domain/catalog/models/types/variant-grade.type.js +0 -2
  466. package/esm2015/lib/domain/catalog/models/variant.js +0 -7
  467. package/esm2015/lib/domain/catalog/repositories/category.repository.js +0 -2
  468. package/esm2015/lib/domain/catalog/repositories/index.js +0 -5
  469. package/esm2015/lib/domain/catalog/repositories/product.repository.js +0 -2
  470. package/esm2015/lib/domain/catalog/repositories/subscription-product.repository.js +0 -2
  471. package/esm2015/lib/domain/catalog/repositories/variant.repository.js +0 -2
  472. package/esm2015/lib/domain/general/index.js +0 -3
  473. package/esm2015/lib/domain/general/model/base-model-with-identifier-fields.js +0 -2
  474. package/esm2015/lib/domain/general/model/base.model.js +0 -13
  475. package/esm2015/lib/domain/general/model/identifier-fields.js +0 -2
  476. package/esm2015/lib/domain/general/model/index.js +0 -5
  477. package/esm2015/lib/domain/general/model/types/base-model-builder.type.js +0 -2
  478. package/esm2015/lib/domain/general/model/types/index.js +0 -4
  479. package/esm2015/lib/domain/general/model/types/non-function-properties.type.js +0 -2
  480. package/esm2015/lib/domain/general/model/types/non-function-property-name.type.js +0 -2
  481. package/esm2015/lib/domain/general/repository/create.repository.js +0 -2
  482. package/esm2015/lib/domain/general/repository/crud.repository.js +0 -2
  483. package/esm2015/lib/domain/general/repository/delete.repository.js +0 -2
  484. package/esm2015/lib/domain/general/repository/enums/index.js +0 -3
  485. package/esm2015/lib/domain/general/repository/enums/update-option-actions.enum.js +0 -9
  486. package/esm2015/lib/domain/general/repository/enums/where.enum.js +0 -12
  487. package/esm2015/lib/domain/general/repository/find.repository.js +0 -2
  488. package/esm2015/lib/domain/general/repository/get.repository.js +0 -2
  489. package/esm2015/lib/domain/general/repository/index.js +0 -10
  490. package/esm2015/lib/domain/general/repository/read.repository.js +0 -2
  491. package/esm2015/lib/domain/general/repository/types/index.js +0 -6
  492. package/esm2015/lib/domain/general/repository/types/repository-find-filters.type.js +0 -2
  493. package/esm2015/lib/domain/general/repository/types/repository-find-result.type.js +0 -2
  494. package/esm2015/lib/domain/general/repository/types/repository-limit-options.type.js +0 -2
  495. package/esm2015/lib/domain/general/repository/types/repository-order-by-list.type.js +0 -2
  496. package/esm2015/lib/domain/general/repository/types/repository-update-params.type.js +0 -2
  497. package/esm2015/lib/domain/general/repository/update.repository.js +0 -2
  498. package/esm2015/lib/domain/index.js +0 -7
  499. package/esm2015/lib/domain/location/index.js +0 -2
  500. package/esm2015/lib/domain/location/models/address.js +0 -4
  501. package/esm2015/lib/domain/location/models/index.js +0 -3
  502. package/esm2015/lib/domain/location/models/types/index.js +0 -4
  503. package/esm2015/lib/domain/location/models/types/location-bound.type.js +0 -2
  504. package/esm2015/lib/domain/location/models/types/location-geometry.type.js +0 -2
  505. package/esm2015/lib/domain/location/models/types/location-lat-lng.type.js +0 -2
  506. package/esm2015/lib/domain/shop-settings/enums/filter-type.enum.js +0 -21
  507. package/esm2015/lib/domain/shop-settings/enums/index.js +0 -3
  508. package/esm2015/lib/domain/shop-settings/enums/questions-filters.enum.js +0 -21
  509. package/esm2015/lib/domain/shop-settings/helpers/beauty-questions.helper.js +0 -46
  510. package/esm2015/lib/domain/shop-settings/helpers/index.js +0 -2
  511. package/esm2015/lib/domain/shop-settings/index.js +0 -5
  512. package/esm2015/lib/domain/shop-settings/models/home.js +0 -7
  513. package/esm2015/lib/domain/shop-settings/models/index.js +0 -4
  514. package/esm2015/lib/domain/shop-settings/models/shop-menu.js +0 -7
  515. package/esm2015/lib/domain/shop-settings/models/types/banner.type.js +0 -2
  516. package/esm2015/lib/domain/shop-settings/models/types/benefit.type.js +0 -2
  517. package/esm2015/lib/domain/shop-settings/models/types/index.js +0 -5
  518. package/esm2015/lib/domain/shop-settings/models/types/menu-nav.type.js +0 -2
  519. package/esm2015/lib/domain/shop-settings/models/types/sub-menu.type.js +0 -2
  520. package/esm2015/lib/domain/shop-settings/repositories/home.repository.js +0 -2
  521. package/esm2015/lib/domain/shop-settings/repositories/index.js +0 -3
  522. package/esm2015/lib/domain/shop-settings/repositories/shop-menu.repository.js +0 -2
  523. package/esm2015/lib/domain/shopping/index.js +0 -3
  524. package/esm2015/lib/domain/shopping/models/buy-2-win.js +0 -14
  525. package/esm2015/lib/domain/shopping/models/checkout.js +0 -38
  526. package/esm2015/lib/domain/shopping/models/coupons/club-coupon.js +0 -23
  527. package/esm2015/lib/domain/shopping/models/coupons/coupon.js +0 -31
  528. package/esm2015/lib/domain/shopping/models/coupons/enums/discount-type.enum.js +0 -7
  529. package/esm2015/lib/domain/shopping/models/coupons/enums/exclusivities.enum.js +0 -7
  530. package/esm2015/lib/domain/shopping/models/coupons/enums/index.js +0 -3
  531. package/esm2015/lib/domain/shopping/models/coupons/index.js +0 -5
  532. package/esm2015/lib/domain/shopping/models/coupons/store-coupon.js +0 -23
  533. package/esm2015/lib/domain/shopping/models/enums/checkout-types.enum.js +0 -6
  534. package/esm2015/lib/domain/shopping/models/enums/index.js +0 -3
  535. package/esm2015/lib/domain/shopping/models/enums/order-status.enum.js +0 -12
  536. package/esm2015/lib/domain/shopping/models/index.js +0 -12
  537. package/esm2015/lib/domain/shopping/models/line-item.js +0 -4
  538. package/esm2015/lib/domain/shopping/models/order.js +0 -11
  539. package/esm2015/lib/domain/shopping/models/payment.js +0 -169
  540. package/esm2015/lib/domain/shopping/models/shipping-method.js +0 -7
  541. package/esm2015/lib/domain/shopping/models/subscription/checkout.js +0 -28
  542. package/esm2015/lib/domain/shopping/models/subscription/index.js +0 -3
  543. package/esm2015/lib/domain/shopping/models/subscription/plan.js +0 -7
  544. package/esm2015/lib/domain/shopping/models/types/index.js +0 -8
  545. package/esm2015/lib/domain/shopping/models/types/payment-address.type.js +0 -2
  546. package/esm2015/lib/domain/shopping/models/types/payment-billing.type.js +0 -2
  547. package/esm2015/lib/domain/shopping/models/types/payment-card.type.js +0 -2
  548. package/esm2015/lib/domain/shopping/models/types/payment-customer.type.js +0 -2
  549. package/esm2015/lib/domain/shopping/models/types/payment-document.type.js +0 -2
  550. package/esm2015/lib/domain/shopping/models/types/payment-item.type.js +0 -2
  551. package/esm2015/lib/domain/shopping/models/types/payment-shipping.type.js +0 -2
  552. package/esm2015/lib/domain/shopping/repositories/buy-2-win.repository.js +0 -2
  553. package/esm2015/lib/domain/shopping/repositories/checkout.repository.js +0 -2
  554. package/esm2015/lib/domain/shopping/repositories/coupon.repository.js +0 -2
  555. package/esm2015/lib/domain/shopping/repositories/index.js +0 -8
  556. package/esm2015/lib/domain/shopping/repositories/legacy-order.repository.js +0 -2
  557. package/esm2015/lib/domain/shopping/repositories/order.repository.js +0 -2
  558. package/esm2015/lib/domain/shopping/repositories/payment.repository.js +0 -2
  559. package/esm2015/lib/domain/shopping/repositories/subscription/checkout.repository.js +0 -2
  560. package/esm2015/lib/domain/shopping/repositories/subscription/index.js +0 -3
  561. package/esm2015/lib/domain/shopping/repositories/subscription/plan.repository.js +0 -2
  562. package/esm2015/lib/domain/users/errors/index.js +0 -4
  563. package/esm2015/lib/domain/users/errors/unauthorized.error.js +0 -7
  564. package/esm2015/lib/domain/users/errors/user-already-registered.error.js +0 -7
  565. package/esm2015/lib/domain/users/errors/weak-password.error.js +0 -7
  566. package/esm2015/lib/domain/users/index.js +0 -6
  567. package/esm2015/lib/domain/users/models/beauty-profile.js +0 -12
  568. package/esm2015/lib/domain/users/models/enums/accessory-importances.enum.js +0 -7
  569. package/esm2015/lib/domain/users/models/enums/area.enum.js +0 -13
  570. package/esm2015/lib/domain/users/models/enums/beard-problems.enum.js +0 -11
  571. package/esm2015/lib/domain/users/models/enums/beard-sizes.enum.js +0 -9
  572. package/esm2015/lib/domain/users/models/enums/beauty-product-importances.enum.js +0 -8
  573. package/esm2015/lib/domain/users/models/enums/body-problems.enum.js +0 -13
  574. package/esm2015/lib/domain/users/models/enums/body-shapes.enum.js +0 -9
  575. package/esm2015/lib/domain/users/models/enums/body-tattoos.enum.js +0 -7
  576. package/esm2015/lib/domain/users/models/enums/face-skin-oilinesses.enum.js +0 -9
  577. package/esm2015/lib/domain/users/models/enums/face-skin-problems.enum.js +0 -12
  578. package/esm2015/lib/domain/users/models/enums/face-skin-tones.enum.js +0 -10
  579. package/esm2015/lib/domain/users/models/enums/family-incomes.enum.js +0 -10
  580. package/esm2015/lib/domain/users/models/enums/fragrance-importances.enum.js +0 -7
  581. package/esm2015/lib/domain/users/models/enums/hair-colors.enum.js +0 -12
  582. package/esm2015/lib/domain/users/models/enums/hair-problems.enum.js +0 -12
  583. package/esm2015/lib/domain/users/models/enums/hair-strands.enum.js +0 -10
  584. package/esm2015/lib/domain/users/models/enums/hair-types.enum.js +0 -9
  585. package/esm2015/lib/domain/users/models/enums/index.js +0 -21
  586. package/esm2015/lib/domain/users/models/enums/office-position.enum.js +0 -8
  587. package/esm2015/lib/domain/users/models/enums/product-spents.enum.js +0 -10
  588. package/esm2015/lib/domain/users/models/enums/user-type.enum.js +0 -10
  589. package/esm2015/lib/domain/users/models/index.js +0 -8
  590. package/esm2015/lib/domain/users/models/lead.js +0 -7
  591. package/esm2015/lib/domain/users/models/subscription/edition.js +0 -7
  592. package/esm2015/lib/domain/users/models/subscription/enums/billing-status.enum.js +0 -5
  593. package/esm2015/lib/domain/users/models/subscription/enums/edition-status.enum.js +0 -6
  594. package/esm2015/lib/domain/users/models/subscription/enums/index.js +0 -5
  595. package/esm2015/lib/domain/users/models/subscription/enums/payment-type.enum.js +0 -7
  596. package/esm2015/lib/domain/users/models/subscription/enums/status.enum.js +0 -6
  597. package/esm2015/lib/domain/users/models/subscription/index.js +0 -5
  598. package/esm2015/lib/domain/users/models/subscription/payment.js +0 -14
  599. package/esm2015/lib/domain/users/models/subscription/subscription.js +0 -43
  600. package/esm2015/lib/domain/users/models/user-address.js +0 -7
  601. package/esm2015/lib/domain/users/models/user-payment-method.js +0 -7
  602. package/esm2015/lib/domain/users/models/user.js +0 -26
  603. package/esm2015/lib/domain/users/repositories/beauty-profile.repository.js +0 -2
  604. package/esm2015/lib/domain/users/repositories/edition.repository.js +0 -2
  605. package/esm2015/lib/domain/users/repositories/index.js +0 -9
  606. package/esm2015/lib/domain/users/repositories/lead.repository.js +0 -2
  607. package/esm2015/lib/domain/users/repositories/subscription-payment.repository.js +0 -2
  608. package/esm2015/lib/domain/users/repositories/subscription.repository.js +0 -2
  609. package/esm2015/lib/domain/users/repositories/user-address.repository.js +0 -2
  610. package/esm2015/lib/domain/users/repositories/user-payment-method.repository.js +0 -2
  611. package/esm2015/lib/domain/users/repositories/user.repository.js +0 -2
  612. package/esm2015/lib/domain/users/services/authentication.service.js +0 -2
  613. package/esm2015/lib/domain/users/services/index.js +0 -4
  614. package/esm2015/lib/domain/users/services/register.service.js +0 -2
  615. package/esm2015/lib/domain/users/services/types/basic-user-data.type.js +0 -2
  616. package/esm2015/lib/domain/users/services/types/index.js +0 -2
  617. package/esm2015/lib/domain/users/use-cases/authentication.js +0 -40
  618. package/esm2015/lib/domain/users/use-cases/index.js +0 -4
  619. package/esm2015/lib/domain/users/use-cases/register.js +0 -34
  620. package/esm2015/lib/domain/users/use-cases/signout.js +0 -12
  621. package/esm2015/lib/errors/duplicated-results.error.js +0 -7
  622. package/esm2015/lib/errors/index.js +0 -5
  623. package/esm2015/lib/errors/invalid-argument.error.js +0 -7
  624. package/esm2015/lib/errors/not-found.error.js +0 -7
  625. package/esm2015/lib/errors/required-argument.error.js +0 -8
  626. package/esm2015/lib/index.js +0 -5
  627. package/esm2015/lib/infra/firebase/auth/authentication-firebase-auth.service.js +0 -47
  628. package/esm2015/lib/infra/firebase/auth/index.js +0 -3
  629. package/esm2015/lib/infra/firebase/auth/register-firebase-auth.service.js +0 -26
  630. package/esm2015/lib/infra/firebase/auth/types/firebase-user-with-id.type.js +0 -2
  631. package/esm2015/lib/infra/firebase/firestore/index.js +0 -4
  632. package/esm2015/lib/infra/firebase/firestore/mixins/index.js +0 -10
  633. package/esm2015/lib/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +0 -31
  634. package/esm2015/lib/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +0 -10
  635. package/esm2015/lib/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +0 -18
  636. package/esm2015/lib/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +0 -76
  637. package/esm2015/lib/infra/firebase/firestore/mixins/with-firestore.mixin.js +0 -26
  638. package/esm2015/lib/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +0 -24
  639. package/esm2015/lib/infra/firebase/firestore/mixins/with-helpers.mixin.js +0 -17
  640. package/esm2015/lib/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +0 -11
  641. package/esm2015/lib/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +0 -45
  642. package/esm2015/lib/infra/firebase/firestore/models/user-search.js +0 -7
  643. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +0 -78
  644. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/index.js +0 -5
  645. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +0 -23
  646. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +0 -14
  647. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +0 -12
  648. package/esm2015/lib/infra/firebase/firestore/repositories/index.js +0 -5
  649. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +0 -12
  650. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/index.js +0 -3
  651. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +0 -12
  652. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +0 -12
  653. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +0 -12
  654. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +0 -12
  655. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +0 -39
  656. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/index.js +0 -9
  657. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +0 -9
  658. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +0 -12
  659. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +0 -12
  660. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +0 -12
  661. package/esm2015/lib/infra/firebase/firestore/repositories/users/index.js +0 -10
  662. package/esm2015/lib/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +0 -12
  663. package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +0 -14
  664. package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +0 -12
  665. package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +0 -14
  666. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +0 -14
  667. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +0 -14
  668. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-firestore.repository.js +0 -70
  669. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +0 -14
  670. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +0 -12
  671. package/esm2015/lib/infra/firebase/firestore/types/firestore-sub.repository.type.js +0 -2
  672. package/esm2015/lib/infra/firebase/firestore/types/firestore.helpers.type.js +0 -2
  673. package/esm2015/lib/infra/firebase/firestore/types/firestore.repository.type.js +0 -2
  674. package/esm2015/lib/infra/firebase/firestore/types/index.js +0 -4
  675. package/esm2015/lib/infra/firebase/index.js +0 -3
  676. package/esm2015/lib/infra/index.js +0 -2
  677. package/esm2015/lib/utils/index.js +0 -5
  678. package/esm2015/lib/utils/mixins/base.mixin.js +0 -6
  679. package/esm2015/lib/utils/mixins/index.js +0 -3
  680. package/esm2015/lib/utils/mixins/mixin-ctor.type.js +0 -2
  681. package/esm2015/lib/utils/types/index.js +0 -2
  682. package/esm2015/lib/utils/types/prop.type.js +0 -2
  683. package/esm2015/public-api.js +0 -3
  684. package/lib/domain/catalog/models/category.d.ts +0 -22
  685. package/lib/domain/catalog/models/enums/shops.enum.d.ts +0 -4
  686. package/lib/domain/catalog/models/product.d.ts +0 -33
  687. package/lib/domain/catalog/models/types/product-review.type.d.ts +0 -14
  688. package/lib/domain/catalog/models/variant.d.ts +0 -14
  689. package/lib/domain/catalog/repositories/category.repository.d.ts +0 -12
  690. package/lib/domain/catalog/repositories/product.repository.d.ts +0 -5
  691. package/lib/domain/catalog/repositories/subscription-product.repository.d.ts +0 -4
  692. package/lib/domain/catalog/repositories/variant.repository.d.ts +0 -4
  693. package/lib/domain/general/model/base-model-with-identifier-fields.d.ts +0 -3
  694. package/lib/domain/general/model/base.model.d.ts +0 -6
  695. package/lib/domain/general/model/index.d.ts +0 -4
  696. package/lib/domain/general/model/types/base-model-builder.type.d.ts +0 -5
  697. package/lib/domain/general/model/types/index.d.ts +0 -3
  698. package/lib/domain/general/model/types/non-function-properties.type.d.ts +0 -2
  699. package/lib/domain/general/model/types/non-function-property-name.type.d.ts +0 -3
  700. package/lib/domain/general/repository/create.repository.d.ts +0 -5
  701. package/lib/domain/general/repository/crud.repository.d.ts +0 -7
  702. package/lib/domain/general/repository/delete.repository.d.ts +0 -5
  703. package/lib/domain/general/repository/enums/where.enum.d.ts +0 -10
  704. package/lib/domain/general/repository/find.repository.d.ts +0 -5
  705. package/lib/domain/general/repository/get.repository.d.ts +0 -5
  706. package/lib/domain/general/repository/read.repository.d.ts +0 -5
  707. package/lib/domain/general/repository/types/index.d.ts +0 -5
  708. package/lib/domain/general/repository/types/repository-find-filters.type.d.ts +0 -14
  709. package/lib/domain/general/repository/types/repository-update-params.type.d.ts +0 -11
  710. package/lib/domain/general/repository/update.repository.d.ts +0 -5
  711. package/lib/domain/index.d.ts +0 -6
  712. package/lib/domain/location/models/address.d.ts +0 -21
  713. package/lib/domain/shop-settings/models/home.d.ts +0 -17
  714. package/lib/domain/shop-settings/models/shop-menu.d.ts +0 -7
  715. package/lib/domain/shop-settings/models/types/index.d.ts +0 -4
  716. package/lib/domain/shop-settings/repositories/home.repository.d.ts +0 -4
  717. package/lib/domain/shop-settings/repositories/shop-menu.repository.d.ts +0 -4
  718. package/lib/domain/shopping/models/buy-2-win.d.ts +0 -18
  719. package/lib/domain/shopping/models/checkout.d.ts +0 -28
  720. package/lib/domain/shopping/models/coupons/club-coupon.d.ts +0 -9
  721. package/lib/domain/shopping/models/coupons/coupon.d.ts +0 -28
  722. package/lib/domain/shopping/models/coupons/enums/discount-type.enum.d.ts +0 -5
  723. package/lib/domain/shopping/models/coupons/enums/index.d.ts +0 -2
  724. package/lib/domain/shopping/models/coupons/index.d.ts +0 -4
  725. package/lib/domain/shopping/models/coupons/store-coupon.d.ts +0 -8
  726. package/lib/domain/shopping/models/payment.d.ts +0 -69
  727. package/lib/domain/shopping/models/shipping-method.d.ts +0 -18
  728. package/lib/domain/shopping/models/subscription/checkout.d.ts +0 -23
  729. package/lib/domain/shopping/models/subscription/plan.d.ts +0 -12
  730. package/lib/domain/shopping/repositories/buy-2-win.repository.d.ts +0 -4
  731. package/lib/domain/shopping/repositories/checkout.repository.d.ts +0 -4
  732. package/lib/domain/shopping/repositories/coupon.repository.d.ts +0 -4
  733. package/lib/domain/shopping/repositories/order.repository.d.ts +0 -4
  734. package/lib/domain/shopping/repositories/payment.repository.d.ts +0 -4
  735. package/lib/domain/shopping/repositories/subscription/checkout.repository.d.ts +0 -4
  736. package/lib/domain/shopping/repositories/subscription/plan.repository.d.ts +0 -4
  737. package/lib/domain/users/models/beauty-profile.d.ts +0 -12
  738. package/lib/domain/users/models/lead.d.ts +0 -9
  739. package/lib/domain/users/models/subscription/edition.d.ts +0 -15
  740. package/lib/domain/users/models/subscription/payment.d.ts +0 -14
  741. package/lib/domain/users/models/subscription/subscription.d.ts +0 -30
  742. package/lib/domain/users/models/user-address.d.ts +0 -7
  743. package/lib/domain/users/models/user-payment-method.d.ts +0 -13
  744. package/lib/domain/users/models/user.d.ts +0 -24
  745. package/lib/domain/users/repositories/beauty-profile.repository.d.ts +0 -4
  746. package/lib/domain/users/repositories/edition.repository.d.ts +0 -4
  747. package/lib/domain/users/repositories/lead.repository.d.ts +0 -4
  748. package/lib/domain/users/repositories/subscription-payment.repository.d.ts +0 -4
  749. package/lib/domain/users/repositories/subscription.repository.d.ts +0 -4
  750. package/lib/domain/users/repositories/user-address.repository.d.ts +0 -4
  751. package/lib/domain/users/repositories/user-payment-method.repository.d.ts +0 -4
  752. package/lib/domain/users/repositories/user.repository.d.ts +0 -6
  753. package/lib/domain/users/services/authentication.service.d.ts +0 -11
  754. package/lib/domain/users/use-cases/index.d.ts +0 -3
  755. package/lib/index.d.ts +0 -4
  756. package/lib/infra/firebase/auth/authentication-firebase-auth.service.d.ts +0 -11
  757. package/lib/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +0 -17
  758. package/lib/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +0 -29
  759. package/lib/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +0 -15
  760. package/lib/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +0 -20
  761. package/lib/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +0 -15
  762. package/lib/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +0 -15
  763. package/lib/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +0 -10
  764. package/lib/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +0 -14
  765. package/lib/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +0 -16
  766. package/lib/infra/firebase/firestore/models/user-search.d.ts +0 -9
  767. package/lib/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +0 -55
  768. package/lib/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +0 -50
  769. package/lib/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +0 -60
  770. package/lib/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +0 -49
  771. package/lib/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +0 -49
  772. package/lib/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +0 -49
  773. package/lib/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +0 -49
  774. package/lib/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +0 -49
  775. package/lib/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +0 -49
  776. package/lib/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +0 -53
  777. package/lib/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +0 -49
  778. package/lib/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +0 -49
  779. package/lib/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +0 -49
  780. package/lib/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +0 -49
  781. package/lib/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +0 -60
  782. package/lib/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +0 -49
  783. package/lib/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +0 -60
  784. package/lib/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +0 -60
  785. package/lib/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +0 -60
  786. package/lib/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +0 -60
  787. package/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +0 -60
  788. package/lib/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +0 -50
  789. package/lib/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +0 -6
  790. package/lib/infra/firebase/firestore/types/firestore.helpers.type.d.ts +0 -8
  791. package/lib/infra/firebase/firestore/types/firestore.repository.type.d.ts +0 -8
  792. package/lib/infra/index.d.ts +0 -1
  793. package/lib/utils/index.d.ts +0 -4
  794. package/lib/utils/mixins/index.d.ts +0 -2
  795. package/lib/utils/mixins/mixin-ctor.type.d.ts +0 -1
  796. package/lib/utils/types/index.d.ts +0 -1
  797. package/public-api.d.ts +0 -2
  798. /package/{lib/domain → domain}/catalog/index.d.ts +0 -0
  799. /package/{lib/domain → domain}/catalog/models/enums/index.d.ts +0 -0
  800. /package/{lib/domain → domain}/catalog/models/index.d.ts +0 -0
  801. /package/{lib/domain → domain}/catalog/models/types/category-condition.type.d.ts +0 -0
  802. /package/{lib/domain → domain}/catalog/models/types/category-filter.type.d.ts +0 -0
  803. /package/{lib/domain → domain}/catalog/models/types/index.d.ts +0 -0
  804. /package/{lib/domain → domain}/catalog/models/types/shops-description.type.d.ts +0 -0
  805. /package/{lib/domain → domain}/catalog/models/types/shops-price.type.d.ts +0 -0
  806. /package/{lib/domain → domain}/catalog/models/types/stock.type.d.ts +0 -0
  807. /package/{lib/domain → domain}/catalog/models/types/variant-grade.type.d.ts +0 -0
  808. /package/{lib/domain → domain}/catalog/repositories/index.d.ts +0 -0
  809. /package/{lib/domain/general → domain/generic}/index.d.ts +0 -0
  810. /package/{lib/domain/general → domain/generic}/model/identifier-fields.d.ts +0 -0
  811. /package/{lib/domain/general → domain/generic}/repository/enums/index.d.ts +0 -0
  812. /package/{lib/domain/general → domain/generic}/repository/enums/update-option-actions.enum.d.ts +0 -0
  813. /package/{lib/domain/general → domain/generic}/repository/index.d.ts +0 -0
  814. /package/{lib/domain/general → domain/generic}/repository/types/repository-find-result.type.d.ts +0 -0
  815. /package/{lib/domain/general → domain/generic}/repository/types/repository-limit-options.type.d.ts +0 -0
  816. /package/{lib/domain/general → domain/generic}/repository/types/repository-order-by-list.type.d.ts +0 -0
  817. /package/{lib/domain → domain}/location/index.d.ts +0 -0
  818. /package/{lib/domain → domain}/location/models/index.d.ts +0 -0
  819. /package/{lib/domain → domain}/location/models/types/index.d.ts +0 -0
  820. /package/{lib/domain → domain}/location/models/types/location-bound.type.d.ts +0 -0
  821. /package/{lib/domain → domain}/location/models/types/location-geometry.type.d.ts +0 -0
  822. /package/{lib/domain → domain}/location/models/types/location-lat-lng.type.d.ts +0 -0
  823. /package/{lib/domain → domain}/shop-settings/enums/filter-type.enum.d.ts +0 -0
  824. /package/{lib/domain → domain}/shop-settings/enums/index.d.ts +0 -0
  825. /package/{lib/domain → domain}/shop-settings/enums/questions-filters.enum.d.ts +0 -0
  826. /package/{lib/domain → domain}/shop-settings/helpers/beauty-questions.helper.d.ts +0 -0
  827. /package/{lib/domain → domain}/shop-settings/helpers/index.d.ts +0 -0
  828. /package/{lib/domain → domain}/shop-settings/index.d.ts +0 -0
  829. /package/{lib/domain → domain}/shop-settings/models/index.d.ts +0 -0
  830. /package/{lib/domain → domain}/shop-settings/models/types/banner.type.d.ts +0 -0
  831. /package/{lib/domain → domain}/shop-settings/models/types/benefit.type.d.ts +0 -0
  832. /package/{lib/domain → domain}/shop-settings/models/types/menu-nav.type.d.ts +0 -0
  833. /package/{lib/domain → domain}/shop-settings/models/types/sub-menu.type.d.ts +0 -0
  834. /package/{lib/domain → domain}/shop-settings/repositories/index.d.ts +0 -0
  835. /package/{lib/domain → domain}/shopping/index.d.ts +0 -0
  836. /package/{lib/domain → domain}/shopping/models/coupons/enums/exclusivities.enum.d.ts +0 -0
  837. /package/{lib/domain → domain}/shopping/models/enums/checkout-types.enum.d.ts +0 -0
  838. /package/{lib/domain → domain}/shopping/models/enums/index.d.ts +0 -0
  839. /package/{lib/domain → domain}/shopping/models/enums/order-status.enum.d.ts +0 -0
  840. /package/{lib/domain → domain}/shopping/models/index.d.ts +0 -0
  841. /package/{lib/domain → domain}/shopping/models/line-item.d.ts +0 -0
  842. /package/{lib/domain → domain}/shopping/models/order.d.ts +0 -0
  843. /package/{lib/domain → domain}/shopping/models/subscription/index.d.ts +0 -0
  844. /package/{lib/domain → domain}/shopping/models/types/index.d.ts +0 -0
  845. /package/{lib/domain → domain}/shopping/models/types/payment-address.type.d.ts +0 -0
  846. /package/{lib/domain → domain}/shopping/models/types/payment-billing.type.d.ts +0 -0
  847. /package/{lib/domain → domain}/shopping/models/types/payment-card.type.d.ts +0 -0
  848. /package/{lib/domain → domain}/shopping/models/types/payment-customer.type.d.ts +0 -0
  849. /package/{lib/domain → domain}/shopping/models/types/payment-document.type.d.ts +0 -0
  850. /package/{lib/domain → domain}/shopping/models/types/payment-item.type.d.ts +0 -0
  851. /package/{lib/domain → domain}/shopping/models/types/payment-shipping.type.d.ts +0 -0
  852. /package/{lib/domain → domain}/shopping/repositories/index.d.ts +0 -0
  853. /package/{lib/domain → domain}/shopping/repositories/legacy-order.repository.d.ts +0 -0
  854. /package/{lib/domain → domain}/shopping/repositories/subscription/index.d.ts +0 -0
  855. /package/{lib/domain → domain}/users/errors/index.d.ts +0 -0
  856. /package/{lib/domain → domain}/users/errors/unauthorized.error.d.ts +0 -0
  857. /package/{lib/domain → domain}/users/errors/user-already-registered.error.d.ts +0 -0
  858. /package/{lib/domain → domain}/users/errors/weak-password.error.d.ts +0 -0
  859. /package/{lib/domain → domain}/users/index.d.ts +0 -0
  860. /package/{lib/domain → domain}/users/models/enums/accessory-importances.enum.d.ts +0 -0
  861. /package/{lib/domain → domain}/users/models/enums/area.enum.d.ts +0 -0
  862. /package/{lib/domain → domain}/users/models/enums/beard-problems.enum.d.ts +0 -0
  863. /package/{lib/domain → domain}/users/models/enums/beard-sizes.enum.d.ts +0 -0
  864. /package/{lib/domain → domain}/users/models/enums/beauty-product-importances.enum.d.ts +0 -0
  865. /package/{lib/domain → domain}/users/models/enums/body-problems.enum.d.ts +0 -0
  866. /package/{lib/domain → domain}/users/models/enums/body-shapes.enum.d.ts +0 -0
  867. /package/{lib/domain → domain}/users/models/enums/body-tattoos.enum.d.ts +0 -0
  868. /package/{lib/domain → domain}/users/models/enums/face-skin-oilinesses.enum.d.ts +0 -0
  869. /package/{lib/domain → domain}/users/models/enums/face-skin-problems.enum.d.ts +0 -0
  870. /package/{lib/domain → domain}/users/models/enums/face-skin-tones.enum.d.ts +0 -0
  871. /package/{lib/domain → domain}/users/models/enums/family-incomes.enum.d.ts +0 -0
  872. /package/{lib/domain → domain}/users/models/enums/fragrance-importances.enum.d.ts +0 -0
  873. /package/{lib/domain → domain}/users/models/enums/hair-colors.enum.d.ts +0 -0
  874. /package/{lib/domain → domain}/users/models/enums/hair-problems.enum.d.ts +0 -0
  875. /package/{lib/domain → domain}/users/models/enums/hair-strands.enum.d.ts +0 -0
  876. /package/{lib/domain → domain}/users/models/enums/hair-types.enum.d.ts +0 -0
  877. /package/{lib/domain → domain}/users/models/enums/index.d.ts +0 -0
  878. /package/{lib/domain → domain}/users/models/enums/office-position.enum.d.ts +0 -0
  879. /package/{lib/domain → domain}/users/models/enums/product-spents.enum.d.ts +0 -0
  880. /package/{lib/domain → domain}/users/models/enums/user-type.enum.d.ts +0 -0
  881. /package/{lib/domain → domain}/users/models/index.d.ts +0 -0
  882. /package/{lib/domain → domain}/users/models/subscription/enums/billing-status.enum.d.ts +0 -0
  883. /package/{lib/domain → domain}/users/models/subscription/enums/edition-status.enum.d.ts +0 -0
  884. /package/{lib/domain → domain}/users/models/subscription/enums/index.d.ts +0 -0
  885. /package/{lib/domain → domain}/users/models/subscription/enums/payment-type.enum.d.ts +0 -0
  886. /package/{lib/domain → domain}/users/models/subscription/enums/status.enum.d.ts +0 -0
  887. /package/{lib/domain → domain}/users/models/subscription/index.d.ts +0 -0
  888. /package/{lib/domain → domain}/users/repositories/index.d.ts +0 -0
  889. /package/{lib/domain → domain}/users/services/index.d.ts +0 -0
  890. /package/{lib/domain → domain}/users/services/register.service.d.ts +0 -0
  891. /package/{lib/domain → domain}/users/services/types/basic-user-data.type.d.ts +0 -0
  892. /package/{lib/domain → domain}/users/services/types/index.d.ts +0 -0
  893. /package/{lib/domain → domain}/users/use-cases/authentication.d.ts +0 -0
  894. /package/{lib/domain → domain}/users/use-cases/register.d.ts +0 -0
  895. /package/{lib/domain → domain}/users/use-cases/signout.d.ts +0 -0
  896. /package/{lib/errors → errors}/duplicated-results.error.d.ts +0 -0
  897. /package/{lib/errors → errors}/index.d.ts +0 -0
  898. /package/{lib/errors → errors}/invalid-argument.error.d.ts +0 -0
  899. /package/{lib/errors → errors}/not-found.error.d.ts +0 -0
  900. /package/{lib/errors → errors}/required-argument.error.d.ts +0 -0
  901. /package/{lib/infra → infra}/firebase/auth/index.d.ts +0 -0
  902. /package/{lib/infra → infra}/firebase/auth/register-firebase-auth.service.d.ts +0 -0
  903. /package/{lib/infra → infra}/firebase/auth/types/firebase-user-with-id.type.d.ts +0 -0
  904. /package/{lib/infra → infra}/firebase/firestore/index.d.ts +0 -0
  905. /package/{lib/infra → infra}/firebase/firestore/mixins/index.d.ts +0 -0
  906. /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/index.d.ts +0 -0
  907. /package/{lib/infra → infra}/firebase/firestore/repositories/index.d.ts +0 -0
  908. /package/{lib/infra → infra}/firebase/firestore/repositories/shop-settings/index.d.ts +0 -0
  909. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/index.d.ts +0 -0
  910. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +0 -0
  911. /package/{lib/infra → infra}/firebase/firestore/repositories/users/index.d.ts +0 -0
  912. /package/{lib/infra → infra}/firebase/firestore/types/index.d.ts +0 -0
  913. /package/{lib/infra → infra}/firebase/index.d.ts +0 -0
  914. /package/{lib/utils → utils}/mixins/base.mixin.d.ts +0 -0
  915. /package/{lib/utils → utils}/types/prop.type.d.ts +0 -0
@@ -1,2 +0,0 @@
1
- export * from './prop.type';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvdXRpbHMvdHlwZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxhQUFhLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3Byb3AudHlwZSdcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvbGliL3V0aWxzL3R5cGVzL3Byb3AudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgUHJvcFR5cGU8VE9iaiwgVFByb3AgZXh0ZW5kcyBrZXlvZiBUT2JqPiA9IFRPYmpbVFByb3BdXG4iXX0=
@@ -1,3 +0,0 @@
1
- import 'reflect-metadata';
2
- export * from './lib';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxrQkFBa0IsQ0FBQTtBQUV6QixjQUFjLE9BQU8sQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAncmVmbGVjdC1tZXRhZGF0YSdcblxuZXhwb3J0ICogZnJvbSAnLi9saWInXG4iXX0=
@@ -1,22 +0,0 @@
1
- import { BaseModel, IdentifierFields, NonFunctionPropertyNames } from '../../general/model';
2
- import { Shops } from './enums';
3
- import { CategoryCondition, CategoryFilter } from './types';
4
- export declare class Category extends BaseModel<Category> implements IdentifierFields<Category> {
5
- id: string;
6
- brandCategory: boolean;
7
- brandLogo?: string;
8
- name: string;
9
- slug: string;
10
- image?: string;
11
- brandCategoryBanner?: string;
12
- brandCategoryBannerMobile?: string;
13
- description: string;
14
- conditions?: CategoryCondition;
15
- products?: string[];
16
- filters?: CategoryFilter[];
17
- createdAt: Date;
18
- updatedAt: Date;
19
- shop: Shops;
20
- published: boolean;
21
- identifierFields(): NonFunctionPropertyNames<Category>[];
22
- }
@@ -1,4 +0,0 @@
1
- export declare enum Shops {
2
- MENSMARKET = "mensmarket",
3
- GLAMSHOP = "Glamshop"
4
- }
@@ -1,33 +0,0 @@
1
- import { BaseModel, IdentifierFields, NonFunctionPropertyNames } from '../../general/model';
2
- import { Shops } from './enums/shops.enum';
3
- import { ProductReview, ShopDescription, ShopPrice, ShopsDescription, ShopsPrice, Stock } from './types';
4
- import { Variant } from './variant';
5
- export declare class Product extends BaseModel<Product> implements IdentifierFields<Product> {
6
- id: string;
7
- name: string;
8
- slug: string;
9
- shopAvailability: Shops[];
10
- description: ShopsDescription;
11
- sku: string;
12
- price: ShopsPrice;
13
- hasVariants: boolean;
14
- NCM: string;
15
- EAN: string;
16
- CEST: string;
17
- weight: number;
18
- stock: Stock;
19
- costPrice: number;
20
- images?: string[];
21
- published: boolean;
22
- publishedGlam: boolean;
23
- createdAt: Date;
24
- updatedAt: Date;
25
- brand: string;
26
- tags?: string[];
27
- type?: string;
28
- categories?: string[];
29
- reviews?: ProductReview[];
30
- variant?: Variant;
31
- identifierFields(): NonFunctionPropertyNames<Product>[];
32
- getInfoByShop(shop: Shops): ShopDescription & ShopPrice & Stock;
33
- }
@@ -1,14 +0,0 @@
1
- import { Shops } from '../enums/shops.enum';
2
- export declare type ProductReview = {
3
- author: string;
4
- createdAt: Date;
5
- email: string;
6
- location: string;
7
- rate: number;
8
- review: string;
9
- status: boolean;
10
- title: string;
11
- shop?: Shops;
12
- personId?: number;
13
- points?: number;
14
- };
@@ -1,14 +0,0 @@
1
- import { BaseModel, IdentifierFields, NonFunctionPropertyNames } from '../../general/model';
2
- import { ShopsPrice, Stock, VariantGrade } from './types';
3
- export declare class Variant extends BaseModel<Variant> implements IdentifierFields<Variant> {
4
- id: string;
5
- productId: string;
6
- sku: string;
7
- price: ShopsPrice;
8
- EAN: string;
9
- stock: Stock;
10
- grade: VariantGrade[];
11
- costPrice: number;
12
- weight: number;
13
- identifierFields(): NonFunctionPropertyNames<Variant>[];
14
- }
@@ -1,12 +0,0 @@
1
- import { Category } from '../models/category';
2
- import { CrudRepository } from '../../general/repository/crud.repository';
3
- import { Shops } from '../models/enums/shops.enum';
4
- import { Product } from '../models';
5
- export interface CategoryRepository extends CrudRepository<Category> {
6
- getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
7
- getCategoriesForHome(categoryIds: string[], limit?: number): Promise<{
8
- category: Category;
9
- products: Product[];
10
- }[]>;
11
- mountCategory(category: Category): Promise<Product[]>;
12
- }
@@ -1,5 +0,0 @@
1
- import { CrudRepository } from '../../general/repository/crud.repository';
2
- import { Product, Shops } from '../models';
3
- export interface ProductRepository extends CrudRepository<Product> {
4
- getBySlug(slug: string, shop: Shops): Promise<Product>;
5
- }
@@ -1,4 +0,0 @@
1
- import { CrudRepository } from '../../general/repository/crud.repository';
2
- import { Product } from '../models';
3
- export interface SubscriptionProductRepository extends CrudRepository<Product> {
4
- }
@@ -1,4 +0,0 @@
1
- import { CrudRepository } from '../../general/repository/crud.repository';
2
- import { Variant } from '../models/variant';
3
- export interface VariantRepository extends CrudRepository<Variant> {
4
- }
@@ -1,3 +0,0 @@
1
- import { BaseModel } from './base.model';
2
- import { IdentifierFields } from './identifier-fields';
3
- export declare type BaseModelWithIdentifier<Model> = BaseModel<Model> & IdentifierFields<Model>;
@@ -1,6 +0,0 @@
1
- import { NonFunctionProperties } from './types/non-function-properties.type';
2
- export declare class BaseModel<Model> {
3
- constructor(args?: Partial<Model>);
4
- static toInstance<T>(this: new () => Partial<T>, data: NonFunctionProperties<T>): T;
5
- toPlain(): any;
6
- }
@@ -1,4 +0,0 @@
1
- export * from './base.model';
2
- export * from './identifier-fields';
3
- export * from './base-model-with-identifier-fields';
4
- export * from './types';
@@ -1,5 +0,0 @@
1
- import { NonFunctionProperties } from './non-function-properties.type';
2
- export interface BaseModelBuilder<T> {
3
- new (...args: any[]): T;
4
- toInstance(this: new () => T, data: NonFunctionProperties<T>): T;
5
- }
@@ -1,3 +0,0 @@
1
- export * from './non-function-property-name.type';
2
- export * from './non-function-properties.type';
3
- export * from './base-model-builder.type';
@@ -1,2 +0,0 @@
1
- import { NonFunctionPropertyNames } from './non-function-property-name.type';
2
- export declare type NonFunctionProperties<T> = Pick<Partial<T>, NonFunctionPropertyNames<T>>;
@@ -1,3 +0,0 @@
1
- export declare type NonFunctionPropertyNames<T> = {
2
- [K in keyof T]: T[K] extends () => void ? never : K;
3
- }[keyof T];
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { NonFunctionProperties } from '../model/types/non-function-properties.type';
3
- export interface CreateRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- create(data: NonFunctionProperties<BaseModelWithIdentifier<Model>>): Promise<Model>;
5
- }
@@ -1,7 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { CreateRepository } from './create.repository';
3
- import { DeleteRepository } from './delete.repository';
4
- import { ReadRepository } from './read.repository';
5
- import { UpdateRepository } from './update.repository';
6
- export interface CrudRepository<Model extends BaseModelWithIdentifier<Model>> extends CreateRepository<Model>, DeleteRepository<Model>, ReadRepository<Model>, UpdateRepository<Model> {
7
- }
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { NonFunctionProperties } from '../model/types/non-function-properties.type';
3
- export interface DeleteRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- delete(identifiers: NonFunctionProperties<BaseModelWithIdentifier<Model>>): Promise<void>;
5
- }
@@ -1,10 +0,0 @@
1
- export declare enum Where {
2
- EQUALS = "==",
3
- NOTEQUALS = "!=",
4
- GT = ">",
5
- GTE = ">=",
6
- IN = "in",
7
- LT = "<",
8
- LTE = "<=",
9
- LIKE = "like"
10
- }
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { RepositoryFindFielters, RepositoryFindResult, RepositoryLimitOptions, RepositoryOrderByList } from './types';
3
- export interface FindRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- find(filters?: RepositoryFindFielters<Model>[], limits?: RepositoryLimitOptions<Model>, orderBy?: RepositoryOrderByList<Model>): Promise<RepositoryFindResult<Model>>;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { NonFunctionProperties } from '../model/types/non-function-properties.type';
3
- export interface GetRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- get(identifiers: NonFunctionProperties<BaseModelWithIdentifier<Model>>): Promise<Model>;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { FindRepository } from './find.repository';
3
- import { GetRepository } from './get.repository';
4
- export interface ReadRepository<Model extends BaseModelWithIdentifier<Model>> extends FindRepository<Model>, GetRepository<Model> {
5
- }
@@ -1,5 +0,0 @@
1
- export * from './repository-find-filters.type';
2
- export * from './repository-order-by-list.type';
3
- export * from './repository-limit-options.type';
4
- export * from './repository-find-result.type';
5
- export * from './repository-update-params.type';
@@ -1,14 +0,0 @@
1
- import { NonFunctionPropertyNames } from '../../model/types/non-function-property-name.type';
2
- import { PropType } from '../../../../utils';
3
- import { Where } from '../enums/where.enum';
4
- export declare type RepositoryFindFieltersOptions<Model, FieldName extends keyof Model> = {
5
- operator: Where;
6
- value: PropType<Model, FieldName> | PropType<Model, FieldName>[];
7
- };
8
- export declare type NestedRepositoryFindFieltersOptions<Model> = {
9
- [key in NonFunctionPropertyNames<Model>]?: RepositoryFindFieltersOptions<Model, key>;
10
- };
11
- export declare type RepositoryFindField<Model, FieldName extends keyof Model> = RepositoryFindFieltersOptions<Model, FieldName> | Partial<PropType<Model, FieldName>> | NestedRepositoryFindFieltersOptions<PropType<Model, FieldName>>;
12
- export declare type RepositoryFindFielters<Model> = {
13
- [key in NonFunctionPropertyNames<Model>]?: RepositoryFindField<Model, key>;
14
- };
@@ -1,11 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../../model/base-model-with-identifier-fields';
2
- import { NonFunctionPropertyNames } from '../../model/types/non-function-property-name.type';
3
- import { PropType } from '../../../../utils';
4
- export declare type UpdateOptionAction = 'removeField' | 'update' | 'merge' | 'remove' | 'null';
5
- export declare type UpdateOptions<T> = {
6
- action: UpdateOptionAction;
7
- value?: T;
8
- };
9
- export declare type RepositoryUpdateParams<Model> = {
10
- [key in NonFunctionPropertyNames<Model>]?: UpdateOptions<PropType<Model, key>> | PropType<Model, key>;
11
- } | BaseModelWithIdentifier<Model>;
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { RepositoryUpdateParams } from './types/repository-update-params.type';
3
- export interface UpdateRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- update(data: RepositoryUpdateParams<Model>): Promise<Model>;
5
- }
@@ -1,6 +0,0 @@
1
- export * from './general';
2
- export * from './users';
3
- export * from './catalog';
4
- export * from './location';
5
- export * from './shopping';
6
- export * from './shop-settings';
@@ -1,21 +0,0 @@
1
- import { BaseModel } from '../../general/model/base.model';
2
- import { LocationGeometry } from './types/location-geometry.type';
3
- export declare abstract class Address extends BaseModel<Address> {
4
- default?: boolean;
5
- recipient?: string;
6
- zip?: string;
7
- street?: string;
8
- number?: string;
9
- extension?: string;
10
- district?: string;
11
- city?: string;
12
- regionalPole?: string;
13
- region?: string;
14
- state?: string;
15
- country?: string;
16
- mailbox?: boolean;
17
- mailboxNumber?: string;
18
- formattedAddress?: string;
19
- placeId?: string;
20
- geometry?: LocationGeometry;
21
- }
@@ -1,17 +0,0 @@
1
- import { BaseModel, IdentifierFields, NonFunctionPropertyNames } from '../../general/model';
2
- import { Banner } from './types/banner.type';
3
- import { Benefit } from './types/benefit.type';
4
- export declare class Home extends BaseModel<Home> implements IdentifierFields<Home> {
5
- benefitsSection: Benefit[];
6
- blockBanners: Banner[];
7
- blogBanner: Banner;
8
- brandsCarousel: Banner[];
9
- buyToWinBanner: Banner;
10
- discoverCategories: string[];
11
- featuredCampaignBanner: Banner;
12
- featuredCategories: string[];
13
- heroCarousel: Banner[];
14
- verticalCarousels: string[];
15
- id: string;
16
- identifierFields(): NonFunctionPropertyNames<Home>[];
17
- }
@@ -1,7 +0,0 @@
1
- import { BaseModel, IdentifierFields, NonFunctionPropertyNames } from '../../general/model';
2
- import { MenuNav } from './types/menu-nav.type';
3
- export declare class ShopMenu extends BaseModel<ShopMenu> implements IdentifierFields<ShopMenu> {
4
- menuNav: MenuNav[];
5
- id: string;
6
- identifierFields(): NonFunctionPropertyNames<ShopMenu>[];
7
- }
@@ -1,4 +0,0 @@
1
- export * from './banner.type';
2
- export * from './benefit.type';
3
- export * from './menu-nav.type';
4
- export * from './sub-menu.type';
@@ -1,4 +0,0 @@
1
- import { CrudRepository } from '../../general/repository/crud.repository';
2
- import { Home } from '../models/home';
3
- export interface HomeRepository extends CrudRepository<Home> {
4
- }
@@ -1,4 +0,0 @@
1
- import { CrudRepository } from '../../general/repository/crud.repository';
2
- import { ShopMenu } from '../models/shop-menu';
3
- export interface ShopMenuRepository extends CrudRepository<ShopMenu> {
4
- }
@@ -1,18 +0,0 @@
1
- import { BaseModel } from '../../general/model/base.model';
2
- import { IdentifierFields } from '../../general/model/identifier-fields';
3
- import { NonFunctionPropertyNames } from '../../general/model/types';
4
- import { Shops, Category } from '../../catalog/models';
5
- export declare class Buy2Win extends BaseModel<Buy2Win> implements IdentifierFields<Buy2Win> {
6
- active: boolean;
7
- cartValue: number;
8
- createdAt: Date;
9
- endDate: Date;
10
- id?: string;
11
- name: string;
12
- products?: string[];
13
- shop: Shops;
14
- startDate: Date;
15
- updatedAt?: Date;
16
- categories: Category[];
17
- identifierFields(): NonFunctionPropertyNames<Buy2Win>[];
18
- }
@@ -1,28 +0,0 @@
1
- import { Address } from '../../location/models/address';
2
- import { BaseModel } from '../../general/model/base.model';
3
- import { IdentifierFields } from '../../general/model/identifier-fields';
4
- import { NonFunctionPropertyNames } from '../../general/model/types';
5
- import { User } from '../../users/models/user';
6
- import { Coupon } from './coupons/coupon';
7
- import { LineItem } from './line-item';
8
- import { ShippingMethod } from './shipping-method';
9
- import { Shops } from '../../catalog/models/enums/shops.enum';
10
- export declare class Checkout extends BaseModel<Checkout> implements IdentifierFields<Checkout> {
11
- id?: string;
12
- paymentId?: string;
13
- status?: string;
14
- createdAt?: Date;
15
- updatedAt?: Date;
16
- completedAt?: Date;
17
- discount?: number;
18
- subTotalPrice?: number;
19
- totalPrice?: number;
20
- shop: Shops;
21
- lineItems?: LineItem[];
22
- user?: User;
23
- shippingAddress?: Address;
24
- billingAddress?: Address;
25
- shipping?: ShippingMethod;
26
- coupon?: Coupon;
27
- identifierFields(): NonFunctionPropertyNames<Checkout>[];
28
- }
@@ -1,9 +0,0 @@
1
- import { CheckoutTypes } from '../enums/checkout-types.enum';
2
- import { Category } from '../../../catalog';
3
- import { Coupon } from './coupon';
4
- export declare class ClubCoupon extends Coupon<ClubCoupon> {
5
- plan: string;
6
- checkoutType: CheckoutTypes;
7
- categories: Category[];
8
- static isClubCoupon(coupon: Coupon): coupon is ClubCoupon;
9
- }
@@ -1,28 +0,0 @@
1
- import { BaseModel } from '../../../general/model/base.model';
2
- import { CheckoutTypes } from '../enums/checkout-types.enum';
3
- import { IdentifierFields } from '../../../general/model/identifier-fields';
4
- import { NonFunctionPropertyNames } from '../../../general/model/types';
5
- import { Shops } from '../../../catalog/models/enums/shops.enum';
6
- import { DiscountType, Exclusivities } from './enums';
7
- export declare class Coupon<CouponSubType extends Coupon = any> extends BaseModel<CouponSubType> implements IdentifierFields<Coupon> {
8
- id: string;
9
- name: string;
10
- nickname: string;
11
- expiresAt: Date;
12
- beginAt: Date;
13
- discountType: DiscountType;
14
- discount?: number;
15
- useLimit?: number;
16
- quantityPerUser?: number;
17
- shopAvailability: Shops;
18
- personId?: number;
19
- influencerEmail?: string;
20
- recipient?: string;
21
- createdAt: Date;
22
- updatedAt?: Date;
23
- checkoutType: CheckoutTypes;
24
- exclusivityType?: Exclusivities;
25
- get isInfluencer(): boolean;
26
- identifierFields(): NonFunctionPropertyNames<Coupon>[];
27
- calculeDiscount(amount: number): number;
28
- }
@@ -1,5 +0,0 @@
1
- export declare enum DiscountType {
2
- ABSOLUTE = 1,
3
- PERCENTAGE = 2,
4
- FREE_SHIPPING = 3
5
- }
@@ -1,2 +0,0 @@
1
- export * from './discount-type.enum';
2
- export * from './exclusivities.enum';
@@ -1,4 +0,0 @@
1
- export * from './enums';
2
- export * from './coupon';
3
- export * from './club-coupon';
4
- export * from './store-coupon';
@@ -1,8 +0,0 @@
1
- import { CheckoutTypes } from '../enums/checkout-types.enum';
2
- import { Category } from '../../../catalog';
3
- import { Coupon } from './coupon';
4
- export declare class StoreCoupon extends Coupon<StoreCoupon> {
5
- checkoutType: CheckoutTypes;
6
- categories: Category[];
7
- static isStoreCoupon(coupon: Coupon): coupon is StoreCoupon;
8
- }
@@ -1,69 +0,0 @@
1
- import { BaseModel } from '../../general/model/base.model';
2
- import { IdentifierFields } from '../../general/model/identifier-fields';
3
- import { NonFunctionPropertyNames } from '../../general/model/types';
4
- import { PaymentBilling, PaymentCard, PaymentCustomer, PaymentItem, PaymentShipping } from './types';
5
- export declare class Payment extends BaseModel<Payment> implements IdentifierFields<Payment> {
6
- id: number;
7
- object: string;
8
- status: string;
9
- tid: number;
10
- nsu: number;
11
- amount: number;
12
- cost: number;
13
- installments: number;
14
- referer: string;
15
- ip: string;
16
- phone: string;
17
- address: string;
18
- metadata: any;
19
- device: string;
20
- payment: string;
21
- addition: string;
22
- discount: string;
23
- customer: PaymentCustomer;
24
- billing: PaymentBilling;
25
- shipping: PaymentShipping;
26
- items: PaymentItem[];
27
- card: PaymentCard;
28
- refuseReason: string;
29
- statusReason: string;
30
- acquirerResponseCode: string;
31
- acquirerName: string;
32
- acquirerId: string;
33
- authorizationCode: string;
34
- softDescriptor: string;
35
- dateCreated: string;
36
- dateUpdated: string;
37
- authorizedAmount: number;
38
- paidAmount: number;
39
- refundedAmount: number;
40
- cardHolderName: string;
41
- cardLastDigits: string;
42
- cardFirstDigits: string;
43
- cardBrand: string;
44
- cardPinMode: string;
45
- cardMagstripeFallback: boolean;
46
- cvmPin: boolean;
47
- postbackUrl: string;
48
- paymentMethod: string;
49
- captureMethod: string;
50
- antifraudScore: string;
51
- boletoUrl: string;
52
- boletoBarcode: string;
53
- boletoExpirationDate: string;
54
- subscriptionId: string;
55
- splitRules: string;
56
- antifraudMetadata: any;
57
- referenceKey: string;
58
- localTransactionId: string;
59
- localTime: string;
60
- fraudCovered: boolean;
61
- fraudReimbursed: string;
62
- orderId: string;
63
- riskLevel: string;
64
- receiptUrl: string;
65
- privateLabel: string;
66
- pixQrCode: string;
67
- pixExpirationDate: string;
68
- identifierFields(): NonFunctionPropertyNames<Payment>[];
69
- }
@@ -1,18 +0,0 @@
1
- import { BaseModel } from '../../general/model/base.model';
2
- import { IdentifierFields } from '../../general/model/identifier-fields';
3
- import { NonFunctionPropertyNames } from '../../general/model/types';
4
- export declare class ShippingMethod extends BaseModel<ShippingMethod> implements IdentifierFields<ShippingMethod> {
5
- id: string;
6
- CNPJ: string;
7
- DaysToDelivery: number;
8
- MaxGrams: number;
9
- MinGrams: number;
10
- ServiceCompanyRangeId: number;
11
- ShippingCompanyId: number;
12
- ShippingCompanyName: string;
13
- ShippingPrice: number;
14
- State: string;
15
- ZipEnd: number;
16
- ZipStart: number;
17
- identifierFields(): NonFunctionPropertyNames<ShippingMethod>[];
18
- }
@@ -1,23 +0,0 @@
1
- import { Address } from '../../../location/models/address';
2
- import { BaseModel } from '../../../general/model/base.model';
3
- import { Coupon } from '../coupons/coupon';
4
- import { IdentifierFields } from '../../../general/model/identifier-fields';
5
- import { NonFunctionPropertyNames } from '../../../general/model/types';
6
- import { User } from '../../../users/models/user';
7
- import { SubscriptionPlan } from './plan';
8
- export declare class CheckoutSubscription extends BaseModel<CheckoutSubscription> implements IdentifierFields<CheckoutSubscription> {
9
- id?: string;
10
- user: User;
11
- createdAt: Date;
12
- updatedAt: Date;
13
- completedAt?: Date;
14
- userId?: string;
15
- discount?: number;
16
- subTotalPrice?: number;
17
- totalPrice?: number;
18
- shippingAddress: Address;
19
- billingAddress?: Address;
20
- subscriptionPlan: SubscriptionPlan;
21
- coupon?: Coupon;
22
- identifierFields(): NonFunctionPropertyNames<CheckoutSubscription>[];
23
- }
@@ -1,12 +0,0 @@
1
- import { BaseModel } from '../../../general/model/base.model';
2
- import { IdentifierFields } from '../../../general/model/identifier-fields';
3
- import { NonFunctionPropertyNames } from '../../../general/model/types';
4
- export declare class SubscriptionPlan extends BaseModel<SubscriptionPlan> implements IdentifierFields<SubscriptionPlan> {
5
- id: string;
6
- name: string;
7
- billingPrice: number;
8
- recurrencePrice: number;
9
- recurrenceCycle: number;
10
- maxAttempts: number;
11
- identifierFields(): NonFunctionPropertyNames<SubscriptionPlan>[];
12
- }
@@ -1,4 +0,0 @@
1
- import { Buy2Win } from '../models/buy-2-win';
2
- import { CrudRepository } from '../../general/repository/crud.repository';
3
- export interface Buy2WinRepository extends CrudRepository<Buy2Win> {
4
- }
@@ -1,4 +0,0 @@
1
- import { Checkout } from '../models/checkout';
2
- import { CrudRepository } from '../../general/repository/crud.repository';
3
- export interface CheckoutRepository extends CrudRepository<Checkout> {
4
- }
@@ -1,4 +0,0 @@
1
- import { Coupon } from '../models/coupons/coupon';
2
- import { CrudRepository } from '../../general/repository/crud.repository';
3
- export interface CouponRepository extends CrudRepository<Coupon> {
4
- }
@@ -1,4 +0,0 @@
1
- import { CrudRepository } from '../../general/repository/crud.repository';
2
- import { Order } from '../models/order';
3
- export interface OrderRepository extends CrudRepository<Order> {
4
- }
@@ -1,4 +0,0 @@
1
- import { CrudRepository } from '../../general/repository/crud.repository';
2
- import { Payment } from '../models/payment';
3
- export interface PaymentRepository extends CrudRepository<Payment> {
4
- }