@infrab4a/connect 1.0.0-beta.8 → 1.0.0-beta.9

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 (319) hide show
  1. package/bundles/infrab4a-connect.umd.js +1148 -182
  2. package/bundles/infrab4a-connect.umd.js.map +1 -1
  3. package/domain/catalog/models/category.d.ts +3 -2
  4. package/domain/catalog/models/product.d.ts +3 -2
  5. package/domain/catalog/models/variant.d.ts +4 -2
  6. package/domain/catalog/repositories/category.repository.d.ts +1 -1
  7. package/domain/catalog/repositories/product.repository.d.ts +1 -1
  8. package/domain/catalog/repositories/subscription-product.repository.d.ts +1 -1
  9. package/domain/catalog/repositories/variant.repository.d.ts +1 -1
  10. package/domain/generic/model/base.model.d.ts +10 -0
  11. package/domain/{general → generic}/model/index.d.ts +0 -1
  12. package/domain/generic/model/types/base-model-builder.type.d.ts +15 -0
  13. package/domain/generic/model/types/identifier-model.type.d.ts +7 -0
  14. package/domain/{general → generic}/model/types/index.d.ts +2 -0
  15. package/domain/generic/model/types/model-base-structure.type.d.ts +6 -0
  16. package/domain/generic/model/types/non-function-properties.type.d.ts +12 -0
  17. package/domain/generic/model/types/non-function-property-name.type.d.ts +4 -0
  18. package/domain/generic/repository/create.repository.d.ts +8 -0
  19. package/domain/generic/repository/crud.repository.d.ts +19 -0
  20. package/domain/generic/repository/delete.repository.d.ts +5 -0
  21. package/domain/{general → generic}/repository/enums/where.enum.d.ts +5 -2
  22. package/domain/generic/repository/find.repository.d.ts +10 -0
  23. package/domain/generic/repository/get.repository.d.ts +5 -0
  24. package/domain/generic/repository/read.repository.d.ts +14 -0
  25. package/domain/{general → generic}/repository/types/index.d.ts +1 -0
  26. package/domain/generic/repository/types/repository-find-filters.type.d.ts +13 -0
  27. package/domain/{general → generic}/repository/types/repository-update-params.type.d.ts +2 -2
  28. package/domain/generic/repository/types/where-options.type.d.ts +2 -0
  29. package/domain/generic/repository/update.repository.d.ts +6 -0
  30. package/domain/index.d.ts +1 -1
  31. package/domain/location/models/address.d.ts +3 -2
  32. package/domain/shop-settings/models/home.d.ts +3 -3
  33. package/domain/shop-settings/models/shop-menu.d.ts +3 -3
  34. package/domain/shop-settings/repositories/home.repository.d.ts +1 -1
  35. package/domain/shop-settings/repositories/shop-menu.repository.d.ts +1 -1
  36. package/domain/shopping/models/buy-2-win.d.ts +3 -5
  37. package/domain/shopping/models/checkout.d.ts +7 -9
  38. package/domain/shopping/models/coupons/coupon.d.ts +13 -15
  39. package/domain/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +4 -0
  40. package/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +6 -0
  41. package/domain/shopping/models/coupons/enums/index.d.ts +2 -1
  42. package/domain/shopping/models/coupons/financial-coupon.d.ts +9 -0
  43. package/domain/shopping/models/coupons/index.d.ts +1 -2
  44. package/domain/shopping/models/payment.d.ts +3 -5
  45. package/domain/shopping/models/shipping-method.d.ts +3 -5
  46. package/domain/shopping/models/subscription/checkout.d.ts +3 -5
  47. package/domain/shopping/models/subscription/plan.d.ts +3 -5
  48. package/domain/shopping/repositories/buy-2-win.repository.d.ts +1 -1
  49. package/domain/shopping/repositories/checkout.repository.d.ts +1 -1
  50. package/domain/shopping/repositories/coupon.repository.d.ts +1 -1
  51. package/domain/shopping/repositories/order.repository.d.ts +1 -1
  52. package/domain/shopping/repositories/payment.repository.d.ts +1 -1
  53. package/domain/shopping/repositories/subscription/checkout.repository.d.ts +1 -1
  54. package/domain/shopping/repositories/subscription/plan.repository.d.ts +1 -1
  55. package/domain/users/models/beauty-profile.d.ts +4 -5
  56. package/domain/users/models/lead.d.ts +3 -5
  57. package/domain/users/models/subscription/edition.d.ts +4 -5
  58. package/domain/users/models/subscription/payment.d.ts +4 -5
  59. package/domain/users/models/subscription/subscription.d.ts +3 -5
  60. package/domain/users/models/user-address.d.ts +3 -3
  61. package/domain/users/models/user-payment-method.d.ts +4 -4
  62. package/domain/users/models/user.d.ts +11 -10
  63. package/domain/users/repositories/beauty-profile.repository.d.ts +1 -1
  64. package/domain/users/repositories/edition.repository.d.ts +1 -1
  65. package/domain/users/repositories/lead.repository.d.ts +1 -1
  66. package/domain/users/repositories/subscription-payment.repository.d.ts +1 -1
  67. package/domain/users/repositories/subscription.repository.d.ts +1 -1
  68. package/domain/users/repositories/user-address.repository.d.ts +1 -1
  69. package/domain/users/repositories/user-payment-method.repository.d.ts +1 -1
  70. package/domain/users/repositories/user.repository.d.ts +2 -2
  71. package/esm2015/domain/catalog/models/category.js +5 -2
  72. package/esm2015/domain/catalog/models/product.js +5 -2
  73. package/esm2015/domain/catalog/models/variant.js +5 -2
  74. package/esm2015/domain/catalog/repositories/category.repository.js +1 -1
  75. package/esm2015/domain/catalog/repositories/product.repository.js +1 -1
  76. package/esm2015/domain/catalog/repositories/subscription-product.repository.js +1 -1
  77. package/esm2015/domain/catalog/repositories/variant.repository.js +1 -1
  78. package/esm2015/domain/{general → generic}/index.js +1 -1
  79. package/esm2015/domain/generic/model/base.model.js +23 -0
  80. package/esm2015/domain/{general → generic}/model/identifier-fields.js +1 -1
  81. package/esm2015/domain/generic/model/index.js +4 -0
  82. package/esm2015/domain/generic/model/types/base-model-builder.type.js +2 -0
  83. package/esm2015/domain/generic/model/types/identifier-model.type.js +2 -0
  84. package/esm2015/domain/generic/model/types/index.js +6 -0
  85. package/esm2015/domain/generic/model/types/model-base-structure.type.js +2 -0
  86. package/esm2015/domain/generic/model/types/non-function-properties.type.js +2 -0
  87. package/esm2015/domain/generic/model/types/non-function-property-name.type.js +2 -0
  88. package/esm2015/domain/generic/repository/create.repository.js +2 -0
  89. package/esm2015/domain/generic/repository/crud.repository.js +2 -0
  90. package/esm2015/domain/generic/repository/delete.repository.js +2 -0
  91. package/esm2015/domain/{general → generic}/repository/enums/index.js +1 -1
  92. package/esm2015/domain/{general → generic}/repository/enums/update-option-actions.enum.js +1 -1
  93. package/esm2015/domain/generic/repository/enums/where.enum.js +15 -0
  94. package/esm2015/domain/generic/repository/find.repository.js +2 -0
  95. package/esm2015/domain/generic/repository/get.repository.js +2 -0
  96. package/esm2015/domain/{general → generic}/repository/index.js +1 -1
  97. package/esm2015/domain/generic/repository/read.repository.js +2 -0
  98. package/esm2015/domain/generic/repository/types/index.js +7 -0
  99. package/esm2015/domain/generic/repository/types/repository-find-filters.type.js +2 -0
  100. package/esm2015/domain/{general → generic}/repository/types/repository-find-result.type.js +1 -1
  101. package/esm2015/domain/{general → generic}/repository/types/repository-limit-options.type.js +1 -1
  102. package/esm2015/domain/{general → generic}/repository/types/repository-order-by-list.type.js +1 -1
  103. package/esm2015/domain/generic/repository/types/repository-update-params.type.js +2 -0
  104. package/esm2015/domain/generic/repository/types/where-options.type.js +2 -0
  105. package/esm2015/domain/generic/repository/update.repository.js +2 -0
  106. package/esm2015/domain/index.js +2 -2
  107. package/esm2015/domain/location/models/address.js +5 -2
  108. package/esm2015/domain/shop-settings/models/home.js +3 -3
  109. package/esm2015/domain/shop-settings/models/shop-menu.js +3 -3
  110. package/esm2015/domain/shop-settings/repositories/home.repository.js +1 -1
  111. package/esm2015/domain/shop-settings/repositories/shop-menu.repository.js +1 -1
  112. package/esm2015/domain/shopping/models/buy-2-win.js +3 -3
  113. package/esm2015/domain/shopping/models/checkout.js +6 -15
  114. package/esm2015/domain/shopping/models/coupons/coupon.js +4 -12
  115. package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +6 -0
  116. package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +8 -0
  117. package/esm2015/domain/shopping/models/coupons/enums/index.js +3 -2
  118. package/esm2015/domain/shopping/models/coupons/financial-coupon.js +28 -0
  119. package/esm2015/domain/shopping/models/coupons/index.js +2 -3
  120. package/esm2015/domain/shopping/models/payment.js +3 -3
  121. package/esm2015/domain/shopping/models/shipping-method.js +3 -3
  122. package/esm2015/domain/shopping/models/subscription/checkout.js +3 -3
  123. package/esm2015/domain/shopping/models/subscription/plan.js +3 -3
  124. package/esm2015/domain/shopping/repositories/buy-2-win.repository.js +1 -1
  125. package/esm2015/domain/shopping/repositories/checkout.repository.js +1 -1
  126. package/esm2015/domain/shopping/repositories/coupon.repository.js +1 -1
  127. package/esm2015/domain/shopping/repositories/order.repository.js +1 -1
  128. package/esm2015/domain/shopping/repositories/payment.repository.js +1 -1
  129. package/esm2015/domain/shopping/repositories/subscription/checkout.repository.js +1 -1
  130. package/esm2015/domain/shopping/repositories/subscription/plan.repository.js +1 -1
  131. package/esm2015/domain/users/models/beauty-profile.js +4 -4
  132. package/esm2015/domain/users/models/lead.js +3 -3
  133. package/esm2015/domain/users/models/subscription/edition.js +4 -4
  134. package/esm2015/domain/users/models/subscription/payment.js +4 -4
  135. package/esm2015/domain/users/models/subscription/subscription.js +3 -3
  136. package/esm2015/domain/users/models/user-address.js +3 -3
  137. package/esm2015/domain/users/models/user-payment-method.js +4 -4
  138. package/esm2015/domain/users/models/user.js +5 -5
  139. package/esm2015/domain/users/repositories/beauty-profile.repository.js +1 -1
  140. package/esm2015/domain/users/repositories/edition.repository.js +1 -1
  141. package/esm2015/domain/users/repositories/lead.repository.js +1 -1
  142. package/esm2015/domain/users/repositories/subscription-payment.repository.js +1 -1
  143. package/esm2015/domain/users/repositories/subscription.repository.js +1 -1
  144. package/esm2015/domain/users/repositories/user-address.repository.js +1 -1
  145. package/esm2015/domain/users/repositories/user-payment-method.repository.js +1 -1
  146. package/esm2015/domain/users/repositories/user.repository.js +1 -1
  147. package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +2 -2
  148. package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +1 -1
  149. package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +1 -1
  150. package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +8 -9
  151. package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +1 -4
  152. package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +1 -1
  153. package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +1 -1
  154. package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +1 -1
  155. package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +4 -4
  156. package/esm2015/infra/firebase/firestore/models/user-search.js +3 -3
  157. package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +7 -5
  158. package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +11 -21
  159. package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +2 -2
  160. package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +1 -1
  161. package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +1 -1
  162. package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +1 -1
  163. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.js +13 -0
  164. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-where.enum.js +15 -0
  165. package/esm2015/infra/hasura-graphql/enums/index.js +3 -0
  166. package/esm2015/infra/hasura-graphql/index.js +4 -0
  167. package/esm2015/infra/hasura-graphql/mixins/helpers/attribute-option.helper.js +15 -0
  168. package/esm2015/infra/hasura-graphql/mixins/helpers/index.js +2 -0
  169. package/esm2015/infra/hasura-graphql/mixins/index.js +8 -0
  170. package/esm2015/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.js +26 -0
  171. package/esm2015/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.js +10 -0
  172. package/esm2015/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.js +21 -0
  173. package/esm2015/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.js +95 -0
  174. package/esm2015/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.js +31 -0
  175. package/esm2015/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.js +168 -0
  176. package/esm2015/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.js +45 -0
  177. package/esm2015/infra/hasura-graphql/models/category-hasura-graphql.js +4 -0
  178. package/esm2015/infra/hasura-graphql/models/index.js +2 -0
  179. package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +104 -0
  180. package/esm2015/infra/hasura-graphql/repositories/catalog/index.js +3 -0
  181. package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +86 -0
  182. package/esm2015/infra/hasura-graphql/repositories/index.js +2 -0
  183. package/esm2015/infra/hasura-graphql/types/fields.type.js +2 -0
  184. package/esm2015/infra/hasura-graphql/types/graphql.repository.type.js +2 -0
  185. package/esm2015/infra/hasura-graphql/types/hasura-graphql-auth-options.type.js +2 -0
  186. package/esm2015/infra/hasura-graphql/types/hasura-graphql-fields.type.js +2 -0
  187. package/esm2015/infra/hasura-graphql/types/index.js +8 -0
  188. package/esm2015/infra/hasura-graphql/types/nested-field.type.js +2 -0
  189. package/esm2015/infra/hasura-graphql/types/query-builder-options.type.js +2 -0
  190. package/esm2015/infra/hasura-graphql/types/variable-options.type.js +2 -0
  191. package/esm2015/infra/index.js +2 -1
  192. package/esm2015/utils/index.js +6 -4
  193. package/esm2015/utils/is-uuid.js +3 -0
  194. package/esm2015/utils/mixins/index.js +2 -1
  195. package/esm2015/utils/mixins/merge-constructor-params.type.js +2 -0
  196. package/esm2015/utils/mixins/mixin-ctor.type.js +1 -1
  197. package/esm2015/utils/parse-datetime.js +14 -0
  198. package/esm2015/utils/types/array-element.type.js +2 -0
  199. package/esm2015/utils/types/index.js +2 -1
  200. package/fesm2015/infrab4a-connect.js +729 -120
  201. package/fesm2015/infrab4a-connect.js.map +1 -1
  202. package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +3 -16
  203. package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +3 -28
  204. package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +3 -14
  205. package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +3 -19
  206. package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +3 -14
  207. package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +3 -14
  208. package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +5 -4
  209. package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +7 -14
  210. package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +6 -15
  211. package/infra/firebase/firestore/models/user-search.d.ts +3 -3
  212. package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +1 -42
  213. package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +1 -42
  214. package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +4 -51
  215. package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +1 -42
  216. package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +1 -42
  217. package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +1 -42
  218. package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +1 -42
  219. package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +1 -42
  220. package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +1 -42
  221. package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +1 -42
  222. package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +1 -42
  223. package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +1 -42
  224. package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +1 -42
  225. package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +1 -42
  226. package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +4 -51
  227. package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +1 -42
  228. package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +4 -51
  229. package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +4 -51
  230. package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +4 -51
  231. package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +1 -42
  232. package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +4 -51
  233. package/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +1 -42
  234. package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +3 -3
  235. package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +3 -3
  236. package/infra/firebase/firestore/types/firestore.repository.type.d.ts +7 -3
  237. package/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.d.ts +11 -0
  238. package/infra/hasura-graphql/enums/hasura-graphql-where.enum.d.ts +13 -0
  239. package/infra/hasura-graphql/enums/index.d.ts +2 -0
  240. package/infra/hasura-graphql/index.d.ts +3 -0
  241. package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +10 -0
  242. package/infra/hasura-graphql/mixins/helpers/index.d.ts +1 -0
  243. package/infra/hasura-graphql/mixins/index.d.ts +7 -0
  244. package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +8 -0
  245. package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +11 -0
  246. package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +7 -0
  247. package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +30 -0
  248. package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +24 -0
  249. package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +11 -0
  250. package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +14 -0
  251. package/infra/hasura-graphql/models/category-hasura-graphql.d.ts +4 -0
  252. package/infra/hasura-graphql/models/index.d.ts +1 -0
  253. package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +22 -0
  254. package/infra/hasura-graphql/repositories/catalog/index.d.ts +2 -0
  255. package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +10 -0
  256. package/infra/hasura-graphql/repositories/index.d.ts +1 -0
  257. package/infra/hasura-graphql/types/fields.type.d.ts +2 -0
  258. package/infra/hasura-graphql/types/graphql.repository.type.d.ts +21 -0
  259. package/infra/hasura-graphql/types/hasura-graphql-auth-options.type.d.ts +8 -0
  260. package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +40 -0
  261. package/infra/hasura-graphql/types/index.d.ts +7 -0
  262. package/infra/hasura-graphql/types/nested-field.type.d.ts +7 -0
  263. package/infra/hasura-graphql/types/query-builder-options.type.d.ts +7 -0
  264. package/infra/hasura-graphql/types/variable-options.type.d.ts +9 -0
  265. package/infra/index.d.ts +1 -0
  266. package/package.json +2 -1
  267. package/utils/index.d.ts +5 -4
  268. package/utils/is-uuid.d.ts +1 -0
  269. package/utils/mixins/index.d.ts +1 -0
  270. package/utils/mixins/merge-constructor-params.type.d.ts +3 -0
  271. package/utils/mixins/mixin-ctor.type.d.ts +1 -1
  272. package/utils/parse-datetime.d.ts +1 -0
  273. package/utils/types/array-element.type.d.ts +1 -0
  274. package/utils/types/index.d.ts +1 -0
  275. package/domain/general/model/base-model-with-identifier-fields.d.ts +0 -3
  276. package/domain/general/model/base.model.d.ts +0 -6
  277. package/domain/general/model/types/base-model-builder.type.d.ts +0 -5
  278. package/domain/general/model/types/non-function-properties.type.d.ts +0 -2
  279. package/domain/general/model/types/non-function-property-name.type.d.ts +0 -3
  280. package/domain/general/repository/create.repository.d.ts +0 -5
  281. package/domain/general/repository/crud.repository.d.ts +0 -7
  282. package/domain/general/repository/delete.repository.d.ts +0 -5
  283. package/domain/general/repository/find.repository.d.ts +0 -5
  284. package/domain/general/repository/get.repository.d.ts +0 -5
  285. package/domain/general/repository/read.repository.d.ts +0 -5
  286. package/domain/general/repository/types/repository-find-filters.type.d.ts +0 -14
  287. package/domain/general/repository/update.repository.d.ts +0 -5
  288. package/domain/shopping/models/coupons/club-coupon.d.ts +0 -7
  289. package/domain/shopping/models/coupons/enums/discount-type.enum.d.ts +0 -5
  290. package/domain/shopping/models/coupons/store-coupon.d.ts +0 -8
  291. package/esm2015/domain/general/model/base-model-with-identifier-fields.js +0 -2
  292. package/esm2015/domain/general/model/base.model.js +0 -13
  293. package/esm2015/domain/general/model/index.js +0 -5
  294. package/esm2015/domain/general/model/types/base-model-builder.type.js +0 -2
  295. package/esm2015/domain/general/model/types/index.js +0 -4
  296. package/esm2015/domain/general/model/types/non-function-properties.type.js +0 -2
  297. package/esm2015/domain/general/model/types/non-function-property-name.type.js +0 -2
  298. package/esm2015/domain/general/repository/create.repository.js +0 -2
  299. package/esm2015/domain/general/repository/crud.repository.js +0 -2
  300. package/esm2015/domain/general/repository/delete.repository.js +0 -2
  301. package/esm2015/domain/general/repository/enums/where.enum.js +0 -12
  302. package/esm2015/domain/general/repository/find.repository.js +0 -2
  303. package/esm2015/domain/general/repository/get.repository.js +0 -2
  304. package/esm2015/domain/general/repository/read.repository.js +0 -2
  305. package/esm2015/domain/general/repository/types/index.js +0 -6
  306. package/esm2015/domain/general/repository/types/repository-find-filters.type.js +0 -2
  307. package/esm2015/domain/general/repository/types/repository-update-params.type.js +0 -2
  308. package/esm2015/domain/general/repository/update.repository.js +0 -2
  309. package/esm2015/domain/shopping/models/coupons/club-coupon.js +0 -18
  310. package/esm2015/domain/shopping/models/coupons/enums/discount-type.enum.js +0 -7
  311. package/esm2015/domain/shopping/models/coupons/store-coupon.js +0 -23
  312. /package/domain/{general → generic}/index.d.ts +0 -0
  313. /package/domain/{general → generic}/model/identifier-fields.d.ts +0 -0
  314. /package/domain/{general → generic}/repository/enums/index.d.ts +0 -0
  315. /package/domain/{general → generic}/repository/enums/update-option-actions.enum.d.ts +0 -0
  316. /package/domain/{general → generic}/repository/index.d.ts +0 -0
  317. /package/domain/{general → generic}/repository/types/repository-find-result.type.d.ts +0 -0
  318. /package/domain/{general → generic}/repository/types/repository-limit-options.type.d.ts +0 -0
  319. /package/domain/{general → generic}/repository/types/repository-order-by-list.type.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import { isString } from 'lodash';
