@infrab4a/connect 1.0.0-beta.8 → 1.0.0

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 (364) hide show
  1. package/bundles/infrab4a-connect.umd.js +2173 -267
  2. package/bundles/infrab4a-connect.umd.js.map +1 -1
  3. package/domain/catalog/models/category.d.ts +5 -4
  4. package/domain/catalog/models/index.d.ts +3 -2
  5. package/domain/catalog/models/kit-product.d.ts +12 -0
  6. package/domain/catalog/models/product.d.ts +9 -4
  7. package/domain/catalog/models/types/product-review.type.d.ts +10 -8
  8. package/domain/catalog/models/variant.d.ts +7 -3
  9. package/domain/catalog/repositories/category.repository.d.ts +1 -1
  10. package/domain/catalog/repositories/product.repository.d.ts +10 -3
  11. package/domain/catalog/repositories/subscription-product.repository.d.ts +1 -1
  12. package/domain/catalog/repositories/variant.repository.d.ts +1 -1
  13. package/domain/generic/model/base.model.d.ts +10 -0
  14. package/domain/{general → generic}/model/index.d.ts +0 -1
  15. package/domain/generic/model/types/base-model-builder.type.d.ts +15 -0
  16. package/domain/generic/model/types/identifier-model.type.d.ts +7 -0
  17. package/domain/{general → generic}/model/types/index.d.ts +2 -0
  18. package/domain/generic/model/types/model-base-structure.type.d.ts +6 -0
  19. package/domain/generic/model/types/non-function-properties.type.d.ts +12 -0
  20. package/domain/generic/model/types/non-function-property-name.type.d.ts +4 -0
  21. package/domain/generic/repository/create.repository.d.ts +8 -0
  22. package/domain/generic/repository/crud.repository.d.ts +19 -0
  23. package/domain/generic/repository/delete.repository.d.ts +7 -0
  24. package/domain/{general → generic}/repository/enums/where.enum.d.ts +5 -2
  25. package/domain/generic/repository/find.repository.d.ts +11 -0
  26. package/domain/generic/repository/get.repository.d.ts +5 -0
  27. package/domain/generic/repository/read.repository.d.ts +14 -0
  28. package/domain/{general → generic}/repository/types/index.d.ts +1 -0
  29. package/domain/generic/repository/types/repository-find-filters.type.d.ts +13 -0
  30. package/domain/{general → generic}/repository/types/repository-update-params.type.d.ts +4 -4
  31. package/domain/generic/repository/types/where-options.type.d.ts +2 -0
  32. package/domain/generic/repository/update.repository.d.ts +6 -0
  33. package/domain/index.d.ts +1 -1
  34. package/domain/location/models/address.d.ts +3 -2
  35. package/domain/shop-settings/models/home.d.ts +3 -3
  36. package/domain/shop-settings/models/shop-menu.d.ts +3 -3
  37. package/domain/shop-settings/repositories/home.repository.d.ts +1 -1
  38. package/domain/shop-settings/repositories/shop-menu.repository.d.ts +1 -1
  39. package/domain/shopping/models/buy-2-win.d.ts +3 -5
  40. package/domain/shopping/models/checkout.d.ts +7 -9
  41. package/domain/shopping/models/coupons/coupon.d.ts +13 -15
  42. package/domain/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +4 -0
  43. package/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +6 -0
  44. package/domain/shopping/models/coupons/enums/index.d.ts +2 -1
  45. package/domain/shopping/models/coupons/financial-coupon.d.ts +9 -0
  46. package/domain/shopping/models/coupons/index.d.ts +1 -2
  47. package/domain/shopping/models/payment.d.ts +3 -5
  48. package/domain/shopping/models/shipping-method.d.ts +3 -5
  49. package/domain/shopping/models/subscription/checkout.d.ts +3 -5
  50. package/domain/shopping/models/subscription/plan.d.ts +3 -5
  51. package/domain/shopping/repositories/buy-2-win.repository.d.ts +1 -1
  52. package/domain/shopping/repositories/checkout.repository.d.ts +1 -1
  53. package/domain/shopping/repositories/coupon.repository.d.ts +1 -1
  54. package/domain/shopping/repositories/order.repository.d.ts +1 -1
  55. package/domain/shopping/repositories/payment.repository.d.ts +1 -1
  56. package/domain/shopping/repositories/subscription/checkout.repository.d.ts +1 -1
  57. package/domain/shopping/repositories/subscription/plan.repository.d.ts +1 -1
  58. package/domain/users/errors/unauthorized.error.d.ts +2 -1
  59. package/domain/users/errors/user-already-registered.error.d.ts +2 -1
  60. package/domain/users/errors/weak-password.error.d.ts +2 -1
  61. package/domain/users/models/beauty-profile.d.ts +4 -5
  62. package/domain/users/models/lead.d.ts +3 -5
  63. package/domain/users/models/subscription/edition.d.ts +4 -5
  64. package/domain/users/models/subscription/payment.d.ts +4 -5
  65. package/domain/users/models/subscription/subscription.d.ts +3 -5
  66. package/domain/users/models/user-address.d.ts +3 -3
  67. package/domain/users/models/user-payment-method.d.ts +4 -4
  68. package/domain/users/models/user.d.ts +13 -10
  69. package/domain/users/repositories/beauty-profile.repository.d.ts +1 -1
  70. package/domain/users/repositories/edition.repository.d.ts +1 -1
  71. package/domain/users/repositories/lead.repository.d.ts +1 -1
  72. package/domain/users/repositories/subscription-payment.repository.d.ts +1 -1
  73. package/domain/users/repositories/subscription.repository.d.ts +1 -1
  74. package/domain/users/repositories/user-address.repository.d.ts +1 -1
  75. package/domain/users/repositories/user-payment-method.repository.d.ts +1 -1
  76. package/domain/users/repositories/user.repository.d.ts +2 -2
  77. package/errors/duplicated-results.error.d.ts +2 -1
  78. package/errors/invalid-argument.error.d.ts +2 -1
  79. package/errors/not-found.error.d.ts +2 -1
  80. package/errors/required-argument.error.d.ts +2 -1
  81. package/esm2015/domain/catalog/models/category.js +5 -2
  82. package/esm2015/domain/catalog/models/index.js +4 -3
  83. package/esm2015/domain/catalog/models/kit-product.js +18 -0
  84. package/esm2015/domain/catalog/models/product.js +12 -2
  85. package/esm2015/domain/catalog/models/types/product-review.type.js +1 -1
  86. package/esm2015/domain/catalog/models/variant.js +5 -2
  87. package/esm2015/domain/catalog/repositories/category.repository.js +1 -1
  88. package/esm2015/domain/catalog/repositories/product.repository.js +1 -1
  89. package/esm2015/domain/catalog/repositories/subscription-product.repository.js +1 -1
  90. package/esm2015/domain/catalog/repositories/variant.repository.js +1 -1
  91. package/esm2015/domain/{general → generic}/index.js +1 -1
  92. package/esm2015/domain/generic/model/base.model.js +23 -0
  93. package/esm2015/domain/{general → generic}/model/identifier-fields.js +1 -1
  94. package/esm2015/domain/generic/model/index.js +4 -0
  95. package/esm2015/domain/generic/model/types/base-model-builder.type.js +2 -0
  96. package/esm2015/domain/generic/model/types/identifier-model.type.js +2 -0
  97. package/esm2015/domain/generic/model/types/index.js +6 -0
  98. package/esm2015/domain/generic/model/types/model-base-structure.type.js +2 -0
  99. package/esm2015/domain/generic/model/types/non-function-properties.type.js +2 -0
  100. package/esm2015/domain/generic/model/types/non-function-property-name.type.js +2 -0
  101. package/esm2015/domain/generic/repository/create.repository.js +2 -0
  102. package/esm2015/domain/generic/repository/crud.repository.js +2 -0
  103. package/esm2015/domain/generic/repository/delete.repository.js +2 -0
  104. package/esm2015/domain/{general → generic}/repository/enums/index.js +1 -1
  105. package/esm2015/domain/{general → generic}/repository/enums/update-option-actions.enum.js +1 -1
  106. package/esm2015/domain/generic/repository/enums/where.enum.js +15 -0
  107. package/esm2015/domain/generic/repository/find.repository.js +2 -0
  108. package/esm2015/domain/generic/repository/get.repository.js +2 -0
  109. package/esm2015/domain/{general → generic}/repository/index.js +1 -1
  110. package/esm2015/domain/generic/repository/read.repository.js +2 -0
  111. package/esm2015/domain/generic/repository/types/index.js +7 -0
  112. package/esm2015/domain/generic/repository/types/repository-find-filters.type.js +2 -0
  113. package/esm2015/domain/{general → generic}/repository/types/repository-find-result.type.js +1 -1
  114. package/esm2015/domain/{general → generic}/repository/types/repository-limit-options.type.js +1 -1
  115. package/esm2015/domain/{general → generic}/repository/types/repository-order-by-list.type.js +1 -1
  116. package/esm2015/domain/generic/repository/types/repository-update-params.type.js +2 -0
  117. package/esm2015/domain/generic/repository/types/where-options.type.js +2 -0
  118. package/esm2015/domain/generic/repository/update.repository.js +2 -0
  119. package/esm2015/domain/index.js +2 -2
  120. package/esm2015/domain/location/models/address.js +5 -2
  121. package/esm2015/domain/shop-settings/models/home.js +3 -3
  122. package/esm2015/domain/shop-settings/models/shop-menu.js +3 -3
  123. package/esm2015/domain/shop-settings/repositories/home.repository.js +1 -1
  124. package/esm2015/domain/shop-settings/repositories/shop-menu.repository.js +1 -1
  125. package/esm2015/domain/shopping/models/buy-2-win.js +3 -3
  126. package/esm2015/domain/shopping/models/checkout.js +6 -15
  127. package/esm2015/domain/shopping/models/coupons/coupon.js +4 -12
  128. package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +6 -0
  129. package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +8 -0
  130. package/esm2015/domain/shopping/models/coupons/enums/index.js +3 -2
  131. package/esm2015/domain/shopping/models/coupons/financial-coupon.js +28 -0
  132. package/esm2015/domain/shopping/models/coupons/index.js +2 -3
  133. package/esm2015/domain/shopping/models/payment.js +3 -3
  134. package/esm2015/domain/shopping/models/shipping-method.js +3 -3
  135. package/esm2015/domain/shopping/models/subscription/checkout.js +3 -3
  136. package/esm2015/domain/shopping/models/subscription/plan.js +3 -3
  137. package/esm2015/domain/shopping/repositories/buy-2-win.repository.js +1 -1
  138. package/esm2015/domain/shopping/repositories/checkout.repository.js +1 -1
  139. package/esm2015/domain/shopping/repositories/coupon.repository.js +1 -1
  140. package/esm2015/domain/shopping/repositories/order.repository.js +1 -1
  141. package/esm2015/domain/shopping/repositories/payment.repository.js +1 -1
  142. package/esm2015/domain/shopping/repositories/subscription/checkout.repository.js +1 -1
  143. package/esm2015/domain/shopping/repositories/subscription/plan.repository.js +1 -1
  144. package/esm2015/domain/users/errors/unauthorized.error.js +3 -2
  145. package/esm2015/domain/users/errors/user-already-registered.error.js +3 -2
  146. package/esm2015/domain/users/errors/weak-password.error.js +3 -2
  147. package/esm2015/domain/users/models/beauty-profile.js +4 -4
  148. package/esm2015/domain/users/models/lead.js +3 -3
  149. package/esm2015/domain/users/models/subscription/edition.js +4 -4
  150. package/esm2015/domain/users/models/subscription/payment.js +4 -4
  151. package/esm2015/domain/users/models/subscription/subscription.js +3 -3
  152. package/esm2015/domain/users/models/user-address.js +3 -3
  153. package/esm2015/domain/users/models/user-payment-method.js +4 -4
  154. package/esm2015/domain/users/models/user.js +5 -5
  155. package/esm2015/domain/users/repositories/beauty-profile.repository.js +1 -1
  156. package/esm2015/domain/users/repositories/edition.repository.js +1 -1
  157. package/esm2015/domain/users/repositories/lead.repository.js +1 -1
  158. package/esm2015/domain/users/repositories/subscription-payment.repository.js +1 -1
  159. package/esm2015/domain/users/repositories/subscription.repository.js +1 -1
  160. package/esm2015/domain/users/repositories/user-address.repository.js +1 -1
  161. package/esm2015/domain/users/repositories/user-payment-method.repository.js +1 -1
  162. package/esm2015/domain/users/repositories/user.repository.js +1 -1
  163. package/esm2015/errors/duplicated-results.error.js +3 -2
  164. package/esm2015/errors/invalid-argument.error.js +3 -2
  165. package/esm2015/errors/not-found.error.js +3 -2
  166. package/esm2015/errors/required-argument.error.js +3 -2
  167. package/esm2015/infra/elasticsearch/adapters/axios.adapter.js +36 -1
  168. package/esm2015/infra/elasticsearch/adapters/elastic-search.adapter.js +1 -1
  169. package/esm2015/infra/elasticsearch/indexes/products-index.js +35 -1
  170. package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +2 -2
  171. package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +1 -1
  172. package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +2 -2
  173. package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +1 -1
  174. package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +1 -1
  175. package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +9 -10
  176. package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +2 -6
  177. package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +1 -1
  178. package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +1 -1
  179. package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +1 -1
  180. package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +4 -4
  181. package/esm2015/infra/firebase/firestore/models/user-search.js +3 -3
  182. package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +4 -2
  183. package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +37 -8
  184. package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +11 -21
  185. package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +2 -2
  186. package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +1 -1
  187. package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +1 -1
  188. package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +1 -1
  189. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.js +13 -0
  190. package/esm2015/infra/hasura-graphql/enums/hasura-graphql-where.enum.js +15 -0
  191. package/esm2015/infra/hasura-graphql/enums/index.js +3 -0
  192. package/esm2015/infra/hasura-graphql/index.js +5 -0
  193. package/esm2015/infra/hasura-graphql/mixins/helpers/attribute-option.helper.js +31 -0
  194. package/esm2015/infra/hasura-graphql/mixins/helpers/filter-option.helper.js +18 -0
  195. package/esm2015/infra/hasura-graphql/mixins/helpers/graphql-field.helper.js +72 -0
  196. package/esm2015/infra/hasura-graphql/mixins/helpers/index.js +4 -0
  197. package/esm2015/infra/hasura-graphql/mixins/index.js +8 -0
  198. package/esm2015/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.js +45 -0
  199. package/esm2015/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.js +10 -0
  200. package/esm2015/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.js +29 -0
  201. package/esm2015/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.js +93 -0
  202. package/esm2015/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.js +35 -0
  203. package/esm2015/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.js +94 -0
  204. package/esm2015/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.js +56 -0
  205. package/esm2015/infra/hasura-graphql/models/category-hasura-graphql.js +4 -0
  206. package/esm2015/infra/hasura-graphql/models/index.js +5 -0
  207. package/esm2015/infra/hasura-graphql/models/kit-product-hasura-graphql.js +15 -0
  208. package/esm2015/infra/hasura-graphql/models/product-hasura-graphql.js +11 -0
  209. package/esm2015/infra/hasura-graphql/models/variant-hasura-graphql.js +9 -0
  210. package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +136 -0
  211. package/esm2015/infra/hasura-graphql/repositories/catalog/index.js +4 -0
  212. package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +375 -0
  213. package/esm2015/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.js +107 -0
  214. package/esm2015/infra/hasura-graphql/repositories/index.js +2 -0
  215. package/esm2015/infra/hasura-graphql/types/fields.type.js +2 -0
  216. package/esm2015/infra/hasura-graphql/types/graphql.repository.type.js +2 -0
  217. package/esm2015/infra/hasura-graphql/types/hasura-graphql-auth-options.type.js +2 -0
  218. package/esm2015/infra/hasura-graphql/types/hasura-graphql-fields.type.js +2 -0
  219. package/esm2015/infra/hasura-graphql/types/hasura-graphql-headers.type.js +2 -0
  220. package/esm2015/infra/hasura-graphql/types/index.js +9 -0
  221. package/esm2015/infra/hasura-graphql/types/nested-field.type.js +2 -0
  222. package/esm2015/infra/hasura-graphql/types/query-builder-options.type.js +2 -0
  223. package/esm2015/infra/hasura-graphql/types/variable-options.type.js +2 -0
  224. package/esm2015/infra/index.js +2 -1
  225. package/esm2015/utils/index.js +6 -4
  226. package/esm2015/utils/is-uuid.js +3 -0
  227. package/esm2015/utils/mixins/index.js +2 -1
  228. package/esm2015/utils/mixins/merge-constructor-params.type.js +2 -0
  229. package/esm2015/utils/mixins/mixin-ctor.type.js +1 -1
  230. package/esm2015/utils/parse-datetime.js +14 -0
  231. package/esm2015/utils/types/array-element.type.js +2 -0
  232. package/esm2015/utils/types/index.js +2 -1
  233. package/fesm2015/infrab4a-connect.js +1375 -142
  234. package/fesm2015/infrab4a-connect.js.map +1 -1
  235. package/infra/elasticsearch/adapters/axios.adapter.d.ts +3 -0
  236. package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +3 -0
  237. package/infra/elasticsearch/indexes/products-index.d.ts +5 -1
  238. package/infra/firebase/auth/authentication-firebase-auth.service.d.ts +1 -1
  239. package/infra/firebase/auth/register-firebase-auth.service.d.ts +1 -1
  240. package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +3 -16
  241. package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +3 -28
  242. package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +3 -14
  243. package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +3 -19
  244. package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +3 -14
  245. package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +3 -14
  246. package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +5 -4
  247. package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +7 -14
  248. package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +6 -15
  249. package/infra/firebase/firestore/models/user-search.d.ts +3 -3
  250. package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +1 -42
  251. package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +5 -44
  252. package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +4 -51
  253. package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +1 -42
  254. package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +1 -42
  255. package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +1 -42
  256. package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +1 -42
  257. package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +1 -42
  258. package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +1 -42
  259. package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +1 -42
  260. package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +1 -42
  261. package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +1 -42
  262. package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +1 -42
  263. package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +1 -42
  264. package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +4 -51
  265. package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +1 -42
  266. package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +4 -51
  267. package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +4 -51
  268. package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +4 -51
  269. package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +1 -42
  270. package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +4 -51
  271. package/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +1 -42
  272. package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +3 -3
  273. package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +3 -3
  274. package/infra/firebase/firestore/types/firestore.repository.type.d.ts +7 -3
  275. package/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.d.ts +11 -0
  276. package/infra/hasura-graphql/enums/hasura-graphql-where.enum.d.ts +13 -0
  277. package/infra/hasura-graphql/enums/index.d.ts +2 -0
  278. package/infra/hasura-graphql/index.d.ts +4 -0
  279. package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +13 -0
  280. package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +6 -0
  281. package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +8 -0
  282. package/infra/hasura-graphql/mixins/helpers/index.d.ts +3 -0
  283. package/infra/hasura-graphql/mixins/index.d.ts +7 -0
  284. package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +8 -0
  285. package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +11 -0
  286. package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +7 -0
  287. package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +31 -0
  288. package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +24 -0
  289. package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +11 -0
  290. package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +14 -0
  291. package/infra/hasura-graphql/models/category-hasura-graphql.d.ts +6 -0
  292. package/infra/hasura-graphql/models/index.d.ts +4 -0
  293. package/infra/hasura-graphql/models/kit-product-hasura-graphql.d.ts +6 -0
  294. package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +9 -0
  295. package/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +9 -0
  296. package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +22 -0
  297. package/infra/hasura-graphql/repositories/catalog/index.d.ts +3 -0
  298. package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +26 -0
  299. package/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +13 -0
  300. package/infra/hasura-graphql/repositories/index.d.ts +1 -0
  301. package/infra/hasura-graphql/types/fields.type.d.ts +2 -0
  302. package/infra/hasura-graphql/types/graphql.repository.type.d.ts +21 -0
  303. package/infra/hasura-graphql/types/hasura-graphql-auth-options.type.d.ts +8 -0
  304. package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +36 -0
  305. package/infra/hasura-graphql/types/hasura-graphql-headers.type.d.ts +7 -0
  306. package/infra/hasura-graphql/types/index.d.ts +8 -0
  307. package/infra/hasura-graphql/types/nested-field.type.d.ts +7 -0
  308. package/infra/hasura-graphql/types/query-builder-options.type.d.ts +7 -0
  309. package/infra/hasura-graphql/types/variable-options.type.d.ts +9 -0
  310. package/infra/index.d.ts +1 -0
  311. package/package.json +5 -3
  312. package/utils/index.d.ts +5 -4
  313. package/utils/is-uuid.d.ts +1 -0
  314. package/utils/mixins/index.d.ts +1 -0
  315. package/utils/mixins/merge-constructor-params.type.d.ts +3 -0
  316. package/utils/mixins/mixin-ctor.type.d.ts +1 -1
  317. package/utils/parse-datetime.d.ts +1 -0
  318. package/utils/types/array-element.type.d.ts +1 -0
  319. package/utils/types/index.d.ts +1 -0
  320. package/domain/general/model/base-model-with-identifier-fields.d.ts +0 -3
  321. package/domain/general/model/base.model.d.ts +0 -6
  322. package/domain/general/model/types/base-model-builder.type.d.ts +0 -5
  323. package/domain/general/model/types/non-function-properties.type.d.ts +0 -2
  324. package/domain/general/model/types/non-function-property-name.type.d.ts +0 -3
  325. package/domain/general/repository/create.repository.d.ts +0 -5
  326. package/domain/general/repository/crud.repository.d.ts +0 -7
  327. package/domain/general/repository/delete.repository.d.ts +0 -5
  328. package/domain/general/repository/find.repository.d.ts +0 -5
  329. package/domain/general/repository/get.repository.d.ts +0 -5
  330. package/domain/general/repository/read.repository.d.ts +0 -5
  331. package/domain/general/repository/types/repository-find-filters.type.d.ts +0 -14
  332. package/domain/general/repository/update.repository.d.ts +0 -5
  333. package/domain/shopping/models/coupons/club-coupon.d.ts +0 -7
  334. package/domain/shopping/models/coupons/enums/discount-type.enum.d.ts +0 -5
  335. package/domain/shopping/models/coupons/store-coupon.d.ts +0 -8
  336. package/esm2015/domain/general/model/base-model-with-identifier-fields.js +0 -2
  337. package/esm2015/domain/general/model/base.model.js +0 -13
  338. package/esm2015/domain/general/model/index.js +0 -5
  339. package/esm2015/domain/general/model/types/base-model-builder.type.js +0 -2
  340. package/esm2015/domain/general/model/types/index.js +0 -4
  341. package/esm2015/domain/general/model/types/non-function-properties.type.js +0 -2
  342. package/esm2015/domain/general/model/types/non-function-property-name.type.js +0 -2
  343. package/esm2015/domain/general/repository/create.repository.js +0 -2
  344. package/esm2015/domain/general/repository/crud.repository.js +0 -2
  345. package/esm2015/domain/general/repository/delete.repository.js +0 -2
  346. package/esm2015/domain/general/repository/enums/where.enum.js +0 -12
  347. package/esm2015/domain/general/repository/find.repository.js +0 -2
  348. package/esm2015/domain/general/repository/get.repository.js +0 -2
  349. package/esm2015/domain/general/repository/read.repository.js +0 -2
  350. package/esm2015/domain/general/repository/types/index.js +0 -6
  351. package/esm2015/domain/general/repository/types/repository-find-filters.type.js +0 -2
  352. package/esm2015/domain/general/repository/types/repository-update-params.type.js +0 -2
  353. package/esm2015/domain/general/repository/update.repository.js +0 -2
  354. package/esm2015/domain/shopping/models/coupons/club-coupon.js +0 -18
  355. package/esm2015/domain/shopping/models/coupons/enums/discount-type.enum.js +0 -7
  356. package/esm2015/domain/shopping/models/coupons/store-coupon.js +0 -23
  357. /package/domain/{general → generic}/index.d.ts +0 -0
  358. /package/domain/{general → generic}/model/identifier-fields.d.ts +0 -0
  359. /package/domain/{general → generic}/repository/enums/index.d.ts +0 -0
  360. /package/domain/{general → generic}/repository/enums/update-option-actions.enum.d.ts +0 -0
  361. /package/domain/{general → generic}/repository/index.d.ts +0 -0
  362. /package/domain/{general → generic}/repository/types/repository-find-result.type.d.ts +0 -0
  363. /package/domain/{general → generic}/repository/types/repository-limit-options.type.d.ts +0 -0
  364. /package/domain/{general → generic}/repository/types/repository-order-by-list.type.d.ts +0 -0
