@infrab4a/connect 1.0.3-beta.4 → 1.0.3

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 (578) hide show
  1. package/README.md +24 -24
  2. package/bundles/infrab4a-connect.umd.js +4281 -4273
  3. package/bundles/infrab4a-connect.umd.js.map +1 -1
  4. package/domain/catalog/index.d.ts +2 -2
  5. package/domain/catalog/models/category.d.ts +23 -23
  6. package/domain/catalog/models/enums/index.d.ts +2 -1
  7. package/domain/catalog/models/enums/product-genders.enum.d.ts +5 -0
  8. package/domain/catalog/models/enums/shops.enum.d.ts +5 -5
  9. package/domain/catalog/models/index.d.ts +6 -6
  10. package/domain/catalog/models/kit-product.d.ts +12 -12
  11. package/domain/catalog/models/product.d.ts +41 -40
  12. package/domain/catalog/models/types/category-condition.type.d.ts +4 -4
  13. package/domain/catalog/models/types/category-filter.type.d.ts +4 -4
  14. package/domain/catalog/models/types/index.d.ts +8 -7
  15. package/domain/catalog/models/types/product-gender.type.d.ts +1 -0
  16. package/domain/catalog/models/types/product-review.type.d.ts +17 -17
  17. package/domain/catalog/models/types/shops-description.type.d.ts +7 -7
  18. package/domain/catalog/models/types/shops-price.type.d.ts +10 -10
  19. package/domain/catalog/models/types/stock.type.d.ts +3 -3
  20. package/domain/catalog/models/types/variant-grade.type.d.ts +4 -4
  21. package/domain/catalog/models/variant.d.ts +18 -18
  22. package/domain/catalog/repositories/category.repository.d.ts +15 -15
  23. package/domain/catalog/repositories/index.d.ts +4 -4
  24. package/domain/catalog/repositories/product.repository.d.ts +12 -12
  25. package/domain/catalog/repositories/subscription-product.repository.d.ts +4 -4
  26. package/domain/catalog/repositories/variant.repository.d.ts +4 -4
  27. package/domain/generic/index.d.ts +2 -2
  28. package/domain/generic/model/base.model.d.ts +10 -10
  29. package/domain/generic/model/identifier-fields.d.ts +4 -4
  30. package/domain/generic/model/index.d.ts +3 -3
  31. package/domain/generic/model/types/base-model-builder.type.d.ts +15 -15
  32. package/domain/generic/model/types/identifier-model.type.d.ts +7 -7
  33. package/domain/generic/model/types/index.d.ts +5 -5
  34. package/domain/generic/model/types/model-base-structure.type.d.ts +6 -6
  35. package/domain/generic/model/types/non-function-properties.type.d.ts +12 -12
  36. package/domain/generic/model/types/non-function-property-name.type.d.ts +4 -4
  37. package/domain/generic/repository/create.repository.d.ts +8 -8
  38. package/domain/generic/repository/crud.repository.d.ts +19 -19
  39. package/domain/generic/repository/delete.repository.d.ts +7 -7
  40. package/domain/generic/repository/enums/index.d.ts +2 -2
  41. package/domain/generic/repository/enums/update-option-actions.enum.d.ts +7 -7
  42. package/domain/generic/repository/enums/where.enum.d.ts +13 -13
  43. package/domain/generic/repository/find.repository.d.ts +11 -11
  44. package/domain/generic/repository/get.repository.d.ts +5 -5
  45. package/domain/generic/repository/index.d.ts +9 -9
  46. package/domain/generic/repository/read.repository.d.ts +14 -14
  47. package/domain/generic/repository/types/index.d.ts +6 -6
  48. package/domain/generic/repository/types/repository-find-filters.type.d.ts +13 -13
  49. package/domain/generic/repository/types/repository-find-result.type.d.ts +4 -4
  50. package/domain/generic/repository/types/repository-limit-options.type.d.ts +4 -4
  51. package/domain/generic/repository/types/repository-order-by-list.type.d.ts +5 -5
  52. package/domain/generic/repository/types/repository-update-params.type.d.ts +11 -11
  53. package/domain/generic/repository/types/where-options.type.d.ts +2 -2
  54. package/domain/generic/repository/update.repository.d.ts +6 -6
  55. package/domain/index.d.ts +6 -6
  56. package/domain/location/index.d.ts +1 -1
  57. package/domain/location/models/address.d.ts +22 -22
  58. package/domain/location/models/index.d.ts +2 -2
  59. package/domain/location/models/types/index.d.ts +3 -3
  60. package/domain/location/models/types/location-bound.type.d.ts +6 -6
  61. package/domain/location/models/types/location-geometry.type.d.ts +7 -7
  62. package/domain/location/models/types/location-lat-lng.type.d.ts +4 -4
  63. package/domain/shop-settings/enums/filter-type.enum.d.ts +19 -19
  64. package/domain/shop-settings/enums/index.d.ts +2 -2
  65. package/domain/shop-settings/enums/questions-filters.enum.d.ts +19 -19
  66. package/domain/shop-settings/helpers/beauty-questions.helper.d.ts +9 -9
  67. package/domain/shop-settings/helpers/index.d.ts +1 -1
  68. package/domain/shop-settings/index.d.ts +4 -4
  69. package/domain/shop-settings/models/home.d.ts +17 -17
  70. package/domain/shop-settings/models/index.d.ts +3 -3
  71. package/domain/shop-settings/models/shop-menu.d.ts +7 -7
  72. package/domain/shop-settings/models/types/banner.type.d.ts +6 -6
  73. package/domain/shop-settings/models/types/benefit.type.d.ts +5 -5
  74. package/domain/shop-settings/models/types/home-data.type.d.ts +15 -15
  75. package/domain/shop-settings/models/types/index.d.ts +5 -5
  76. package/domain/shop-settings/models/types/menu-nav.type.d.ts +8 -8
  77. package/domain/shop-settings/models/types/sub-menu.type.d.ts +8 -8
  78. package/domain/shop-settings/repositories/home.repository.d.ts +4 -4
  79. package/domain/shop-settings/repositories/index.d.ts +2 -2
  80. package/domain/shop-settings/repositories/shop-menu.repository.d.ts +4 -4
  81. package/domain/shopping/index.d.ts +2 -2
  82. package/domain/shopping/models/buy-2-win.d.ts +16 -16
  83. package/domain/shopping/models/checkout.d.ts +27 -27
  84. package/domain/shopping/models/coupons/coupon.d.ts +26 -26
  85. package/domain/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +4 -4
  86. package/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +6 -6
  87. package/domain/shopping/models/coupons/enums/exclusivities.enum.d.ts +5 -5
  88. package/domain/shopping/models/coupons/enums/index.d.ts +3 -3
  89. package/domain/shopping/models/coupons/financial-coupon.d.ts +9 -9
  90. package/domain/shopping/models/coupons/index.d.ts +3 -3
  91. package/domain/shopping/models/enums/checkout-types.enum.d.ts +4 -4
  92. package/domain/shopping/models/enums/index.d.ts +2 -2
  93. package/domain/shopping/models/enums/order-status.enum.d.ts +10 -10
  94. package/domain/shopping/models/index.d.ts +11 -11
  95. package/domain/shopping/models/line-item.d.ts +8 -8
  96. package/domain/shopping/models/order.d.ts +9 -9
  97. package/domain/shopping/models/payment.d.ts +67 -67
  98. package/domain/shopping/models/shipping-method.d.ts +16 -16
  99. package/domain/shopping/models/subscription/checkout.d.ts +21 -21
  100. package/domain/shopping/models/subscription/index.d.ts +2 -2
  101. package/domain/shopping/models/subscription/plan.d.ts +10 -10
  102. package/domain/shopping/models/types/index.d.ts +7 -7
  103. package/domain/shopping/models/types/payment-address.type.d.ts +12 -12
  104. package/domain/shopping/models/types/payment-billing.type.d.ts +7 -7
  105. package/domain/shopping/models/types/payment-card.type.d.ts +14 -14
  106. package/domain/shopping/models/types/payment-customer.type.d.ts +18 -18
  107. package/domain/shopping/models/types/payment-document.type.d.ts +6 -6
  108. package/domain/shopping/models/types/payment-item.type.d.ts +11 -11
  109. package/domain/shopping/models/types/payment-shipping.type.d.ts +10 -10
  110. package/domain/shopping/repositories/buy-2-win.repository.d.ts +4 -4
  111. package/domain/shopping/repositories/checkout.repository.d.ts +4 -4
  112. package/domain/shopping/repositories/coupon.repository.d.ts +4 -4
  113. package/domain/shopping/repositories/index.d.ts +7 -7
  114. package/domain/shopping/repositories/legacy-order.repository.d.ts +3 -3
  115. package/domain/shopping/repositories/order.repository.d.ts +4 -4
  116. package/domain/shopping/repositories/payment.repository.d.ts +4 -4
  117. package/domain/shopping/repositories/subscription/checkout.repository.d.ts +4 -4
  118. package/domain/shopping/repositories/subscription/index.d.ts +2 -2
  119. package/domain/shopping/repositories/subscription/plan.repository.d.ts +4 -4
  120. package/domain/users/errors/index.d.ts +3 -3
  121. package/domain/users/errors/unauthorized.error.d.ts +5 -5
  122. package/domain/users/errors/user-already-registered.error.d.ts +5 -5
  123. package/domain/users/errors/weak-password.error.d.ts +5 -5
  124. package/domain/users/index.d.ts +5 -5
  125. package/domain/users/models/beauty-profile.d.ts +11 -11
  126. package/domain/users/models/enums/accessory-importances.enum.d.ts +5 -5
  127. package/domain/users/models/enums/area.enum.d.ts +11 -11
  128. package/domain/users/models/enums/beard-problems.enum.d.ts +9 -9
  129. package/domain/users/models/enums/beard-sizes.enum.d.ts +7 -7
  130. package/domain/users/models/enums/beauty-product-importances.enum.d.ts +6 -6
  131. package/domain/users/models/enums/body-problems.enum.d.ts +11 -11
  132. package/domain/users/models/enums/body-shapes.enum.d.ts +7 -7
  133. package/domain/users/models/enums/body-tattoos.enum.d.ts +5 -5
  134. package/domain/users/models/enums/face-skin-oilinesses.enum.d.ts +7 -7
  135. package/domain/users/models/enums/face-skin-problems.enum.d.ts +10 -10
  136. package/domain/users/models/enums/face-skin-tones.enum.d.ts +8 -8
  137. package/domain/users/models/enums/family-incomes.enum.d.ts +8 -8
  138. package/domain/users/models/enums/fragrance-importances.enum.d.ts +5 -5
  139. package/domain/users/models/enums/hair-colors.enum.d.ts +10 -10
  140. package/domain/users/models/enums/hair-problems.enum.d.ts +10 -10
  141. package/domain/users/models/enums/hair-strands.enum.d.ts +8 -8
  142. package/domain/users/models/enums/hair-types.enum.d.ts +7 -7
  143. package/domain/users/models/enums/index.d.ts +20 -20
  144. package/domain/users/models/enums/office-position.enum.d.ts +6 -6
  145. package/domain/users/models/enums/product-spents.enum.d.ts +8 -8
  146. package/domain/users/models/enums/user-type.enum.d.ts +8 -8
  147. package/domain/users/models/index.d.ts +7 -7
  148. package/domain/users/models/lead.d.ts +7 -7
  149. package/domain/users/models/subscription/edition.d.ts +16 -16
  150. package/domain/users/models/subscription/enums/billing-status.enum.d.ts +3 -3
  151. package/domain/users/models/subscription/enums/edition-status.enum.d.ts +4 -4
  152. package/domain/users/models/subscription/enums/index.d.ts +4 -4
  153. package/domain/users/models/subscription/enums/payment-type.enum.d.ts +5 -5
  154. package/domain/users/models/subscription/enums/status.enum.d.ts +4 -4
  155. package/domain/users/models/subscription/index.d.ts +4 -4
  156. package/domain/users/models/subscription/payment.d.ts +13 -13
  157. package/domain/users/models/subscription/subscription.d.ts +28 -28
  158. package/domain/users/models/user-address.d.ts +7 -7
  159. package/domain/users/models/user-payment-method.d.ts +14 -14
  160. package/domain/users/models/user.d.ts +28 -28
  161. package/domain/users/repositories/beauty-profile.repository.d.ts +4 -4
  162. package/domain/users/repositories/edition.repository.d.ts +4 -4
  163. package/domain/users/repositories/index.d.ts +8 -8
  164. package/domain/users/repositories/lead.repository.d.ts +4 -4
  165. package/domain/users/repositories/subscription-payment.repository.d.ts +4 -4
  166. package/domain/users/repositories/subscription.repository.d.ts +4 -4
  167. package/domain/users/repositories/user-address.repository.d.ts +4 -4
  168. package/domain/users/repositories/user-payment-method.repository.d.ts +4 -4
  169. package/domain/users/repositories/user.repository.d.ts +6 -6
  170. package/domain/users/services/authentication.service.d.ts +12 -12
  171. package/domain/users/services/index.d.ts +3 -3
  172. package/domain/users/services/register.service.d.ts +7 -7
  173. package/domain/users/services/types/basic-user-data.type.d.ts +4 -4
  174. package/domain/users/services/types/index.d.ts +1 -1
  175. package/domain/users/use-cases/authentication.d.ts +21 -21
  176. package/domain/users/use-cases/index.d.ts +4 -4
  177. package/domain/users/use-cases/recovery-password.d.ts +6 -6
  178. package/domain/users/use-cases/register.d.ts +13 -13
  179. package/domain/users/use-cases/signout.d.ts +6 -6
  180. package/errors/duplicated-results.error.d.ts +5 -5
  181. package/errors/index.d.ts +4 -4
  182. package/errors/invalid-argument.error.d.ts +5 -5
  183. package/errors/not-found.error.d.ts +5 -5
  184. package/errors/required-argument.error.d.ts +6 -6
  185. package/esm2015/domain/catalog/index.js +3 -3
  186. package/esm2015/domain/catalog/models/category.js +10 -10
  187. package/esm2015/domain/catalog/models/enums/index.js +3 -2
  188. package/esm2015/domain/catalog/models/enums/product-genders.enum.js +7 -0
  189. package/esm2015/domain/catalog/models/enums/shops.enum.js +7 -7
  190. package/esm2015/domain/catalog/models/index.js +7 -7
  191. package/esm2015/domain/catalog/models/kit-product.js +18 -18
  192. package/esm2015/domain/catalog/models/product.js +21 -21
  193. package/esm2015/domain/catalog/models/types/category-condition.type.js +2 -2
  194. package/esm2015/domain/catalog/models/types/category-filter.type.js +2 -2
  195. package/esm2015/domain/catalog/models/types/index.js +9 -8
  196. package/esm2015/domain/catalog/models/types/product-gender.type.js +2 -0
  197. package/esm2015/domain/catalog/models/types/product-review.type.js +2 -2
  198. package/esm2015/domain/catalog/models/types/shops-description.type.js +2 -2
  199. package/esm2015/domain/catalog/models/types/shops-price.type.js +2 -2
  200. package/esm2015/domain/catalog/models/types/stock.type.js +2 -2
  201. package/esm2015/domain/catalog/models/types/variant-grade.type.js +2 -2
  202. package/esm2015/domain/catalog/models/variant.js +10 -10
  203. package/esm2015/domain/catalog/repositories/category.repository.js +2 -2
  204. package/esm2015/domain/catalog/repositories/index.js +5 -5
  205. package/esm2015/domain/catalog/repositories/product.repository.js +2 -2
  206. package/esm2015/domain/catalog/repositories/subscription-product.repository.js +2 -2
  207. package/esm2015/domain/catalog/repositories/variant.repository.js +2 -2
  208. package/esm2015/domain/generic/index.js +3 -3
  209. package/esm2015/domain/generic/model/base.model.js +23 -23
  210. package/esm2015/domain/generic/model/identifier-fields.js +2 -2
  211. package/esm2015/domain/generic/model/index.js +4 -4
  212. package/esm2015/domain/generic/model/types/base-model-builder.type.js +2 -2
  213. package/esm2015/domain/generic/model/types/identifier-model.type.js +2 -2
  214. package/esm2015/domain/generic/model/types/index.js +6 -6
  215. package/esm2015/domain/generic/model/types/model-base-structure.type.js +2 -2
  216. package/esm2015/domain/generic/model/types/non-function-properties.type.js +2 -2
  217. package/esm2015/domain/generic/model/types/non-function-property-name.type.js +2 -2
  218. package/esm2015/domain/generic/repository/create.repository.js +2 -2
  219. package/esm2015/domain/generic/repository/crud.repository.js +2 -2
  220. package/esm2015/domain/generic/repository/delete.repository.js +2 -2
  221. package/esm2015/domain/generic/repository/enums/index.js +3 -3
  222. package/esm2015/domain/generic/repository/enums/update-option-actions.enum.js +9 -9
  223. package/esm2015/domain/generic/repository/enums/where.enum.js +15 -15
  224. package/esm2015/domain/generic/repository/find.repository.js +2 -2
  225. package/esm2015/domain/generic/repository/get.repository.js +2 -2
  226. package/esm2015/domain/generic/repository/index.js +10 -10
  227. package/esm2015/domain/generic/repository/read.repository.js +2 -2
  228. package/esm2015/domain/generic/repository/types/index.js +7 -7
  229. package/esm2015/domain/generic/repository/types/repository-find-filters.type.js +2 -2
  230. package/esm2015/domain/generic/repository/types/repository-find-result.type.js +2 -2
  231. package/esm2015/domain/generic/repository/types/repository-limit-options.type.js +2 -2
  232. package/esm2015/domain/generic/repository/types/repository-order-by-list.type.js +2 -2
  233. package/esm2015/domain/generic/repository/types/repository-update-params.type.js +2 -2
  234. package/esm2015/domain/generic/repository/types/where-options.type.js +2 -2
  235. package/esm2015/domain/generic/repository/update.repository.js +2 -2
  236. package/esm2015/domain/index.js +7 -7
  237. package/esm2015/domain/location/index.js +2 -2
  238. package/esm2015/domain/location/models/address.js +7 -7
  239. package/esm2015/domain/location/models/index.js +3 -3
  240. package/esm2015/domain/location/models/types/index.js +4 -4
  241. package/esm2015/domain/location/models/types/location-bound.type.js +2 -2
  242. package/esm2015/domain/location/models/types/location-geometry.type.js +2 -2
  243. package/esm2015/domain/location/models/types/location-lat-lng.type.js +2 -2
  244. package/esm2015/domain/shop-settings/enums/filter-type.enum.js +21 -21
  245. package/esm2015/domain/shop-settings/enums/index.js +3 -3
  246. package/esm2015/domain/shop-settings/enums/questions-filters.enum.js +21 -21
  247. package/esm2015/domain/shop-settings/helpers/beauty-questions.helper.js +46 -46
  248. package/esm2015/domain/shop-settings/helpers/index.js +2 -2
  249. package/esm2015/domain/shop-settings/index.js +5 -5
  250. package/esm2015/domain/shop-settings/models/home.js +7 -7
  251. package/esm2015/domain/shop-settings/models/index.js +4 -4
  252. package/esm2015/domain/shop-settings/models/shop-menu.js +7 -7
  253. package/esm2015/domain/shop-settings/models/types/banner.type.js +2 -2
  254. package/esm2015/domain/shop-settings/models/types/benefit.type.js +2 -2
  255. package/esm2015/domain/shop-settings/models/types/home-data.type.js +2 -2
  256. package/esm2015/domain/shop-settings/models/types/index.js +6 -6
  257. package/esm2015/domain/shop-settings/models/types/menu-nav.type.js +2 -2
  258. package/esm2015/domain/shop-settings/models/types/sub-menu.type.js +2 -2
  259. package/esm2015/domain/shop-settings/repositories/home.repository.js +2 -2
  260. package/esm2015/domain/shop-settings/repositories/index.js +3 -3
  261. package/esm2015/domain/shop-settings/repositories/shop-menu.repository.js +2 -2
  262. package/esm2015/domain/shopping/index.js +3 -3
  263. package/esm2015/domain/shopping/models/buy-2-win.js +14 -14
  264. package/esm2015/domain/shopping/models/checkout.js +38 -38
  265. package/esm2015/domain/shopping/models/coupons/coupon.js +23 -23
  266. package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +6 -6
  267. package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +8 -8
  268. package/esm2015/domain/shopping/models/coupons/enums/exclusivities.enum.js +7 -7
  269. package/esm2015/domain/shopping/models/coupons/enums/index.js +4 -4
  270. package/esm2015/domain/shopping/models/coupons/financial-coupon.js +28 -28
  271. package/esm2015/domain/shopping/models/coupons/index.js +4 -4
  272. package/esm2015/domain/shopping/models/enums/checkout-types.enum.js +6 -6
  273. package/esm2015/domain/shopping/models/enums/index.js +3 -3
  274. package/esm2015/domain/shopping/models/enums/order-status.enum.js +12 -12
  275. package/esm2015/domain/shopping/models/index.js +12 -12
  276. package/esm2015/domain/shopping/models/line-item.js +4 -4
  277. package/esm2015/domain/shopping/models/order.js +11 -11
  278. package/esm2015/domain/shopping/models/payment.js +169 -169
  279. package/esm2015/domain/shopping/models/shipping-method.js +7 -7
  280. package/esm2015/domain/shopping/models/subscription/checkout.js +28 -28
  281. package/esm2015/domain/shopping/models/subscription/index.js +3 -3
  282. package/esm2015/domain/shopping/models/subscription/plan.js +7 -7
  283. package/esm2015/domain/shopping/models/types/index.js +8 -8
  284. package/esm2015/domain/shopping/models/types/payment-address.type.js +2 -2
  285. package/esm2015/domain/shopping/models/types/payment-billing.type.js +2 -2
  286. package/esm2015/domain/shopping/models/types/payment-card.type.js +2 -2
  287. package/esm2015/domain/shopping/models/types/payment-customer.type.js +2 -2
  288. package/esm2015/domain/shopping/models/types/payment-document.type.js +2 -2
  289. package/esm2015/domain/shopping/models/types/payment-item.type.js +2 -2
  290. package/esm2015/domain/shopping/models/types/payment-shipping.type.js +2 -2
  291. package/esm2015/domain/shopping/repositories/buy-2-win.repository.js +2 -2
  292. package/esm2015/domain/shopping/repositories/checkout.repository.js +2 -2
  293. package/esm2015/domain/shopping/repositories/coupon.repository.js +2 -2
  294. package/esm2015/domain/shopping/repositories/index.js +8 -8
  295. package/esm2015/domain/shopping/repositories/legacy-order.repository.js +2 -2
  296. package/esm2015/domain/shopping/repositories/order.repository.js +2 -2
  297. package/esm2015/domain/shopping/repositories/payment.repository.js +2 -2
  298. package/esm2015/domain/shopping/repositories/subscription/checkout.repository.js +2 -2
  299. package/esm2015/domain/shopping/repositories/subscription/index.js +3 -3
  300. package/esm2015/domain/shopping/repositories/subscription/plan.repository.js +2 -2
  301. package/esm2015/domain/users/errors/index.js +4 -4
  302. package/esm2015/domain/users/errors/unauthorized.error.js +8 -8
  303. package/esm2015/domain/users/errors/user-already-registered.error.js +8 -8
  304. package/esm2015/domain/users/errors/weak-password.error.js +8 -8
  305. package/esm2015/domain/users/index.js +6 -6
  306. package/esm2015/domain/users/models/beauty-profile.js +12 -12
  307. package/esm2015/domain/users/models/enums/accessory-importances.enum.js +7 -7
  308. package/esm2015/domain/users/models/enums/area.enum.js +13 -13
  309. package/esm2015/domain/users/models/enums/beard-problems.enum.js +11 -11
  310. package/esm2015/domain/users/models/enums/beard-sizes.enum.js +9 -9
  311. package/esm2015/domain/users/models/enums/beauty-product-importances.enum.js +8 -8
  312. package/esm2015/domain/users/models/enums/body-problems.enum.js +13 -13
  313. package/esm2015/domain/users/models/enums/body-shapes.enum.js +9 -9
  314. package/esm2015/domain/users/models/enums/body-tattoos.enum.js +7 -7
  315. package/esm2015/domain/users/models/enums/face-skin-oilinesses.enum.js +9 -9
  316. package/esm2015/domain/users/models/enums/face-skin-problems.enum.js +12 -12
  317. package/esm2015/domain/users/models/enums/face-skin-tones.enum.js +10 -10
  318. package/esm2015/domain/users/models/enums/family-incomes.enum.js +10 -10
  319. package/esm2015/domain/users/models/enums/fragrance-importances.enum.js +7 -7
  320. package/esm2015/domain/users/models/enums/hair-colors.enum.js +12 -12
  321. package/esm2015/domain/users/models/enums/hair-problems.enum.js +12 -12
  322. package/esm2015/domain/users/models/enums/hair-strands.enum.js +10 -10
  323. package/esm2015/domain/users/models/enums/hair-types.enum.js +9 -9
  324. package/esm2015/domain/users/models/enums/index.js +21 -21
  325. package/esm2015/domain/users/models/enums/office-position.enum.js +8 -8
  326. package/esm2015/domain/users/models/enums/product-spents.enum.js +10 -10
  327. package/esm2015/domain/users/models/enums/user-type.enum.js +10 -10
  328. package/esm2015/domain/users/models/index.js +8 -8
  329. package/esm2015/domain/users/models/lead.js +7 -7
  330. package/esm2015/domain/users/models/subscription/edition.js +7 -7
  331. package/esm2015/domain/users/models/subscription/enums/billing-status.enum.js +5 -5
  332. package/esm2015/domain/users/models/subscription/enums/edition-status.enum.js +6 -6
  333. package/esm2015/domain/users/models/subscription/enums/index.js +5 -5
  334. package/esm2015/domain/users/models/subscription/enums/payment-type.enum.js +7 -7
  335. package/esm2015/domain/users/models/subscription/enums/status.enum.js +6 -6
  336. package/esm2015/domain/users/models/subscription/index.js +5 -5
  337. package/esm2015/domain/users/models/subscription/payment.js +14 -14
  338. package/esm2015/domain/users/models/subscription/subscription.js +43 -43
  339. package/esm2015/domain/users/models/user-address.js +7 -7
  340. package/esm2015/domain/users/models/user-payment-method.js +7 -7
  341. package/esm2015/domain/users/models/user.js +26 -26
  342. package/esm2015/domain/users/repositories/beauty-profile.repository.js +2 -2
  343. package/esm2015/domain/users/repositories/edition.repository.js +2 -2
  344. package/esm2015/domain/users/repositories/index.js +9 -9
  345. package/esm2015/domain/users/repositories/lead.repository.js +2 -2
  346. package/esm2015/domain/users/repositories/subscription-payment.repository.js +2 -2
  347. package/esm2015/domain/users/repositories/subscription.repository.js +2 -2
  348. package/esm2015/domain/users/repositories/user-address.repository.js +2 -2
  349. package/esm2015/domain/users/repositories/user-payment-method.repository.js +2 -2
  350. package/esm2015/domain/users/repositories/user.repository.js +2 -2
  351. package/esm2015/domain/users/services/authentication.service.js +2 -2
  352. package/esm2015/domain/users/services/index.js +4 -4
  353. package/esm2015/domain/users/services/register.service.js +2 -2
  354. package/esm2015/domain/users/services/types/basic-user-data.type.js +2 -2
  355. package/esm2015/domain/users/services/types/index.js +2 -2
  356. package/esm2015/domain/users/use-cases/authentication.js +40 -40
  357. package/esm2015/domain/users/use-cases/index.js +5 -5
  358. package/esm2015/domain/users/use-cases/recovery-password.js +12 -12
  359. package/esm2015/domain/users/use-cases/register.js +34 -34
  360. package/esm2015/domain/users/use-cases/signout.js +12 -12
  361. package/esm2015/errors/duplicated-results.error.js +8 -8
  362. package/esm2015/errors/index.js +5 -5
  363. package/esm2015/errors/invalid-argument.error.js +8 -8
  364. package/esm2015/errors/not-found.error.js +8 -8
  365. package/esm2015/errors/required-argument.error.js +9 -9
  366. package/esm2015/index.js +6 -6
  367. package/esm2015/infra/elasticsearch/adapters/axios.adapter.js +57 -57
  368. package/esm2015/infra/elasticsearch/adapters/elastic-search.adapter.js +2 -2
  369. package/esm2015/infra/elasticsearch/adapters/index.js +3 -3
  370. package/esm2015/infra/elasticsearch/index.js +4 -4
  371. package/esm2015/infra/elasticsearch/indexes/index.js +2 -2
  372. package/esm2015/infra/elasticsearch/indexes/products-index.js +93 -93
  373. package/esm2015/infra/elasticsearch/types/elastic-search-result.js +2 -2
  374. package/esm2015/infra/elasticsearch/types/index.js +2 -2
  375. package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +52 -52
  376. package/esm2015/infra/firebase/auth/index.js +3 -3
  377. package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +26 -26
  378. package/esm2015/infra/firebase/auth/types/firebase-user-with-id.type.js +2 -2
  379. package/esm2015/infra/firebase/firestore/index.js +4 -4
  380. package/esm2015/infra/firebase/firestore/mixins/index.js +10 -10
  381. package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +31 -31
  382. package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +10 -10
  383. package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +18 -18
  384. package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +92 -92
  385. package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +22 -22
  386. package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +24 -24
  387. package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +17 -17
  388. package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +11 -11
  389. package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +45 -45
  390. package/esm2015/infra/firebase/firestore/models/user-search.js +7 -7
  391. package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +72 -72
  392. package/esm2015/infra/firebase/firestore/repositories/catalog/index.js +5 -5
  393. package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +52 -52
  394. package/esm2015/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +14 -14
  395. package/esm2015/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +12 -12
  396. package/esm2015/infra/firebase/firestore/repositories/index.js +5 -5
  397. package/esm2015/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +56 -56
  398. package/esm2015/infra/firebase/firestore/repositories/shop-settings/index.js +3 -3
  399. package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +12 -12
  400. package/esm2015/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +12 -12
  401. package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +12 -12
  402. package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +12 -12
  403. package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +29 -29
  404. package/esm2015/infra/firebase/firestore/repositories/shopping/index.js +9 -9
  405. package/esm2015/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +9 -9
  406. package/esm2015/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +12 -12
  407. package/esm2015/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +12 -12
  408. package/esm2015/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +12 -12
  409. package/esm2015/infra/firebase/firestore/repositories/users/index.js +10 -10
  410. package/esm2015/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +12 -12
  411. package/esm2015/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +14 -14
  412. package/esm2015/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +12 -12
  413. package/esm2015/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +14 -14
  414. package/esm2015/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +14 -14
  415. package/esm2015/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +14 -14
  416. package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +70 -70
  417. package/esm2015/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +14 -14
  418. package/esm2015/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +12 -12
  419. package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +2 -2
  420. package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +2 -2
  421. package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +2 -2
  422. package/esm2015/infra/firebase/firestore/types/index.js +4 -4
  423. package/esm2015/infra/firebase/index.js +3 -3
  424. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.js +13 -13
  425. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-where.enum.js +15 -15
  426. package/esm2015/infra/hasura-graphql/enums/index.js +3 -3
  427. package/esm2015/infra/hasura-graphql/index.js +5 -5
  428. package/esm2015/infra/hasura-graphql/mixins/helpers/attribute-option.helper.js +31 -31
  429. package/esm2015/infra/hasura-graphql/mixins/helpers/filter-option.helper.js +22 -22
  430. package/esm2015/infra/hasura-graphql/mixins/helpers/graphql-field.helper.js +72 -72
  431. package/esm2015/infra/hasura-graphql/mixins/helpers/index.js +4 -4
  432. package/esm2015/infra/hasura-graphql/mixins/index.js +8 -8
  433. package/esm2015/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.js +45 -45
  434. package/esm2015/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.js +10 -10
  435. package/esm2015/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.js +29 -29
  436. package/esm2015/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.js +93 -93
  437. package/esm2015/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.js +35 -35
  438. package/esm2015/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.js +94 -94
  439. package/esm2015/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.js +56 -56
  440. package/esm2015/infra/hasura-graphql/models/category-hasura-graphql.js +4 -4
  441. package/esm2015/infra/hasura-graphql/models/index.js +5 -5
  442. package/esm2015/infra/hasura-graphql/models/kit-product-hasura-graphql.js +15 -15
  443. package/esm2015/infra/hasura-graphql/models/product-hasura-graphql.js +11 -11
  444. package/esm2015/infra/hasura-graphql/models/variant-hasura-graphql.js +9 -9
  445. package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +135 -135
  446. package/esm2015/infra/hasura-graphql/repositories/catalog/index.js +4 -4
  447. package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +388 -387
  448. package/esm2015/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.js +119 -119
  449. package/esm2015/infra/hasura-graphql/repositories/index.js +2 -2
  450. package/esm2015/infra/hasura-graphql/types/fields.type.js +2 -2
  451. package/esm2015/infra/hasura-graphql/types/graphql.repository.type.js +2 -2
  452. package/esm2015/infra/hasura-graphql/types/hasura-graphql-auth-options.type.js +2 -2
  453. package/esm2015/infra/hasura-graphql/types/hasura-graphql-fields.type.js +2 -2
  454. package/esm2015/infra/hasura-graphql/types/hasura-graphql-headers.type.js +2 -2
  455. package/esm2015/infra/hasura-graphql/types/index.js +9 -9
  456. package/esm2015/infra/hasura-graphql/types/nested-field.type.js +2 -2
  457. package/esm2015/infra/hasura-graphql/types/query-builder-options.type.js +2 -2
  458. package/esm2015/infra/hasura-graphql/types/variable-options.type.js +2 -2
  459. package/esm2015/infra/index.js +4 -4
  460. package/esm2015/infrab4a-connect.js +4 -4
  461. package/esm2015/utils/index.js +8 -8
  462. package/esm2015/utils/is-uuid.js +3 -3
  463. package/esm2015/utils/mixins/base.mixin.js +6 -6
  464. package/esm2015/utils/mixins/index.js +4 -4
  465. package/esm2015/utils/mixins/merge-constructor-params.type.js +2 -2
  466. package/esm2015/utils/mixins/mixin-ctor.type.js +2 -2
  467. package/esm2015/utils/parse-datetime.js +14 -14
  468. package/esm2015/utils/types/array-element.type.js +2 -2
  469. package/esm2015/utils/types/index.js +3 -3
  470. package/esm2015/utils/types/prop.type.js +2 -2
  471. package/fesm2015/infrab4a-connect.js +2918 -2910
  472. package/fesm2015/infrab4a-connect.js.map +1 -1
  473. package/index.d.ts +5 -5
  474. package/infra/elasticsearch/adapters/axios.adapter.d.ts +14 -14
  475. package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +7 -7
  476. package/infra/elasticsearch/adapters/index.d.ts +2 -2
  477. package/infra/elasticsearch/index.d.ts +3 -3
  478. package/infra/elasticsearch/indexes/index.d.ts +1 -1
  479. package/infra/elasticsearch/indexes/products-index.d.ts +15 -15
  480. package/infra/elasticsearch/types/elastic-search-result.d.ts +7 -7
  481. package/infra/elasticsearch/types/index.d.ts +1 -1
  482. package/infra/firebase/auth/authentication-firebase-auth.service.d.ts +12 -12
  483. package/infra/firebase/auth/index.d.ts +2 -2
  484. package/infra/firebase/auth/register-firebase-auth.service.d.ts +8 -8
  485. package/infra/firebase/auth/types/firebase-user-with-id.type.d.ts +3 -3
  486. package/infra/firebase/firestore/index.d.ts +3 -3
  487. package/infra/firebase/firestore/mixins/index.d.ts +9 -9
  488. package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +4 -4
  489. package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +4 -4
  490. package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +4 -4
  491. package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +4 -4
  492. package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +4 -4
  493. package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +4 -4
  494. package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +11 -11
  495. package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +7 -7
  496. package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +7 -7
  497. package/infra/firebase/firestore/models/user-search.d.ts +9 -9
  498. package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +17 -17
  499. package/infra/firebase/firestore/repositories/catalog/index.d.ts +4 -4
  500. package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +11 -11
  501. package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +13 -13
  502. package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +8 -8
  503. package/infra/firebase/firestore/repositories/index.d.ts +4 -4
  504. package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +16 -16
  505. package/infra/firebase/firestore/repositories/shop-settings/index.d.ts +2 -2
  506. package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +8 -8
  507. package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +8 -8
  508. package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +8 -8
  509. package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +8 -8
  510. package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +12 -12
  511. package/infra/firebase/firestore/repositories/shopping/index.d.ts +8 -8
  512. package/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +7 -7
  513. package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +8 -8
  514. package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +8 -8
  515. package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +8 -8
  516. package/infra/firebase/firestore/repositories/users/index.d.ts +9 -9
  517. package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +8 -8
  518. package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +13 -13
  519. package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +8 -8
  520. package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +13 -13
  521. package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +13 -13
  522. package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +13 -13
  523. package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +19 -19
  524. package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +13 -13
  525. package/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +9 -9
  526. package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +6 -6
  527. package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +8 -8
  528. package/infra/firebase/firestore/types/firestore.repository.type.d.ts +12 -12
  529. package/infra/firebase/firestore/types/index.d.ts +3 -3
  530. package/infra/firebase/index.d.ts +2 -2
  531. package/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.d.ts +11 -11
  532. package/infra/hasura-graphql/enums/hasura-graphql-where.enum.d.ts +13 -13
  533. package/infra/hasura-graphql/enums/index.d.ts +2 -2
  534. package/infra/hasura-graphql/index.d.ts +4 -4
  535. package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +13 -13
  536. package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +6 -6
  537. package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +8 -8
  538. package/infra/hasura-graphql/mixins/helpers/index.d.ts +3 -3
  539. package/infra/hasura-graphql/mixins/index.d.ts +7 -7
  540. package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +8 -8
  541. package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +11 -11
  542. package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +7 -7
  543. package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +31 -31
  544. package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +24 -24
  545. package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +11 -11
  546. package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +14 -14
  547. package/infra/hasura-graphql/models/category-hasura-graphql.d.ts +6 -6
  548. package/infra/hasura-graphql/models/index.d.ts +4 -4
  549. package/infra/hasura-graphql/models/kit-product-hasura-graphql.d.ts +6 -6
  550. package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +10 -10
  551. package/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +9 -9
  552. package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +22 -22
  553. package/infra/hasura-graphql/repositories/catalog/index.d.ts +3 -3
  554. package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +27 -27
  555. package/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +14 -14
  556. package/infra/hasura-graphql/repositories/index.d.ts +1 -1
  557. package/infra/hasura-graphql/types/fields.type.d.ts +2 -2
  558. package/infra/hasura-graphql/types/graphql.repository.type.d.ts +21 -21
  559. package/infra/hasura-graphql/types/hasura-graphql-auth-options.type.d.ts +8 -8
  560. package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +36 -36
  561. package/infra/hasura-graphql/types/hasura-graphql-headers.type.d.ts +7 -7
  562. package/infra/hasura-graphql/types/index.d.ts +8 -8
  563. package/infra/hasura-graphql/types/nested-field.type.d.ts +7 -7
  564. package/infra/hasura-graphql/types/query-builder-options.type.d.ts +7 -7
  565. package/infra/hasura-graphql/types/variable-options.type.d.ts +9 -9
  566. package/infra/index.d.ts +3 -3
  567. package/infrab4a-connect.d.ts +5 -5
  568. package/package.json +1 -1
  569. package/utils/index.d.ts +7 -7
  570. package/utils/is-uuid.d.ts +1 -1
  571. package/utils/mixins/base.mixin.d.ts +3 -3
  572. package/utils/mixins/index.d.ts +3 -3
  573. package/utils/mixins/merge-constructor-params.type.d.ts +3 -3
  574. package/utils/mixins/mixin-ctor.type.d.ts +1 -1
  575. package/utils/parse-datetime.d.ts +1 -1
  576. package/utils/types/array-element.type.d.ts +1 -1
  577. package/utils/types/index.d.ts +2 -2
  578. package/utils/types/prop.type.d.ts +1 -1