2
+ export const isUUID = (value) => isString(value) && /[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}/.test(value);
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtdXVpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL3V0aWxzL2lzLXV1aWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLFFBQVEsQ0FBQTtBQUVqQyxNQUFNLENBQUMsTUFBTSxNQUFNLEdBQUcsQ0FBQyxLQUFhLEVBQVcsRUFBRSxDQUMvQyxRQUFRLENBQUMsS0FBSyxDQUFDLElBQUksaUZBQWlGLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaXNTdHJpbmcgfSBmcm9tICdsb2Rhc2gnXG5cbmV4cG9ydCBjb25zdCBpc1VVSUQgPSAodmFsdWU6IHN0cmluZyk6IGJvb2xlYW4gPT5cbiAgaXNTdHJpbmcodmFsdWUpICYmIC9bMC05YS1mQS1GXXs4fVxcLVswLTlhLWZBLUZdezR9XFwtWzAtOWEtZkEtRl17NH1cXC1bMC05YS1mQS1GXXs0fVxcLVswLTlhLWZBLUZdezEyfS8udGVzdCh2YWx1ZSlcbiJdfQ==
@@ -1,3 +1,4 @@
1
1
  export * from './mixin-ctor.type';
2
2
  export * from './base.mixin';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy91dGlscy9taXhpbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQTtBQUNqQyxjQUFjLGNBQWMsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbWl4aW4tY3Rvci50eXBlJ1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLm1peGluJ1xuIl19
