@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,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,4 @@
1
+ import { Category } from '../../../domain';
2
+ export declare class CategoryHasuraGraphQL extends Category {
3
+ firestore_id?: string;
4
+ }
@@ -0,0 +1 @@
1
+ export * from './category-hasura-graphql';
@@ -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,2 @@
1
+ export * from './category-hasura-graphql.repository';
2
+ export * from './product-hasura-graphql.repository';
@@ -0,0 +1,10 @@
1
+ import { HasuraGraphQLAuthOptions } from '../../types';
2
+ import { Product, ProductRepository, Shops } from '../../../../domain';
3
+ declare const ProductHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<Product> & import("../../../../domain").CrudRepository<Product, import("../../../../domain").CrudParams<Product>> & import("../../../../domain").UpdateRepository<Product, import("../../../../domain").RepositoryUpdateParams<Product>> & {
4
+ paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<Product>): Partial<Product>;
5
+ }, [import("../../mixins").ConstructorParams<Product> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
6
+ export declare class ProductHasuraGraphQLRepository extends ProductHasuraGraphQLRepository_base implements ProductRepository {
7
+ constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions);
8
+ getBySlug(slug: string, shop: Shops): Promise<Product>;
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 { HasuraGrahphQLFields } 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?: HasuraGrahphQLFields<Model>;
8
+ variables?: VariableOptions;
9
+ };
10
+ export declare type GraphQLRepository<Model extends ModelBaseStructure> = {
11
+ tableName: string;
12
+ model: BaseModelBuilder<Model>;
13
+ fields: HasuraGrahphQLFields<Model>;
14
+ endpoint: string;
15
+ authOptions: HasuraGraphQLAuthOptions;
16
+ mutation: <ReturnFields = any>(operation: string, fields?: HasuraGrahphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
17
+ query: <ReturnFields = any>(operation: string | GraphQLParams<Model>[], fields?: HasuraGrahphQLFields<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,40 @@
1
+ import { HasuraGraphQLColumnType } from '../enums';
2
+ import { ModelBaseStructure, NonFunctionAndIdentifierPropertyNames } from '../../../domain';
3
+ import { PropType } from '../../../utils';
4
+ export declare type ColumnOptions<FieldType, Model extends ModelBaseStructure, ValueFrom = string | number | 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
+ };
12
+ export declare type ColumnModelOptions<Model extends ModelBaseStructure, ParentModel extends ModelBaseStructure> = ColumnOptions<Model, ParentModel> & {
13
+ fields?: HasuraGrahphQLFields<Model>;
14
+ foreignKeyColumn?: {
15
+ [key in NonFunctionAndIdentifierPropertyNames<Model>]?: string;
16
+ };
17
+ };
18
+ export declare type AggregateOptionNames = 'avg' | 'count' | 'max' | 'min' | 'stddev' | 'stddev_pop' | 'stddev_samp' | 'sum' | 'var_pop' | 'var_samp' | 'variance';
19
+ export declare type AggregateOptionFields<Model extends ModelBaseStructure, Type, Properties extends keyof Model = keyof Model> = {
20
+ [K in Properties]: PropType<Model, K> extends Type ? K : never;
21
+ }[Properties];
22
+ export declare type AggregateOptions<Model extends ModelBaseStructure> = {
23
+ avg?: Array<AggregateOptionFields<Model, number>>;
24
+ max?: Array<AggregateOptionFields<Model, number | Date>>;
25
+ min?: Array<AggregateOptionFields<Model, number | Date>>;
26
+ stddev?: Array<AggregateOptionFields<Model, number>>;
27
+ stddev_pop?: Array<AggregateOptionFields<Model, number>>;
28
+ stddev_samp?: Array<AggregateOptionFields<Model, number>>;
29
+ sum?: Array<AggregateOptionFields<Model, number>>;
30
+ var_pop?: Array<AggregateOptionFields<Model, number>>;
31
+ var_samp?: Array<AggregateOptionFields<Model, number>>;
32
+ variance?: Array<AggregateOptionFields<Model, number>>;
33
+ };
34
+ export declare type HasuraGrahphQLFields<Model extends ModelBaseStructure> = (NonFunctionAndIdentifierPropertyNames<Model> | {
35
+ [key in NonFunctionAndIdentifierPropertyNames<Model>]?: PropType<Model, key> extends ModelBaseStructure ? HasuraGrahphQLFields<PropType<Model, key>> : never;
36
+ } | {
37
+ [key in NonFunctionAndIdentifierPropertyNames<Model>]?: key extends 'aggregate' ? never : PropType<Model, key> extends ModelBaseStructure ? ColumnModelOptions<PropType<Model, key>, Model> : ColumnOptions<PropType<Model, key>, Model>;
38
+ } | {
39
+ aggregate: Array<AggregateOptions<Model> | 'count'>;
40
+ })[];
@@ -0,0 +1,7 @@
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';
@@ -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
+ };
package/infra/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './elasticsearch';
2
2
  export * from './firebase';
3
+ export * from './hasura-graphql';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0-beta.9",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -13,6 +13,7 @@
13
13
  "class-transformer": "^0.4.0",
14
14
  "date-fns": "^2.28.0",
15
15
  "firebase": "7.24.0",
16
+ "gql-query-builder": "^3.7.0",
16
17
  "lodash": "^4.17.21",
17
18
  "reflect-metadata": "^0.1.13",
18
19
  "ts-md5": "^1.2.9",
package/utils/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { add, Duration, sub } from 'date-fns';
2
- import { chunk, get, isDate, isEmpty, isNil, isNumber, isObject, isString, pick, set } from 'lodash';
3
- export declare type DateDuration = Duration;
4
- export { add, chunk, get, isDate, isEmpty, isNil, isNumber, isObject, isString, pick, set, sub };
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';
5
3
  export * from './mixins';
4
+ export * from './is-uuid';
6
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;
@@ -1,2 +1,3 @@
1
1
  export * from './mixin-ctor.type';
2
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 {};
@@ -1 +1 @@
1
- export declare type MixinCtor<T = {}> = new (...args: Array<any>) => T;
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;
@@ -1 +1,2 @@
1
1
  export * from './prop.type';
2
+ export * from './array-element.type';
@@ -1,3 +0,0 @@
1
- import { BaseModel } from './base.model';
2
- import { IdentifierFields } from './identifier-fields';
3
- export declare type BaseModelWithIdentifier<Model> = BaseModel<Model> & IdentifierFields<Model>;
@@ -1,6 +0,0 @@
1
- import { NonFunctionProperties } from './types/non-function-properties.type';
2
- export declare class BaseModel<Model> {
3
- constructor(args?: Partial<Model>);
4
- static toInstance<T>(this: new () => Partial<T>, data: NonFunctionProperties<T>): T;
5
- toPlain(): any;
6
- }
@@ -1,5 +0,0 @@
1
- import { NonFunctionProperties } from './non-function-properties.type';
2
- export interface BaseModelBuilder<T> {
3
- new (...args: any[]): T;
4
- toInstance(this: new () => T, data: NonFunctionProperties<T>): T;
5
- }
@@ -1,2 +0,0 @@
1
- import { NonFunctionPropertyNames } from './non-function-property-name.type';
2
- export declare type NonFunctionProperties<T> = Pick<Partial<T>, NonFunctionPropertyNames<T>>;
@@ -1,3 +0,0 @@
1
- export declare type NonFunctionPropertyNames<T> = {
2
- [K in keyof T]: T[K] extends () => void ? never : K;
3
- }[keyof T];
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { NonFunctionProperties } from '../model/types/non-function-properties.type';
3
- export interface CreateRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- create(data: NonFunctionProperties<BaseModelWithIdentifier<Model>>): Promise<Model>;
5
- }
@@ -1,7 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { CreateRepository } from './create.repository';
3
- import { DeleteRepository } from './delete.repository';
4
- import { ReadRepository } from './read.repository';
5
- import { UpdateRepository } from './update.repository';
6
- export interface CrudRepository<Model extends BaseModelWithIdentifier<Model>> extends CreateRepository<Model>, DeleteRepository<Model>, ReadRepository<Model>, UpdateRepository<Model> {
7
- }
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { NonFunctionProperties } from '../model/types/non-function-properties.type';
3
- export interface DeleteRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- delete(identifiers: NonFunctionProperties<BaseModelWithIdentifier<Model>>): Promise<void>;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { RepositoryFindFielters, RepositoryFindResult, RepositoryLimitOptions, RepositoryOrderByList } from './types';
3
- export interface FindRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- find(filters?: RepositoryFindFielters<Model>[], limits?: RepositoryLimitOptions<Model>, orderBy?: RepositoryOrderByList<Model>): Promise<RepositoryFindResult<Model>>;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { NonFunctionProperties } from '../model/types/non-function-properties.type';
3
- export interface GetRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- get(identifiers: NonFunctionProperties<BaseModelWithIdentifier<Model>>): Promise<Model>;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { FindRepository } from './find.repository';
3
- import { GetRepository } from './get.repository';
4
- export interface ReadRepository<Model extends BaseModelWithIdentifier<Model>> extends FindRepository<Model>, GetRepository<Model> {
5
- }
@@ -1,14 +0,0 @@
1
- import { NonFunctionPropertyNames } from '../../model/types/non-function-property-name.type';
2
- import { PropType } from '../../../../utils';
3
- import { Where } from '../enums/where.enum';
4
- export declare type RepositoryFindFieltersOptions<Model, FieldName extends keyof Model> = {
5
- operator: Where;
6
- value: PropType<Model, FieldName> | PropType<Model, FieldName>[];
7
- };
8
- export declare type NestedRepositoryFindFieltersOptions<Model> = {
9
- [key in NonFunctionPropertyNames<Model>]?: RepositoryFindFieltersOptions<Model, key>;
10
- };
11
- export declare type RepositoryFindField<Model, FieldName extends keyof Model> = RepositoryFindFieltersOptions<Model, FieldName> | Partial<PropType<Model, FieldName>> | NestedRepositoryFindFieltersOptions<PropType<Model, FieldName>>;
12
- export declare type RepositoryFindFielters<Model> = {
13
- [key in NonFunctionPropertyNames<Model>]?: RepositoryFindField<Model, key>;
14
- };
@@ -1,5 +0,0 @@
1
- import { BaseModelWithIdentifier } from '../model/base-model-with-identifier-fields';
2
- import { RepositoryUpdateParams } from './types/repository-update-params.type';
3
- export interface UpdateRepository<Model extends BaseModelWithIdentifier<Model>> {
4
- update(data: RepositoryUpdateParams<Model>): Promise<Model>;
5
- }
@@ -1,7 +0,0 @@
1
- import { CheckoutTypes } from '../enums/checkout-types.enum';
2
- import { Coupon } from './coupon';
3
- export declare class ClubCoupon extends Coupon<ClubCoupon> {
4
- plan?: string;
5
- checkoutType: CheckoutTypes;
6
- static isClubCoupon(coupon: Coupon): coupon is ClubCoupon;
7
- }
@@ -1,5 +0,0 @@
1
- export declare enum DiscountType {
2
- ABSOLUTE = 1,
3
- PERCENTAGE = 2,
4
- FREE_SHIPPING = 3
5
- }
@@ -1,8 +0,0 @@
1
- import { CheckoutTypes } from '../enums/checkout-types.enum';
2
- import { Category } from '../../../catalog';
3
- import { Coupon } from './coupon';
4
- export declare class StoreCoupon extends Coupon<StoreCoupon> {
5
- checkoutType: CheckoutTypes;
6
- categories?: Category[];
7
- static isStoreCoupon(coupon: Coupon): coupon is StoreCoupon;
8
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1tb2RlbC13aXRoLWlkZW50aWZpZXItZmllbGRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvZG9tYWluL2dlbmVyYWwvbW9kZWwvYmFzZS1tb2RlbC13aXRoLWlkZW50aWZpZXItZmllbGRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlTW9kZWwgfSBmcm9tICcuL2Jhc2UubW9kZWwnXG5pbXBvcnQgeyBJZGVudGlmaWVyRmllbGRzIH0gZnJvbSAnLi9pZGVudGlmaWVyLWZpZWxkcydcblxuZXhwb3J0IHR5cGUgQmFzZU1vZGVsV2l0aElkZW50aWZpZXI8TW9kZWw+ID0gQmFzZU1vZGVsPE1vZGVsPiAmIElkZW50aWZpZXJGaWVsZHM8TW9kZWw+XG4iXX0=
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9nZW5lcmFsL21vZGVsL2Jhc2UubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUk5RCxNQUFNLE9BQU8sU0FBUztJQUNwQixZQUFZLElBQXFCO1FBQy9CLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFBO0lBQzNCLENBQUM7SUFFRCxNQUFNLENBQUMsVUFBVSxDQUFnQyxJQUE4QjtRQUM3RSxPQUFPLFlBQVksQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFRLENBQUE7SUFDeEMsQ0FBQztJQUVELE9BQU87UUFDTCxPQUFPLFlBQVksQ0FBQyxJQUFJLEVBQUUsRUFBRSxpQkFBaUIsRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFBO0lBQ3pELENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHBsYWluVG9DbGFzcywgY2xhc3NUb1BsYWluIH0gZnJvbSAnY2xhc3MtdHJhbnNmb3JtZXInXG5cbmltcG9ydCB7IE5vbkZ1bmN0aW9uUHJvcGVydGllcyB9IGZyb20gJy4vdHlwZXMvbm9uLWZ1bmN0aW9uLXByb3BlcnRpZXMudHlwZSdcblxuZXhwb3J0IGNsYXNzIEJhc2VNb2RlbDxNb2RlbD4ge1xuICBjb25zdHJ1Y3RvcihhcmdzPzogUGFydGlhbDxNb2RlbD4pIHtcbiAgICBPYmplY3QuYXNzaWduKHRoaXMsIGFyZ3MpXG4gIH1cblxuICBzdGF0aWMgdG9JbnN0YW5jZTxUPih0aGlzOiBuZXcgKCkgPT4gUGFydGlhbDxUPiwgZGF0YTogTm9uRnVuY3Rpb25Qcm9wZXJ0aWVzPFQ+KTogVCB7XG4gICAgcmV0dXJuIHBsYWluVG9DbGFzcyh0aGlzLCBkYXRhKSBhcyBhbnlcbiAgfVxuXG4gIHRvUGxhaW4oKTogYW55IHtcbiAgICByZXR1cm4gY2xhc3NUb1BsYWluKHRoaXMsIHsgZXhwb3NlVW5zZXRGaWVsZHM6IGZhbHNlIH0pXG4gIH1cbn1cbiJdfQ==
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25u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-function-property-name.type';
2
- export * from './non-function-properties.type';
3
- export * from './base-model-builder.type';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vZ2VuZXJhbC9tb2RlbC90eXBlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1DQUFtQyxDQUFBO0FBQ2pELGNBQWMsZ0NBQWdDLENBQUE7QUFDOUMsY0FBYywyQkFBMkIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbm9uLWZ1bmN0aW9uLXByb3BlcnR5LW5hbWUudHlwZSdcbmV4cG9ydCAqIGZyb20gJy4vbm9uLWZ1bmN0aW9uLXByb3BlcnRpZXMudHlwZSdcbmV4cG9ydCAqIGZyb20gJy4vYmFzZS1tb2RlbC1idWlsZGVyLnR5cGUnXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9uLWZ1bmN0aW9uLXByb3BlcnRpZXMudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9nZW5lcmFsL21vZGVsL3R5cGVzL25vbi1mdW5jdGlvbi1wcm9wZXJ0aWVzLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5vbkZ1bmN0aW9uUHJvcGVydHlOYW1lcyB9IGZyb20gJy4vbm9uLWZ1bmN0aW9uLXByb3BlcnR5LW5hbWUudHlwZSdcblxuZXhwb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RlbD4+KTogUHJvbWlzZTx2b2lkPlxufVxuIl19
@@ -1,12 +0,0 @@
1
- export var Where;
2
- (function (Where) {
3
- Where["EQUALS"] = "==";
4
- Where["NOTEQUALS"] = "!=";
5
- Where["GT"] = ">";
6
- Where["GTE"] = ">=";
7
- Where["IN"] = "in";
8
- Where["LT"] = "<";
9
- Where["LTE"] = "<=";
10
- Where["LIKE"] = "like";
11
- })(Where || (Where = {}));
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2hlcmUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9nZW5lcmFsL3JlcG9zaXRvcnkvZW51bXMvd2hlcmUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxLQVNYO0FBVEQsV0FBWSxLQUFLO0lBQ2Ysc0JBQWEsQ0FBQTtJQUNiLHlCQUFnQixDQUFBO0lBQ2hCLGlCQUFRLENBQUE7SUFDUixtQkFBVSxDQUFBO0lBQ1Ysa0JBQVMsQ0FBQTtJQUNULGlCQUFRLENBQUE7SUFDUixtQkFBVSxDQUFBO0lBQ1Ysc0JBQWEsQ0FBQTtBQUNmLENBQUMsRUFUVyxLQUFLLEtBQUwsS0FBSyxRQVNoQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFdoZXJlIHtcbiAgRVFVQUxTID0gJz09JyxcbiAgTk9URVFVQUxTID0gJyE9JyxcbiAgR1QgPSAnPicsXG4gIEdURSA9ICc+PScsXG4gIElOID0gJ2luJyxcbiAgTFQgPSAnPCcsXG4gIExURSA9ICc8PScsXG4gIExJS0UgPSAnbGlrZScsXG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZX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W5kUmVwb3NpdG9yeSB9IGZyb20gJy4vZmluZC5yZXBvc2l0b3J5J1xuaW1wb3J0IHsgR2V0UmVwb3NpdG9yeSB9IGZyb20gJy4vZ2V0LnJlcG9zaXRvcnknXG5cbmV4cG9ydCBpbnRlcmZhY2UgUmVhZFJlcG9zaXRvcnk8TW9kZWwgZXh0ZW5kcyBCYXNlTW9kZWxXaXRoSWRlbnRpZmllcjxNb2RlbD4+XG4gIGV4dGVuZHMgRmluZFJlcG9zaXRvcnk8TW9kZWw+LFxuICAgIEdldFJlcG9zaXRvcnk8TW9kZWw+IHt9XG4iXX0=
@@ -1,6 +0,0 @@
1
- export * from './repository-find-filters.type';
2
- export * from './repository-order-by-list.type';
3
- export * from './repository-limit-options.type';
4
- export * from './repository-find-result.type';
5
- export * from './repository-update-params.type';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vZ2VuZXJhbC9yZXBvc2l0b3J5L3R5cGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZ0NBQWdDLENBQUE7QUFDOUMsY0FBYyxpQ0FBaUMsQ0FBQTtBQUMvQyxjQUFjLGlDQUFpQyxDQUFBO0FBQy9DLGNBQWMsK0JBQStCLENBQUE7QUFDN0MsY0FBYyxpQ0FBaUMsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcmVwb3NpdG9yeS1maW5kLWZpbHRlcnMudHlwZSdcbmV4cG9ydCAqIGZyb20gJy4vcmVwb3NpdG9yeS1vcmRlci1ieS1saXN0LnR5cGUnXG5leHBvcnQgKiBmcm9tICcuL3JlcG9zaXRvcnktbGltaXQtb3B0aW9ucy50eXBlJ1xuZXhwb3J0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vcnQgeyBCYXNlTW9kZWxXaXRoSWRlbnRpZmllciB9IGZyb20gJy4uL21vZGVsL2Jhc2UtbW9kZWwtd2l0aC1pZGVudGlmaWVyLWZpZWxkcydcblxuaW1wb3J0IHsgUmVwb3NpdG9yeVVwZGF0ZVBhcmFtcyB9IGZyb20gJy4vdHlwZXMvcmVwb3NpdG9yeS11cGRhdGUtcGFyYW1zLnR5cGUnXG5cbmV4cG9ydCBpbnRlcmZhY2UgVXBkYXRlUmVwb3NpdG9yeTxNb2RlbCBleHRlbmRzIEJhc2VNb2RlbFdpdGhJZGVudGlmaWVyPE1vZGVsPj4ge1xuICB1cGRhdGUoZGF0YTogUmVwb3NpdG9yeVVwZGF0ZVBhcmFtczxNb2RlbD4pOiBQcm9taXNlPE1vZGVsPlxufVxuIl19
@@ -1,18 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { Expose } from 'class-transformer';
3
- import { CheckoutTypes } from '../enums/checkout-types.enum';
4
- import { Coupon } from './coupon';
5
- export class ClubCoupon extends Coupon {
6
- constructor() {
7
- super(...arguments);
8
- this.checkoutType = CheckoutTypes.SUBSCRIPTION;
9
- }
10
- static isClubCoupon(coupon) {
11
- return coupon instanceof ClubCoupon;
12
- }
13
- }
14
- __decorate([
15
- Expose({ name: 'checkout_type' }),
16
- __metadata("design:type", Object)
17
- ], ClubCoupon.prototype, "checkoutType", void 0);
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2x1Yi1jb3Vwb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vc2hvcHBpbmcvbW9kZWxzL2NvdXBvbnMvY2x1Yi1jb3Vwb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQ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OLUTE"] = 1] = "ABSOLUTE";
4
- DiscountType[DiscountType["PERCENTAGE"] = 2] = "PERCENTAGE";
5
- DiscountType[DiscountType["FREE_SHIPPING"] = 3] = "FREE_SHIPPING";
6
- })(DiscountType || (DiscountType = {}));
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlzY291bnQtdHlwZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvZG9tYWluL3Nob3BwaW5nL21vZGVscy9jb3Vwb25zL2VudW1zL2Rpc2NvdW50LXR5cGUuZW51bS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxZQUlYO0FBSkQsV0FBWSxZQUFZO0lBQ3RCLHVEQUFZLENBQUE7SUFDWiwyREFBYyxDQUFBO0lBQ2QsaUVBQWlCLENBQUE7QUFDbkIsQ0FBQyxFQUpXLFlBQVksS0FBWixZQUFZLFFBSXZCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gRGlzY291bnRUeXBlIHtcbiAgQUJTT0xVVEUgPSAxLFxuICBQRVJDRU5UQUdFID0gMixcbiAgRlJFRV9TSElQUElORyA9IDMsXG59XG4iXX0=
@@ -1,23 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { Expose, Type } from 'class-transformer';
3
- import { CheckoutTypes } from '../enums/checkout-types.enum';
4
- import { Category } from '../../../catalog';
5
- import { Coupon } from './coupon';
6
- export class StoreCoupon extends Coupon {
7
- constructor() {
8
- super(...arguments);
9
- this.checkoutType = CheckoutTypes.ECOMMERCE;
10
- }
11
- static isStoreCoupon(coupon) {
12
- return coupon instanceof StoreCoupon;
13
- }
14
- }
15
- __decorate([
16
- Expose({ name: 'checkout_type' }),
17
- __metadata("design:type", Object)
18
- ], StoreCoupon.prototype, "checkoutType", void 0);
19
- __decorate([
20
- Type(() => Category),
21
- __metadata("design:type", Array)
22
- ], StoreCoupon.prototype, "categories", void 0);
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmUtY291cG9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvZG9tYWluL3Nob3BwaW5nL21vZGVscy9jb3Vwb25zL3N0b3JlLWNvdXBvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUVoRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sOEJBQThCLENBQUE7QUFDNUQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGtCQUFrQixDQUFBO0FBRTNDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFFakMsTUFBTSxPQUFPLFdBQVksU0FBUSxNQUFtQjtJQUFwRDs7UUFFRSxpQkFBWSxHQUFHLGFBQWEsQ0FBQyxTQUFTLENBQUE7SUFReEMsQ0FBQztJQUhDLE1BQU0sQ0FBQyxhQUFhLENBQUMsTUFBYztRQUNqQyxPQUFPLE1BQU0sWUFBWSxXQUFXLENBQUE7SUFDdEMsQ0FBQztDQUNGO0FBUkM7SUFEQyxNQUFNLENBQUMsRUFBRSxJQUFJLEVBQUUsZUFBZSxFQUFFLENBQUM7O2lEQUNJO0FBR3RDO0lBREMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLFFBQVEsQ0FBQzs7K0NBQ0UiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFeHBvc2UsIFR5cGUgfSBmcm9tICdjbGFzcy10cmFuc2Zvcm1lcidcblxuaW1wb3J0IHsg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