@@ -1,21 +1,21 @@
1
- import { Address } from '../../../location/models/address';
2
- import { BaseModel, GenericIdentifier } from '../../../generic/model/base.model';
3
- import { Coupon } from '../coupons/coupon';
4
- import { User } from '../../../users/models/user';
5
- import { SubscriptionPlan } from './plan';
6
- export declare class CheckoutSubscription extends BaseModel<CheckoutSubscription> {
7
- id?: string;
8
- user: User;
9
- createdAt: Date;
10
- updatedAt: Date;
11
- completedAt?: Date;
12
- userId?: string;
13
- discount?: number;
14
- subTotalPrice?: number;
15
- totalPrice?: number;
16
- shippingAddress: Address;
17
- billingAddress?: Address;
18
- subscriptionPlan: SubscriptionPlan;
19
- coupon?: Coupon;
20
- static get identifiersFields(): GenericIdentifier[];
21
- }
1
+ import { Address } from '../../../location/models/address';
2
+ import { BaseModel, GenericIdentifier } from '../../../generic/model/base.model';
3
+ import { Coupon } from '../coupons/coupon';
4
+ import { User } from '../../../users/models/user';
5
+ import { SubscriptionPlan } from './plan';
6
+ export declare class CheckoutSubscription extends BaseModel<CheckoutSubscription> {
7
+ id?: string;
8
+ user: User;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ completedAt?: Date;
12
+ userId?: string;
13
+ discount?: number;
14
+ subTotalPrice?: number;
15
+ totalPrice?: number;
16
+ shippingAddress: Address;
17
+ billingAddress?: Address;
18
+ subscriptionPlan: SubscriptionPlan;
19
+ coupon?: Coupon;
20
+ static get identifiersFields(): GenericIdentifier[];
21
+ }
@@ -1,2 +1,2 @@
1
- export * from './checkout';
2
- export * from './plan';
1
+ export * from './checkout';
2
+ export * from './plan';
@@ -1,10 +1,10 @@
1
- import { BaseModel, GenericIdentifier } from '../../../generic/model/base.model';
2
- export declare class SubscriptionPlan extends BaseModel<SubscriptionPlan> {
3
- id: string;
4
- name: string;
5
- billingPrice: number;
6
- recurrencePrice: number;
7
- recurrenceCycle: number;
8
- maxAttempts: number;
9
- static get identifiersFields(): GenericIdentifier[];
10
- }
1
+ import { BaseModel, GenericIdentifier } from '../../../generic/model/base.model';
2
+ export declare class SubscriptionPlan extends BaseModel<SubscriptionPlan> {
3
+ id: string;
4
+ name: string;
5
+ billingPrice: number;
6
+ recurrencePrice: number;
7
+ recurrenceCycle: number;
8
+ maxAttempts: number;
9
+ static get identifiersFields(): GenericIdentifier[];
10
+ }
@@ -1,7 +1,7 @@
1
- export * from './payment-customer.type';
2
- export * from './payment-document.type';
3
- export * from './payment-address.type';
4
- export * from './payment-billing.type';
5
- export * from './payment-shipping.type';
6
- export * from './payment-item.type';
7
- export * from './payment-card.type';
1
+ export * from './payment-customer.type';
2
+ export * from './payment-document.type';
3
+ export * from './payment-address.type';
4
+ export * from './payment-billing.type';
5
+ export * from './payment-shipping.type';
6
+ export * from './payment-item.type';
7
+ export * from './payment-card.type';
@@ -1,12 +1,12 @@
1
- export declare type PaymentAddress = {
2
- id: number;
3
- object: string;
4
- street: string;
5
- complementary: string;
6
- street_number: string;
7
- neighborhood: string;
8
- city: string;
9
- state: string;
10
- zipcode: string;
11
- country: string;
12
- };
1
+ export declare type PaymentAddress = {
2
+ id: number;
3
+ object: string;
4
+ street: string;
5
+ complementary: string;
6
+ street_number: string;
7
+ neighborhood: string;
8
+ city: string;
9
+ state: string;
10
+ zipcode: string;
11
+ country: string;
12
+ };
@@ -1,7 +1,7 @@
1
- import { PaymentAddress } from './payment-address.type';
2
- export declare type PaymentBilling = {
3
- object: string;
4
- id: number;
5
- name: string;
6
- address: PaymentAddress;
7
- };
1
+ import { PaymentAddress } from './payment-address.type';
2
+ export declare type PaymentBilling = {
3
+ object: string;
4
+ id: number;
5
+ name: string;
6
+ address: PaymentAddress;
7
+ };
@@ -1,14 +1,14 @@
1
- export declare type PaymentCard = {
2
- id: string;
3
- object: string;
4
- date_created: string;
5
- date_updated: string;
6
- brand: string;
7
- holder_name: string;
8
- first_digits: string;
9
- last_digits: string;
10
- country: string;
11
- fingerprint: string;
12
- valid: boolean;
13
- expiration_date: string;
14
- };
1
+ export declare type PaymentCard = {
2
+ id: string;
3
+ object: string;
4
+ date_created: string;
5
+ date_updated: string;
6
+ brand: string;
7
+ holder_name: string;
8
+ first_digits: string;
9
+ last_digits: string;
10
+ country: string;
11
+ fingerprint: string;
12
+ valid: boolean;
13
+ expiration_date: string;
14
+ };
@@ -1,18 +1,18 @@
1
- import { PaymentDocument } from './payment-document.type';
2
- export declare type PaymentCustomer = {
3
- id: number;
4
- object: string;
5
- external_id: string;
6
- type: string;
7
- country: string;
8
- document_number: string;
9
- document_type: string;
10
- name: string;
11
- email: string;
12
- phone_numbers: string[];
13
- born_at: string;
14
- birthday: string;
15
- gender: string;
16
- date_created: string;
17
- documents: PaymentDocument[];
18
- };
1
+ import { PaymentDocument } from './payment-document.type';
2
+ export declare type PaymentCustomer = {
3
+ id: number;
4
+ object: string;
5
+ external_id: string;
6
+ type: string;
7
+ country: string;
8
+ document_number: string;
9
+ document_type: string;
10
+ name: string;
11
+ email: string;
12
+ phone_numbers: string[];
13
+ born_at: string;
14
+ birthday: string;
15
+ gender: string;
16
+ date_created: string;
17
+ documents: PaymentDocument[];
18
+ };
@@ -1,6 +1,6 @@
1
- export declare type PaymentDocument = {
2
- object: string;
3
- id: string;
4
- type: string;
5
- number: string;
6
- };
1
+ export declare type PaymentDocument = {
2
+ object: string;
3
+ id: string;
4
+ type: string;
5
+ number: string;
6
+ };
@@ -1,11 +1,11 @@
1
- export declare type PaymentItem = {
2
- id: string;
3
- object: string;
4
- title: string;
5
- unit_price: number;
6
- quantity: number;
7
- category: string;
8
- tangible: boolean;
9
- venue: string;
10
- date: string;
11
- };
1
+ export declare type PaymentItem = {
2
+ id: string;
3
+ object: string;
4
+ title: string;
5
+ unit_price: number;
6
+ quantity: number;
7
+ category: string;
8
+ tangible: boolean;
9
+ venue: string;
10
+ date: string;
11
+ };
@@ -1,10 +1,10 @@
1
- import { PaymentAddress } from './payment-address.type';
2
- export declare type PaymentShipping = {
3
- id: number;
4
- object: string;
5
- name: string;
6
- fee: number;
7
- delivery_date: string;
8
- expedited: boolean;
9
- address: PaymentAddress;
10
- };
1
+ import { PaymentAddress } from './payment-address.type';
2
+ export declare type PaymentShipping = {
3
+ id: number;
4
+ object: string;
5
+ name: string;
6
+ fee: number;
7
+ delivery_date: string;
8
+ expedited: boolean;
9
+ address: PaymentAddress;
10
+ };
@@ -1,4 +1,4 @@
1
- import { Buy2Win } from '../models/buy-2-win';
2
- import { CrudRepository } from '../../generic/repository/crud.repository';
3
- export interface Buy2WinRepository extends CrudRepository<Buy2Win> {
4
- }
1
+ import { Buy2Win } from '../models/buy-2-win';
2
+ import { CrudRepository } from '../../generic/repository/crud.repository';
3
+ export interface Buy2WinRepository extends CrudRepository<Buy2Win> {
4
+ }
@@ -1,4 +1,4 @@
1
- import { Checkout } from '../models/checkout';
2
- import { CrudRepository } from '../../generic/repository/crud.repository';
3
- export interface CheckoutRepository extends CrudRepository<Checkout> {
4
- }
1
+ import { Checkout } from '../models/checkout';
2
+ import { CrudRepository } from '../../generic/repository/crud.repository';
3
+ export interface CheckoutRepository extends CrudRepository<Checkout> {
4
+ }
@@ -1,4 +1,4 @@
1
- import { Coupon } from '../models/coupons/coupon';
2
- import { CrudRepository } from '../../generic/repository/crud.repository';
3
- export interface CouponRepository extends CrudRepository<Coupon> {
4
- }
1
+ import { Coupon } from '../models/coupons/coupon';
2
+ import { CrudRepository } from '../../generic/repository/crud.repository';
3
+ export interface CouponRepository extends CrudRepository<Coupon> {
4
+ }
@@ -1,7 +1,7 @@
1
- export * from './checkout.repository';
2
- export * from './coupon.repository';
3
- export * from './order.repository';
4
- export * from './payment.repository';
5
- export * from './subscription';
6
- export * from './buy-2-win.repository';
7
- export * from './legacy-order.repository';
1
+ export * from './checkout.repository';
2
+ export * from './coupon.repository';
3
+ export * from './order.repository';
4
+ export * from './payment.repository';
5
+ export * from './subscription';
6
+ export * from './buy-2-win.repository';
7
+ export * from './legacy-order.repository';
@@ -1,3 +1,3 @@
1
- import { OrderRepository } from './order.repository';
2
- export interface LegacyOrderRepository extends OrderRepository {
3
- }
1
+ import { OrderRepository } from './order.repository';
2
+ export interface LegacyOrderRepository extends OrderRepository {
3
+ }
@@ -1,4 +1,4 @@
1
- import { CrudRepository } from '../../generic/repository/crud.repository';
2
- import { Order } from '../models/order';
3
- export interface OrderRepository extends CrudRepository<Order> {
4
- }
1
+ import { CrudRepository } from '../../generic/repository/crud.repository';
2
+ import { Order } from '../models/order';
3
+ export interface OrderRepository extends CrudRepository<Order> {
4
+ }
@@ -1,4 +1,4 @@
1
- import { CrudRepository } from '../../generic/repository/crud.repository';
2
- import { Payment } from '../models/payment';
3
- export interface PaymentRepository extends CrudRepository<Payment> {
4
- }
1
+ import { CrudRepository } from '../../generic/repository/crud.repository';
2
+ import { Payment } from '../models/payment';
3
+ export interface PaymentRepository extends CrudRepository<Payment> {
4
+ }
@@ -1,4 +1,4 @@
1
- import { CheckoutSubscription } from '../../models/subscription/checkout';
2
- import { CrudRepository } from '../../../generic/repository/crud.repository';
3
- export interface CheckoutSubscriptionRepository extends CrudRepository<CheckoutSubscription> {
4
- }
1
+ import { CheckoutSubscription } from '../../models/subscription/checkout';
2
+ import { CrudRepository } from '../../../generic/repository/crud.repository';
3
+ export interface CheckoutSubscriptionRepository extends CrudRepository<CheckoutSubscription> {
4
+ }
@@ -1,2 +1,2 @@
1
- export * from './checkout.repository';
2
- export * from './plan.repository';
1
+ export * from './checkout.repository';
2
+ export * from './plan.repository';
@@ -1,4 +1,4 @@
1
- import { SubscriptionPlan } from '../../models/subscription/plan';
2
- import { CrudRepository } from '../../../generic/repository/crud.repository';
3
- export interface SubscriptionPlanRepository extends CrudRepository<SubscriptionPlan> {
4
- }
1
+ import { SubscriptionPlan } from '../../models/subscription/plan';
2
+ import { CrudRepository } from '../../../generic/repository/crud.repository';
3
+ export interface SubscriptionPlanRepository extends CrudRepository<SubscriptionPlan> {
4
+ }
@@ -1,3 +1,3 @@
1
- export * from './unauthorized.error';
2
- export * from './user-already-registered.error';
3
- export * from './weak-password.error';
1
+ export * from './unauthorized.error';
2
+ export * from './user-already-registered.error';
3
+ export * from './weak-password.error';
@@ -1,5 +1,5 @@
1
- import { CustomError } from 'ts-custom-error';
2
- export declare class UnauthorizedError extends CustomError {
3
- readonly message: any;
4
- constructor(message: any);
5
- }
1
+ import { CustomError } from 'ts-custom-error';
2
+ export declare class UnauthorizedError extends CustomError {
3
+ readonly message: any;
4
+ constructor(message: any);
5
+ }
@@ -1,5 +1,5 @@
1
- import { CustomError } from 'ts-custom-error';
2
- export declare class UserAlreadyRegisteredError extends CustomError {
3
- readonly message: any;
4
- constructor(message: any);
5
- }
1
+ import { CustomError } from 'ts-custom-error';
2
+ export declare class UserAlreadyRegisteredError extends CustomError {
3
+ readonly message: any;
4
+ constructor(message: any);
5
+ }
@@ -1,5 +1,5 @@
1
- import { CustomError } from 'ts-custom-error';
2
- export declare class WeakPasswordError extends CustomError {
3
- readonly message: string;
4
- constructor(message?: string);
5
- }
1
+ import { CustomError } from 'ts-custom-error';
2
+ export declare class WeakPasswordError extends CustomError {
3
+ readonly message: string;
4
+ constructor(message?: string);
5
+ }
@@ -1,5 +1,5 @@
1
- export * from './models';
2
- export * from './repositories';
3
- export * from './services';
4
- export * from './use-cases';
5
- export * from './errors';
1
+ export * from './models';
2
+ export * from './repositories';
3
+ export * from './services';
4
+ export * from './use-cases';
5
+ export * from './errors';
@@ -1,11 +1,11 @@
1
- import { BaseModel } from '../../generic/model/base.model';
2
- import { BeardSizes, HairTypes } from './enums';
3
- export declare type BeautyProfileIdentifiers = 'id' | 'userId';
4
- export declare class BeautyProfile extends BaseModel<BeautyProfile, BeautyProfileIdentifiers> {
5
- id: string;
6
- userId: string;
7
- beardSize?: BeardSizes;
8
- hairType?: HairTypes;
9
- toPlain(): any;
10
- static get identifiersFields(): BeautyProfileIdentifiers[];
11
- }
1
+ import { BaseModel } from '../../generic/model/base.model';
2
+ import { BeardSizes, HairTypes } from './enums';
3
+ export declare type BeautyProfileIdentifiers = 'id' | 'userId';
4
+ export declare class BeautyProfile extends BaseModel<BeautyProfile, BeautyProfileIdentifiers> {
5
+ id: string;
6
+ userId: string;
7
+ beardSize?: BeardSizes;
8
+ hairType?: HairTypes;
9
+ toPlain(): any;
10
+ static get identifiersFields(): BeautyProfileIdentifiers[];
11
+ }
@@ -1,5 +1,5 @@
1
- export declare enum AccessoryImportances {
2
- NOT_INTERESTED = "N\u00E3o tenho interesse",
3
- LIKE_RARELY_USE = "Gosto, mas uso poucos",
4
- LIKE_ALWAYS_FOLLOW_FASHION = "Gosto muito de acess\u00F3rios e sempre procuro acompanhar a moda"
5
- }
1
+ export declare enum AccessoryImportances {
2
+ NOT_INTERESTED = "N\u00E3o tenho interesse",
3
+ LIKE_RARELY_USE = "Gosto, mas uso poucos",
4
+ LIKE_ALWAYS_FOLLOW_FASHION = "Gosto muito de acess\u00F3rios e sempre procuro acompanhar a moda"
5
+ }
@@ -1,11 +1,11 @@
1
- export declare enum Area {
2
- GP = "Geral",
3
- CRM = "CRM",
4
- MediaProd = "Media Production",
5
- Tech = "Tecnologia",
6
- Transactional = "Transacional",
7
- Operations = "Opera\u00E7\u00F5es",
8
- Sales = "Comercial",
9
- Finantial = "Financeiro",
10
- HR = "RH"
11
- }
1
+ export declare enum Area {
2
+ GP = "Geral",
3
+ CRM = "CRM",
4
+ MediaProd = "Media Production",
5
+ Tech = "Tecnologia",
6
+ Transactional = "Transacional",
7
+ Operations = "Opera\u00E7\u00F5es",
8
+ Sales = "Comercial",
9
+ Finantial = "Financeiro",
10
+ HR = "RH"
11
+ }
@@ -1,9 +1,9 @@
1
- export declare enum BeardProblems {
2
- NO_PROBLEMS = "Sem problemas",
3
- DRY = "Barba Seca",
4
- OILY = "Barba Oleaosa",
5
- DANCRUFF = "Barba com Caspa",
6
- INGROWN_HAIRS = "P\u00EAlos Encravados",
7
- DOESNT_GROW = "N\u00E3o Cresce",
8
- SPARSE_BEARD = "Barba Rala"
9
- }
1
+ export declare enum BeardProblems {
2
+ NO_PROBLEMS = "Sem problemas",
3
+ DRY = "Barba Seca",
4
+ OILY = "Barba Oleaosa",
5
+ DANCRUFF = "Barba com Caspa",
6
+ INGROWN_HAIRS = "P\u00EAlos Encravados",
7
+ DOESNT_GROW = "N\u00E3o Cresce",
8
+ SPARSE_BEARD = "Barba Rala"
9
+ }
@@ -1,7 +1,7 @@
1
- export declare enum BeardSizes {
2
- BIG = "Grande",
3
- MEDIUM = "M\u00E9dia",
4
- SHORT = "Curta",
5
- MUSTACHE = "Bigode",
6
- NOTHING = "Sem Barba"
7
- }
1
+ export declare enum BeardSizes {
2
+ BIG = "Grande",
3
+ MEDIUM = "M\u00E9dia",
4
+ SHORT = "Curta",
5
+ MUSTACHE = "Bigode",
6
+ NOTHING = "Sem Barba"
7
+ }
@@ -1,6 +1,6 @@
1
- export declare enum BeautyProductImportances {
2
- KNOW_LITTLE_ABOUT = "Conhe\u00E7o bem pouco de produtos de beleza e rotinas de cuidados",
3
- ALREADY_BOUGHT_NOTHING_SPECIALIZED = "J\u00E1 comprei alguns produtos b\u00E1sicos para cuidar de mim, mas nada muito especializado",
4
- GOOD_CARE_MYSELF = "Me considero um homem que se cuida bem. Conhe\u00E7o sobre produtos especializados e me preocupo em ter uma rotina de cuidados",
5
- PERSONAL_CARE_EXPERT = "Sou um expert em cuidados pessoais"
6
- }
1
+ export declare enum BeautyProductImportances {
2
+ KNOW_LITTLE_ABOUT = "Conhe\u00E7o bem pouco de produtos de beleza e rotinas de cuidados",
3
+ ALREADY_BOUGHT_NOTHING_SPECIALIZED = "J\u00E1 comprei alguns produtos b\u00E1sicos para cuidar de mim, mas nada muito especializado",
4
+ GOOD_CARE_MYSELF = "Me considero um homem que se cuida bem. Conhe\u00E7o sobre produtos especializados e me preocupo em ter uma rotina de cuidados",
5
+ PERSONAL_CARE_EXPERT = "Sou um expert em cuidados pessoais"
6
+ }
@@ -1,11 +1,11 @@
1
- export declare enum BodyProblems {
2
- NO_WORRIES = "Sem preocupa\u00E7\u00F5es",
3
- FLACCIDITY = "Flacidez",
4
- LOCALIZED_FAT = "Gordura Localizada",
5
- STRETCH_MARKS = "Estrias",
6
- SENSITIVE_SKIN = "Pele Sens\u00EDvel",
7
- DRY_SKIN = "Pele Seca",
8
- OILY_ACNE = "Oleosa/Acne",
9
- SKIN_FRECKLES = "Pele com Sardas",
10
- PHOTOSENSITIVE_SKIN = "Pele Fotossens\u00EDvel"
11
- }
1
+ export declare enum BodyProblems {
2
+ NO_WORRIES = "Sem preocupa\u00E7\u00F5es",
3
+ FLACCIDITY = "Flacidez",
4
+ LOCALIZED_FAT = "Gordura Localizada",
5
+ STRETCH_MARKS = "Estrias",
6
+ SENSITIVE_SKIN = "Pele Sens\u00EDvel",
7
+ DRY_SKIN = "Pele Seca",
8
+ OILY_ACNE = "Oleosa/Acne",
9
+ SKIN_FRECKLES = "Pele com Sardas",
10
+ PHOTOSENSITIVE_SKIN = "Pele Fotossens\u00EDvel"
11
+ }
@@ -1,7 +1,7 @@
1
- export declare enum BodyShapes {
2
- LEAN = "Magro",
3
- REGULAR = "Regular",
4
- OVERWEIGHT = "Acima do Peso",
5
- ATHLETIC = "Atl\u00E9tico",
6
- MUSCULAR = "Musculoso"
7
- }
1
+ export declare enum BodyShapes {
2
+ LEAN = "Magro",
3
+ REGULAR = "Regular",
4
+ OVERWEIGHT = "Acima do Peso",
5
+ ATHLETIC = "Atl\u00E9tico",
6
+ MUSCULAR = "Musculoso"
7
+ }
@@ -1,5 +1,5 @@
1
- export declare enum BodyTattoos {
2
- NONE = "Nenhuma",
3
- HAS_DOESNT_CARE = "Tenho mas n\u00E3o cuido",
4
- HAS_CARE_LOT = "Tenho e cuido bastante"
5
- }
1
+ export declare enum BodyTattoos {
2
+ NONE = "Nenhuma",
3
+ HAS_DOESNT_CARE = "Tenho mas n\u00E3o cuido",
4
+ HAS_CARE_LOT = "Tenho e cuido bastante"
5
+ }
@@ -1,7 +1,7 @@
1
- export declare enum FaceSkinOilinesses {
2
- DRY = "Seca",
3
- OILY = "Oleaosa",
4
- MIXED = "Mista",
5
- NORMAL = "Normal",
6
- DONT_KNOW = "Eu n\u00E3o sei como dizer"
7
- }
1
+ export declare enum FaceSkinOilinesses {
2
+ DRY = "Seca",
3
+ OILY = "Oleaosa",
4
+ MIXED = "Mista",
5
+ NORMAL = "Normal",
6
+ DONT_KNOW = "Eu n\u00E3o sei como dizer"
7
+ }
@@ -1,10 +1,10 @@
1
- export declare enum FaceSkinProblems {
2
- NO_PROBLEMS = "Sem problemas",
3
- DARK_CIRCLES = "Olheiras",
4
- WRINKLES = "Rugas",
5
- BLACKHEADS_PIMPLES = "Cravos e Espinhas",
6
- STAINS = "Manchas",
7
- FRECKLES = "Sardas",
8
- SENSITIVE = "Sens\u00EDvel",
9
- PHOTOSENSITIVE = "Fotossens\u00EDvel"
10
- }
1
+ export declare enum FaceSkinProblems {
2
+ NO_PROBLEMS = "Sem problemas",
3
+ DARK_CIRCLES = "Olheiras",
4
+ WRINKLES = "Rugas",
5
+ BLACKHEADS_PIMPLES = "Cravos e Espinhas",
6
+ STAINS = "Manchas",
7
+ FRECKLES = "Sardas",
8
+ SENSITIVE = "Sens\u00EDvel",
9
+ PHOTOSENSITIVE = "Fotossens\u00EDvel"
10
+ }
@@ -1,8 +1,8 @@
1
- export declare enum FaceSkinTones {
2
- VERY_CLEAR = "Muito Clara",
3
- CLEAR = "Clara",
4
- MEDIUM_LIGHT = "Clara M\u00E9dia",
5
- MEDIUM_DARK = "Escura M\u00E9dia",
6
- DARK = "Escura",
7
- VERY_DARK = "Muito Escura"
8
- }
1
+ export declare enum FaceSkinTones {
2
+ VERY_CLEAR = "Muito Clara",
3
+ CLEAR = "Clara",
4
+ MEDIUM_LIGHT = "Clara M\u00E9dia",
5
+ MEDIUM_DARK = "Escura M\u00E9dia",
6
+ DARK = "Escura",
7
+ VERY_DARK = "Muito Escura"
8
+ }