3
+ export * from './merge-constructor-params.type';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy91dGlscy9taXhpbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQTtBQUNqQyxjQUFjLGNBQWMsQ0FBQTtBQUM1QixjQUFjLGlDQUFpQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9taXhpbi1jdG9yLnR5cGUnXG5leHBvcnQgKiBmcm9tICcuL2Jhc2UubWl4aW4nXG5leHBvcnQgKiBmcm9tICcuL21lcmdlLWNvbnN0cnVjdG9yLXBhcmFtcy50eXBlJ1xuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVyZ2UtY29uc3RydWN0b3ItcGFyYW1zLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy91dGlscy9taXhpbnMvbWVyZ2UtY29uc3RydWN0b3ItcGFyYW1zLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbInR5cGUgVGFpbDxUIGV4dGVuZHMgYW55W10+ID0gVCBleHRlbmRzIFthbnksIC4uLmluZmVyIFVdID8gVSA6IG5ldmVyXG5leHBvcnQgdHlwZSBNZXJnZUNvbnN0cnVjdG9yUGFyYW1zPE5ld1BhcmFtcywgQ3VycmVudFBhcmFtcyBleHRlbmRzIGFueVtdPiA9IEN1cnJlbnRQYXJhbXMgZXh0ZW5kcyBbXVxuICA/IFtOZXdQYXJhbXMsIC4uLmFueV1cbiAgOiBDdXJyZW50UGFyYW1zWzBdIGV4dGVuZHMgbmV2ZXJcbiAgPyBbTmV3UGFyYW1zLCAuLi5hbnldXG4gIDogW0N1cnJlbnRQYXJhbXNbMF0gJiBOZXdQYXJhbXMsIC4uLlRhaWw8Q3VycmVudFBhcmFtcz5dXG4iXX0=
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWl4aW4tY3Rvci50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvdXRpbHMvbWl4aW5zL21peGluLWN0b3IudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgTWl4aW5DdG9yPFQgPSB7fT4gPSBuZXcgKC4uLmFyZ3M6IEFycmF5PGFueT4pID0+IFRcbiJdfQ==
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWl4aW4tY3Rvci50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvdXRpbHMvbWl4aW5zL21peGluLWN0b3IudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgTWl4aW5DdG9yPFQgPSBhbnksIEEgZXh0ZW5kcyBhbnlbXSA9IGFueVtdPiA9IG5ldyAoLi4uYXJnczogQSkgPT4gVFxuIl19
@@ -0,0 +1,14 @@
1
+ import { isString } from 'lodash';
2
+ import { parseISO } from 'date-fns';
3
+ export const parseDateTime = (value) => {
4
+ if (!isString(value))
5
+ return value;
6
+ if (!/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/.test(value) &&
7
+ !/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T\d{2}:\d{2}:\d{2}/.test(value))
8
+ return value;
9
+ const date = parseISO(value);
10
+ if (isNaN(date.getTime()))
11
+ return value;
12
+ return date;
13
+ };
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2UtZGF0ZXRpbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy91dGlscy9wYXJzZS1kYXRldGltZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sUUFBUSxDQUFBO0FBQ2pDLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFFbkMsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLENBQUMsS0FBYSxFQUFpQixFQUFFO0lBQzVELElBQUksQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDO1FBQUUsT0FBTyxLQUFLLENBQUE7SUFDbEMsSUFDRSxDQUFDLGtEQUFrRCxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDL0QsQ0FBQyxtRUFBbUUsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDO1FBRWhGLE9BQU8sS0FBSyxDQUFBO0lBRWQsTUFBTSxJQUFJLEdBQUcsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFBO0lBRTVCLElBQUksS0FBSyxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztRQUFFLE9BQU8sS0FBSyxDQUFBO0lBRXZDLE9BQU8sSUFBSSxDQUFBO0FBQ2IsQ0FBQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaXNTdHJpbmcgfSBmcm9tICdsb2Rhc2gnXG5pbXBvcnQgeyBwYXJzZUlTTyB9IGZyb20gJ2RhdGUtZm5zJ1xuXG5leHBvcnQgY29uc3QgcGFyc2VEYXRlVGltZSA9ICh2YWx1ZTogc3RyaW5nKTogc3RyaW5nIHwgRGF0ZSA9PiB7XG4gIGlmICghaXNTdHJpbmcodmFsdWUpKSByZXR1cm4gdmFsdWVcbiAgaWYgKFxuICAgICEvXlxcZHs0fS0oMFsxLTldfDFbMC0yXSktKDBbMS05XXxbMTJdWzAtOV18M1swMV0pJC8udGVzdCh2YWx1ZSkgJiZcbiAgICAhL15cXGR7NH0tKDBbMS05XXwxWzAtMl0pLSgwWzEtOV18WzEyXVswLTldfDNbMDFdKVRcXGR7Mn06XFxkezJ9OlxcZHsyfS8udGVzdCh2YWx1ZSlcbiAgKVxuICAgIHJldHVybiB2YWx1ZVxuXG4gIGNvbnN0IGRhdGUgPSBwYXJzZUlTTyh2YWx1ZSlcblxuICBpZiAoaXNOYU4oZGF0ZS5nZXRUaW1lKCkpKSByZXR1cm4gdmFsdWVcblxuICByZXR1cm4gZGF0ZVxufVxuIl19
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXktZWxlbWVudC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvdXRpbHMvdHlwZXMvYXJyYXktZWxlbWVudC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBBcnJheUVsZW1lbnQ8QXJyYXlUeXBlIGV4dGVuZHMgcmVhZG9ubHkgdW5rbm93bltdPiA9IEFycmF5VHlwZSBleHRlbmRzIHJlYWRvbmx5IChpbmZlciBFbGVtZW50VHlwZSlbXVxuICA/IEVsZW1lbnRUeXBlXG4gIDogbmV2ZXJcbiJdfQ==
@@ -1,2 +1,3 @@
1
1
  export * from './prop.type';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy91dGlscy90eXBlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcHJvcC50eXBlJ1xuIl19
2
+ export * from './array-element.type';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy91dGlscy90eXBlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQTtBQUMzQixjQUFjLHNCQUFzQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wcm9wLnR5cGUnXG5leHBvcnQgKiBmcm9tICcuL2FycmF5LWVsZW1lbnQudHlwZSdcbiJdfQ==