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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (915) hide show
  1. package/bundles/infrab4a-connect.umd.js +1583 -246
  2. package/bundles/infrab4a-connect.umd.js.map +1 -1
  3. package/domain/catalog/models/category.d.ts +23 -0
  4. package/domain/catalog/models/enums/shops.enum.d.ts +5 -0
  5. package/domain/catalog/models/product.d.ts +36 -0
  6. package/domain/catalog/models/types/product-review.type.d.ts +15 -0
  7. package/domain/catalog/models/variant.d.ts +18 -0
  8. package/domain/catalog/repositories/category.repository.d.ts +15 -0
  9. package/domain/catalog/repositories/product.repository.d.ts +5 -0
  10. package/domain/catalog/repositories/subscription-product.repository.d.ts +4 -0
  11. package/domain/catalog/repositories/variant.repository.d.ts +4 -0
  12. package/domain/generic/model/base.model.d.ts +10 -0
  13. package/domain/generic/model/index.d.ts +3 -0
  14. package/domain/generic/model/types/base-model-builder.type.d.ts +15 -0
  15. package/domain/generic/model/types/identifier-model.type.d.ts +7 -0
  16. package/domain/generic/model/types/index.d.ts +5 -0
  17. package/domain/generic/model/types/model-base-structure.type.d.ts +6 -0
  18. package/domain/generic/model/types/non-function-properties.type.d.ts +12 -0
  19. package/domain/generic/model/types/non-function-property-name.type.d.ts +4 -0
  20. package/domain/generic/repository/create.repository.d.ts +8 -0
  21. package/domain/generic/repository/crud.repository.d.ts +19 -0
  22. package/domain/generic/repository/delete.repository.d.ts +7 -0
  23. package/domain/generic/repository/enums/where.enum.d.ts +13 -0
  24. package/domain/generic/repository/find.repository.d.ts +10 -0
  25. package/domain/generic/repository/get.repository.d.ts +5 -0
  26. package/domain/generic/repository/read.repository.d.ts +14 -0
  27. package/domain/generic/repository/types/index.d.ts +6 -0
  28. package/domain/generic/repository/types/repository-find-filters.type.d.ts +13 -0
  29. package/domain/generic/repository/types/repository-update-params.type.d.ts +11 -0
  30. package/domain/generic/repository/types/where-options.type.d.ts +2 -0
  31. package/domain/generic/repository/update.repository.d.ts +6 -0
  32. package/domain/index.d.ts +6 -0
  33. package/domain/location/models/address.d.ts +22 -0
  34. package/domain/shop-settings/models/home.d.ts +17 -0
  35. package/domain/shop-settings/models/shop-menu.d.ts +7 -0
  36. package/domain/shop-settings/models/types/home-data.type.d.ts +15 -0
  37. package/domain/shop-settings/models/types/index.d.ts +5 -0
  38. package/domain/shop-settings/repositories/home.repository.d.ts +4 -0
  39. package/domain/shop-settings/repositories/shop-menu.repository.d.ts +4 -0
  40. package/domain/shopping/models/buy-2-win.d.ts +16 -0
  41. package/domain/shopping/models/checkout.d.ts +27 -0
  42. package/domain/shopping/models/coupons/coupon.d.ts +26 -0
  43. package/domain/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +4 -0
  44. package/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +6 -0
  45. package/domain/shopping/models/coupons/enums/index.d.ts +3 -0
  46. package/domain/shopping/models/coupons/financial-coupon.d.ts +9 -0
  47. package/domain/shopping/models/coupons/index.d.ts +3 -0
  48. package/domain/shopping/models/payment.d.ts +67 -0
  49. package/domain/shopping/models/shipping-method.d.ts +16 -0
  50. package/domain/shopping/models/subscription/checkout.d.ts +21 -0
  51. package/domain/shopping/models/subscription/plan.d.ts +10 -0
  52. package/domain/shopping/repositories/buy-2-win.repository.d.ts +4 -0
  53. package/domain/shopping/repositories/checkout.repository.d.ts +4 -0
  54. package/domain/shopping/repositories/coupon.repository.d.ts +4 -0
  55. package/domain/shopping/repositories/order.repository.d.ts +4 -0
  56. package/domain/shopping/repositories/payment.repository.d.ts +4 -0
  57. package/domain/shopping/repositories/subscription/checkout.repository.d.ts +4 -0
  58. package/domain/shopping/repositories/subscription/plan.repository.d.ts +4 -0
  59. package/domain/users/models/beauty-profile.d.ts +11 -0
  60. package/domain/users/models/lead.d.ts +7 -0
  61. package/domain/users/models/subscription/edition.d.ts +16 -0
  62. package/domain/users/models/subscription/payment.d.ts +13 -0
  63. package/domain/users/models/subscription/subscription.d.ts +28 -0
  64. package/domain/users/models/user-address.d.ts +7 -0
  65. package/domain/users/models/user-payment-method.d.ts +14 -0
  66. package/domain/users/models/user.d.ts +26 -0
  67. package/domain/users/repositories/beauty-profile.repository.d.ts +4 -0
  68. package/domain/users/repositories/edition.repository.d.ts +4 -0
  69. package/domain/users/repositories/lead.repository.d.ts +4 -0
  70. package/domain/users/repositories/subscription-payment.repository.d.ts +4 -0
  71. package/domain/users/repositories/subscription.repository.d.ts +4 -0
  72. package/domain/users/repositories/user-address.repository.d.ts +4 -0
  73. package/domain/users/repositories/user-payment-method.repository.d.ts +4 -0
  74. package/domain/users/repositories/user.repository.d.ts +6 -0
  75. package/domain/users/services/authentication.service.d.ts +12 -0
  76. package/domain/users/use-cases/index.d.ts +4 -0
  77. package/domain/users/use-cases/recovery-password.d.ts +6 -0
  78. package/esm2015/domain/catalog/index.js +3 -0
  79. package/esm2015/domain/catalog/models/category.js +10 -0
  80. package/esm2015/domain/catalog/models/enums/index.js +2 -0
  81. package/esm2015/domain/catalog/models/enums/shops.enum.js +7 -0
  82. package/esm2015/domain/catalog/models/index.js +6 -0
  83. package/esm2015/domain/catalog/models/product.js +14 -0
  84. package/esm2015/domain/catalog/models/types/category-condition.type.js +2 -0
  85. package/esm2015/domain/catalog/models/types/category-filter.type.js +2 -0
  86. package/esm2015/domain/catalog/models/types/index.js +8 -0
  87. package/esm2015/domain/catalog/models/types/product-review.type.js +2 -0
  88. package/esm2015/domain/catalog/models/types/shops-description.type.js +2 -0
  89. package/esm2015/domain/catalog/models/types/shops-price.type.js +2 -0
  90. package/esm2015/domain/catalog/models/types/stock.type.js +2 -0
  91. package/esm2015/domain/catalog/models/types/variant-grade.type.js +2 -0
  92. package/esm2015/domain/catalog/models/variant.js +10 -0
  93. package/esm2015/domain/catalog/repositories/category.repository.js +2 -0
  94. package/esm2015/domain/catalog/repositories/index.js +5 -0
  95. package/esm2015/domain/catalog/repositories/product.repository.js +2 -0
  96. package/esm2015/domain/catalog/repositories/subscription-product.repository.js +2 -0
  97. package/esm2015/domain/catalog/repositories/variant.repository.js +2 -0
  98. package/esm2015/domain/generic/index.js +3 -0
  99. package/esm2015/domain/generic/model/base.model.js +23 -0
  100. package/esm2015/domain/generic/model/identifier-fields.js +2 -0
  101. package/esm2015/domain/generic/model/index.js +4 -0
  102. package/esm2015/domain/generic/model/types/base-model-builder.type.js +2 -0
  103. package/esm2015/domain/generic/model/types/identifier-model.type.js +2 -0
  104. package/esm2015/domain/generic/model/types/index.js +6 -0
  105. package/esm2015/domain/generic/model/types/model-base-structure.type.js +2 -0
  106. package/esm2015/domain/generic/model/types/non-function-properties.type.js +2 -0
  107. package/esm2015/domain/generic/model/types/non-function-property-name.type.js +2 -0
  108. package/esm2015/domain/generic/repository/create.repository.js +2 -0
  109. package/esm2015/domain/generic/repository/crud.repository.js +2 -0
  110. package/esm2015/domain/generic/repository/delete.repository.js +2 -0
  111. package/esm2015/domain/generic/repository/enums/index.js +3 -0
  112. package/esm2015/domain/generic/repository/enums/update-option-actions.enum.js +9 -0
  113. package/esm2015/domain/generic/repository/enums/where.enum.js +15 -0
  114. package/esm2015/domain/generic/repository/find.repository.js +2 -0
  115. package/esm2015/domain/generic/repository/get.repository.js +2 -0
  116. package/esm2015/domain/generic/repository/index.js +10 -0
  117. package/esm2015/domain/generic/repository/read.repository.js +2 -0
  118. package/esm2015/domain/generic/repository/types/index.js +7 -0
  119. package/esm2015/domain/generic/repository/types/repository-find-filters.type.js +2 -0
  120. package/esm2015/domain/generic/repository/types/repository-find-result.type.js +2 -0
  121. package/esm2015/domain/generic/repository/types/repository-limit-options.type.js +2 -0
  122. package/esm2015/domain/generic/repository/types/repository-order-by-list.type.js +2 -0
  123. package/esm2015/domain/generic/repository/types/repository-update-params.type.js +2 -0
  124. package/esm2015/domain/generic/repository/types/where-options.type.js +2 -0
  125. package/esm2015/domain/generic/repository/update.repository.js +2 -0
  126. package/esm2015/domain/index.js +7 -0
  127. package/esm2015/domain/location/index.js +2 -0
  128. package/esm2015/domain/location/models/address.js +7 -0
  129. package/esm2015/domain/location/models/index.js +3 -0
  130. package/esm2015/domain/location/models/types/index.js +4 -0
  131. package/esm2015/domain/location/models/types/location-bound.type.js +2 -0
  132. package/esm2015/domain/location/models/types/location-geometry.type.js +2 -0
  133. package/esm2015/domain/location/models/types/location-lat-lng.type.js +2 -0
  134. package/esm2015/domain/shop-settings/enums/filter-type.enum.js +21 -0
  135. package/esm2015/domain/shop-settings/enums/index.js +3 -0
  136. package/esm2015/domain/shop-settings/enums/questions-filters.enum.js +21 -0
  137. package/esm2015/domain/shop-settings/helpers/beauty-questions.helper.js +46 -0
  138. package/esm2015/domain/shop-settings/helpers/index.js +2 -0
  139. package/esm2015/domain/shop-settings/index.js +5 -0
  140. package/esm2015/domain/shop-settings/models/home.js +7 -0
  141. package/esm2015/domain/shop-settings/models/index.js +4 -0
  142. package/esm2015/domain/shop-settings/models/shop-menu.js +7 -0
  143. package/esm2015/domain/shop-settings/models/types/banner.type.js +2 -0
  144. package/esm2015/domain/shop-settings/models/types/benefit.type.js +2 -0
  145. package/esm2015/domain/shop-settings/models/types/home-data.type.js +2 -0
  146. package/esm2015/domain/shop-settings/models/types/index.js +6 -0
  147. package/esm2015/domain/shop-settings/models/types/menu-nav.type.js +2 -0
  148. package/esm2015/domain/shop-settings/models/types/sub-menu.type.js +2 -0
  149. package/esm2015/domain/shop-settings/repositories/home.repository.js +2 -0
  150. package/esm2015/domain/shop-settings/repositories/index.js +3 -0
  151. package/esm2015/domain/shop-settings/repositories/shop-menu.repository.js +2 -0
  152. package/esm2015/domain/shopping/index.js +3 -0
  153. package/esm2015/domain/shopping/models/buy-2-win.js +14 -0
  154. package/esm2015/domain/shopping/models/checkout.js +38 -0
  155. package/esm2015/domain/shopping/models/coupons/coupon.js +23 -0
  156. package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +6 -0
  157. package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +8 -0
  158. package/esm2015/domain/shopping/models/coupons/enums/exclusivities.enum.js +7 -0
  159. package/esm2015/domain/shopping/models/coupons/enums/index.js +4 -0
  160. package/esm2015/domain/shopping/models/coupons/financial-coupon.js +28 -0
  161. package/esm2015/domain/shopping/models/coupons/index.js +4 -0
  162. package/esm2015/domain/shopping/models/enums/checkout-types.enum.js +6 -0
  163. package/esm2015/domain/shopping/models/enums/index.js +3 -0
  164. package/esm2015/domain/shopping/models/enums/order-status.enum.js +12 -0
  165. package/esm2015/domain/shopping/models/index.js +12 -0
  166. package/esm2015/domain/shopping/models/line-item.js +4 -0
  167. package/esm2015/domain/shopping/models/order.js +11 -0
  168. package/esm2015/domain/shopping/models/payment.js +169 -0
  169. package/esm2015/domain/shopping/models/shipping-method.js +7 -0
  170. package/esm2015/domain/shopping/models/subscription/checkout.js +28 -0
  171. package/esm2015/domain/shopping/models/subscription/index.js +3 -0
  172. package/esm2015/domain/shopping/models/subscription/plan.js +7 -0
  173. package/esm2015/domain/shopping/models/types/index.js +8 -0
  174. package/esm2015/domain/shopping/models/types/payment-address.type.js +2 -0
  175. package/esm2015/domain/shopping/models/types/payment-billing.type.js +2 -0
  176. package/esm2015/domain/shopping/models/types/payment-card.type.js +2 -0
  177. package/esm2015/domain/shopping/models/types/payment-customer.type.js +2 -0
  178. package/esm2015/domain/shopping/models/types/payment-document.type.js +2 -0
  179. package/esm2015/domain/shopping/models/types/payment-item.type.js +2 -0
  180. package/esm2015/domain/shopping/models/types/payment-shipping.type.js +2 -0
  181. package/esm2015/domain/shopping/repositories/buy-2-win.repository.js +2 -0
  182. package/esm2015/domain/shopping/repositories/checkout.repository.js +2 -0
  183. package/esm2015/domain/shopping/repositories/coupon.repository.js +2 -0
  184. package/esm2015/domain/shopping/repositories/index.js +8 -0
  185. package/esm2015/domain/shopping/repositories/legacy-order.repository.js +2 -0
  186. package/esm2015/domain/shopping/repositories/order.repository.js +2 -0
  187. package/esm2015/domain/shopping/repositories/payment.repository.js +2 -0
  188. package/esm2015/domain/shopping/repositories/subscription/checkout.repository.js +2 -0
  189. package/esm2015/domain/shopping/repositories/subscription/index.js +3 -0
  190. package/esm2015/domain/shopping/repositories/subscription/plan.repository.js +2 -0
  191. package/esm2015/domain/users/errors/index.js +4 -0
  192. package/esm2015/domain/users/errors/unauthorized.error.js +7 -0
  193. package/esm2015/domain/users/errors/user-already-registered.error.js +7 -0
  194. package/esm2015/domain/users/errors/weak-password.error.js +7 -0
  195. package/esm2015/domain/users/index.js +6 -0
  196. package/esm2015/domain/users/models/beauty-profile.js +12 -0
  197. package/esm2015/domain/users/models/enums/accessory-importances.enum.js +7 -0
  198. package/esm2015/domain/users/models/enums/area.enum.js +13 -0
  199. package/esm2015/domain/users/models/enums/beard-problems.enum.js +11 -0
  200. package/esm2015/domain/users/models/enums/beard-sizes.enum.js +9 -0
  201. package/esm2015/domain/users/models/enums/beauty-product-importances.enum.js +8 -0
  202. package/esm2015/domain/users/models/enums/body-problems.enum.js +13 -0
  203. package/esm2015/domain/users/models/enums/body-shapes.enum.js +9 -0
  204. package/esm2015/domain/users/models/enums/body-tattoos.enum.js +7 -0
  205. package/esm2015/domain/users/models/enums/face-skin-oilinesses.enum.js +9 -0
  206. package/esm2015/domain/users/models/enums/face-skin-problems.enum.js +12 -0
  207. package/esm2015/domain/users/models/enums/face-skin-tones.enum.js +10 -0
  208. package/esm2015/domain/users/models/enums/family-incomes.enum.js +10 -0
  209. package/esm2015/domain/users/models/enums/fragrance-importances.enum.js +7 -0
  210. package/esm2015/domain/users/models/enums/hair-colors.enum.js +12 -0
  211. package/esm2015/domain/users/models/enums/hair-problems.enum.js +12 -0
  212. package/esm2015/domain/users/models/enums/hair-strands.enum.js +10 -0
  213. package/esm2015/domain/users/models/enums/hair-types.enum.js +9 -0
  214. package/esm2015/domain/users/models/enums/index.js +21 -0
  215. package/esm2015/domain/users/models/enums/office-position.enum.js +8 -0
  216. package/esm2015/domain/users/models/enums/product-spents.enum.js +10 -0
  217. package/esm2015/domain/users/models/enums/user-type.enum.js +10 -0
  218. package/esm2015/domain/users/models/index.js +8 -0
  219. package/esm2015/domain/users/models/lead.js +7 -0
  220. package/esm2015/domain/users/models/subscription/edition.js +7 -0
  221. package/esm2015/domain/users/models/subscription/enums/billing-status.enum.js +5 -0
  222. package/esm2015/domain/users/models/subscription/enums/edition-status.enum.js +6 -0
  223. package/esm2015/domain/users/models/subscription/enums/index.js +5 -0
  224. package/esm2015/domain/users/models/subscription/enums/payment-type.enum.js +7 -0
  225. package/esm2015/domain/users/models/subscription/enums/status.enum.js +6 -0
  226. package/esm2015/domain/users/models/subscription/index.js +5 -0
  227. package/esm2015/domain/users/models/subscription/payment.js +14 -0
  228. package/esm2015/domain/users/models/subscription/subscription.js +43 -0
  229. package/esm2015/domain/users/models/user-address.js +7 -0
  230. package/esm2015/domain/users/models/user-payment-method.js +7 -0
  231. package/esm2015/domain/users/models/user.js +26 -0
  232. package/esm2015/domain/users/repositories/beauty-profile.repository.js +2 -0
  233. package/esm2015/domain/users/repositories/edition.repository.js +2 -0
  234. package/esm2015/domain/users/repositories/index.js +9 -0
  235. package/esm2015/domain/users/repositories/lead.repository.js +2 -0
  236. package/esm2015/domain/users/repositories/subscription-payment.repository.js +2 -0
  237. package/esm2015/domain/users/repositories/subscription.repository.js +2 -0
  238. package/esm2015/domain/users/repositories/user-address.repository.js +2 -0
  239. package/esm2015/domain/users/repositories/user-payment-method.repository.js +2 -0
  240. package/esm2015/domain/users/repositories/user.repository.js +2 -0
  241. package/esm2015/domain/users/services/authentication.service.js +2 -0
  242. package/esm2015/domain/users/services/index.js +4 -0
  243. package/esm2015/domain/users/services/register.service.js +2 -0
  244. package/esm2015/domain/users/services/types/basic-user-data.type.js +2 -0
  245. package/esm2015/domain/users/services/types/index.js +2 -0
  246. package/esm2015/domain/users/use-cases/authentication.js +40 -0
  247. package/esm2015/domain/users/use-cases/index.js +5 -0
  248. package/esm2015/domain/users/use-cases/recovery-password.js +12 -0
  249. package/esm2015/domain/users/use-cases/register.js +34 -0
  250. package/esm2015/domain/users/use-cases/signout.js +12 -0
  251. package/esm2015/errors/duplicated-results.error.js +7 -0
  252. package/esm2015/errors/index.js +5 -0
  253. package/esm2015/errors/invalid-argument.error.js +7 -0
  254. package/esm2015/errors/not-found.error.js +7 -0
  255. package/esm2015/errors/required-argument.error.js +8 -0
  256. package/esm2015/index.js +6 -0
  257. package/esm2015/infra/elasticsearch/adapters/axios.adapter.js +22 -0
  258. package/esm2015/infra/elasticsearch/adapters/elastic-search.adapter.js +2 -0
  259. package/esm2015/infra/elasticsearch/adapters/index.js +3 -0
  260. package/esm2015/infra/elasticsearch/index.js +4 -0
  261. package/esm2015/infra/elasticsearch/indexes/index.js +2 -0
  262. package/esm2015/infra/elasticsearch/indexes/products-index.js +59 -0
  263. package/esm2015/infra/elasticsearch/types/elastic-search-result.js +2 -0
  264. package/esm2015/infra/elasticsearch/types/index.js +2 -0
  265. package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +52 -0
  266. package/esm2015/infra/firebase/auth/index.js +3 -0
  267. package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +26 -0
  268. package/esm2015/infra/firebase/auth/types/firebase-user-with-id.type.js +2 -0
  269. package/esm2015/infra/firebase/firestore/index.js +4 -0
  270. package/esm2015/infra/firebase/firestore/mixins/index.js +10 -0
  271. package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +31 -0
  272. package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +10 -0
  273. package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +18 -0
  274. package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +86 -0
  275. package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +23 -0
  276. package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +24 -0
  277. package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +17 -0
  278. package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +11 -0
  279. package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +45 -0
  280. package/esm2015/infra/firebase/firestore/models/user-search.js +7 -0
  281. package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +70 -0
  282. package/esm2015/infra/firebase/firestore/repositories/catalog/index.js +5 -0
  283. package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +25 -0
  284. package/esm2015/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +14 -0
  285. package/esm2015/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +12 -0
  286. package/esm2015/infra/firebase/firestore/repositories/index.js +5 -0
  287. package/esm2015/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +56 -0
  288. package/esm2015/infra/firebase/firestore/repositories/shop-settings/index.js +3 -0
  289. package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +12 -0
  290. package/esm2015/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +12 -0
  291. package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +12 -0
  292. package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +12 -0
  293. package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +29 -0
  294. package/esm2015/infra/firebase/firestore/repositories/shopping/index.js +9 -0
  295. package/esm2015/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +9 -0
  296. package/esm2015/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +12 -0
  297. package/esm2015/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +12 -0
  298. package/esm2015/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +12 -0
  299. package/esm2015/infra/firebase/firestore/repositories/users/index.js +10 -0
  300. package/esm2015/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +12 -0
  301. package/esm2015/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +14 -0
  302. package/esm2015/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +12 -0
  303. package/esm2015/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +14 -0
  304. package/esm2015/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +14 -0
  305. package/esm2015/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +14 -0
  306. package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +70 -0
  307. package/esm2015/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +14 -0
  308. package/esm2015/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +12 -0
  309. package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +2 -0
  310. package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +2 -0
  311. package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +2 -0
  312. package/esm2015/infra/firebase/firestore/types/index.js +4 -0
  313. package/esm2015/infra/firebase/index.js +3 -0
  314. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.js +13 -0
  315. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-where.enum.js +15 -0
  316. package/esm2015/infra/hasura-graphql/enums/index.js +3 -0
  317. package/esm2015/infra/hasura-graphql/index.js +4 -0
  318. package/esm2015/infra/hasura-graphql/mixins/helpers/attribute-option.helper.js +32 -0
  319. package/esm2015/infra/hasura-graphql/mixins/helpers/filter-option.helper.js +18 -0
  320. package/esm2015/infra/hasura-graphql/mixins/helpers/graphql-field.helper.js +74 -0
  321. package/esm2015/infra/hasura-graphql/mixins/helpers/index.js +4 -0
  322. package/esm2015/infra/hasura-graphql/mixins/index.js +8 -0
  323. package/esm2015/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.js +27 -0
  324. package/esm2015/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.js +10 -0
  325. package/esm2015/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.js +29 -0
  326. package/esm2015/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.js +86 -0
  327. package/esm2015/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.js +34 -0
  328. package/esm2015/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.js +94 -0
  329. package/esm2015/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.js +53 -0
  330. package/esm2015/infra/hasura-graphql/models/category-hasura-graphql.js +4 -0
  331. package/esm2015/infra/hasura-graphql/models/index.js +4 -0
  332. package/esm2015/infra/hasura-graphql/models/product-hasura-graphql.js +4 -0
  333. package/esm2015/infra/hasura-graphql/models/variant-hasura-graphql.js +9 -0
  334. package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +112 -0
  335. package/esm2015/infra/hasura-graphql/repositories/catalog/index.js +4 -0
  336. package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +111 -0
  337. package/esm2015/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.js +61 -0
  338. package/esm2015/infra/hasura-graphql/repositories/index.js +2 -0
  339. package/esm2015/infra/hasura-graphql/types/fields.type.js +2 -0
  340. package/esm2015/infra/hasura-graphql/types/graphql.repository.type.js +2 -0
  341. package/esm2015/infra/hasura-graphql/types/hasura-graphql-auth-options.type.js +2 -0
  342. package/esm2015/infra/hasura-graphql/types/hasura-graphql-fields.type.js +2 -0
  343. package/esm2015/infra/hasura-graphql/types/hasura-graphql-headers.type.js +2 -0
  344. package/esm2015/infra/hasura-graphql/types/index.js +9 -0
  345. package/esm2015/infra/hasura-graphql/types/nested-field.type.js +2 -0
  346. package/esm2015/infra/hasura-graphql/types/query-builder-options.type.js +2 -0
  347. package/esm2015/infra/hasura-graphql/types/variable-options.type.js +2 -0
  348. package/esm2015/infra/index.js +4 -0
  349. package/esm2015/infrab4a-connect.js +2 -2
  350. package/esm2015/utils/index.js +8 -0
  351. package/esm2015/utils/is-uuid.js +3 -0
  352. package/esm2015/utils/mixins/base.mixin.js +6 -0
  353. package/esm2015/utils/mixins/index.js +4 -0
  354. package/esm2015/utils/mixins/merge-constructor-params.type.js +2 -0
  355. package/esm2015/utils/mixins/mixin-ctor.type.js +2 -0
  356. package/esm2015/utils/parse-datetime.js +14 -0
  357. package/esm2015/utils/types/array-element.type.js +2 -0
  358. package/esm2015/utils/types/index.js +3 -0
  359. package/esm2015/utils/types/prop.type.js +2 -0
  360. package/fesm2015/infrab4a-connect.js +1043 -149
  361. package/fesm2015/infrab4a-connect.js.map +1 -1
  362. package/index.d.ts +5 -0
  363. package/infra/elasticsearch/adapters/axios.adapter.d.ts +11 -0
  364. package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +4 -0
  365. package/infra/elasticsearch/adapters/index.d.ts +2 -0
  366. package/infra/elasticsearch/index.d.ts +3 -0
  367. package/infra/elasticsearch/indexes/index.d.ts +1 -0
  368. package/infra/elasticsearch/indexes/products-index.d.ts +11 -0
  369. package/infra/elasticsearch/types/elastic-search-result.d.ts +7 -0
  370. package/infra/elasticsearch/types/index.d.ts +1 -0
  371. package/infra/firebase/auth/authentication-firebase-auth.service.d.ts +12 -0
  372. package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +4 -0
  373. package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +4 -0
  374. package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +4 -0
  375. package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +4 -0
  376. package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +4 -0
  377. package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +4 -0
  378. package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +11 -0
  379. package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +7 -0
  380. package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +7 -0
  381. package/infra/firebase/firestore/models/user-search.d.ts +9 -0
  382. package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +17 -0
  383. package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +9 -0
  384. package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +13 -0
  385. package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +8 -0
  386. package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +16 -0
  387. package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +8 -0
  388. package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +8 -0
  389. package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +8 -0
  390. package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +8 -0
  391. package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +12 -0
  392. package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +8 -0
  393. package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +8 -0
  394. package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +8 -0
  395. package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +8 -0
  396. package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +13 -0
  397. package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +8 -0
  398. package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +13 -0
  399. package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +13 -0
  400. package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +13 -0
  401. package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +19 -0
  402. package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +13 -0
  403. package/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +9 -0
  404. package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +6 -0
  405. package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +8 -0
  406. package/infra/firebase/firestore/types/firestore.repository.type.d.ts +12 -0
  407. package/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.d.ts +11 -0
  408. package/infra/hasura-graphql/enums/hasura-graphql-where.enum.d.ts +13 -0
  409. package/infra/hasura-graphql/enums/index.d.ts +2 -0
  410. package/infra/hasura-graphql/index.d.ts +3 -0
  411. package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +17 -0
  412. package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +6 -0
  413. package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +8 -0
  414. package/infra/hasura-graphql/mixins/helpers/index.d.ts +3 -0
  415. package/infra/hasura-graphql/mixins/index.d.ts +7 -0
  416. package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +8 -0
  417. package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +11 -0
  418. package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +7 -0
  419. package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +30 -0
  420. package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +24 -0
  421. package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +11 -0
  422. package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +14 -0
  423. package/infra/hasura-graphql/models/category-hasura-graphql.d.ts +6 -0
  424. package/infra/hasura-graphql/models/index.d.ts +3 -0
  425. package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +7 -0
  426. package/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +9 -0
  427. package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +22 -0
  428. package/infra/hasura-graphql/repositories/catalog/index.d.ts +3 -0
  429. package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +11 -0
  430. package/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +10 -0
  431. package/infra/hasura-graphql/repositories/index.d.ts +1 -0
  432. package/infra/hasura-graphql/types/fields.type.d.ts +2 -0
  433. package/infra/hasura-graphql/types/graphql.repository.type.d.ts +21 -0
  434. package/infra/hasura-graphql/types/hasura-graphql-auth-options.type.d.ts +8 -0
  435. package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +42 -0
  436. package/infra/hasura-graphql/types/hasura-graphql-headers.type.d.ts +7 -0
  437. package/infra/hasura-graphql/types/index.d.ts +8 -0
  438. package/infra/hasura-graphql/types/nested-field.type.d.ts +7 -0
  439. package/infra/hasura-graphql/types/query-builder-options.type.d.ts +7 -0
  440. package/infra/hasura-graphql/types/variable-options.type.d.ts +9 -0
  441. package/infra/index.d.ts +3 -0
  442. package/infrab4a-connect.d.ts +1 -1
  443. package/package.json +4 -1
  444. package/utils/index.d.ts +7 -0
  445. package/utils/is-uuid.d.ts +1 -0
  446. package/utils/mixins/index.d.ts +3 -0
  447. package/utils/mixins/merge-constructor-params.type.d.ts +3 -0
  448. package/utils/mixins/mixin-ctor.type.d.ts +1 -0
  449. package/utils/parse-datetime.d.ts +1 -0
  450. package/utils/types/array-element.type.d.ts +1 -0
  451. package/utils/types/index.d.ts +2 -0
  452. package/esm2015/lib/domain/catalog/index.js +0 -3
  453. package/esm2015/lib/domain/catalog/models/category.js +0 -7
  454. package/esm2015/lib/domain/catalog/models/enums/index.js +0 -2
  455. package/esm2015/lib/domain/catalog/models/enums/shops.enum.js +0 -6
  456. package/esm2015/lib/domain/catalog/models/index.js +0 -6
  457. package/esm2015/lib/domain/catalog/models/product.js +0 -11
  458. package/esm2015/lib/domain/catalog/models/types/category-condition.type.js +0 -2
  459. package/esm2015/lib/domain/catalog/models/types/category-filter.type.js +0 -2
  460. package/esm2015/lib/domain/catalog/models/types/index.js +0 -8
  461. package/esm2015/lib/domain/catalog/models/types/product-review.type.js +0 -2
  462. package/esm2015/lib/domain/catalog/models/types/shops-description.type.js +0 -2
  463. package/esm2015/lib/domain/catalog/models/types/shops-price.type.js +0 -2
  464. package/esm2015/lib/domain/catalog/models/types/stock.type.js +0 -2
  465. package/esm2015/lib/domain/catalog/models/types/variant-grade.type.js +0 -2
  466. package/esm2015/lib/domain/catalog/models/variant.js +0 -7
  467. package/esm2015/lib/domain/catalog/repositories/category.repository.js +0 -2
  468. package/esm2015/lib/domain/catalog/repositories/index.js +0 -5
  469. package/esm2015/lib/domain/catalog/repositories/product.repository.js +0 -2
  470. package/esm2015/lib/domain/catalog/repositories/subscription-product.repository.js +0 -2
  471. package/esm2015/lib/domain/catalog/repositories/variant.repository.js +0 -2
  472. package/esm2015/lib/domain/general/index.js +0 -3
  473. package/esm2015/lib/domain/general/model/base-model-with-identifier-fields.js +0 -2
  474. package/esm2015/lib/domain/general/model/base.model.js +0 -13
  475. package/esm2015/lib/domain/general/model/identifier-fields.js +0 -2
  476. package/esm2015/lib/domain/general/model/index.js +0 -5
  477. package/esm2015/lib/domain/general/model/types/base-model-builder.type.js +0 -2
  478. package/esm2015/lib/domain/general/model/types/index.js +0 -4
  479. package/esm2015/lib/domain/general/model/types/non-function-properties.type.js +0 -2
  480. package/esm2015/lib/domain/general/model/types/non-function-property-name.type.js +0 -2
  481. package/esm2015/lib/domain/general/repository/create.repository.js +0 -2
  482. package/esm2015/lib/domain/general/repository/crud.repository.js +0 -2
  483. package/esm2015/lib/domain/general/repository/delete.repository.js +0 -2
  484. package/esm2015/lib/domain/general/repository/enums/index.js +0 -3
  485. package/esm2015/lib/domain/general/repository/enums/update-option-actions.enum.js +0 -9
  486. package/esm2015/lib/domain/general/repository/enums/where.enum.js +0 -12
  487. package/esm2015/lib/domain/general/repository/find.repository.js +0 -2
  488. package/esm2015/lib/domain/general/repository/get.repository.js +0 -2
  489. package/esm2015/lib/domain/general/repository/index.js +0 -10
  490. package/esm2015/lib/domain/general/repository/read.repository.js +0 -2
  491. package/esm2015/lib/domain/general/repository/types/index.js +0 -6
  492. package/esm2015/lib/domain/general/repository/types/repository-find-filters.type.js +0 -2
  493. package/esm2015/lib/domain/general/repository/types/repository-find-result.type.js +0 -2
  494. package/esm2015/lib/domain/general/repository/types/repository-limit-options.type.js +0 -2
  495. package/esm2015/lib/domain/general/repository/types/repository-order-by-list.type.js +0 -2
  496. package/esm2015/lib/domain/general/repository/types/repository-update-params.type.js +0 -2
  497. package/esm2015/lib/domain/general/repository/update.repository.js +0 -2
  498. package/esm2015/lib/domain/index.js +0 -7
  499. package/esm2015/lib/domain/location/index.js +0 -2
  500. package/esm2015/lib/domain/location/models/address.js +0 -4
  501. package/esm2015/lib/domain/location/models/index.js +0 -3
  502. package/esm2015/lib/domain/location/models/types/index.js +0 -4
  503. package/esm2015/lib/domain/location/models/types/location-bound.type.js +0 -2
  504. package/esm2015/lib/domain/location/models/types/location-geometry.type.js +0 -2
  505. package/esm2015/lib/domain/location/models/types/location-lat-lng.type.js +0 -2
  506. package/esm2015/lib/domain/shop-settings/enums/filter-type.enum.js +0 -21
  507. package/esm2015/lib/domain/shop-settings/enums/index.js +0 -3
  508. package/esm2015/lib/domain/shop-settings/enums/questions-filters.enum.js +0 -21
  509. package/esm2015/lib/domain/shop-settings/helpers/beauty-questions.helper.js +0 -46
  510. package/esm2015/lib/domain/shop-settings/helpers/index.js +0 -2
  511. package/esm2015/lib/domain/shop-settings/index.js +0 -5
  512. package/esm2015/lib/domain/shop-settings/models/home.js +0 -7
  513. package/esm2015/lib/domain/shop-settings/models/index.js +0 -4
  514. package/esm2015/lib/domain/shop-settings/models/shop-menu.js +0 -7
  515. package/esm2015/lib/domain/shop-settings/models/types/banner.type.js +0 -2
  516. package/esm2015/lib/domain/shop-settings/models/types/benefit.type.js +0 -2
  517. package/esm2015/lib/domain/shop-settings/models/types/index.js +0 -5
  518. package/esm2015/lib/domain/shop-settings/models/types/menu-nav.type.js +0 -2
  519. package/esm2015/lib/domain/shop-settings/models/types/sub-menu.type.js +0 -2
  520. package/esm2015/lib/domain/shop-settings/repositories/home.repository.js +0 -2
  521. package/esm2015/lib/domain/shop-settings/repositories/index.js +0 -3
  522. package/esm2015/lib/domain/shop-settings/repositories/shop-menu.repository.js +0 -2
  523. package/esm2015/lib/domain/shopping/index.js +0 -3
  524. package/esm2015/lib/domain/shopping/models/buy-2-win.js +0 -14
  525. package/esm2015/lib/domain/shopping/models/checkout.js +0 -38
  526. package/esm2015/lib/domain/shopping/models/coupons/club-coupon.js +0 -23
  527. package/esm2015/lib/domain/shopping/models/coupons/coupon.js +0 -31
  528. package/esm2015/lib/domain/shopping/models/coupons/enums/discount-type.enum.js +0 -7
  529. package/esm2015/lib/domain/shopping/models/coupons/enums/exclusivities.enum.js +0 -7
  530. package/esm2015/lib/domain/shopping/models/coupons/enums/index.js +0 -3
  531. package/esm2015/lib/domain/shopping/models/coupons/index.js +0 -5
  532. package/esm2015/lib/domain/shopping/models/coupons/store-coupon.js +0 -23
  533. package/esm2015/lib/domain/shopping/models/enums/checkout-types.enum.js +0 -6
  534. package/esm2015/lib/domain/shopping/models/enums/index.js +0 -3
  535. package/esm2015/lib/domain/shopping/models/enums/order-status.enum.js +0 -12
  536. package/esm2015/lib/domain/shopping/models/index.js +0 -12
  537. package/esm2015/lib/domain/shopping/models/line-item.js +0 -4
  538. package/esm2015/lib/domain/shopping/models/order.js +0 -11
  539. package/esm2015/lib/domain/shopping/models/payment.js +0 -169
  540. package/esm2015/lib/domain/shopping/models/shipping-method.js +0 -7
  541. package/esm2015/lib/domain/shopping/models/subscription/checkout.js +0 -28
  542. package/esm2015/lib/domain/shopping/models/subscription/index.js +0 -3
  543. package/esm2015/lib/domain/shopping/models/subscription/plan.js +0 -7
  544. package/esm2015/lib/domain/shopping/models/types/index.js +0 -8
  545. package/esm2015/lib/domain/shopping/models/types/payment-address.type.js +0 -2
  546. package/esm2015/lib/domain/shopping/models/types/payment-billing.type.js +0 -2
  547. package/esm2015/lib/domain/shopping/models/types/payment-card.type.js +0 -2
  548. package/esm2015/lib/domain/shopping/models/types/payment-customer.type.js +0 -2
  549. package/esm2015/lib/domain/shopping/models/types/payment-document.type.js +0 -2
  550. package/esm2015/lib/domain/shopping/models/types/payment-item.type.js +0 -2
  551. package/esm2015/lib/domain/shopping/models/types/payment-shipping.type.js +0 -2
  552. package/esm2015/lib/domain/shopping/repositories/buy-2-win.repository.js +0 -2
  553. package/esm2015/lib/domain/shopping/repositories/checkout.repository.js +0 -2
  554. package/esm2015/lib/domain/shopping/repositories/coupon.repository.js +0 -2
  555. package/esm2015/lib/domain/shopping/repositories/index.js +0 -8
  556. package/esm2015/lib/domain/shopping/repositories/legacy-order.repository.js +0 -2
  557. package/esm2015/lib/domain/shopping/repositories/order.repository.js +0 -2
  558. package/esm2015/lib/domain/shopping/repositories/payment.repository.js +0 -2
  559. package/esm2015/lib/domain/shopping/repositories/subscription/checkout.repository.js +0 -2
  560. package/esm2015/lib/domain/shopping/repositories/subscription/index.js +0 -3
  561. package/esm2015/lib/domain/shopping/repositories/subscription/plan.repository.js +0 -2
  562. package/esm2015/lib/domain/users/errors/index.js +0 -4
  563. package/esm2015/lib/domain/users/errors/unauthorized.error.js +0 -7
  564. package/esm2015/lib/domain/users/errors/user-already-registered.error.js +0 -7
  565. package/esm2015/lib/domain/users/errors/weak-password.error.js +0 -7
  566. package/esm2015/lib/domain/users/index.js +0 -6
  567. package/esm2015/lib/domain/users/models/beauty-profile.js +0 -12
  568. package/esm2015/lib/domain/users/models/enums/accessory-importances.enum.js +0 -7
  569. package/esm2015/lib/domain/users/models/enums/area.enum.js +0 -13
  570. package/esm2015/lib/domain/users/models/enums/beard-problems.enum.js +0 -11
  571. package/esm2015/lib/domain/users/models/enums/beard-sizes.enum.js +0 -9
  572. package/esm2015/lib/domain/users/models/enums/beauty-product-importances.enum.js +0 -8
  573. package/esm2015/lib/domain/users/models/enums/body-problems.enum.js +0 -13
  574. package/esm2015/lib/domain/users/models/enums/body-shapes.enum.js +0 -9
  575. package/esm2015/lib/domain/users/models/enums/body-tattoos.enum.js +0 -7
  576. package/esm2015/lib/domain/users/models/enums/face-skin-oilinesses.enum.js +0 -9
  577. package/esm2015/lib/domain/users/models/enums/face-skin-problems.enum.js +0 -12
  578. package/esm2015/lib/domain/users/models/enums/face-skin-tones.enum.js +0 -10
  579. package/esm2015/lib/domain/users/models/enums/family-incomes.enum.js +0 -10
  580. package/esm2015/lib/domain/users/models/enums/fragrance-importances.enum.js +0 -7
  581. package/esm2015/lib/domain/users/models/enums/hair-colors.enum.js +0 -12
  582. package/esm2015/lib/domain/users/models/enums/hair-problems.enum.js +0 -12
  583. package/esm2015/lib/domain/users/models/enums/hair-strands.enum.js +0 -10
  584. package/esm2015/lib/domain/users/models/enums/hair-types.enum.js +0 -9
  585. package/esm2015/lib/domain/users/models/enums/index.js +0 -21
  586. package/esm2015/lib/domain/users/models/enums/office-position.enum.js +0 -8
  587. package/esm2015/lib/domain/users/models/enums/product-spents.enum.js +0 -10
  588. package/esm2015/lib/domain/users/models/enums/user-type.enum.js +0 -10
  589. package/esm2015/lib/domain/users/models/index.js +0 -8
  590. package/esm2015/lib/domain/users/models/lead.js +0 -7
  591. package/esm2015/lib/domain/users/models/subscription/edition.js +0 -7
  592. package/esm2015/lib/domain/users/models/subscription/enums/billing-status.enum.js +0 -5
  593. package/esm2015/lib/domain/users/models/subscription/enums/edition-status.enum.js +0 -6
  594. package/esm2015/lib/domain/users/models/subscription/enums/index.js +0 -5
  595. package/esm2015/lib/domain/users/models/subscription/enums/payment-type.enum.js +0 -7
  596. package/esm2015/lib/domain/users/models/subscription/enums/status.enum.js +0 -6
  597. package/esm2015/lib/domain/users/models/subscription/index.js +0 -5
  598. package/esm2015/lib/domain/users/models/subscription/payment.js +0 -14
  599. package/esm2015/lib/domain/users/models/subscription/subscription.js +0 -43
  600. package/esm2015/lib/domain/users/models/user-address.js +0 -7
  601. package/esm2015/lib/domain/users/models/user-payment-method.js +0 -7
  602. package/esm2015/lib/domain/users/models/user.js +0 -26
  603. package/esm2015/lib/domain/users/repositories/beauty-profile.repository.js +0 -2
  604. package/esm2015/lib/domain/users/repositories/edition.repository.js +0 -2
  605. package/esm2015/lib/domain/users/repositories/index.js +0 -9
  606. package/esm2015/lib/domain/users/repositories/lead.repository.js +0 -2
  607. package/esm2015/lib/domain/users/repositories/subscription-payment.repository.js +0 -2
  608. package/esm2015/lib/domain/users/repositories/subscription.repository.js +0 -2
  609. package/esm2015/lib/domain/users/repositories/user-address.repository.js +0 -2
  610. package/esm2015/lib/domain/users/repositories/user-payment-method.repository.js +0 -2
  611. package/esm2015/lib/domain/users/repositories/user.repository.js +0 -2
  612. package/esm2015/lib/domain/users/services/authentication.service.js +0 -2
  613. package/esm2015/lib/domain/users/services/index.js +0 -4
  614. package/esm2015/lib/domain/users/services/register.service.js +0 -2
  615. package/esm2015/lib/domain/users/services/types/basic-user-data.type.js +0 -2
  616. package/esm2015/lib/domain/users/services/types/index.js +0 -2
  617. package/esm2015/lib/domain/users/use-cases/authentication.js +0 -40
  618. package/esm2015/lib/domain/users/use-cases/index.js +0 -4
  619. package/esm2015/lib/domain/users/use-cases/register.js +0 -34
  620. package/esm2015/lib/domain/users/use-cases/signout.js +0 -12
  621. package/esm2015/lib/errors/duplicated-results.error.js +0 -7
  622. package/esm2015/lib/errors/index.js +0 -5
  623. package/esm2015/lib/errors/invalid-argument.error.js +0 -7
  624. package/esm2015/lib/errors/not-found.error.js +0 -7
  625. package/esm2015/lib/errors/required-argument.error.js +0 -8
  626. package/esm2015/lib/index.js +0 -5
  627. package/esm2015/lib/infra/firebase/auth/authentication-firebase-auth.service.js +0 -47
  628. package/esm2015/lib/infra/firebase/auth/index.js +0 -3
  629. package/esm2015/lib/infra/firebase/auth/register-firebase-auth.service.js +0 -26
  630. package/esm2015/lib/infra/firebase/auth/types/firebase-user-with-id.type.js +0 -2
  631. package/esm2015/lib/infra/firebase/firestore/index.js +0 -4
  632. package/esm2015/lib/infra/firebase/firestore/mixins/index.js +0 -10
  633. package/esm2015/lib/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +0 -31
  634. package/esm2015/lib/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +0 -10
  635. package/esm2015/lib/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +0 -18
  636. package/esm2015/lib/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +0 -76
  637. package/esm2015/lib/infra/firebase/firestore/mixins/with-firestore.mixin.js +0 -26
  638. package/esm2015/lib/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +0 -24
  639. package/esm2015/lib/infra/firebase/firestore/mixins/with-helpers.mixin.js +0 -17
  640. package/esm2015/lib/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +0 -11
  641. package/esm2015/lib/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +0 -45
  642. package/esm2015/lib/infra/firebase/firestore/models/user-search.js +0 -7
  643. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +0 -78
  644. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/index.js +0 -5
  645. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +0 -23
  646. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +0 -14
  647. package/esm2015/lib/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +0 -12
  648. package/esm2015/lib/infra/firebase/firestore/repositories/index.js +0 -5
  649. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +0 -12
  650. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/index.js +0 -3
  651. package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +0 -12
  652. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +0 -12
  653. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +0 -12
  654. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +0 -12
  655. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +0 -39
  656. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/index.js +0 -9
  657. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +0 -9
  658. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +0 -12
  659. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +0 -12
  660. package/esm2015/lib/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +0 -12
  661. package/esm2015/lib/infra/firebase/firestore/repositories/users/index.js +0 -10
  662. package/esm2015/lib/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +0 -12
  663. package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +0 -14
  664. package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +0 -12
  665. package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +0 -14
  666. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +0 -14
  667. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +0 -14
  668. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-firestore.repository.js +0 -70
  669. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +0 -14
  670. package/esm2015/lib/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +0 -12
  671. package/esm2015/lib/infra/firebase/firestore/types/firestore-sub.repository.type.js +0 -2
  672. package/esm2015/lib/infra/firebase/firestore/types/firestore.helpers.type.js +0 -2
  673. package/esm2015/lib/infra/firebase/firestore/types/firestore.repository.type.js +0 -2
  674. package/esm2015/lib/infra/firebase/firestore/types/index.js +0 -4
  675. package/esm2015/lib/infra/firebase/index.js +0 -3
  676. package/esm2015/lib/infra/index.js +0 -2
  677. package/esm2015/lib/utils/index.js +0 -5
  678. package/esm2015/lib/utils/mixins/base.mixin.js +0 -6
  679. package/esm2015/lib/utils/mixins/index.js +0 -3
  680. package/esm2015/lib/utils/mixins/mixin-ctor.type.js +0 -2
  681. package/esm2015/lib/utils/types/index.js +0 -2
  682. package/esm2015/lib/utils/types/prop.type.js +0 -2
  683. package/esm2015/public-api.js +0 -3
  684. package/lib/domain/catalog/models/category.d.ts +0 -22
  685. package/lib/domain/catalog/models/enums/shops.enum.d.ts +0 -4
  686. package/lib/domain/catalog/models/product.d.ts +0 -33
  687. package/lib/domain/catalog/models/types/product-review.type.d.ts +0 -14
  688. package/lib/domain/catalog/models/variant.d.ts +0 -14
  689. package/lib/domain/catalog/repositories/category.repository.d.ts +0 -12
  690. package/lib/domain/catalog/repositories/product.repository.d.ts +0 -5
  691. package/lib/domain/catalog/repositories/subscription-product.repository.d.ts +0 -4
  692. package/lib/domain/catalog/repositories/variant.repository.d.ts +0 -4
  693. package/lib/domain/general/model/base-model-with-identifier-fields.d.ts +0 -3
  694. package/lib/domain/general/model/base.model.d.ts +0 -6
  695. package/lib/domain/general/model/index.d.ts +0 -4
  696. package/lib/domain/general/model/types/base-model-builder.type.d.ts +0 -5
  697. package/lib/domain/general/model/types/index.d.ts +0 -3
  698. package/lib/domain/general/model/types/non-function-properties.type.d.ts +0 -2
  699. package/lib/domain/general/model/types/non-function-property-name.type.d.ts +0 -3
  700. package/lib/domain/general/repository/create.repository.d.ts +0 -5
  701. package/lib/domain/general/repository/crud.repository.d.ts +0 -7
  702. package/lib/domain/general/repository/delete.repository.d.ts +0 -5
  703. package/lib/domain/general/repository/enums/where.enum.d.ts +0 -10
  704. package/lib/domain/general/repository/find.repository.d.ts +0 -5
  705. package/lib/domain/general/repository/get.repository.d.ts +0 -5
  706. package/lib/domain/general/repository/read.repository.d.ts +0 -5
  707. package/lib/domain/general/repository/types/index.d.ts +0 -5
  708. package/lib/domain/general/repository/types/repository-find-filters.type.d.ts +0 -14
  709. package/lib/domain/general/repository/types/repository-update-params.type.d.ts +0 -11
  710. package/lib/domain/general/repository/update.repository.d.ts +0 -5
  711. package/lib/domain/index.d.ts +0 -6
  712. package/lib/domain/location/models/address.d.ts +0 -21
  713. package/lib/domain/shop-settings/models/home.d.ts +0 -17
  714. package/lib/domain/shop-settings/models/shop-menu.d.ts +0 -7
  715. package/lib/domain/shop-settings/models/types/index.d.ts +0 -4
  716. package/lib/domain/shop-settings/repositories/home.repository.d.ts +0 -4
  717. package/lib/domain/shop-settings/repositories/shop-menu.repository.d.ts +0 -4
  718. package/lib/domain/shopping/models/buy-2-win.d.ts +0 -18
  719. package/lib/domain/shopping/models/checkout.d.ts +0 -28
  720. package/lib/domain/shopping/models/coupons/club-coupon.d.ts +0 -9
  721. package/lib/domain/shopping/models/coupons/coupon.d.ts +0 -28
  722. package/lib/domain/shopping/models/coupons/enums/discount-type.enum.d.ts +0 -5
  723. package/lib/domain/shopping/models/coupons/enums/index.d.ts +0 -2
  724. package/lib/domain/shopping/models/coupons/index.d.ts +0 -4
  725. package/lib/domain/shopping/models/coupons/store-coupon.d.ts +0 -8
  726. package/lib/domain/shopping/models/payment.d.ts +0 -69
  727. package/lib/domain/shopping/models/shipping-method.d.ts +0 -18
  728. package/lib/domain/shopping/models/subscription/checkout.d.ts +0 -23
  729. package/lib/domain/shopping/models/subscription/plan.d.ts +0 -12
  730. package/lib/domain/shopping/repositories/buy-2-win.repository.d.ts +0 -4
  731. package/lib/domain/shopping/repositories/checkout.repository.d.ts +0 -4
  732. package/lib/domain/shopping/repositories/coupon.repository.d.ts +0 -4
  733. package/lib/domain/shopping/repositories/order.repository.d.ts +0 -4
  734. package/lib/domain/shopping/repositories/payment.repository.d.ts +0 -4
  735. package/lib/domain/shopping/repositories/subscription/checkout.repository.d.ts +0 -4
  736. package/lib/domain/shopping/repositories/subscription/plan.repository.d.ts +0 -4
  737. package/lib/domain/users/models/beauty-profile.d.ts +0 -12
  738. package/lib/domain/users/models/lead.d.ts +0 -9
  739. package/lib/domain/users/models/subscription/edition.d.ts +0 -15
  740. package/lib/domain/users/models/subscription/payment.d.ts +0 -14
  741. package/lib/domain/users/models/subscription/subscription.d.ts +0 -30
  742. package/lib/domain/users/models/user-address.d.ts +0 -7
  743. package/lib/domain/users/models/user-payment-method.d.ts +0 -13
  744. package/lib/domain/users/models/user.d.ts +0 -24
  745. package/lib/domain/users/repositories/beauty-profile.repository.d.ts +0 -4
  746. package/lib/domain/users/repositories/edition.repository.d.ts +0 -4
  747. package/lib/domain/users/repositories/lead.repository.d.ts +0 -4
  748. package/lib/domain/users/repositories/subscription-payment.repository.d.ts +0 -4
  749. package/lib/domain/users/repositories/subscription.repository.d.ts +0 -4
  750. package/lib/domain/users/repositories/user-address.repository.d.ts +0 -4
  751. package/lib/domain/users/repositories/user-payment-method.repository.d.ts +0 -4
  752. package/lib/domain/users/repositories/user.repository.d.ts +0 -6
  753. package/lib/domain/users/services/authentication.service.d.ts +0 -11
  754. package/lib/domain/users/use-cases/index.d.ts +0 -3
  755. package/lib/index.d.ts +0 -4
  756. package/lib/infra/firebase/auth/authentication-firebase-auth.service.d.ts +0 -11
  757. package/lib/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +0 -17
  758. package/lib/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +0 -29
  759. package/lib/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +0 -15
  760. package/lib/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +0 -20
  761. package/lib/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +0 -15
  762. package/lib/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +0 -15
  763. package/lib/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +0 -10
  764. package/lib/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +0 -14
  765. package/lib/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +0 -16
  766. package/lib/infra/firebase/firestore/models/user-search.d.ts +0 -9
  767. package/lib/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +0 -55
  768. package/lib/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +0 -50
  769. package/lib/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +0 -60
  770. package/lib/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +0 -49
  771. package/lib/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +0 -49
  772. package/lib/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +0 -49
  773. package/lib/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +0 -49
  774. package/lib/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +0 -49
  775. package/lib/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +0 -49
  776. package/lib/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +0 -53
  777. package/lib/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +0 -49
  778. package/lib/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +0 -49
  779. package/lib/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +0 -49
  780. package/lib/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +0 -49
  781. package/lib/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +0 -60
  782. package/lib/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +0 -49
  783. package/lib/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +0 -60
  784. package/lib/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +0 -60
  785. package/lib/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +0 -60
  786. package/lib/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +0 -60
  787. package/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +0 -60
  788. package/lib/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +0 -50
  789. package/lib/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +0 -6
  790. package/lib/infra/firebase/firestore/types/firestore.helpers.type.d.ts +0 -8
  791. package/lib/infra/firebase/firestore/types/firestore.repository.type.d.ts +0 -8
  792. package/lib/infra/index.d.ts +0 -1
  793. package/lib/utils/index.d.ts +0 -4
  794. package/lib/utils/mixins/index.d.ts +0 -2
  795. package/lib/utils/mixins/mixin-ctor.type.d.ts +0 -1
  796. package/lib/utils/types/index.d.ts +0 -1
  797. package/public-api.d.ts +0 -2
  798. /package/{lib/domain → domain}/catalog/index.d.ts +0 -0
  799. /package/{lib/domain → domain}/catalog/models/enums/index.d.ts +0 -0
  800. /package/{lib/domain → domain}/catalog/models/index.d.ts +0 -0
  801. /package/{lib/domain → domain}/catalog/models/types/category-condition.type.d.ts +0 -0
  802. /package/{lib/domain → domain}/catalog/models/types/category-filter.type.d.ts +0 -0
  803. /package/{lib/domain → domain}/catalog/models/types/index.d.ts +0 -0
  804. /package/{lib/domain → domain}/catalog/models/types/shops-description.type.d.ts +0 -0
  805. /package/{lib/domain → domain}/catalog/models/types/shops-price.type.d.ts +0 -0
  806. /package/{lib/domain → domain}/catalog/models/types/stock.type.d.ts +0 -0
  807. /package/{lib/domain → domain}/catalog/models/types/variant-grade.type.d.ts +0 -0
  808. /package/{lib/domain → domain}/catalog/repositories/index.d.ts +0 -0
  809. /package/{lib/domain/general → domain/generic}/index.d.ts +0 -0
  810. /package/{lib/domain/general → domain/generic}/model/identifier-fields.d.ts +0 -0
  811. /package/{lib/domain/general → domain/generic}/repository/enums/index.d.ts +0 -0
  812. /package/{lib/domain/general → domain/generic}/repository/enums/update-option-actions.enum.d.ts +0 -0
  813. /package/{lib/domain/general → domain/generic}/repository/index.d.ts +0 -0
  814. /package/{lib/domain/general → domain/generic}/repository/types/repository-find-result.type.d.ts +0 -0
  815. /package/{lib/domain/general → domain/generic}/repository/types/repository-limit-options.type.d.ts +0 -0
  816. /package/{lib/domain/general → domain/generic}/repository/types/repository-order-by-list.type.d.ts +0 -0
  817. /package/{lib/domain → domain}/location/index.d.ts +0 -0
  818. /package/{lib/domain → domain}/location/models/index.d.ts +0 -0
  819. /package/{lib/domain → domain}/location/models/types/index.d.ts +0 -0
  820. /package/{lib/domain → domain}/location/models/types/location-bound.type.d.ts +0 -0
  821. /package/{lib/domain → domain}/location/models/types/location-geometry.type.d.ts +0 -0
  822. /package/{lib/domain → domain}/location/models/types/location-lat-lng.type.d.ts +0 -0
  823. /package/{lib/domain → domain}/shop-settings/enums/filter-type.enum.d.ts +0 -0
  824. /package/{lib/domain → domain}/shop-settings/enums/index.d.ts +0 -0
  825. /package/{lib/domain → domain}/shop-settings/enums/questions-filters.enum.d.ts +0 -0
  826. /package/{lib/domain → domain}/shop-settings/helpers/beauty-questions.helper.d.ts +0 -0
  827. /package/{lib/domain → domain}/shop-settings/helpers/index.d.ts +0 -0
  828. /package/{lib/domain → domain}/shop-settings/index.d.ts +0 -0
  829. /package/{lib/domain → domain}/shop-settings/models/index.d.ts +0 -0
  830. /package/{lib/domain → domain}/shop-settings/models/types/banner.type.d.ts +0 -0
  831. /package/{lib/domain → domain}/shop-settings/models/types/benefit.type.d.ts +0 -0
  832. /package/{lib/domain → domain}/shop-settings/models/types/menu-nav.type.d.ts +0 -0
  833. /package/{lib/domain → domain}/shop-settings/models/types/sub-menu.type.d.ts +0 -0
  834. /package/{lib/domain → domain}/shop-settings/repositories/index.d.ts +0 -0
  835. /package/{lib/domain → domain}/shopping/index.d.ts +0 -0
  836. /package/{lib/domain → domain}/shopping/models/coupons/enums/exclusivities.enum.d.ts +0 -0
  837. /package/{lib/domain → domain}/shopping/models/enums/checkout-types.enum.d.ts +0 -0
  838. /package/{lib/domain → domain}/shopping/models/enums/index.d.ts +0 -0
  839. /package/{lib/domain → domain}/shopping/models/enums/order-status.enum.d.ts +0 -0
  840. /package/{lib/domain → domain}/shopping/models/index.d.ts +0 -0
  841. /package/{lib/domain → domain}/shopping/models/line-item.d.ts +0 -0
  842. /package/{lib/domain → domain}/shopping/models/order.d.ts +0 -0
  843. /package/{lib/domain → domain}/shopping/models/subscription/index.d.ts +0 -0
  844. /package/{lib/domain → domain}/shopping/models/types/index.d.ts +0 -0
  845. /package/{lib/domain → domain}/shopping/models/types/payment-address.type.d.ts +0 -0
  846. /package/{lib/domain → domain}/shopping/models/types/payment-billing.type.d.ts +0 -0
  847. /package/{lib/domain → domain}/shopping/models/types/payment-card.type.d.ts +0 -0
  848. /package/{lib/domain → domain}/shopping/models/types/payment-customer.type.d.ts +0 -0
  849. /package/{lib/domain → domain}/shopping/models/types/payment-document.type.d.ts +0 -0
  850. /package/{lib/domain → domain}/shopping/models/types/payment-item.type.d.ts +0 -0
  851. /package/{lib/domain → domain}/shopping/models/types/payment-shipping.type.d.ts +0 -0
  852. /package/{lib/domain → domain}/shopping/repositories/index.d.ts +0 -0
  853. /package/{lib/domain → domain}/shopping/repositories/legacy-order.repository.d.ts +0 -0
  854. /package/{lib/domain → domain}/shopping/repositories/subscription/index.d.ts +0 -0
  855. /package/{lib/domain → domain}/users/errors/index.d.ts +0 -0
  856. /package/{lib/domain → domain}/users/errors/unauthorized.error.d.ts +0 -0
  857. /package/{lib/domain → domain}/users/errors/user-already-registered.error.d.ts +0 -0
  858. /package/{lib/domain → domain}/users/errors/weak-password.error.d.ts +0 -0
  859. /package/{lib/domain → domain}/users/index.d.ts +0 -0
  860. /package/{lib/domain → domain}/users/models/enums/accessory-importances.enum.d.ts +0 -0
  861. /package/{lib/domain → domain}/users/models/enums/area.enum.d.ts +0 -0
  862. /package/{lib/domain → domain}/users/models/enums/beard-problems.enum.d.ts +0 -0
  863. /package/{lib/domain → domain}/users/models/enums/beard-sizes.enum.d.ts +0 -0
  864. /package/{lib/domain → domain}/users/models/enums/beauty-product-importances.enum.d.ts +0 -0
  865. /package/{lib/domain → domain}/users/models/enums/body-problems.enum.d.ts +0 -0
  866. /package/{lib/domain → domain}/users/models/enums/body-shapes.enum.d.ts +0 -0
  867. /package/{lib/domain → domain}/users/models/enums/body-tattoos.enum.d.ts +0 -0
  868. /package/{lib/domain → domain}/users/models/enums/face-skin-oilinesses.enum.d.ts +0 -0
  869. /package/{lib/domain → domain}/users/models/enums/face-skin-problems.enum.d.ts +0 -0
  870. /package/{lib/domain → domain}/users/models/enums/face-skin-tones.enum.d.ts +0 -0
  871. /package/{lib/domain → domain}/users/models/enums/family-incomes.enum.d.ts +0 -0
  872. /package/{lib/domain → domain}/users/models/enums/fragrance-importances.enum.d.ts +0 -0
  873. /package/{lib/domain → domain}/users/models/enums/hair-colors.enum.d.ts +0 -0
  874. /package/{lib/domain → domain}/users/models/enums/hair-problems.enum.d.ts +0 -0
  875. /package/{lib/domain → domain}/users/models/enums/hair-strands.enum.d.ts +0 -0
  876. /package/{lib/domain → domain}/users/models/enums/hair-types.enum.d.ts +0 -0
  877. /package/{lib/domain → domain}/users/models/enums/index.d.ts +0 -0
  878. /package/{lib/domain → domain}/users/models/enums/office-position.enum.d.ts +0 -0
  879. /package/{lib/domain → domain}/users/models/enums/product-spents.enum.d.ts +0 -0
  880. /package/{lib/domain → domain}/users/models/enums/user-type.enum.d.ts +0 -0
  881. /package/{lib/domain → domain}/users/models/index.d.ts +0 -0
  882. /package/{lib/domain → domain}/users/models/subscription/enums/billing-status.enum.d.ts +0 -0
  883. /package/{lib/domain → domain}/users/models/subscription/enums/edition-status.enum.d.ts +0 -0
  884. /package/{lib/domain → domain}/users/models/subscription/enums/index.d.ts +0 -0
  885. /package/{lib/domain → domain}/users/models/subscription/enums/payment-type.enum.d.ts +0 -0
  886. /package/{lib/domain → domain}/users/models/subscription/enums/status.enum.d.ts +0 -0
  887. /package/{lib/domain → domain}/users/models/subscription/index.d.ts +0 -0
  888. /package/{lib/domain → domain}/users/repositories/index.d.ts +0 -0
  889. /package/{lib/domain → domain}/users/services/index.d.ts +0 -0
  890. /package/{lib/domain → domain}/users/services/register.service.d.ts +0 -0
  891. /package/{lib/domain → domain}/users/services/types/basic-user-data.type.d.ts +0 -0
  892. /package/{lib/domain → domain}/users/services/types/index.d.ts +0 -0
  893. /package/{lib/domain → domain}/users/use-cases/authentication.d.ts +0 -0
  894. /package/{lib/domain → domain}/users/use-cases/register.d.ts +0 -0
  895. /package/{lib/domain → domain}/users/use-cases/signout.d.ts +0 -0
  896. /package/{lib/errors → errors}/duplicated-results.error.d.ts +0 -0
  897. /package/{lib/errors → errors}/index.d.ts +0 -0
  898. /package/{lib/errors → errors}/invalid-argument.error.d.ts +0 -0
  899. /package/{lib/errors → errors}/not-found.error.d.ts +0 -0
  900. /package/{lib/errors → errors}/required-argument.error.d.ts +0 -0
  901. /package/{lib/infra → infra}/firebase/auth/index.d.ts +0 -0
  902. /package/{lib/infra → infra}/firebase/auth/register-firebase-auth.service.d.ts +0 -0
  903. /package/{lib/infra → infra}/firebase/auth/types/firebase-user-with-id.type.d.ts +0 -0
  904. /package/{lib/infra → infra}/firebase/firestore/index.d.ts +0 -0
  905. /package/{lib/infra → infra}/firebase/firestore/mixins/index.d.ts +0 -0
  906. /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/index.d.ts +0 -0
  907. /package/{lib/infra → infra}/firebase/firestore/repositories/index.d.ts +0 -0
  908. /package/{lib/infra → infra}/firebase/firestore/repositories/shop-settings/index.d.ts +0 -0
  909. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/index.d.ts +0 -0
  910. /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +0 -0
  911. /package/{lib/infra → infra}/firebase/firestore/repositories/users/index.d.ts +0 -0
  912. /package/{lib/infra → infra}/firebase/firestore/types/index.d.ts +0 -0
  913. /package/{lib/infra → infra}/firebase/index.d.ts +0 -0
  914. /package/{lib/utils → utils}/mixins/base.mixin.d.ts +0 -0
  915. /package/{lib/utils → utils}/types/prop.type.d.ts +0 -0