@@ -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,31 @@
1
+ import { ModelBaseStructure, NonFunctionAndIdentifierPropertyNames, NonFunctionPropertyNames, RepositoryFindFielters, RepositoryFindFieltersOptions, RepositoryFindResult, RepositoryLimitOptions, RepositoryOrderBy } from '../../../domain';
2
+ import { MixinCtor } from '../../../utils';
3
+ import { HasuraGraphQLWhere } from '../enums';
4
+ import { ColumnOptions, GraphQLRepository, HasuraGraphQLFields, VariableOptions } from '../types';
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
+ fields?: NonFunctionPropertyNames<MBase, keyof MBase>[];
10
+ limits?: RepositoryLimitOptions<MBase>;
11
+ orderBy?: RepositoryOrderBy<MBase>;
12
+ }): Promise<RepositoryFindResult<MBase>>;
13
+ makeGraphQLWhere: (filter: RepositoryFindFielters<MBase>, fields: HasuraGraphQLFields<MBase>) => VariableOptions;
14
+ buildWhereSentence: (field: NonFunctionAndIdentifierPropertyNames<MBase>, options: RepositoryFindFieltersOptions<MBase, NonFunctionPropertyNames<MBase, keyof MBase>>, fields: HasuraGraphQLFields<MBase>) => VariableOptions;
15
+ buildOperatorSentence: (options: RepositoryFindFieltersOptions<MBase, any>, fieldOption: ColumnOptions<any, any>) => VariableOptions;
16
+ getHasuraOperator: (options: RepositoryFindFieltersOptions<MBase, NonFunctionPropertyNames<MBase, keyof MBase>>, fieldOption: ColumnOptions<any, any>) => HasuraGraphQLWhere;
17
+ getHasuraJsonbOperator: (options: RepositoryFindFieltersOptions<MBase, NonFunctionPropertyNames<MBase, keyof MBase>>) => HasuraGraphQLWhere;
18
+ tableName: string;
19
+ model: import("../../../domain").BaseModelBuilder<MBase, NonFunctionAndIdentifierPropertyNames<MBase>, MBase & {
20
+ prototype: unknown;
21
+ }>;
22
+ fields: HasuraGraphQLFields<MBase>;
23
+ endpoint: string;
24
+ authOptions: import("../types").HasuraGraphQLAuthOptions;
25
+ mutation: <ReturnFields = any>(operation: string, fields?: string[] | HasuraGraphQLFields<MBase>, variables?: VariableOptions) => Promise<ReturnFields>;
26
+ query: <ReturnFields_1 = any>(operation: string | import("../types").GraphQLParams<MBase>[], fields?: string[] | HasuraGraphQLFields<MBase>, variables?: VariableOptions) => Promise<ReturnFields_1>;
27
+ getAttributeGraphQLTypeOf: <FieldValue>(value: FieldValue) => string;
28
+ convertDataFromHasura: (data: Record<string, string | number>) => MBase;
29
+ convertDataToHasura(instance: MBase, update?: boolean): Record<string, string | number>;
30
+ };
31
+ } & TMixinBase;
@@ -0,0 +1,24 @@
1
+ import { GetRepositoryParams, ModelBaseStructure } from '../../../domain';
2
+ import { MixinCtor } from '../../../utils';
3
+ import { GraphQLRepository } from '../types';
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?: string[] | import("../types").HasuraGraphQLFields<MBase>, variables?: import("../types").VariableOptions) => Promise<ReturnFields>;
19
+ query: <ReturnFields_1 = any>(operation: string | import("../types").GraphQLParams<MBase>[], fields?: string[] | 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 { BaseModelBuilder, ModelBaseStructure } from '../../../domain';
2
+ import { MergeConstructorParams, MixinCtor } from '../../../utils';
3
+ import { GraphQLRepository, HasuraGraphQLAuthOptions, HasuraGraphQLFields } from '../types';
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 { MergeConstructorParams, MixinCtor } from '../../../utils';
3
+ import { GraphQLRepository } from '../types';
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,4 @@
1
+ export * from './category-hasura-graphql';
2
+ export * from './kit-product-hasura-graphql';
3
+ export * from './product-hasura-graphql';
4
+ export * from './variant-hasura-graphql';
@@ -0,0 +1,6 @@
1
+ import { KitProduct } from '../../../domain';
2
+ import { ProductHasuraGraphQL } from './product-hasura-graphql';
3
+ export declare class KitProductHasuraGraphQL extends KitProduct {
4
+ kit: ProductHasuraGraphQL;
5
+ product: ProductHasuraGraphQL;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { Product } from '../../../domain';
2
+ import { KitProductHasuraGraphQL } from './kit-product-hasura-graphql';
3
+ export declare class ProductHasuraGraphQL extends Product {
4
+ firestoreId?: string;
5
+ fullPrice?: number;
6
+ subscriberDiscountPercentage?: number;
7
+ subscriberPrice?: number;
8
+ kitProducts?: KitProductHasuraGraphQL[];
9
+ }
@@ -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,26 @@
1
+ import { CreateRepositoryParams, GetRepositoryParams, ProductRepository, ReviewStatusParams, ReviewWithProductData, UpdateRepositoryParams } 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
+ private get reviewsFields();
9
+ constructor(endpoint: string, authOptions: HasuraGraphQLAuthOptions);
10
+ create(data: CreateRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
11
+ get(identifiers: GetRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
12
+ getBySlug(slug: string): Promise<ProductHasuraGraphQL>;
13
+ update(params: UpdateRepositoryParams<ProductHasuraGraphQL>): Promise<ProductHasuraGraphQL>;
14
+ fetchReviews(status: ReviewStatusParams): Promise<ReviewWithProductData[]>;
15
+ private updateCategories;
16
+ private updateKitProducts;
17
+ private updateReviews;
18
+ private getId;
19
+ private findReviewsByProduct;
20
+ private findReview;
21
+ private getReviewByPersonId;
22
+ private getReviewByAuthorAndEmail;
23
+ private bindReviewToModel;
24
+ private bindReviewToHasura;
25
+ }
26
+ export {};
@@ -0,0 +1,13 @@
1
+ import { GetRepositoryParams, UpdateRepositoryParams, VariantRepository } from '../../../../domain';
2
+ import { VariantHasuraGraphQL } from '../../models';
3
+ import { HasuraGraphQLAuthOptions } from '../../types';
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
+ get(identifiers: GetRepositoryParams<VariantHasuraGraphQL>): Promise<VariantHasuraGraphQL>;
10
+ update(params: UpdateRepositoryParams<VariantHasuraGraphQL>): Promise<VariantHasuraGraphQL>;
11
+ private getId;
12
+ }
13
+ 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?: string[] | HasuraGraphQLFields<Model>, variables?: VariableOptions) => Promise<ReturnFields>;
17
+ query: <ReturnFields = any>(operation: string | GraphQLParams<Model>[], fields?: string[] | 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,36 @@
1
+ import { ModelBaseStructure, NonFunctionAndIdentifierPropertyNames, RepositoryFindField } from '../../../domain';
2
+ import { PropType } from '../../../utils';
3
+ import { HasuraGraphQLColumnType } from '../enums';
4
+ export declare type ColumnOptions<FieldType, Model, ValueFrom = any> = {
5
+ type?: HasuraGraphQLColumnType;
6
+ columnName?: string;
7
+ fields?: HasuraGraphQLFields<FieldType extends any[] ? FieldType[number] : FieldType>;
8
+ foreignKeyColumn?: Partial<Record<NonFunctionAndIdentifierPropertyNames<FieldType extends any[] ? FieldType[number] : FieldType>, NonFunctionAndIdentifierPropertyNames<Model> | string>>;
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 AggregateOptionNames = 'avg' | 'count' | 'max' | 'min' | 'stddev' | 'stddev_pop' | 'stddev_samp' | 'sum' | 'var_pop' | 'var_samp' | 'variance';
15
+ export declare type AggregateOptionFields<Model, Type, Properties extends keyof Model = keyof Model> = {
16
+ [K in Properties]: PropType<Model, K> extends Type ? K : never;
17
+ }[Properties] | string;
18
+ export declare type AggregateOptions<Model> = {
19
+ avg?: Array<AggregateOptionFields<Model, number>>;
20
+ max?: Array<AggregateOptionFields<Model, number | Date>>;
21
+ min?: Array<AggregateOptionFields<Model, number | Date>>;
22
+ stddev?: Array<AggregateOptionFields<Model, number>>;
23
+ stddev_pop?: Array<AggregateOptionFields<Model, number>>;
24
+ stddev_samp?: Array<AggregateOptionFields<Model, number>>;
25
+ sum?: Array<AggregateOptionFields<Model, number>>;
26
+ var_pop?: Array<AggregateOptionFields<Model, number>>;
27
+ var_samp?: Array<AggregateOptionFields<Model, number>>;
28
+ variance?: Array<AggregateOptionFields<Model, number>>;
29
+ };
30
+ export declare type HasuraGraphQLFields<Model> = ((Model extends ModelBaseStructure ? NonFunctionAndIdentifierPropertyNames<Model> | {
31
+ [key in NonFunctionAndIdentifierPropertyNames<Model>]?: PropType<Model, key> extends ModelBaseStructure ? HasuraGraphQLFields<PropType<Model, key>> : PropType<Model, key> extends any[] ? PropType<Model, key>[] extends ModelBaseStructure[] ? HasuraGraphQLFields<PropType<Model, key>[]> : never : never;
32
+ } | {
33
+ [key in NonFunctionAndIdentifierPropertyNames<Model>]?: key extends 'aggregate' ? never : PropType<Model, key> extends ModelBaseStructure ? ColumnOptions<PropType<Model, key>, Model> : ColumnOptions<PropType<Model, key>, Model>;
34
+ } : string) | {
35
+ aggregate: Array<AggregateOptions<Model> | 'count'>;
36
+ } | 'affected_rows')[];
@@ -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
+ };
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",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -10,13 +10,15 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "axios": "^0.27.2",
13
- "class-transformer": "^0.4.0",
13
+ "class-transformer": "^0.5.1",
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",
19
+ "ts-custom-error": "3.2.2",
18
20
  "ts-md5": "^1.2.9",
19
- "tslib": "^2.2.0"
21
+ "tslib": "^2.4.0"
20
22
  },
21
23
  "main": "bundles/infrab4a-connect.umd.js",
22
24
  "module": "fesm2015/infrab4a-connect.js",
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vZ2VuZXJhbC9tb2RlbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGNBQWMsQ0FBQTtBQUM1QixjQUFjLHFCQUFxQixDQUFBO0FBQ25DLGNBQWMscUNBQXFDLENBQUE7QUFDbkQsY0FBYyxTQUFTLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Jhc2UubW9kZWwnXG5leHBvcnQgKiBmcm9tICcuL2lkZW50aWZpZXItZmllbGRzJ1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLW1vZGVsLXdpdGgtaWRlbnRpZmllci1maWVsZHMnXG5leHBvcnQgKiBmcm9tICcuL3R5cGVzJ1xuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1tb2RlbC1idWlsZGVyLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vZ2VuZXJhbC9tb2RlbC90eXBlcy9iYXNlLW1vZGVsLWJ1aWxkZXIudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTm9uRnVuY3Rpb25Qcm9wZXJ0aWVzIH0gZnJvbSAnLi9ub24tZnVuY3Rpb24tcHJvcGVydGllcy50eXBlJ1xuXG5leHBvcnQgaW50ZXJmYWNlIEJhc2VNb2RlbEJ1aWxkZXI8VD4ge1xuICBuZXcgKC4uLmFyZ3MpOiBUXG4gIHRvSW5zdGFuY2UodGhpczogbmV3ICgpID0+IFQsIGRhdGE6IE5vbkZ1bmN0aW9uUHJvcGVydGllczxUPik6IFRcbn1cbiJdfQ==
@@ -1,4 +0,0 @@
1
- export * from './non-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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9uLWZ1bmN0aW9uLXByb3BlcnRpZXMudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9nZW5lcmFsL21vZGVsL3R5cGVzL25vbi1mdW5jdGlvbi1wcm9wZXJ0aWVzLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5vbkZ1bmN0aW9uUHJvcGVydHlOYW1lcyB9IGZyb20gJy4vbm9uLWZ1bmN0aW9uLXByb3BlcnR5LW5hbWUudHlwZSdcblxuZXhwb3J0IHR5cGUgTm9uRnVuY3Rpb25Qcm9wZXJ0aWVzPFQ+ID0gUGljazxQYXJ0aWFsPFQ+LCBOb25GdW5jdGlvblByb3BlcnR5TmFtZXM8VD4+XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9uLWZ1bmN0aW9uLXByb3BlcnR5LW5hbWUudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9nZW5lcmFsL21vZGVsL3R5cGVzL25vbi1mdW5jdGlvbi1wcm9wZXJ0eS1uYW1lLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIE5vbkZ1bmN0aW9uUHJvcGVydHlOYW1lczxUPiA9IHsgW0sgaW4ga2V5b2YgVF06IFRbS10gZXh0ZW5kcyAoKSA9PiB2b2lkID8gbmV2ZXIgOiBLIH1ba2V5b2YgVF1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLnJlcG9zaXRvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vZ2VuZXJhbC9yZXBvc2l0b3J5L2NyZWF0ZS5yZXBvc2l0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlTW9kZWxXaXRoSWRlbnRpZmllciB9IGZyb20gJy4uL21vZGVsL2Jhc2UtbW9kZWwtd2l0aC1pZGVudGlmaWVyLWZpZWxkcydcbmltcG9ydCB7IE5vbkZ1bmN0aW9uUHJvcGVydGllcyB9IGZyb20gJy4uL21vZGVsL3R5cGVzL25vbi1mdW5jdGlvbi1wcm9wZXJ0aWVzLnR5cGUnXG5cbmV4cG9ydCBpbnRlcmZhY2UgQ3JlYXRlUmVwb3NpdG9yeTxNb2RlbCBleHRlbmRzIEJhc2VNb2RlbFdpdGhJZGVudGlmaWVyPE1vZGVsPj4ge1xuICBjcmVhdGUoZGF0YTogTm9uRnVuY3Rpb25Qcm9wZXJ0aWVzPEJhc2VNb2RlbFdpdGhJZGVudGlmaWVyPE1vZGVsPj4pOiBQcm9taXNlPE1vZGVsPlxufVxuIl19