@infrab4a/connect 4.0.0-beta.49 → 4.0.0-beta.5

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 (303) hide show
  1. package/domain/catalog/index.d.ts +0 -1
  2. package/domain/catalog/models/category.d.ts +22 -5
  3. package/domain/catalog/models/index.d.ts +0 -5
  4. package/domain/catalog/models/kit-product.d.ts +4 -4
  5. package/domain/catalog/models/product.d.ts +35 -5
  6. package/domain/catalog/models/types/category-filter.type.d.ts +4 -0
  7. package/domain/catalog/models/types/index.d.ts +1 -2
  8. package/domain/catalog/models/types/shop-description.type.d.ts +0 -1
  9. package/domain/catalog/models/variant.d.ts +2 -1
  10. package/domain/catalog/repositories/category.repository.d.ts +3 -6
  11. package/domain/catalog/repositories/index.d.ts +0 -5
  12. package/domain/catalog/repositories/product.repository.d.ts +1 -4
  13. package/domain/generic/model/base.model.d.ts +5 -9
  14. package/domain/generic/model/types/base-model-builder.type.d.ts +2 -4
  15. package/domain/generic/model/types/identifier-model.type.d.ts +5 -6
  16. package/domain/generic/model/types/model-base-structure.type.d.ts +3 -9
  17. package/domain/generic/model/types/non-function-property-name.type.d.ts +3 -12
  18. package/domain/generic/repository/find.repository.d.ts +1 -6
  19. package/domain/generic/repository/get.repository.d.ts +2 -2
  20. package/domain/generic/repository/types/repository-find-filters.type.d.ts +3 -3
  21. package/domain/generic/repository/types/repository-find-result.type.d.ts +1 -8
  22. package/domain/generic/repository/types/repository-order-by-list.type.d.ts +2 -2
  23. package/domain/generic/repository/types/repository-update-params.type.d.ts +2 -2
  24. package/domain/location/models/address.d.ts +3 -5
  25. package/domain/shop-settings/models/index.d.ts +0 -1
  26. package/domain/shop-settings/models/types/index.d.ts +1 -6
  27. package/domain/shop-settings/repositories/index.d.ts +0 -1
  28. package/domain/shopping/models/buy-2-win.d.ts +1 -3
  29. package/domain/shopping/models/checkout.d.ts +6 -5
  30. package/domain/shopping/models/coupons/coupon.d.ts +6 -34
  31. package/domain/shopping/models/index.d.ts +4 -5
  32. package/domain/shopping/models/order.d.ts +0 -1
  33. package/domain/shopping/models/shipping-method.d.ts +0 -1
  34. package/domain/shopping/models/subscription/checkout.d.ts +4 -3
  35. package/domain/shopping/repositories/index.d.ts +2 -4
  36. package/domain/users/models/lead.d.ts +0 -1
  37. package/domain/users/models/subscription/subscription.d.ts +3 -3
  38. package/domain/users/models/user-address.d.ts +2 -1
  39. package/domain/users/models/user.d.ts +3 -2
  40. package/esm2020/domain/catalog/index.mjs +1 -2
  41. package/esm2020/domain/catalog/models/category.mjs +6 -10
  42. package/esm2020/domain/catalog/models/index.mjs +1 -6
  43. package/esm2020/domain/catalog/models/kit-product.mjs +7 -7
  44. package/esm2020/domain/catalog/models/product.mjs +6 -8
  45. package/esm2020/domain/catalog/models/types/category-filter.type.mjs +2 -0
  46. package/esm2020/domain/catalog/models/types/index.mjs +2 -3
  47. package/esm2020/domain/catalog/models/types/shop-description.type.mjs +1 -1
  48. package/esm2020/domain/catalog/models/variant.mjs +4 -1
  49. package/esm2020/domain/catalog/repositories/category.repository.mjs +1 -1
  50. package/esm2020/domain/catalog/repositories/index.mjs +1 -6
  51. package/esm2020/domain/catalog/repositories/product.repository.mjs +1 -1
  52. package/esm2020/domain/generic/model/base.model.mjs +2 -3
  53. package/esm2020/domain/generic/model/types/base-model-builder.type.mjs +1 -1
  54. package/esm2020/domain/generic/model/types/identifier-model.type.mjs +1 -1
  55. package/esm2020/domain/generic/model/types/model-base-structure.type.mjs +1 -1
  56. package/esm2020/domain/generic/model/types/non-function-property-name.type.mjs +1 -1
  57. package/esm2020/domain/generic/repository/find.repository.mjs +1 -1
  58. package/esm2020/domain/generic/repository/get.repository.mjs +1 -1
  59. package/esm2020/domain/generic/repository/types/repository-find-filters.type.mjs +1 -1
  60. package/esm2020/domain/generic/repository/types/repository-find-result.type.mjs +1 -1
  61. package/esm2020/domain/generic/repository/types/repository-order-by-list.type.mjs +1 -1
  62. package/esm2020/domain/generic/repository/types/repository-update-params.type.mjs +1 -1
  63. package/esm2020/domain/location/models/address.mjs +2 -2
  64. package/esm2020/domain/shop-settings/models/index.mjs +1 -2
  65. package/esm2020/domain/shop-settings/models/types/index.mjs +2 -7
  66. package/esm2020/domain/shop-settings/repositories/index.mjs +1 -2
  67. package/esm2020/domain/shopping/models/buy-2-win.mjs +2 -2
  68. package/esm2020/domain/shopping/models/checkout.mjs +7 -6
  69. package/esm2020/domain/shopping/models/coupons/coupon.mjs +16 -16
  70. package/esm2020/domain/shopping/models/index.mjs +5 -6
  71. package/esm2020/domain/shopping/models/order.mjs +1 -1
  72. package/esm2020/domain/shopping/models/shipping-method.mjs +1 -1
  73. package/esm2020/domain/shopping/models/subscription/checkout.mjs +6 -6
  74. package/esm2020/domain/shopping/repositories/index.mjs +3 -5
  75. package/esm2020/domain/users/models/lead.mjs +1 -1
  76. package/esm2020/domain/users/models/subscription/subscription.mjs +6 -6
  77. package/esm2020/domain/users/models/user-address.mjs +1 -1
  78. package/esm2020/domain/users/models/user.mjs +2 -2
  79. package/esm2020/domain/users/use-cases/authentication.mjs +2 -2
  80. package/esm2020/infra/elasticsearch/adapters/axios.adapter.mjs +11 -28
  81. package/esm2020/infra/elasticsearch/adapters/elastic-search.adapter.mjs +1 -1
  82. package/esm2020/infra/elasticsearch/indexes/products-index.mjs +51 -63
  83. package/esm2020/infra/elasticsearch/types/elastic-search-result.mjs +1 -1
  84. package/esm2020/infra/firebase/auth/authentication-firebase-auth.service.mjs +1 -1
  85. package/esm2020/infra/firebase/firestore/mixins/with-create-firestore.mixin.mjs +4 -8
  86. package/esm2020/infra/firebase/firestore/mixins/with-crud-firestore.mixin.mjs +1 -1
  87. package/esm2020/infra/firebase/firestore/mixins/with-delete-firestore.mixin.mjs +2 -6
  88. package/esm2020/infra/firebase/firestore/mixins/with-find-firestore.mixin.mjs +8 -11
  89. package/esm2020/infra/firebase/firestore/mixins/with-firestore.mixin.mjs +4 -27
  90. package/esm2020/infra/firebase/firestore/mixins/with-get-firestore.mixin.mjs +3 -6
  91. package/esm2020/infra/firebase/firestore/mixins/with-helpers.mixin.mjs +1 -1
  92. package/esm2020/infra/firebase/firestore/mixins/with-sub-collection.mixin.mjs +3 -5
  93. package/esm2020/infra/firebase/firestore/mixins/with-update-firestore.mixin.mjs +4 -7
  94. package/esm2020/infra/firebase/firestore/repositories/catalog/category-firestore.repository.mjs +8 -21
  95. package/esm2020/infra/firebase/firestore/repositories/catalog/product-firestore.repository.mjs +7 -15
  96. package/esm2020/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.mjs +8 -10
  97. package/esm2020/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.mjs +6 -8
  98. package/esm2020/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.mjs +30 -36
  99. package/esm2020/infra/firebase/firestore/repositories/shop-settings/index.mjs +1 -2
  100. package/esm2020/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.mjs +6 -8
  101. package/esm2020/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.mjs +6 -8
  102. package/esm2020/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.mjs +6 -8
  103. package/esm2020/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.mjs +6 -8
  104. package/esm2020/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.mjs +6 -8
  105. package/esm2020/infra/firebase/firestore/repositories/shopping/index.mjs +4 -6
  106. package/esm2020/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.mjs +4 -6
  107. package/esm2020/infra/firebase/firestore/repositories/shopping/order-firestore.repository.mjs +9 -11
  108. package/esm2020/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.mjs +6 -8
  109. package/esm2020/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.mjs +6 -8
  110. package/esm2020/infra/firebase/firestore/repositories/users/lead-firestore.repository.mjs +6 -8
  111. package/esm2020/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.mjs +8 -10
  112. package/esm2020/infra/firebase/firestore/repositories/users/subscription-firestore.repository.mjs +6 -8
  113. package/esm2020/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.mjs +8 -10
  114. package/esm2020/infra/firebase/firestore/repositories/users/user-address-firestore.repository.mjs +8 -10
  115. package/esm2020/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.mjs +8 -10
  116. package/esm2020/infra/firebase/firestore/repositories/users/user-firestore.repository.mjs +6 -8
  117. package/esm2020/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.mjs +8 -10
  118. package/esm2020/infra/firebase/firestore/types/firestore-sub.repository.type.mjs +1 -1
  119. package/esm2020/infra/firebase/firestore/types/firestore.helpers.type.mjs +1 -1
  120. package/esm2020/infra/firebase/firestore/types/firestore.repository.type.mjs +1 -1
  121. package/esm2020/infra/firebase/firestore/types/index.mjs +3 -4
  122. package/esm2020/infra/hasura-graphql/mixins/helpers/attribute-option.helper.mjs +3 -3
  123. package/esm2020/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.mjs +5 -6
  124. package/esm2020/infra/hasura-graphql/mixins/helpers/filter-option.helper.mjs +1 -1
  125. package/esm2020/infra/hasura-graphql/mixins/helpers/graphql-field.helper.mjs +25 -36
  126. package/esm2020/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.mjs +4 -6
  127. package/esm2020/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.mjs +1 -1
  128. package/esm2020/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.mjs +3 -5
  129. package/esm2020/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.mjs +15 -84
  130. package/esm2020/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.mjs +3 -5
  131. package/esm2020/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.mjs +24 -40
  132. package/esm2020/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.mjs +5 -7
  133. package/esm2020/infra/hasura-graphql/models/product-hasura-graphql.mjs +1 -1
  134. package/esm2020/infra/hasura-graphql/models/variant-hasura-graphql.mjs +1 -1
  135. package/esm2020/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.mjs +14 -131
  136. package/esm2020/infra/hasura-graphql/repositories/catalog/index.mjs +1 -6
  137. package/esm2020/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.mjs +20 -70
  138. package/esm2020/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.mjs +7 -9
  139. package/esm2020/infra/hasura-graphql/types/graphql.repository.type.mjs +1 -1
  140. package/esm2020/infra/hasura-graphql/types/hasura-graphql-fields.type.mjs +1 -1
  141. package/esm2020/utils/index.mjs +4 -6
  142. package/fesm2015/infrab4a-connect.mjs +421 -1969
  143. package/fesm2015/infrab4a-connect.mjs.map +1 -1
  144. package/fesm2020/infrab4a-connect.mjs +422 -1926
  145. package/fesm2020/infrab4a-connect.mjs.map +1 -1
  146. package/infra/elasticsearch/adapters/axios.adapter.d.ts +5 -7
  147. package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +2 -3
  148. package/infra/elasticsearch/indexes/products-index.d.ts +10 -8
  149. package/infra/elasticsearch/types/elastic-search-result.d.ts +0 -2
  150. package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +2 -2
  151. package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +1 -2
  152. package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +2 -2
  153. package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +2 -2
  154. package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +4 -13
  155. package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +2 -2
  156. package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +2 -2
  157. package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +4 -8
  158. package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +3 -3
  159. package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +5 -8
  160. package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +5 -6
  161. package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +4 -3
  162. package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +4 -3
  163. package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +4 -4
  164. package/infra/firebase/firestore/repositories/shop-settings/index.d.ts +0 -1
  165. package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +4 -3
  166. package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +4 -3
  167. package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +4 -3
  168. package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +4 -3
  169. package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +4 -4
  170. package/infra/firebase/firestore/repositories/shopping/index.d.ts +3 -5
  171. package/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +4 -3
  172. package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +4 -4
  173. package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +4 -3
  174. package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +4 -3
  175. package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +4 -3
  176. package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +4 -3
  177. package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +4 -3
  178. package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +4 -3
  179. package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +4 -3
  180. package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +4 -3
  181. package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +4 -4
  182. package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +4 -3
  183. package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +3 -3
  184. package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +5 -5
  185. package/infra/firebase/firestore/types/firestore.repository.type.d.ts +1 -3
  186. package/infra/firebase/firestore/types/index.d.ts +2 -3
  187. package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +3 -9
  188. package/infra/hasura-graphql/mixins/helpers/bind-filter-query.helper.d.ts +5 -5
  189. package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +2 -4
  190. package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +5 -8
  191. package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +1 -2
  192. package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +3 -3
  193. package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +1 -1
  194. package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +15 -23
  195. package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +6 -7
  196. package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +3 -14
  197. package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +2 -2
  198. package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +0 -4
  199. package/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +0 -1
  200. package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +5 -12
  201. package/infra/hasura-graphql/repositories/catalog/index.d.ts +0 -5
  202. package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +4 -6
  203. package/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +4 -4
  204. package/infra/hasura-graphql/types/graphql.repository.type.d.ts +5 -7
  205. package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +3 -7
  206. package/package.json +1 -2
  207. package/utils/index.d.ts +22 -5
  208. package/domain/catalog/helpers/index.d.ts +0 -1
  209. package/domain/catalog/helpers/round-product-price.helper.d.ts +0 -4
  210. package/domain/catalog/models/category-base.d.ts +0 -30
  211. package/domain/catalog/models/category-collection-children.d.ts +0 -13
  212. package/domain/catalog/models/category-filter.d.ts +0 -13
  213. package/domain/catalog/models/category-for-product.d.ts +0 -5
  214. package/domain/catalog/models/filter-option.d.ts +0 -9
  215. package/domain/catalog/models/filter.d.ts +0 -12
  216. package/domain/catalog/models/product-base.d.ts +0 -40
  217. package/domain/catalog/models/product-for-category.d.ts +0 -7
  218. package/domain/catalog/models/product-for-kit.d.ts +0 -7
  219. package/domain/catalog/models/types/category-product.d.ts +0 -4
  220. package/domain/catalog/models/types/product-evaluation.type.d.ts +0 -6
  221. package/domain/catalog/models/wishlist.d.ts +0 -6
  222. package/domain/catalog/repositories/category-collection-children.repository.d.ts +0 -4
  223. package/domain/catalog/repositories/category-filter.repository.d.ts +0 -6
  224. package/domain/catalog/repositories/filter-option.repository.d.ts +0 -4
  225. package/domain/catalog/repositories/filter.repository.d.ts +0 -4
  226. package/domain/catalog/repositories/wishlist.repository.d.ts +0 -6
  227. package/domain/shop-settings/models/shop-settings.d.ts +0 -9
  228. package/domain/shop-settings/models/types/shop-banner.type.d.ts +0 -12
  229. package/domain/shop-settings/models/types/shop-brands.type.d.ts +0 -10
  230. package/domain/shop-settings/models/types/shop-carousel.type.d.ts +0 -5
  231. package/domain/shop-settings/models/types/shop-collection.type.d.ts +0 -9
  232. package/domain/shop-settings/models/types/shop-section.type.d.ts +0 -9
  233. package/domain/shop-settings/repositories/shop-settings.repository.d.ts +0 -4
  234. package/domain/shopping/models/campaign-dashboard.d.ts +0 -15
  235. package/domain/shopping/models/campaign-hashtag.d.ts +0 -18
  236. package/domain/shopping/repositories/campaign-dashboard.repository.d.ts +0 -4
  237. package/domain/shopping/repositories/campaign-hashtag.repository.d.ts +0 -4
  238. package/esm2020/domain/catalog/helpers/index.mjs +0 -2
  239. package/esm2020/domain/catalog/helpers/round-product-price.helper.mjs +0 -15
  240. package/esm2020/domain/catalog/models/category-base.mjs +0 -18
  241. package/esm2020/domain/catalog/models/category-collection-children.mjs +0 -13
  242. package/esm2020/domain/catalog/models/category-filter.mjs +0 -19
  243. package/esm2020/domain/catalog/models/category-for-product.mjs +0 -7
  244. package/esm2020/domain/catalog/models/filter-option.mjs +0 -7
  245. package/esm2020/domain/catalog/models/filter.mjs +0 -7
  246. package/esm2020/domain/catalog/models/product-base.mjs +0 -25
  247. package/esm2020/domain/catalog/models/product-for-category.mjs +0 -14
  248. package/esm2020/domain/catalog/models/product-for-kit.mjs +0 -14
  249. package/esm2020/domain/catalog/models/types/category-product.mjs +0 -2
  250. package/esm2020/domain/catalog/models/types/product-evaluation.type.mjs +0 -2
  251. package/esm2020/domain/catalog/models/wishlist.mjs +0 -7
  252. package/esm2020/domain/catalog/repositories/category-collection-children.repository.mjs +0 -2
  253. package/esm2020/domain/catalog/repositories/category-filter.repository.mjs +0 -2
  254. package/esm2020/domain/catalog/repositories/filter-option.repository.mjs +0 -2
  255. package/esm2020/domain/catalog/repositories/filter.repository.mjs +0 -2
  256. package/esm2020/domain/catalog/repositories/wishlist.repository.mjs +0 -2
  257. package/esm2020/domain/shop-settings/models/shop-settings.mjs +0 -7
  258. package/esm2020/domain/shop-settings/models/types/shop-banner.type.mjs +0 -2
  259. package/esm2020/domain/shop-settings/models/types/shop-brands.type.mjs +0 -2
  260. package/esm2020/domain/shop-settings/models/types/shop-carousel.type.mjs +0 -2
  261. package/esm2020/domain/shop-settings/models/types/shop-collection.type.mjs +0 -2
  262. package/esm2020/domain/shop-settings/models/types/shop-section.type.mjs +0 -2
  263. package/esm2020/domain/shop-settings/repositories/shop-settings.repository.mjs +0 -2
  264. package/esm2020/domain/shopping/models/campaign-dashboard.mjs +0 -7
  265. package/esm2020/domain/shopping/models/campaign-hashtag.mjs +0 -7
  266. package/esm2020/domain/shopping/repositories/campaign-dashboard.repository.mjs +0 -2
  267. package/esm2020/domain/shopping/repositories/campaign-hashtag.repository.mjs +0 -2
  268. package/esm2020/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.mjs +0 -14
  269. package/esm2020/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.mjs +0 -14
  270. package/esm2020/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.mjs +0 -14
  271. package/esm2020/infra/firebase/firestore/types/firestore-interceptors.type.mjs +0 -2
  272. package/esm2020/infra/hasura-graphql/repositories/catalog/category-collection-children-hasura-graphql.repository.mjs +0 -39
  273. package/esm2020/infra/hasura-graphql/repositories/catalog/category-filter-hasura-graphql.repository.mjs +0 -107
  274. package/esm2020/infra/hasura-graphql/repositories/catalog/filter-hasura-graphql.repository.mjs +0 -105
  275. package/esm2020/infra/hasura-graphql/repositories/catalog/filter-option-hasura-graphql.repository.mjs +0 -22
  276. package/esm2020/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.mjs +0 -236
  277. package/esm2020/utils/decorators/debug.class.decorator.mjs +0 -7
  278. package/esm2020/utils/decorators/index.mjs +0 -3
  279. package/esm2020/utils/decorators/trace.method.decorator.mjs +0 -81
  280. package/esm2020/utils/helpers/class-name.helper.mjs +0 -15
  281. package/esm2020/utils/helpers/debug-decorator.helper.mjs +0 -18
  282. package/esm2020/utils/helpers/debug.helper.mjs +0 -150
  283. package/esm2020/utils/helpers/index.mjs +0 -5
  284. package/esm2020/utils/helpers/reflect.helper.mjs +0 -165
  285. package/esm2020/utils/log.utils.mjs +0 -9
  286. package/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.d.ts +0 -7
  287. package/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.d.ts +0 -8
  288. package/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.d.ts +0 -8
  289. package/infra/firebase/firestore/types/firestore-interceptors.type.d.ts +0 -14
  290. package/infra/hasura-graphql/repositories/catalog/category-collection-children-hasura-graphql.repository.d.ts +0 -10
  291. package/infra/hasura-graphql/repositories/catalog/category-filter-hasura-graphql.repository.d.ts +0 -12
  292. package/infra/hasura-graphql/repositories/catalog/filter-hasura-graphql.repository.d.ts +0 -18
  293. package/infra/hasura-graphql/repositories/catalog/filter-option-hasura-graphql.repository.d.ts +0 -10
  294. package/infra/hasura-graphql/repositories/catalog/wishlist-hasura-graphql.repository.d.ts +0 -27
  295. package/utils/decorators/debug.class.decorator.d.ts +0 -2
  296. package/utils/decorators/index.d.ts +0 -2
  297. package/utils/decorators/trace.method.decorator.d.ts +0 -14
  298. package/utils/helpers/class-name.helper.d.ts +0 -3
  299. package/utils/helpers/debug-decorator.helper.d.ts +0 -9
  300. package/utils/helpers/debug.helper.d.ts +0 -60
  301. package/utils/helpers/index.d.ts +0 -4
  302. package/utils/helpers/reflect.helper.d.ts +0 -50
  303. package/utils/log.utils.d.ts +0 -7