@@ -0,0 +1,11 @@
1
+ import { ModelBaseStructure, CrudRepository } from '../../../domain';
2
+ import { GraphQLRepository } from '../types';
3
+ import { MergeConstructorParams, MixinCtor } from '../../../utils';
4
+ import { CreateConstructorParams } from './with-create-hasura-graphql.mixin';
5
+ import { ConstructorParams } from './with-hasura-graphql.mixin';
6
+ import { DeleteConstructorParams } from './with-delete-hasura-graphql.mixin';
7
+ import { GetConstructorParams } from './with-get-hasura-graphql.mixin';
8
+ import { UpdateConstructorParams, UpdateHasuraGraphQLRepositoryType } from './with-update-hasura-graphql.mixin';
9
+ export declare const withCrudHasuraGraphQL: <TBase extends ModelBaseStructure<any, any>, Repository = CrudRepository<TBase, import("../../../domain").CrudParams<TBase>>, TMixinBase extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: MixinCtor<GraphQLRepository<TBase>, any[]> & TMixinBase) => MixinCtor<GraphQLRepository<TBase> & Repository & import("../../../domain").UpdateRepository<TBase, import("../../../domain").RepositoryUpdateParams<TBase>> & {
10
+ paramsToPlain(params: import("../../../domain").RepositoryUpdateParams<TBase>): Partial<TBase>;
11
+ }, MergeConstructorParams<ConstructorParams<TBase> & CreateConstructorParams & DeleteConstructorParams & GetConstructorParams & UpdateConstructorParams, ConstructorParameters<TMixinBase>>>;
@@ -0,0 +1,7 @@
1
+ import { DeleteRepository, DeleteRepositoryParams, ModelBaseStructure } from '../../../domain';
2
+ import { GraphQLRepository } from '../types';
3
+ import { MergeConstructorParams, MixinCtor } from '../../../utils';
4
+ export declare type DeleteConstructorParams = {
5
+ deleteGraphQLOperation?: string;
6
+ };
7
+ export declare const withDeleteHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => MixinCtor<GraphQLRepository<MBase> & DeleteRepository<MBase, DeleteRepositoryParams<MBase>> & InstanceType<TMixinBase>, MergeConstructorParams<DeleteConstructorParams, ConstructorParameters<TMixinBase>>>;
@@ -0,0 +1,30 @@
1
+ import { ModelBaseStructure, NonFunctionAndIdentifierPropertyNames, NonFunctionPropertyNames, RepositoryFindFielters, RepositoryFindFieltersOptions, RepositoryFindResult, RepositoryLimitOptions, RepositoryOrderBy } from '../../../domain';
2
+ import { ColumnOptions, GraphQLRepository, HasuraGraphQLFields, VariableOptions } from '../types';
3
+ import { HasuraGraphQLWhere } from '../enums';
4
+ import { MixinCtor } from '../../../utils';
5
+ export declare const withFindHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => {
6
+ new (...args: any[]): {
7
+ find(options?: {
8
+ filters?: RepositoryFindFielters<MBase>;
9
+ limits?: RepositoryLimitOptions<MBase>;
10
+ orderBy?: RepositoryOrderBy<MBase>;
11
+ }): Promise<RepositoryFindResult<MBase>>;
12
+ makeGraphQLWhere: (filter: RepositoryFindFielters<MBase>, fields: HasuraGraphQLFields<MBase>) => VariableOptions;
13
+ buildWhereSentence: (field: NonFunctionAndIdentifierPropertyNames<MBase>, options: RepositoryFindFieltersOptions<MBase, NonFunctionPropertyNames<MBase, keyof MBase>>, fields: HasuraGraphQLFields<MBase>) => VariableOptions;
14
+ buildOperatorSentence: (options: RepositoryFindFieltersOptions<MBase, any>, fieldOption: ColumnOptions<any, any>) => VariableOptions;
15
+ getHasuraOperator: (options: RepositoryFindFieltersOptions<MBase, NonFunctionPropertyNames<MBase, keyof MBase>>, fieldOption: ColumnOptions<any, any>) => HasuraGraphQLWhere;
16
+ getHasuraJsonbOperator: (options: RepositoryFindFieltersOptions<MBase, NonFunctionPropertyNames<MBase, keyof MBase>>) => HasuraGraphQLWhere;
17
+ tableName: string;
18
+ model: import("../../../domain").BaseModelBuilder<MBase, NonFunctionAndIdentifierPropertyNames<MBase>, MBase & {
19
+ prototype: unknown;
20
+ }>;
21
+ fields: HasuraGraphQLFields<MBase>;
22
+ endpoint: string;
23
+ authOptions: import("../types").HasuraGraphQLAuthOptions;
24
+ mutation: <ReturnFields = any>(operation: string, fields?: HasuraGraphQLFields<MBase>, variables?: VariableOptions) => Promise<ReturnFields>;
25
+ query: <ReturnFields_1 = any>(operation: string | import("../types").GraphQLParams<MBase>[], fields?: HasuraGraphQLFields<MBase>, variables?: VariableOptions) => Promise<ReturnFields_1>;
26
+ getAttributeGraphQLTypeOf: <FieldValue>(value: FieldValue) => string;
27
+ convertDataFromHasura: (data: Record<string, string | number>) => MBase;
28
+ convertDataToHasura(instance: MBase, update?: boolean): Record<string, string | number>;
29
+ };
30
+ } & TMixinBase;
@@ -0,0 +1,24 @@
1
+ import { ModelBaseStructure, GetRepositoryParams } from '../../../domain';
2
+ import { GraphQLRepository } from '../types';
3
+ import { MixinCtor } from '../../../utils';
4
+ export declare type GetConstructorParams = {
5
+ getGraphQLOperation?: string;
6
+ };
7
+ export declare const withGetHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => {
8
+ new (...params: any[]): {
9
+ getGraphQLOperation: string;
10
+ get(identifiers: GetRepositoryParams<MBase>): Promise<MBase>;
11
+ tableName: string;
12
+ model: import("../../../domain").BaseModelBuilder<MBase, import("../../../domain").NonFunctionAndIdentifierPropertyNames<MBase>, MBase & {
13
+ prototype: unknown;
14
+ }>;
15
+ fields: import("../types").HasuraGraphQLFields<MBase>;
16
+ endpoint: string;
17
+ authOptions: import("../types").HasuraGraphQLAuthOptions;
18
+ mutation: <ReturnFields = any>(operation: string, fields?: import("../types").HasuraGraphQLFields<MBase>, variables?: import("../types").VariableOptions) => Promise<ReturnFields>;
19
+ query: <ReturnFields_1 = any>(operation: string | import("../types").GraphQLParams<MBase>[], fields?: import("../types").HasuraGraphQLFields<MBase>, variables?: import("../types").VariableOptions) => Promise<ReturnFields_1>;
20
+ getAttributeGraphQLTypeOf: <FieldValue>(value: FieldValue) => string;
21
+ convertDataFromHasura: (data: Record<string, string | number>) => MBase;
22
+ convertDataToHasura(instance: MBase, update?: boolean): Record<string, string | number>;
23
+ };
24
+ } & TMixinBase;
@@ -0,0 +1,11 @@
1
+ import { GraphQLRepository, HasuraGraphQLAuthOptions, HasuraGraphQLFields } from '../types';
2
+ import { MergeConstructorParams, MixinCtor } from '../../../utils';
3
+ import { BaseModelBuilder, ModelBaseStructure } from '../../../domain';
4
+ export declare type ConstructorParams<Model extends ModelBaseStructure> = {
5
+ tableName: string;
6
+ model: BaseModelBuilder<Model>;
7
+ fields: HasuraGraphQLFields<Model>;
8
+ endpoint: string;
9
+ authOptions: HasuraGraphQLAuthOptions;
10
+ };
11
+ export declare const withHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, T extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: T) => MixinCtor<GraphQLRepository<MBase>, MergeConstructorParams<ConstructorParams<MBase>, ConstructorParameters<T>>>;
@@ -0,0 +1,14 @@
1
+ import { ModelBaseStructure, RepositoryUpdateParams, UpdateRepository } from '../../../domain';
2
+ import { GraphQLRepository } from '../types';
3
+ import { MergeConstructorParams, MixinCtor } from '../../../utils';
4
+ export declare type UpdateHasuraGraphQLRepositoryType<MBase extends ModelBaseStructure> = UpdateRepository<MBase> & {
5
+ paramsToPlain(params: RepositoryUpdateParams<MBase>): Partial<MBase>;
6
+ };
7
+ export declare type UpdateConstructorParams = {
8
+ updateGraphQLOperation?: string;
9
+ updateGraphQLObjectType?: string;
10
+ updateGraphQLPKType?: string;
11
+ };
12
+ export declare const withUpdateHasuraGraphQL: <MBase extends ModelBaseStructure<any, any>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => MixinCtor<GraphQLRepository<MBase> & UpdateRepository<MBase, RepositoryUpdateParams<MBase>> & {
13
+ paramsToPlain(params: RepositoryUpdateParams<MBase>): Partial<MBase>;
14
+ } & InstanceType<TMixinBase>, MergeConstructorParams<UpdateConstructorParams, ConstructorParameters<TMixinBase>>>;
@@ -0,0 +1,6 @@
1
+ import { Category } from '../../../domain';
2
+ export declare class CategoryHasuraGraphQL extends Category {
3
+ firestoreId?: string;
4
+ brandCondition?: string;
5
+ tagCondition?: string[];
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './category-hasura-graphql';
2
+ export * from './product-hasura-graphql';
3
+ export * from './variant-hasura-graphql';
@@ -0,0 +1,7 @@
1
+ import { Product } from '../../../domain';
2
+ export declare class ProductHasuraGraphQL extends Product {
3
+ firestoreId?: string;
4
+ fullPrice?: number;
5
+ subscriberDiscountPercentage?: number;
6
+ subscriberPrice?: number;
7
+ }
@@ -0,0 +1,9 @@
1
+ import { Variant } from '../../../domain';
2
+ export declare class VariantHasuraGraphQL extends Variant {
3
+ firestoreId?: string;
4
+ fullPrice?: number;
5
+ subscriberDiscountPercentage?: number;
6
+ subscriberPrice?: number;
7
+ name?: string;
8
+ hasVariants?: boolean;
9
+ }
@@ -0,0 +1,22 @@
1
+ import { Category, CategoryRepository, GetRepositoryParams, Product, Shops } from '../../../../domain';
2
+ import { CategoryHasuraGraphQL } from '../../models';
3
+ import { HasuraGraphQLAuthOptions } from '../../types';
4
+ import { ProductHasuraGraphQLRepository } from './product-hasura-graphql.repository';
5
+ declare const CategoryHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<CategoryHasuraGraphQL> & import("../../../../domain").CrudRepository<CategoryHasuraGraphQL, import("../../../../domain").CrudParams<CategoryHasuraGraphQL>> & import("../../../../domain").UpdateRepository<CategoryHasuraGraphQL, import("../../../../domain").RepositoryUpdateParams<CategoryHasuraGraphQL>> & {
6
+ paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<CategoryHasuraGraphQL>): Partial<CategoryHasuraGraphQL>;
7
+ }, [import("../../mixins").ConstructorParams<CategoryHasuraGraphQL> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
8
+ export declare class CategoryHasuraGraphQLRepository extends CategoryHasuraGraphQLRepository_base implements CategoryRepository {
9
+ private readonly productRepository;
10
+ constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions, productRepository: ProductHasuraGraphQLRepository);
11
+ get(identifiers: GetRepositoryParams<CategoryHasuraGraphQL>): Promise<CategoryHasuraGraphQL>;
12
+ getCategoryBySlug(slug: string, shop: Shops): Promise<Category>;
13
+ getCategoriesForHome(categoryIds: string[], limit?: number): Promise<{
14
+ category: Category;
15
+ products: Product[];
16
+ }[]>;
17
+ mountCategory(category: Category, options?: {
18
+ limit?: number;
19
+ hasStock?: boolean;
20
+ }): Promise<Product[]>;
21
+ }
22
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './category-hasura-graphql.repository';
2
+ export * from './product-hasura-graphql.repository';
3
+ export * from './variant-hasura-graphql.repository';
@@ -0,0 +1,11 @@
1
+ import { ProductRepository, Shops } from '../../../../domain';
2
+ import { ProductHasuraGraphQL } from '../../models';
3
+ import { HasuraGraphQLAuthOptions } from '../../types';
4
+ declare const ProductHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<ProductHasuraGraphQL> & import("../../../../domain").CrudRepository<ProductHasuraGraphQL, import("../../../../domain").CrudParams<ProductHasuraGraphQL>> & import("../../../../domain").UpdateRepository<ProductHasuraGraphQL, import("../../../../domain").RepositoryUpdateParams<ProductHasuraGraphQL>> & {
5
+ paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<ProductHasuraGraphQL>): Partial<ProductHasuraGraphQL>;
6
+ }, [import("../../mixins").ConstructorParams<ProductHasuraGraphQL> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
7
+ export declare class ProductHasuraGraphQLRepository extends ProductHasuraGraphQLRepository_base implements ProductRepository {
8
+ constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions);
9
+ getBySlug(slug: string, shop: Shops): Promise<ProductHasuraGraphQL>;
10
+ }
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import { HasuraGraphQLAuthOptions } from '../../types';
2
+ import { VariantHasuraGraphQL } from '../../models';
3
+ import { VariantRepository } from '../../../../domain';
4
+ declare const VariantHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<VariantHasuraGraphQL> & import("../../../../domain").CrudRepository<VariantHasuraGraphQL, import("../../../../domain").CrudParams<VariantHasuraGraphQL>> & import("../../../../domain").UpdateRepository<VariantHasuraGraphQL, import("../../../../domain").RepositoryUpdateParams<VariantHasuraGraphQL>> & {
5
+ paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<VariantHasuraGraphQL>): Partial<VariantHasuraGraphQL>;
6
+ }, [import("../../mixins").ConstructorParams<VariantHasuraGraphQL> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
7
+ export declare class VariantHasuraGraphQLRepository extends VariantHasuraGraphQLRepository_base implements VariantRepository {
8
+ constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions);
9
+ }
10
+ export {};
@@ -0,0 +1 @@
1
+ export * from './catalog';
@@ -0,0 +1,2 @@
1
+ import { NestedField } from './nested-field.type';
2
+ export declare type Fields = Array<string | object | NestedField | 'aggregate' | 'nodes'>;
@@ -0,0 +1,21 @@
1
+ import { BaseModelBuilder, ModelBaseStructure } from '../../../domain';
2
+ import { HasuraGraphQLAuthOptions } from './hasura-graphql-auth-options.type';
3
+ import { HasuraGraphQLFields } from './hasura-graphql-fields.type';
4
+ import { VariableOptions } from './variable-options.type';
5
+ export declare type GraphQLParams<Model extends ModelBaseStructure> = {
6
+ operation: string;
7
+ fields?: HasuraGraphQLFields<Model>;
8
+ variables?: VariableOptions;
9
+ };
10
+ export declare type GraphQLRepository<Model extends ModelBaseStructure> = {
11
+ tableName: string;
12
+ model: BaseModelBuilder<Model>;
13
+ fields: HasuraGraphQLFields<Model>;
14
+ endpoint: string;
15
+ authOptions: HasuraGraphQLAuthOptions;
16
+ mutation: <ReturnFields = any>(operation: string, fields?: HasuraGraphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
17
+ query: <ReturnFields = any>(operation: string | GraphQLParams<Model>[], fields?: HasuraGraphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
18
+ getAttributeGraphQLTypeOf: <FieldValue>(value: FieldValue) => string;
19
+ convertDataFromHasura: (data: Record<string, string | number>) => Model;
20
+ convertDataToHasura(instance: Model, update?: boolean): Record<string, string | number>;
21
+ };
@@ -0,0 +1,8 @@
1
+ export declare type HasuraGraphQLAuthOptions = {
2
+ adminSecret?: string;
3
+ authRole?: {
4
+ role: string;
5
+ userId: string;
6
+ };
7
+ authToken?: string;
8
+ };
@@ -0,0 +1,42 @@
1
+ import { ModelBaseStructure, NonFunctionAndIdentifierPropertyNames, RepositoryFindField } from '../../../domain';
2
+ import { PropType } from '../../../utils';
3
+ import { HasuraGraphQLColumnType } from '../enums';
4
+ export declare type ColumnOptions<FieldType, Model extends ModelBaseStructure, ValueFrom = string | number | boolean | Record<string, any>> = {
5
+ type?: HasuraGraphQLColumnType;
6
+ columnName?: string;
7
+ fields?: any[];
8
+ foreignKeyColumn?: any;
9
+ from?: (value: ValueFrom | ValueFrom[], data?: any) => FieldType;
10
+ to?: (value: FieldType, instance?: Model) => ValueFrom;
11
+ bindFindFilter?: (sentence: RepositoryFindField<Model, keyof Model>) => Record<string, RepositoryFindField<any, any> | ValueFrom> | RepositoryFindField<any, any> | ValueFrom;
12
+ bindPersistData?: (value: FieldType, instance?: Model) => Record<string, ValueFrom>;
13
+ };
14
+ export declare type ColumnModelOptions<Model extends ModelBaseStructure, ParentModel extends ModelBaseStructure> = ColumnOptions<Model, ParentModel> & {
15
+ fields?: HasuraGraphQLFields<Model>;
16
+ foreignKeyColumn?: {
17
+ [key in NonFunctionAndIdentifierPropertyNames<Model>]?: string;
18
+ };
19
+ };
20
+ export declare type AggregateOptionNames = 'avg' | 'count' | 'max' | 'min' | 'stddev' | 'stddev_pop' | 'stddev_samp' | 'sum' | 'var_pop' | 'var_samp' | 'variance';
21
+ export declare type AggregateOptionFields<Model extends ModelBaseStructure, Type, Properties extends keyof Model = keyof Model> = {
22
+ [K in Properties]: PropType<Model, K> extends Type ? K : never;
23
+ }[Properties];
24
+ export declare type AggregateOptions<Model extends ModelBaseStructure> = {
25
+ avg?: Array<AggregateOptionFields<Model, number>>;
26
+ max?: Array<AggregateOptionFields<Model, number | Date>>;
27
+ min?: Array<AggregateOptionFields<Model, number | Date>>;
28
+ stddev?: Array<AggregateOptionFields<Model, number>>;
29
+ stddev_pop?: Array<AggregateOptionFields<Model, number>>;
30
+ stddev_samp?: Array<AggregateOptionFields<Model, number>>;
31
+ sum?: Array<AggregateOptionFields<Model, number>>;
32
+ var_pop?: Array<AggregateOptionFields<Model, number>>;
33
+ var_samp?: Array<AggregateOptionFields<Model, number>>;
34
+ variance?: Array<AggregateOptionFields<Model, number>>;
35
+ };
36
+ export declare type HasuraGraphQLFields<Model extends ModelBaseStructure> = (NonFunctionAndIdentifierPropertyNames<Model> | {
37
+ [key in NonFunctionAndIdentifierPropertyNames<Model>]?: PropType<Model, key> extends ModelBaseStructure ? HasuraGraphQLFields<PropType<Model, key>> : never;
38
+ } | {
39
+ [key in NonFunctionAndIdentifierPropertyNames<Model>]?: key extends 'aggregate' ? never : PropType<Model, key> extends ModelBaseStructure ? ColumnModelOptions<PropType<Model, key>, Model> : ColumnOptions<PropType<Model, key>, Model>;
40
+ } | {
41
+ aggregate: Array<AggregateOptions<Model> | 'count'>;
42
+ })[];
@@ -0,0 +1,7 @@
1
+ export declare type HasuraGraphQLHeaders = {
2
+ Authorization?: string;
3
+ 'Content-Type': string;
4
+ 'X-Hasura-Admin-Secret'?: string;
5
+ 'X-Hasura-Role'?: string;
6
+ 'X-Hasura-User-Id'?: string;
7
+ };
@@ -0,0 +1,8 @@
1
+ export * from './fields.type';
2
+ export * from './graphql.repository.type';
3
+ export * from './nested-field.type';
4
+ export * from './query-builder-options.type';
5
+ export * from './variable-options.type';
6
+ export * from './hasura-graphql-auth-options.type';
7
+ export * from './hasura-graphql-fields.type';
8
+ export * from './hasura-graphql-headers.type';
@@ -0,0 +1,7 @@
1
+ import { Fields } from './fields.type';
2
+ import { QueryBuilderOptions } from './query-builder-options.type';
3
+ export declare type NestedField = {
4
+ operation: string;
5
+ variables: QueryBuilderOptions[];
6
+ fields: Fields;
7
+ };
@@ -0,0 +1,7 @@
1
+ import { Fields } from './fields.type';
2
+ import { VariableOptions } from './variable-options.type';
3
+ export interface QueryBuilderOptions {
4
+ operation: string;
5
+ fields?: Fields;
6
+ variables?: VariableOptions;
7
+ }
@@ -0,0 +1,9 @@
1
+ export declare type VariableOptions = {
2
+ type?: string;
3
+ name?: string;
4
+ value: any;
5
+ list?: boolean;
6
+ required?: boolean;
7
+ } | {
8
+ [k: string]: any;
9
+ };
@@ -0,0 +1,3 @@
1
+ export * from './elasticsearch';
2
+ export * from './firebase';
3
+ export * from './hasura-graphql';
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  /// <amd-module name="@infrab4a/connect" />
5
- export * from './public-api';
5
+ export * from './index';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.11",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -9,8 +9,11 @@
9
9
  "url": "https://github.com/B4AGroup/b4a-firebase-libs"
10
10
  },
11
11
  "dependencies": {
12
+ "axios": "^0.27.2",
12
13
  "class-transformer": "^0.4.0",
14
+ "date-fns": "^2.28.0",
13
15
  "firebase": "7.24.0",
16
+ "gql-query-builder": "^3.7.0",
14
17
  "lodash": "^4.17.21",
15
18
  "reflect-metadata": "^0.1.13",
16
19
  "ts-md5": "^1.2.9",
@@ -0,0 +1,7 @@
1
+ import { add, addDays, addBusinessDays, addMonths, addYears, endOfDay, format, formatISO9075, parseISO, startOfDay, sub } from 'date-fns';
2
+ import { chunk, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set } from 'lodash';
3
+ export * from './mixins';
4
+ export * from './is-uuid';
5
+ export * from './types';
6
+ export * from './parse-datetime';
7
+ export { add, addDays, addBusinessDays, addMonths, addYears, chunk, endOfDay, format, formatISO9075, isBoolean, isDate, isEmpty, isInteger, isNil, isNaN, isNumber, isObject, isString, parseISO, now, omit, pick, set, startOfDay, sub, };
@@ -0,0 +1 @@
1
+ export declare const isUUID: (value: string) => boolean;
@@ -0,0 +1,3 @@
1
+ export * from './mixin-ctor.type';
2
+ export * from './base.mixin';
3
+ export * from './merge-constructor-params.type';
@@ -0,0 +1,3 @@
1
+ declare type Tail<T extends any[]> = T extends [any, ...infer U] ? U : never;
2
+ export declare type MergeConstructorParams<NewParams, CurrentParams extends any[]> = CurrentParams extends [] ? [NewParams, ...any] : CurrentParams[0] extends never ? [NewParams, ...any] : [CurrentParams[0] & NewParams, ...Tail<CurrentParams>];
3
+ export {};
@@ -0,0 +1 @@
1
+ export declare type MixinCtor<T = any, A extends any[] = any[]> = new (...args: A) => T;
@@ -0,0 +1 @@
1
+ export declare const parseDateTime: (value: string) => string | Date;
@@ -0,0 +1 @@
1
+ export declare type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
@@ -0,0 +1,2 @@
1
+ export * from './prop.type';
2
+ export * from './array-element.type';
@@ -1,3 +0,0 @@
1
- export * from './models';
2
- export * from './repositories';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2NhdGFsb2cvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxVQUFVLENBQUE7QUFDeEIsY0FBYyxnQkFBZ0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbW9kZWxzJ1xuZXhwb3J0ICogZnJvbSAnLi9yZXBvc2l0b3JpZXMnXG4iXX0=
@@ -1,7 +0,0 @@
1
- import { BaseModel } from '../../general/model';
2
- export class Category extends BaseModel {
3
- identifierFields() {
4
- return ['id'];
5
- }
6
- }
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2NhdGFsb2cvbW9kZWxzL2NhdGVnb3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQThDLE1BQU0scUJBQXFCLENBQUE7QUFLM0YsTUFBTSxPQUFPLFFBQVMsU0FBUSxTQUFtQjtJQWtCL0MsZ0JBQWdCO1FBQ2QsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFBO0lBQ2YsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZU1vZGVsLCBJZGVudGlmaWVyRmllbGRzLCBOb25GdW5jdGlvblByb3BlcnR5TmFtZXMgfSBmcm9tICcuLi8uLi9nZW5lcmFsL21vZGVsJ1xuaW1wb3J0IHsgU2hvcHMgfSBmcm9tICcuL2VudW1zJ1xuXG5pbXBvcnQgeyBDYXRlZ29yeUNvbmRpdGlvbiwgQ2F0ZWdvcnlGaWx0ZXIgfSBmcm9tICcuL3R5cGVzJ1xuXG5leHBvcnQgY2xhc3MgQ2F0ZWdvcnkgZXh0ZW5kcyBCYXNlTW9kZWw8Q2F0ZWdvcnk+IGltcGxlbWVudHMgSWRlbnRpZmllckZpZWxkczxDYXRlZ29yeT4ge1xuICBpZDogc3RyaW5nXG4gIGJyYW5kQ2F0ZWdvcnk6IGJvb2xlYW5cbiAgYnJhbmRMb2dvPzogc3RyaW5nXG4gIG5hbWU6IHN0cmluZ1xuICBzbHVnOiBzdHJpbmdcbiAgaW1hZ2U/OiBzdHJpbmdcbiAgYnJhbmRDYXRlZ29yeUJhbm5lcj86IHN0cmluZ1xuICBicmFuZENhdGVnb3J5QmFubmVyTW9iaWxlPzogc3RyaW5nXG4gIGRlc2NyaXB0aW9uOiBzdHJpbmdcbiAgY29uZGl0aW9ucz86IENhdGVnb3J5Q29uZGl0aW9uXG4gIHByb2R1Y3RzPzogc3RyaW5nW11cbiAgZmlsdGVycz86IENhdGVnb3J5RmlsdGVyW11cbiAgY3JlYXRlZEF0OiBEYXRlXG4gIHVwZGF0ZWRBdDogRGF0ZVxuICBzaG9wOiBTaG9wc1xuICBwdWJsaXNoZWQ6IGJvb2xlYW5cblxuICBpZGVudGlmaWVyRmllbGRzKCk6IE5vbkZ1bmN0aW9uUHJvcGVydHlOYW1lczxDYXRlZ29yeT5bXSB7XG4gICAgcmV0dXJuIFsnaWQnXVxuICB9XG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './shops.enum';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2NhdGFsb2cvbW9kZWxzL2VudW1zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zaG9wcy5lbnVtJ1xuIl19
@@ -1,6 +0,0 @@
1
- export var Shops;
2
- (function (Shops) {
3
- Shops["MENSMARKET"] = "mensmarket";
4
- Shops["GLAMSHOP"] = "Glamshop";
5
- })(Shops || (Shops = {}));
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcHMuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vY2F0YWxvZy9tb2RlbHMvZW51bXMvc2hvcHMuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxLQUdYO0FBSEQsV0FBWSxLQUFLO0lBQ2Ysa0NBQXlCLENBQUE7SUFDekIsOEJBQXFCLENBQUE7QUFDdkIsQ0FBQyxFQUhXLEtBQUssS0FBTCxLQUFLLFFBR2hCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gU2hvcHMge1xuICBNRU5TTUFSS0VUID0gYG1lbnNtYXJrZXRgLFxuICBHTEFNU0hPUCA9ICdHbGFtc2hvcCcsXG59XG4iXX0=
@@ -1,6 +0,0 @@
1
- export * from './enums';
2
- export * from './types';
3
- export * from './category';
4
- export * from './product';
5
- export * from './variant';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2NhdGFsb2cvbW9kZWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsU0FBUyxDQUFBO0FBQ3ZCLGNBQWMsWUFBWSxDQUFBO0FBQzFCLGNBQWMsV0FBVyxDQUFBO0FBQ3pCLGNBQWMsV0FBVyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9lbnVtcydcbmV4cG9ydCAqIGZyb20gJy4vdHlwZXMnXG5leHBvcnQgKiBmcm9tICcuL2NhdGVnb3J5J1xuZXhwb3J0ICogZnJvbSAnLi9wcm9kdWN0J1xuZXhwb3J0ICogZnJvbSAnLi92YXJpYW50J1xuIl19
@@ -1,11 +0,0 @@
1
- import { BaseModel } from '../../general/model';
2
- export class Product extends BaseModel {
3
- identifierFields() {
4
- return ['id'];
5
- }
6
- getInfoByShop(shop) {
7
- var _a, _b, _c, _d, _e, _f;
8
- return Object.assign(Object.assign(Object.assign({}, (((_b = (_a = this.description) === null || _a === void 0 ? void 0 : _a[shop]) === null || _b === void 0 ? void 0 : _b.description) ? { description: (_d = (_c = this.description) === null || _c === void 0 ? void 0 : _c[shop]) === null || _d === void 0 ? void 0 : _d.description } : {})), (((_e = this.price) === null || _e === void 0 ? void 0 : _e[shop]) || {})), (((_f = this.stock) === null || _f === void 0 ? void 0 : _f[shop]) || {}));
9
- }
10
- }
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vY2F0YWxvZy9tb2RlbHMvcHJvZHVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUE4QyxNQUFNLHFCQUFxQixDQUFBO0FBTTNGLE1BQU0sT0FBTyxPQUFRLFNBQVEsU0FBa0I7SUEyQjdDLGdCQUFnQjtRQUNkLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNmLENBQUM7SUFFRCxhQUFhLENBQUMsSUFBVzs7UUFDdkIscURBQ0ssQ0FBQyxDQUFBLE1BQUEsTUFBQSxJQUFJLENBQUMsV0FBVywwQ0FBRyxJQUFJLENBQUMsMENBQUUsV0FBVyxFQUFDLENBQUMsQ0FBQyxFQUFFLFdBQVcsRUFBRSxNQUFBLE1BQUEsSUFBSSxDQUFDLFdBQVcsMENBQUcsSUFBSSxDQUFDLDBDQUFFLFdBQVcsRUFBRSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsR0FDckcsQ0FBQyxDQUFBLE1BQUEsSUFBSSxDQUFDLEtBQUssMENBQUcsSUFBSSxDQUFDLEtBQUksRUFBRSxDQUFDLEdBQzFCLENBQUMsQ0FBQSxNQUFBLElBQUksQ0FBQyxLQUFLLDBDQUFHLElBQUksQ0FBQyxLQUFJLEVBQUUsQ0FBQyxFQUM5QjtJQUNILENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VNb2RlbCwgSWRlbnRpZmllckZpZWxkcywgTm9uRnVuY3Rpb25Qcm9wZXJ0eU5hbWVzIH0gZnJvbSAnLi4vLi4vZ2VuZXJhbC9tb2RlbCdcblxuaW1wb3J0IHsgU2hvcHMgfSBmcm9tICcuL2VudW1zL3Nob3BzLmVudW0nXG5pbXBvcnQgeyBQcm9kdWN0UmV2aWV3LCBTaG9wRGVzY3JpcHRpb24sIFNob3BQcmljZSwgU2hvcHNEZXNjcmlwdGlvbiwgU2hvcHNQcmljZSwgU3RvY2sgfSBmcm9tICcuL3R5cGVzJ1xuaW1wb3J0IHsgVmFyaWFudCB9IGZyb20gJy4vdmFyaWFudCdcblxuZXhwb3J0IGNsYXNzIFByb2R1Y3QgZXh0ZW5kcyBCYXNlTW9kZWw8UHJvZHVjdD4gaW1wbGVtZW50cyBJZGVudGlmaWVyRmllbGRzPFByb2R1Y3Q+IHtcbiAgaWQ6IHN0cmluZ1xuICBuYW1lOiBzdHJpbmdcbiAgc2x1Zzogc3RyaW5nXG4gIHNob3BBdmFpbGFiaWxpdHk6IFNob3BzW11cbiAgZGVzY3JpcHRpb246IFNob3BzRGVzY3JpcHRpb25cbiAgc2t1OiBzdHJpbmdcbiAgcHJpY2U6IFNob3BzUHJpY2VcbiAgaGFzVmFyaWFudHM6IGJvb2xlYW5cbiAgTkNNOiBzdHJpbmdcbiAgRUFOOiBzdHJpbmdcbiAgQ0VTVDogc3RyaW5nXG4gIHdlaWdodDogbnVtYmVyXG4gIHN0b2NrOiBTdG9ja1xuICBjb3N0UHJpY2U6IG51bWJlclxuICBpbWFnZXM/OiBzdHJpbmdbXVxuICBwdWJsaXNoZWQ6IGJvb2xlYW5cbiAgcHVibGlzaGVkR2xhbTogYm9vbGVhblxuICBjcmVhdGVkQXQ6IERhdGVcbiAgdXBkYXRlZEF0OiBEYXRlXG4gIGJyYW5kOiBzdHJpbmdcbiAgdGFncz86IHN0cmluZ1tdXG4gIHR5cGU/OiBzdHJpbmdcbiAgY2F0ZWdvcmllcz86IHN0cmluZ1tdXG4gIHJldmlld3M/OiBQcm9kdWN0UmV2aWV3W11cbiAgdmFyaWFudD86IFZhcmlhbnRcblxuICBpZGVudGlmaWVyRmllbGRzKCk6IE5vbkZ1bmN0aW9uUHJvcGVydHlOYW1lczxQcm9kdWN0PltdIHtcbiAgICByZXR1cm4gWydpZCddXG4gIH1cblxuICBnZXRJbmZvQnlTaG9wKHNob3A6IFNob3BzKTogU2hvcERlc2NyaXB0aW9uICYgU2hvcFByaWNlICYgU3RvY2sge1xuICAgIHJldHVybiB7XG4gICAgICAuLi4odGhpcy5kZXNjcmlwdGlvbj8uW3Nob3BdPy5kZXNjcmlwdGlvbiA/IHsgZGVzY3JpcHRpb246IHRoaXMuZGVzY3JpcHRpb24/LltzaG9wXT8uZGVzY3JpcHRpb24gfSA6IHt9KSxcbiAgICAgIC4uLih0aGlzLnByaWNlPy5bc2hvcF0gfHwge30pLFxuICAgICAgLi4uKHRoaXMuc3RvY2s/LltzaG9wXSB8fCB7fSksXG4gICAgfVxuICB9XG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktY29uZGl0aW9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2NhdGFsb2cvbW9kZWxzL3R5cGVzL2NhdGVnb3J5LWNvbmRpdGlvbi50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBDYXRlZ29yeUNvbmRpdGlvbiA9IHtcbiAgdGFncz86IHN0cmluZ1tdXG4gIGJyYW5kPzogc3RyaW5nXG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktZmlsdGVyLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2NhdGFsb2cvbW9kZWxzL3R5cGVzL2NhdGVnb3J5LWZpbHRlci50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBDYXRlZ29yeUZpbHRlciA9IHtcbiAgbmFtZT86IHN0cmluZ1xuICB0YWdzPzogc3RyaW5nW11cbn1cbiJdfQ==
@@ -1,8 +0,0 @@
1
- export * from './shops-description.type';
2
- export * from './shops-price.type';
3
- export * from './stock.type';
4
- export * from './category-condition.type';
5
- export * from './category-filter.type';
6
- export * from './product-review.type';
7
- export * from './variant-grade.type';
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2NhdGFsb2cvbW9kZWxzL3R5cGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMEJBQTBCLENBQUE7QUFDeEMsY0FBYyxvQkFBb0IsQ0FBQTtBQUNsQyxjQUFjLGNBQWMsQ0FBQTtBQUM1QixjQUFjLDJCQUEyQixDQUFBO0FBQ3pDLGNBQWMsd0JBQXdCLENBQUE7QUFDdEMsY0FBYyx1QkFBdUIsQ0FBQTtBQUNyQyxjQUFjLHNCQUFzQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zaG9wcy1kZXNjcmlwdGlvbi50eXBlJ1xuZXhwb3J0ICogZnJvbSAnLi9zaG9wcy1wcmljZS50eXBlJ1xuZXhwb3J0ICogZnJvbSAnLi9zdG9jay50eXBlJ1xuZXhwb3J0ICogZnJvbSAnLi9jYXRlZ29yeS1jb25kaXRpb24udHlwZSdcbmV4cG9ydCAqIGZyb20gJy4vY2F0ZWdvcnktZmlsdGVyLnR5cGUnXG5leHBvcnQgKiBmcm9tICcuL3Byb2R1Y3QtcmV2aWV3LnR5cGUnXG5leHBvcnQgKiBmcm9tICcuL3ZhcmlhbnQtZ3JhZGUudHlwZSdcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC1yZXZpZXcudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vY2F0YWxvZy9tb2RlbHMvdHlwZXMvcHJvZHVjdC1yZXZpZXcudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2hvcHMgfSBmcm9tICcuLi9lbnVtcy9zaG9wcy5lbnVtJ1xuXG5leHBvcnQgdHlwZSBQcm9kdWN0UmV2aWV3ID0ge1xuICBhdXRob3I6IHN0cmluZ1xuICBjcmVhdGVkQXQ6IERhdGVcbiAgZW1haWw6IHN0cmluZ1xuICBsb2NhdGlvbjogc3RyaW5nXG4gIHJhdGU6IG51bWJlclxuICByZXZpZXc6IHN0cmluZ1xuICBzdGF0dXM6IGJvb2xlYW5cbiAgdGl0bGU6IHN0cmluZ1xuICBzaG9wPzogU2hvcHNcbiAgcGVyc29uSWQ/OiBudW1iZXJcbiAgcG9pbnRzPzogbnVtYmVyXG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcHMtZGVzY3JpcHRpb24udHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vY2F0YWxvZy9tb2RlbHMvdHlwZXMvc2hvcHMtZGVzY3JpcHRpb24udHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2hvcHMgfSBmcm9tICcuLi9lbnVtcy9zaG9wcy5lbnVtJ1xuXG5leHBvcnQgdHlwZSBTaG9wRGVzY3JpcHRpb24gPSB7XG4gIGRlc2NyaXB0aW9uOiBzdHJpbmdcbn1cblxuZXhwb3J0IHR5cGUgU2hvcHNEZXNjcmlwdGlvbiA9IHtcbiAgW0sgaW4gU2hvcHNdPzogU2hvcERlc2NyaXB0aW9uXG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcHMtcHJpY2UudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vY2F0YWxvZy9tb2RlbHMvdHlwZXMvc2hvcHMtcHJpY2UudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2hvcHMgfSBmcm9tICcuLi9lbnVtcy9zaG9wcy5lbnVtJ1xuXG5leHBvcnQgdHlwZSBTaG9wUHJpY2UgPSB7XG4gIHByaWNlOiBudW1iZXJcbiAgZnVsbFByaWNlOiBudW1iZXJcbiAgc3Vic2NyaWJlckRpc2NvdW50UGVyY2VudGFnZT86IG51bWJlclxuICBzdWJzY3JpYmVyUHJpY2U/OiBudW1iZXJcbn1cblxuZXhwb3J0IHR5cGUgU2hvcHNQcmljZSA9IHtcbiAgW0sgaW4gU2hvcHNdPzogU2hvcFByaWNlXG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvY2sudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vY2F0YWxvZy9tb2RlbHMvdHlwZXMvc3RvY2sudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgU3RvY2sgPSB7XG4gIHF1YW50aXR5OiBudW1iZXJcbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFudC1ncmFkZS50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvbGliL2RvbWFpbi9jYXRhbG9nL21vZGVscy90eXBlcy92YXJpYW50LWdyYWRlLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIFZhcmlhbnRHcmFkZSA9IHtcbiAgdGl0bGU6IHN0cmluZ1xuICB2YWx1ZTogc3RyaW5nXG59XG4iXX0=
@@ -1,7 +0,0 @@
1
- import { BaseModel } from '../../general/model';
2
- export class Variant extends BaseModel {
3
- identifierFields() {
4
- return ['id'];
5
- }
6
- }
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vY2F0YWxvZy9tb2RlbHMvdmFyaWFudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUE4QyxNQUFNLHFCQUFxQixDQUFBO0FBSTNGLE1BQU0sT0FBTyxPQUFRLFNBQVEsU0FBa0I7SUFXN0MsZ0JBQWdCO1FBQ2QsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFBO0lBQ2YsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZU1vZGVsLCBJZGVudGlmaWVyRmllbGRzLCBOb25GdW5jdGlvblByb3BlcnR5TmFtZXMgfSBmcm9tICcuLi8uLi9nZW5lcmFsL21vZGVsJ1xuXG5pbXBvcnQgeyBTaG9wc1ByaWNlLCBTdG9jaywgVmFyaWFudEdyYWRlIH0gZnJvbSAnLi90eXBlcydcblxuZXhwb3J0IGNsYXNzIFZhcmlhbnQgZXh0ZW5kcyBCYXNlTW9kZWw8VmFyaWFudD4gaW1wbGVtZW50cyBJZGVudGlmaWVyRmllbGRzPFZhcmlhbnQ+IHtcbiAgaWQ6IHN0cmluZ1xuICBwcm9kdWN0SWQ6IHN0cmluZ1xuICBza3U6IHN0cmluZ1xuICBwcmljZTogU2hvcHNQcmljZVxuICBFQU46IHN0cmluZ1xuICBzdG9jazogU3RvY2tcbiAgZ3JhZGU6IFZhcmlhbnRHcmFkZVtdXG4gIGNvc3RQcmljZTogbnVtYmVyXG4gIHdlaWdodDogbnVtYmVyXG5cbiAgaWRlbnRpZmllckZpZWxkcygpOiBOb25GdW5jdGlvblByb3BlcnR5TmFtZXM8VmFyaWFudD5bXSB7XG4gICAgcmV0dXJuIFsnaWQnXVxuICB9XG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnkucmVwb3NpdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vY2F0YWxvZy9yZXBvc2l0b3JpZXMvY2F0ZWdvcnkucmVwb3NpdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2F0ZWdvcnkgfSBmcm9tICcuLi9tb2RlbHMvY2F0ZWdvcnknXG5pbXBvcnQgeyBDcnVkUmVwb3NpdG9yeSB9IGZyb20gJy4uLy4uL2dlbmVyYWwvcmVwb3NpdG9yeS9jcnVkLnJlcG9zaXRvcnknXG5pbXBvcnQgeyBTaG9wcyB9IGZyb20gJy4uL21vZGVscy9lbnVtcy9zaG9wcy5lbnVtJ1xuaW1wb3J0IHsgUHJvZHVjdCB9IGZyb20gJy4uL21vZGVscydcblxuZXhwb3J0IGludGVyZmFjZSBDYXRlZ29yeVJlcG9zaXRvcnkgZXh0ZW5kcyBDcnVkUmVwb3NpdG9yeTxDYXRlZ29yeT4ge1xuICBnZXRDYXRlZ29yeUJ5U2x1ZyhzbHVnOiBzdHJpbmcsIHNob3A6IFNob3BzKTogUHJvbWlzZTxDYXRlZ29yeT5cbiAgZ2V0Q2F0ZWdvcmllc0ZvckhvbWUoY2F0ZWdvcnlJZHM6IHN0cmluZ1tdLCBsaW1pdD86IG51bWJlcik6IFByb21pc2U8eyBjYXRlZ29yeTogQ2F0ZWdvcnk7IHByb2R1Y3RzOiBQcm9kdWN0W10gfVtdPlxuICBtb3VudENhdGVnb3J5KGNhdGVnb3J5OiBDYXRlZ29yeSk6IFByb21pc2U8UHJvZHVjdFtdPlxufVxuIl19
@@ -1,5 +0,0 @@
1
- export * from './category.repository';
2
- export * from './product.repository';
3
- export * from './subscription-product.repository';
4
- export * from './variant.repository';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2NhdGFsb2cvcmVwb3NpdG9yaWVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsdUJBQXVCLENBQUE7QUFDckMsY0FBYyxzQkFBc0IsQ0FBQTtBQUNwQyxjQUFjLG1DQUFtQyxDQUFBO0FBQ2pELGNBQWMsc0JBQXNCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NhdGVnb3J5LnJlcG9zaXRvcnknXG5leHBvcnQgKiBmcm9tICcuL3Byb2R1Y3QucmVwb3NpdG9yeSdcbmV4cG9ydCAqIGZyb20gJy4vc3Vic2NyaXB0aW9uLXByb2R1Y3QucmVwb3NpdG9yeSdcbmV4cG9ydCAqIGZyb20gJy4vdmFyaWFudC5yZXBvc2l0b3J5J1xuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5yZXBvc2l0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvbGliL2RvbWFpbi9jYXRhbG9nL3JlcG9zaXRvcmllcy9wcm9kdWN0LnJlcG9zaXRvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENydWRSZXBvc2l0b3J5IH0gZnJvbSAnLi4vLi4vZ2VuZXJhbC9yZXBvc2l0b3J5L2NydWQucmVwb3NpdG9yeSdcbmltcG9ydCB7IFByb2R1Y3QsIFNob3BzIH0gZnJvbSAnLi4vbW9kZWxzJ1xuXG5leHBvcnQgaW50ZXJmYWNlIFByb2R1Y3RSZXBvc2l0b3J5IGV4dGVuZHMgQ3J1ZFJlcG9zaXRvcnk8UHJvZHVjdD4ge1xuICBnZXRCeVNsdWcoc2x1Zzogc3RyaW5nLCBzaG9wOiBTaG9wcyk6IFByb21pc2U8UHJvZHVjdD5cbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLXByb2R1Y3QucmVwb3NpdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vY2F0YWxvZy9yZXBvc2l0b3JpZXMvc3Vic2NyaXB0aW9uLXByb2R1Y3QucmVwb3NpdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ3J1ZFJlcG9zaXRvcnkgfSBmcm9tICcuLi8uLi9nZW5lcmFsL3JlcG9zaXRvcnkvY3J1ZC5yZXBvc2l0b3J5J1xuaW1wb3J0IHsgUHJvZHVjdCB9IGZyb20gJy4uL21vZGVscydcblxuZXhwb3J0IGludGVyZmFjZSBTdWJzY3JpcHRpb25Qcm9kdWN0UmVwb3NpdG9yeSBleHRlbmRzIENydWRSZXBvc2l0b3J5PFByb2R1Y3Q+IHt9XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFudC5yZXBvc2l0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvbGliL2RvbWFpbi9jYXRhbG9nL3JlcG9zaXRvcmllcy92YXJpYW50LnJlcG9zaXRvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENydWRSZXBvc2l0b3J5IH0gZnJvbSAnLi4vLi4vZ2VuZXJhbC9yZXBvc2l0b3J5L2NydWQucmVwb3NpdG9yeSdcbmltcG9ydCB7IFZhcmlhbnQgfSBmcm9tICcuLi9tb2RlbHMvdmFyaWFudCdcblxuZXhwb3J0IGludGVyZmFjZSBWYXJpYW50UmVwb3NpdG9yeSBleHRlbmRzIENydWRSZXBvc2l0b3J5PFZhcmlhbnQ+IHt9XG4iXX0=
@@ -1,3 +0,0 @@
1
- export * from './model';
2
- export * from './repository';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2dlbmVyYWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxjQUFjLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL21vZGVsJ1xuZXhwb3J0ICogZnJvbSAnLi9yZXBvc2l0b3J5J1xuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1tb2RlbC13aXRoLWlkZW50aWZpZXItZmllbGRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvbGliL2RvbWFpbi9nZW5lcmFsL21vZGVsL2Jhc2UtbW9kZWwtd2l0aC1pZGVudGlmaWVyLWZpZWxkcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZU1vZGVsIH0gZnJvbSAnLi9iYXNlLm1vZGVsJ1xuaW1wb3J0IHsgSWRlbnRpZmllckZpZWxkcyB9IGZyb20gJy4vaWRlbnRpZmllci1maWVsZHMnXG5cbmV4cG9ydCB0eXBlIEJhc2VNb2RlbFdpdGhJZGVudGlmaWVyPE1vZGVsPiA9IEJhc2VNb2RlbDxNb2RlbD4gJiBJZGVudGlmaWVyRmllbGRzPE1vZGVsPlxuIl19
@@ -1,13 +0,0 @@
1
- import { plainToClass, classToPlain } from 'class-transformer';
2
- export class BaseModel {
3
- constructor(args) {
4
- Object.assign(this, args);
5
- }
6
- static toInstance(data) {
7
- return plainToClass(this, data);
8
- }
9
- toPlain() {
10
- return classToPlain(this, { exposeUnsetFields: false });
11
- }
12
- }
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2xpYi9kb21haW4vZ2VuZXJhbC9tb2RlbC9iYXNlLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFJOUQsTUFBTSxPQUFPLFNBQVM7SUFDcEIsWUFBWSxJQUFxQjtRQUMvQixNQUFNLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQTtJQUMzQixDQUFDO0lBRUQsTUFBTSxDQUFDLFVBQVUsQ0FBZ0MsSUFBOEI7UUFDN0UsT0FBTyxZQUFZLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBUSxDQUFBO0lBQ3hDLENBQUM7SUFFRCxPQUFPO1FBQ0wsT0FBTyxZQUFZLENBQUMsSUFBSSxFQUFFLEVBQUUsaUJBQWlCLEVBQUUsS0FBSyxFQUFFLENBQUMsQ0FBQTtJQUN6RCxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBwbGFpblRvQ2xhc3MsIGNsYXNzVG9QbGFpbiB9IGZyb20gJ2NsYXNzLXRyYW5zZm9ybWVyJ1xuXG5pbXBvcnQgeyBOb25GdW5jdGlvblByb3BlcnRpZXMgfSBmcm9tICcuL3R5cGVzL25vbi1mdW5jdGlvbi1wcm9wZXJ0aWVzLnR5cGUnXG5cbmV4cG9ydCBjbGFzcyBCYXNlTW9kZWw8TW9kZWw+IHtcbiAgY29uc3RydWN0b3IoYXJncz86IFBhcnRpYWw8TW9kZWw+KSB7XG4gICAgT2JqZWN0LmFzc2lnbih0aGlzLCBhcmdzKVxuICB9XG5cbiAgc3RhdGljIHRvSW5zdGFuY2U8VD4odGhpczogbmV3ICgpID0+IFBhcnRpYWw8VD4sIGRhdGE6IE5vbkZ1bmN0aW9uUHJvcGVydGllczxUPik6IFQge1xuICAgIHJldHVybiBwbGFpblRvQ2xhc3ModGhpcywgZGF0YSkgYXMgYW55XG4gIH1cblxuICB0b1BsYWluKCk6IGFueSB7XG4gICAgcmV0dXJuIGNsYXNzVG9QbGFpbih0aGlzLCB7IGV4cG9zZVVuc2V0RmllbGRzOiBmYWxzZSB9KVxuICB9XG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllci1maWVsZHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2dlbmVyYWwvbW9kZWwvaWRlbnRpZmllci1maWVsZHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5vbkZ1bmN0aW9uUHJvcGVydHlOYW1lcyB9IGZyb20gJy4vdHlwZXMvbm9uLWZ1bmN0aW9uLXByb3BlcnR5LW5hbWUudHlwZSdcblxuZXhwb3J0IGludGVyZmFjZSBJZGVudGlmaWVyRmllbGRzPE1vZGVsPiB7XG4gIGlkZW50aWZpZXJGaWVsZHM6ICgpID0+IE5vbkZ1bmN0aW9uUHJvcGVydHlOYW1lczxNb2RlbD5bXVxufVxuIl19
@@ -1,5 +0,0 @@
1
- export * from './base.model';
2
- export * from './identifier-fields';
3
- export * from './base-model-with-identifier-fields';
4
- export * from './types';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2dlbmVyYWwvbW9kZWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUE7QUFDNUIsY0FBYyxxQkFBcUIsQ0FBQTtBQUNuQyxjQUFjLHFDQUFxQyxDQUFBO0FBQ25ELGNBQWMsU0FBUyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9iYXNlLm1vZGVsJ1xuZXhwb3J0ICogZnJvbSAnLi9pZGVudGlmaWVyLWZpZWxkcydcbmV4cG9ydCAqIGZyb20gJy4vYmFzZS1tb2RlbC13aXRoLWlkZW50aWZpZXItZmllbGRzJ1xuZXhwb3J0ICogZnJvbSAnLi90eXBlcydcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1tb2RlbC1idWlsZGVyLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9saWIvZG9tYWluL2dlbmVyYWwvbW9kZWwvdHlwZXMvYmFzZS1tb2RlbC1idWlsZGVyLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5vbkZ1bmN0aW9uUHJvcGVydGllcyB9IGZyb20gJy4vbm9uLWZ1bmN0aW9uLXByb3BlcnRpZXMudHlwZSdcblxuZXhwb3J0IGludGVyZmFjZSBCYXNlTW9kZWxCdWlsZGVyPFQ+IHtcbiAgbmV3ICguLi5hcmdzKTogVFxuICB0b0luc3RhbmNlKHRoaXM6IG5ldyAoKSA9PiBULCBkYXRhOiBOb25GdW5jdGlvblByb3BlcnRpZXM8VD4pOiBUXG59XG4iXX0=