@@ -1,3 +1,2 @@
1
- export * from './helpers';
2
1
  export * from './models';
3
2
  export * from './repositories';
@@ -1,7 +1,24 @@
1
- import { GenericIdentifier } from '../../generic/model';
2
- import { CategoryBase } from './category-base';
3
- import { ProductForCategory } from './product-for-category';
4
- export declare class Category extends CategoryBase<Category, GenericIdentifier> {
5
- childrenProducts?: ProductForCategory[];
1
+ import { BaseModel, GenericIdentifier, NonFunctionPropertyNames } from '../../generic/model';
2
+ import { Shops } from './enums';
3
+ import { CategoryCondition, CategoryFilter, CategoryMetadata } from './types';
4
+ export declare class Category extends BaseModel<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
+ metadata: CategoryMetadata;
22
+ identifierFields(): NonFunctionPropertyNames<Category>[];
6
23
  static get identifiersFields(): GenericIdentifier[];
7
24
  }
@@ -1,11 +1,6 @@
1
1
  export * from './category';
2
- export * from './category-collection-children';
3
- export * from './category-filter';
4
2
  export * from './enums';
5
- export * from './filter';
6
- export * from './filter-option';
7
3
  export * from './kit-product';
8
4
  export * from './product';
9
5
  export * from './types';
10
6
  export * from './variant';
11
- export * from './wishlist';
@@ -1,12 +1,12 @@
1
1
  import { BaseModel } from '../../generic/model';
2
- import { ProductForKit } from './product-for-kit';
3
- declare type KitProductIdentifiers = 'productId' | 'kitProductId';
2
+ import { Product } from './product';
3
+ declare type KitProductIdentifiers = 'productId' | 'kitProducId';
4
4
  export declare class KitProduct extends BaseModel<KitProduct, KitProductIdentifiers> {
5
5
  productId: string;
6
6
  kitProductId: string;
7
7
  quantity: number;
8
- kit: ProductForKit;
9
- product: ProductForKit;
8
+ kit: Product;
9
+ product: Product;
10
10
  static get identifiersFields(): KitProductIdentifiers[];
11
11
  }
12
12
  export {};
@@ -1,9 +1,39 @@
1
- import { GenericIdentifier } from '../../generic/model';
2
- import { CategoryForProduct } from './category-for-product';
1
+ import { BaseModel, GenericIdentifier, NonFunctionPropertyNames } from '../../generic/model';
3
2
  import { KitProduct } from './kit-product';
4
- import { ProductBase } from './product-base';
5
- export declare class Product extends ProductBase<Product, GenericIdentifier> {
6
- category: CategoryForProduct;
3
+ import { ProductGender, ProductMetadata, ProductReview, ShopDescription, ShopPrice, Stock } from './types';
4
+ import { Variant } from './variant';
5
+ export declare class Product extends BaseModel<Product> {
6
+ id: string;
7
+ name: string;
8
+ slug: string;
9
+ description: ShopDescription;
10
+ sku: string;
11
+ price: ShopPrice;
12
+ hasVariants: boolean;
13
+ NCM: string;
14
+ EAN: string;
15
+ CEST: string;
16
+ weight: number;
17
+ stock: Stock;
18
+ costPrice: number;
19
+ images?: string[];
20
+ miniatures?: string[];
21
+ published: boolean;
22
+ createdAt?: Date;
23
+ updatedAt?: Date;
24
+ brand: string;
25
+ tags?: string[];
26
+ type?: string;
27
+ categories?: string[];
28
+ reviews?: ProductReview[];
29
+ variant?: Variant;
30
+ video?: string;
31
+ isKit?: boolean;
32
+ rate?: number;
33
+ gender?: ProductGender;
34
+ shoppingCount?: number;
35
+ metadata: ProductMetadata;
7
36
  kitProducts?: KitProduct[];
37
+ identifierFields(): NonFunctionPropertyNames<Product>[];
8
38
  static get identifiersFields(): GenericIdentifier[];
9
39
  }
@@ -0,0 +1,4 @@
1
+ export declare type CategoryFilter = {
2
+ name?: string;
3
+ tags?: string[];
4
+ };
@@ -1,7 +1,6 @@
1
1
  export * from './category-condition.type';
2
+ export * from './category-filter.type';
2
3
  export * from './category-metadata.type';
3
- export * from './category-product';
4
- export * from './product-evaluation.type';
5
4
  export * from './product-gender.type';
6
5
  export * from './product-metadata.type';
7
6
  export * from './product-review.type';
@@ -4,5 +4,4 @@ export declare type ShopDescription = {
4
4
  whoMustUse?: string;
5
5
  howToUse?: string;
6
6
  brand?: string;
7
- ingredients?: string;
8
7
  };
@@ -1,4 +1,4 @@
1
- import { BaseModel } from '../../generic/model';
1
+ import { BaseModel, NonFunctionPropertyNames } from '../../generic/model';
2
2
  import { ShopPrice, Stock, VariantGrade } from './types';
3
3
  export declare type ProductVariantIdentifiers = 'id' | 'productId';
4
4
  export declare class Variant extends BaseModel<Variant, ProductVariantIdentifiers> {
@@ -13,5 +13,6 @@ export declare class Variant extends BaseModel<Variant, ProductVariantIdentifier
13
13
  weight: number;
14
14
  createdAt?: Date;
15
15
  updatedAt?: Date;
16
+ identifierFields(): NonFunctionPropertyNames<Variant>[];
16
17
  static get identifiersFields(): ProductVariantIdentifiers[];
17
18
  }
@@ -1,11 +1,10 @@
1
- import { CrudRepository } from '../../generic/repository/crud.repository';
2
- import { Product } from '../models';
3
1
  import { Category } from '../models/category';
2
+ import { CrudRepository } from '../../generic/repository/crud.repository';
4
3
  import { Shops } from '../models/enums/shops.enum';
4
+ import { Product } from '../models';
5
5
  export interface CategoryRepository extends CrudRepository<Category> {
6
6
  getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
7
- getCategoryByShop(shop: string): Promise<Category[]>;
8
- getCategoriesForHome(categoryIds: string[], limit?: number, gender?: string): Promise<{
7
+ getCategoriesForHome(categoryIds: string[], limit?: number): Promise<{
9
8
  category: Category;
10
9
  products: Product[];
11
10
  }[]>;
@@ -13,6 +12,4 @@ export interface CategoryRepository extends CrudRepository<Category> {
13
12
  limit?: number;
14
13
  hasStock?: boolean;
15
14
  }): Promise<Product[]>;
16
- getChildren(parentId: number): Promise<Category[]>;
17
- isChild(id: number, parentId: number): Promise<boolean>;
18
15
  }
@@ -1,9 +1,4 @@
1
- export * from './category-collection-children.repository';
2
- export * from './category-filter.repository';
3
1
  export * from './category.repository';
4
- export * from './filter-option.repository';
5
- export * from './filter.repository';
6
2
  export * from './product.repository';
7
3
  export * from './subscription-product.repository';
8
4
  export * from './variant.repository';
9
- export * from './wishlist.repository';
@@ -1,6 +1,5 @@
1
- import { FindRepositoryParams, RepositoryFindResult } from '../../generic';
2
1
  import { CrudRepository } from '../../generic/repository/crud.repository';
3
- import { Product, ProductGender, ProductReview } from '../models';
2
+ import { Product, ProductReview } from '../models';
4
3
  export declare type ReviewStatusParams = 'pending' | 'approved' | 'rejected';
5
4
  export declare type ReviewWithProductData = ProductReview & {
6
5
  productId: string;
@@ -10,6 +9,4 @@ export declare type ReviewWithProductData = ProductReview & {
10
9
  export interface ProductRepository extends CrudRepository<Product> {
11
10
  getBySlug(slug: string): Promise<Product>;
12
11
  fetchReviews(status: ReviewStatusParams): Promise<ReviewWithProductData[]>;
13
- cleanShoppingCountFromIds(ids: string[]): Promise<any>;
14
- findCatalog(params: FindRepositoryParams<Product>, mainGender?: Extract<ProductGender, 'female' | 'male'>): Promise<RepositoryFindResult<Product>>;
15
12
  }
@@ -1,14 +1,10 @@
1
- import { ModelBaseStructure, NonFunctionAndIdentifierProperties, NonFunctionAndIdentifierPropertyNames } from './types';
2
- export declare type GenericIdentifier<M = {
3
- id: string;
4
- }, T = NonFunctionAndIdentifierPropertyNames<M>> = T;
5
- export declare class BaseModel<Model extends ModelBaseStructure<Model, Identifiers>, Identifiers = GenericIdentifier> implements ModelBaseStructure<Model, Identifiers> {
6
- get identifier(): {
7
- [key in Extract<NonFunctionAndIdentifierPropertyNames<Model>, Identifiers>]: Model[key];
8
- };
1
+ import { ModelBaseStructure, NonFunctionAndIdentifierProperties, NonFunctionProperties } from './types';
2
+ export declare type GenericIdentifier<T = 'id'> = T;
3
+ export declare class BaseModel<Model, Identifiers = GenericIdentifier> implements ModelBaseStructure<Model, Identifiers> {
4
+ get identifier(): NonFunctionAndIdentifierProperties<Model>;
9
5
  get identifiersFields(): Identifiers[];
10
6
  constructor(args?: Partial<Model>);
11
- static toInstance<T>(this: new () => T, data?: Partial<NonFunctionAndIdentifierProperties<T>>): T;
7
+ static toInstance<T extends ModelBaseStructure>(this: new () => T, data?: Partial<NonFunctionProperties<T>>): T;
12
8
  static isModel<T extends ModelBaseStructure>(this: new () => T, value: any): value is T;
13
9
  toPlain(): any;
14
10
  }
@@ -1,8 +1,6 @@
1
- import { PartialIdentifiersModel } from './identifier-model.type';
2
- import { ModelBaseStructure } from './model-base-structure.type';
3
1
  import { NonFunctionAndIdentifierPropertiesWithNoPartial } from './non-function-properties.type';
4
2
  import { NonFunctionAndIdentifierPropertyNames } from './non-function-property-name.type';
5
- export interface BaseModelBuilder<T extends ModelBaseStructure<T>, Identifiers = NonFunctionAndIdentifierPropertyNames<T> | any, P extends T & {
3
+ export interface BaseModelBuilder<T, Identifiers = NonFunctionAndIdentifierPropertyNames<T>, P extends T & {
6
4
  prototype: unknown;
7
5
  } = T & {
8
6
  prototype: unknown;
@@ -12,6 +10,6 @@ export interface BaseModelBuilder<T extends ModelBaseStructure<T>, Identifiers =
12
10
  prototype: {
13
11
  [key in keyof P['prototype']]: P['prototype'][key];
14
12
  };
15
- toInstance<E>(this: new () => E, data?: NonFunctionAndIdentifierPropertiesWithNoPartial<T> | PartialIdentifiersModel<T>): E;
13
+ toInstance(this: new () => T, data?: Partial<NonFunctionAndIdentifierPropertiesWithNoPartial<T>>): T;
16
14
  isModel(model: any): model is T;
17
15
  }
@@ -1,8 +1,7 @@
1
- import { PropType } from '../../../../utils';
1
+ import { ArrayElement, PropType } from '../../../../utils';
2
2
  import { ModelBaseStructure } from './model-base-structure.type';
3
+ import { NonFunctionAndIdentifierPropertiesWithNoPartial } from './non-function-properties.type';
3
4
  import { NonFunctionAndIdentifierPropertyNames } from './non-function-property-name.type';
4
- export declare type IdentifierModel<Model extends ModelBaseStructure> = Extract<NonFunctionAndIdentifierPropertyNames<Model>, PropType<Model, 'identifiersFields'>[number]>;
5
- export declare type IdentifiersModel<Model extends ModelBaseStructure> = {
6
- [K in IdentifierModel<Model>]: Model[K];
7
- };
8
- export declare type PartialIdentifiersModel<Model extends ModelBaseStructure> = Partial<IdentifiersModel<Model>>;
5
+ export declare type IdentifierModel<Model extends ModelBaseStructure> = ArrayElement<PropType<Model, 'identifiersFields'>>;
6
+ export declare type IdentifiersModel<Model extends ModelBaseStructure> = Pick<NonFunctionAndIdentifierPropertiesWithNoPartial<Model>, Extract<NonFunctionAndIdentifierPropertyNames<Model>, IdentifierModel<Model>>>;
7
+ export declare type PartialIdentifiersModel<Model extends ModelBaseStructure> = Partial<Pick<NonFunctionAndIdentifierPropertiesWithNoPartial<Model>, Extract<NonFunctionAndIdentifierPropertyNames<Model>, IdentifierModel<Model>>>>;
@@ -1,12 +1,6 @@
1
- import { NonFunctionAndIdentifierPropertyNames } from '..';
2
- declare type ModelBaseStructureRecord = Record<string, any> & {
3
- identifiersFields: any[];
4
- };
5
- export declare type ModelBaseStructure<M extends ModelBaseStructureRecord = ModelBaseStructureRecord, I = M['identifiersFields'][number]> = {
6
- identifier: {
7
- [key in Extract<NonFunctionAndIdentifierPropertyNames<M>, I>]: M[key];
8
- };
1
+ import { NonFunctionAndIdentifierProperties } from './non-function-properties.type';
2
+ export declare type ModelBaseStructure<M = any, I = any> = {
3
+ identifier: NonFunctionAndIdentifierProperties<M>;
9
4
  identifiersFields: I[];
10
5
  toPlain: any;
11
6
  };
12
- export {};
@@ -1,13 +1,4 @@
1
- export declare type IfEquals<X, Y, A = X, B = never> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B;
2
- export declare type ReadonlyKeys<T> = {
3
- [P in keyof T]-?: IfEquals<{
4
- [Q in P]: T[P];
5
- }, {
6
- -readonly [Q in P]: T[P];
7
- }, never, P>;
8
- }[keyof T];
9
- export declare type WritableKeys<T> = Exclude<keyof T, ReadonlyKeys<T>>;
10
- export declare type NonFunctionPropertyNames<T, P = T, E extends WritableKeys<P> = WritableKeys<P>> = {
11
- [K in E]: P[K] extends Function ? never : K extends 'identifiersFields' ? never : K;
1
+ export declare type NonFunctionPropertyNames<T, E extends keyof T = keyof T> = {
2
+ [K in E]: T[K] extends Function ? never : K;
12
3
  }[E];
13
- export declare type NonFunctionAndIdentifierPropertyNames<T> = NonFunctionPropertyNames<Omit<T, 'identifier' | 'identifiersFields'>>;
4
+ export declare type NonFunctionAndIdentifierPropertyNames<T> = NonFunctionPropertyNames<T, Exclude<keyof T, 'identifier' | 'identifiersFields'>>;
@@ -1,15 +1,10 @@
1
- import { ModelBaseStructure, NonFunctionAndIdentifierPropertyNames, NonFunctionPropertyNames } from '../model/types';
1
+ import { ModelBaseStructure, NonFunctionPropertyNames } from '../model/types';
2
2
  import { RepositoryFindFielters, RepositoryFindResult, RepositoryLimitOptions, RepositoryOrderBy } from './types';
3
3
  export declare type FindRepositoryParams<Model extends ModelBaseStructure> = {
4
4
  filters?: RepositoryFindFielters<Model>;
5
5
  fields?: NonFunctionPropertyNames<Model>[];
6
6
  limits?: RepositoryLimitOptions<Model>;
7
7
  orderBy?: RepositoryOrderBy<Model>;
8
- options?: {
9
- enableCount?: boolean;
10
- minimal?: Array<NonFunctionAndIdentifierPropertyNames<Model> | {}>;
11
- maximum?: Array<NonFunctionAndIdentifierPropertyNames<Model> | {}>;
12
- };
13
8
  };
14
9
  export interface FindRepository<Model extends ModelBaseStructure, Params = FindRepositoryParams<Model>> {
15
10
  find(options?: Params): Promise<RepositoryFindResult<Model>>;
@@ -1,5 +1,5 @@
1
- import { IdentifiersModel, ModelBaseStructure } from '../model/types';
2
- export declare type GetRepositoryParams<Model extends ModelBaseStructure> = IdentifiersModel<Model>;
1
+ import { ModelBaseStructure, NonFunctionAndIdentifierProperties } from '../model/types';
2
+ export declare type GetRepositoryParams<Model extends ModelBaseStructure> = NonFunctionAndIdentifierProperties<Model>;
3
3
  export interface GetRepository<Model extends ModelBaseStructure, Params = GetRepositoryParams<Model>> {
4
4
  get(identifiers: Params): Promise<Model>;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { PropType } from '../../../../utils';
2
2
  import { ModelBaseStructure } from '../../model';
3
- import { NonFunctionAndIdentifierPropertyNames } from '../../model/types/non-function-property-name.type';
3
+ import { NonFunctionPropertyNames } from '../../model/types/non-function-property-name.type';
4
4
  import { Where } from '../enums/where.enum';
5
5
  export declare type RepositoryFindFieltersOptions<Model, FieldName extends keyof Model> = {
6
6
  operator: Where;
@@ -8,6 +8,6 @@ export declare type RepositoryFindFieltersOptions<Model, FieldName extends keyof
8
8
  };
9
9
  export declare type RepositoryFindField<Model, FieldName extends keyof Model> = RepositoryFindFieltersOptions<Model, FieldName> | RepositoryFindFieltersOptions<Model, FieldName>[] | Partial<PropType<Model, FieldName>>;
10
10
  export declare type NestedRepositoryFindFieltersOptions<Model> = {
11
- [key in NonFunctionAndIdentifierPropertyNames<Model>]?: PropType<Model, key> extends ModelBaseStructure ? NestedRepositoryFindFieltersOptions<PropType<Model, key>> : PropType<Required<Model>, key> extends any[] ? PropType<Required<Model>, key>[number] extends ModelBaseStructure ? NestedRepositoryFindFieltersOptions<PropType<Required<Model>, key>[number]> : PropType<Required<Model>, key>[number] extends Record<string, any> ? NestedRepositoryFindFieltersOptions<PropType<Required<Model>, key>[number]> : RepositoryFindField<Model, key> : PropType<Model, key> extends Record<string, any> ? NestedRepositoryFindFieltersOptions<Required<PropType<Model, key>>> : RepositoryFindField<Model, key>;
11
+ [key in NonFunctionPropertyNames<Model>]?: PropType<Model, key> extends ModelBaseStructure<PropType<Model, key>> ? NestedRepositoryFindFieltersOptions<PropType<Model, key>> : PropType<Required<Model>, key> extends any[] ? PropType<Required<Model>, key>[number] extends ModelBaseStructure ? NestedRepositoryFindFieltersOptions<PropType<Required<Model>, key>[number]> : PropType<Required<Model>, key>[number] extends Record<string, any> ? NestedRepositoryFindFieltersOptions<PropType<Required<Model>, key>[number]> : RepositoryFindField<Model, key> : PropType<Model, key> extends Record<string, any> ? NestedRepositoryFindFieltersOptions<Required<PropType<Model, key>>> : RepositoryFindField<Model, key>;
12
12
  };
13
- export declare type RepositoryFindFielters<Model extends ModelBaseStructure> = NestedRepositoryFindFieltersOptions<Model>;
13
+ export declare type RepositoryFindFielters<Model extends ModelBaseStructure<Model>> = NestedRepositoryFindFieltersOptions<Model>;
@@ -1,11 +1,4 @@
1
- import { NonFunctionAndIdentifierPropertiesWithNoPartial } from '../../model';
2
- declare type SortableFields<Model, K extends NonFunctionAndIdentifierPropertiesWithNoPartial<Model> = NonFunctionAndIdentifierPropertiesWithNoPartial<Model>> = {
3
- [key in keyof K]: K[key];
4
- };
5
1
  export declare type RepositoryFindResult<Model> = {
6
2
  data: Model[];
7
- count?: number;
8
- minimal?: SortableFields<Model>;
9
- maximum?: SortableFields<Model>;
3
+ count: number;
10
4
  };
11
- export {};
@@ -1,5 +1,5 @@
1
- import { NonFunctionAndIdentifierPropertyNames } from '../../model/types/non-function-property-name.type';
1
+ import { NonFunctionPropertyNames } from '../../model/types/non-function-property-name.type';
2
2
  export declare type RepositoryOrderBy<Model> = {
3
- [key in NonFunctionAndIdentifierPropertyNames<Model>]?: 'asc' | 'desc';
3
+ [key in NonFunctionPropertyNames<Model>]?: 'asc' | 'desc';
4
4
  };
5
5
  export declare type RepositoryOrderByList<Model> = RepositoryOrderBy<Model>[];
@@ -1,11 +1,11 @@
1
1
  import { ModelBaseStructure } from '../..';
2
2
  import { PropType } from '../../../../utils';
3
- import { NonFunctionAndIdentifierPropertyNames } from '../../model/types/non-function-property-name.type';
3
+ import { NonFunctionPropertyNames } from '../../model/types/non-function-property-name.type';
4
4
  export declare type UpdateOptionAction = 'removeField' | 'update' | 'merge' | 'remove' | 'null';
5
5
  export declare type UpdateOptions<T> = {
6
6
  action: UpdateOptionAction;
7
7
  value?: T;
8
8
  };
9
9
  export declare type RepositoryUpdateParams<Model extends ModelBaseStructure> = {
10
- [key in NonFunctionAndIdentifierPropertyNames<Model>]?: UpdateOptions<PropType<Model, key>> | PropType<Model, key>;
10
+ [key in NonFunctionPropertyNames<Model>]?: UpdateOptions<PropType<Model, key>> | PropType<Model, key>;
11
11
  };
@@ -1,14 +1,12 @@
1
- import { BaseModel, GenericIdentifier, ModelBaseStructure } from '../../generic';
1
+ import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
2
2
  import { LocationGeometry } from './types/location-geometry.type';
3
- export declare abstract class Address<ChildAddress extends ModelBaseStructure<ChildAddress, Identifiers>, Identifiers = ChildAddress['identifiersFields']> extends BaseModel<ChildAddress, Identifiers> {
4
- id: string;
3
+ export declare abstract class Address<Identifiers = GenericIdentifier> extends BaseModel<Address, Identifiers> {
5
4
  default?: boolean;
6
5
  recipient?: string;
7
6
  zip?: string;
8
7
  street?: string;
9
8
  number?: string;
10
9
  extension?: string;
11
- reference?: string;
12
10
  district?: string;
13
11
  city?: string;
14
12
  regionalPole?: string;
@@ -20,5 +18,5 @@ export declare abstract class Address<ChildAddress extends ModelBaseStructure<Ch
20
18
  formattedAddress?: string;
21
19
  placeId?: string;
22
20
  geometry?: LocationGeometry;
23
- static get identifiersFields(): Array<GenericIdentifier | {}>;
21
+ static get identifiersFields(): string[];
24
22
  }
@@ -1,4 +1,3 @@
1
1
  export * from './home';
2
2
  export * from './shop-menu';
3
- export * from './shop-settings';
4
3
  export * from './types';
@@ -1,10 +1,5 @@
1
1
  export * from './banner.type';
2
2
  export * from './benefit.type';
3
- export * from './home-data.type';
4
3
  export * from './menu-nav.type';
5
- export * from './shop-banner.type';
6
- export * from './shop-brands.type';
7
- export * from './shop-carousel.type';
8
- export * from './shop-collection.type';
9
- export * from './shop-section.type';
10
4
  export * from './sub-menu.type';
5
+ export * from './home-data.type';
@@ -1,3 +1,2 @@
1
1
  export * from './home.repository';
2
2
  export * from './shop-menu.repository';
3
- export * from './shop-settings.repository';
@@ -1,5 +1,5 @@
1
- import { Category, Shops } from '../../catalog/models';
2
1
  import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
2
+ import { Shops, Category } from '../../catalog/models';
3
3
  export declare class Buy2Win extends BaseModel<Buy2Win> {
4
4
  active: boolean;
5
5
  cartValue: number;
@@ -9,8 +9,6 @@ export declare class Buy2Win extends BaseModel<Buy2Win> {
9
9
  name: string;
10
10
  products?: string[];
11
11
  shop: Shops;
12
- activeCategory?: boolean;
13
- cartValueMin?: number;
14
12
  startDate: Date;
15
13
  updatedAt?: Date;
16
14
  categories: Category[];
@@ -1,13 +1,14 @@
1
- import { Shops } from '../../catalog/models/enums/shops.enum';
1
+ import { Address } from '../../location/models/address';
2
2
  import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
3
- import { User, UserAddress } from '../../users';
3
+ import { User } from '../../users/models/user';
4
4
  import { Coupon } from './coupons/coupon';
5
5
  import { LineItem } from './line-item';
6
6
  import { ShippingMethod } from './shipping-method';
7
+ import { Shops } from '../../catalog/models/enums/shops.enum';
7
8
  export declare class Checkout extends BaseModel<Checkout> {
8
9
  id?: string;
9
10
  paymentId?: string;
10
- status?: any;
11
+ status?: string;
11
12
  createdAt?: Date;
12
13
  updatedAt?: Date;
13
14
  completedAt?: Date;
@@ -18,8 +19,8 @@ export declare class Checkout extends BaseModel<Checkout> {
18
19
  glampoints?: number;
19
20
  lineItems?: LineItem[];
20
21
  user?: User;
21
- shippingAddress?: UserAddress;
22
- billingAddress?: UserAddress;
22
+ shippingAddress?: Address;
23
+ billingAddress?: Address;
23
24
  shipping?: ShippingMethod;
24
25
  coupon?: Coupon;
25
26
  static get identifiersFields(): GenericIdentifier[];
@@ -5,44 +5,16 @@ import { CouponTypes, Exclusivities } from './enums';
5
5
  import { ClubeDaMensPlan } from './enums/coupon-club-mens.enum';
6
6
  export declare class Coupon extends BaseModel<Coupon> {
7
7
  id: string;
8
- category?: string;
9
- discount: {
10
- subscriber: {
11
- type: CouponTypes;
12
- value: number;
13
- };
14
- non_subscriber: {
15
- type: CouponTypes;
16
- value: number;
17
- };
18
- subscription?: {
19
- type: CouponTypes;
20
- value: number;
21
- };
22
- };
23
- useLimits: {
24
- subscriber: {
25
- unlimited?: boolean;
26
- total?: number;
27
- limitedPerUser?: boolean;
28
- };
29
- non_subscriber: {
30
- unlimited?: boolean;
31
- total?: number;
32
- limitedPerUser?: boolean;
33
- };
34
- subscription?: {
35
- unlimited?: boolean;
36
- total?: number;
37
- limitedPerUser?: boolean;
38
- };
39
- };
8
+ type: CouponTypes;
9
+ discount?: number;
40
10
  user?: string;
41
- userExclusiveEmail?: string[];
11
+ userExclusiveEmail?: string;
42
12
  campaign?: string;
43
13
  nickname: string;
44
14
  beginAt: Date;
45
15
  expiresIn?: Date;
16
+ useLimit?: number;
17
+ useLimitPerUser?: boolean;
46
18
  shopAvailability: Shops;
47
19
  personId?: number;
48
20
  influencerEmail?: string;
@@ -53,7 +25,7 @@ export declare class Coupon extends BaseModel<Coupon> {
53
25
  createdAt: Date;
54
26
  updatedAt?: Date;
55
27
  checkoutType: CheckoutTypes;
56
- exclusivityType?: [Exclusivities];
28
+ exclusivityType?: Exclusivities;
57
29
  get isInfluencer(): boolean;
58
30
  static get identifiersFields(): GenericIdentifier[];
59
31
  static createCoupon(userId: string): Coupon;
@@ -1,12 +1,11 @@
1
- export * from './buy-2-win';
2
- export * from './campaign-dashboard';
3
- export * from './campaign-hashtag';
4
- export * from './checkout';
5
1
  export * from './coupons';
6
2
  export * from './enums';
3
+ export * from './types';
4
+ export * from './checkout';
7
5
  export * from './line-item';
8
6
  export * from './order';
9
7
  export * from './payment';
10
8
  export * from './shipping-method';
11
9
  export * from './subscription';
12
- export * from './types';
10
+ export * from './buy-2-win';
11
+ export * from './buy-2-win';
@@ -3,7 +3,6 @@ import { OrderStatus } from './enums/order-status.enum';
3
3
  import { Payment } from './payment';
4
4
  export declare class Order extends Checkout {
5
5
  status: OrderStatus;
6
- orderNumber?: string;
7
6
  trackingCode?: string;
8
7
  trackingUrl?: string;
9
8
  payment: Payment;
@@ -12,6 +12,5 @@ export declare class ShippingMethod extends BaseModel<ShippingMethod> {
12
12
  State: string;
13
13
  ZipEnd: number;
14
14
  ZipStart: number;
15
- invoiceNumber?: string;
16
15
  static get identifiersFields(): GenericIdentifier[];
17
16
  }
@@ -1,6 +1,7 @@
1
+ import { Address } from '../../../location/models/address';
1
2
  import { BaseModel, GenericIdentifier } from '../../../generic/model/base.model';
2
- import { User, UserAddress } from '../../../users';
3
3
  import { Coupon } from '../coupons/coupon';
4
+ import { User } from '../../../users/models/user';
4
5
  import { SubscriptionPlan } from './plan';
5
6
  export declare class CheckoutSubscription extends BaseModel<CheckoutSubscription> {
6
7
  id?: string;
@@ -12,8 +13,8 @@ export declare class CheckoutSubscription extends BaseModel<CheckoutSubscription
12
13
  discount?: number;
13
14
  subTotalPrice?: number;
14
15
  totalPrice?: number;
15
- shippingAddress: UserAddress;
16
- billingAddress?: UserAddress;
16
+ shippingAddress: Address;
17
+ billingAddress?: Address;
17
18
  subscriptionPlan: SubscriptionPlan;
18
19
  coupon?: Coupon;
19
20
  static get identifiersFields(): GenericIdentifier[];
@@ -1,9 +1,7 @@
1
- export * from './buy-2-win.repository';
2
- export * from './campaign-dashboard.repository';
3
- export * from './campaign-hashtag.repository';
4
1
  export * from './checkout.repository';
5
2
  export * from './coupon.repository';
6
- export * from './legacy-order.repository';
7
3
  export * from './order.repository';
8
4
  export * from './payment.repository';
9
5
  export * from './subscription';
6
+ export * from './buy-2-win.repository';
7
+ export * from './legacy-order.repository';
@@ -3,6 +3,5 @@ export declare class Lead extends BaseModel<Lead> {
3
3
  id: string;
4
4
  acceptsNewsletter: boolean;
5
5
  email: string;
6
- source: string;
7
6
  static get identifiersFields(): GenericIdentifier[];
8
7
  }
@@ -1,8 +1,8 @@
1
+ import { Address } from '../../../location/models/address';
1
2
  import { BaseModel, GenericIdentifier } from '../../../generic/model/base.model';
2
3
  import { Coupon } from '../../../shopping/models/coupons/coupon';
3
4
  import { SubscriptionPlan } from '../../../shopping/models/subscription/plan';
4
5
  import { User } from '../user';
5
- import { UserAddress } from '../user-address';
6
6
  import { Edition } from './edition';
7
7
  import { Status } from './enums/status.enum';
8
8
  import { SubscriptionPayment } from './payment';
@@ -19,8 +19,8 @@ export declare class Subscription extends BaseModel<Subscription> {
19
19
  updatedAt: Date;
20
20
  user: User;
21
21
  subscriptionPlan: SubscriptionPlan;
22
- shippingAddress: UserAddress;
23
- billingAddress?: UserAddress;
22
+ shippingAddress: Address;
23
+ billingAddress?: Address;
24
24
  coupon?: Coupon;
25
25
  editions: Edition[];
26
26
  payment?: SubscriptionPayment[];