@gofynd/fdk-store-gql 0.0.112

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 (352) hide show
  1. package/.github/workflows/npm-publish.yml +26 -0
  2. package/README.md +84 -0
  3. package/azure-pipelines.yml +56 -0
  4. package/codegen.yml +6 -0
  5. package/lib/graphql/mutations/UnFollowById.handler.d.ts +3 -0
  6. package/lib/graphql/mutations/UnFollowById.handler.js +5 -0
  7. package/lib/graphql/mutations/UnFollowById.handler.js.map +1 -0
  8. package/lib/graphql/mutations/addItemsToCart.handler.d.ts +3 -0
  9. package/lib/graphql/mutations/addItemsToCart.handler.js +9 -0
  10. package/lib/graphql/mutations/addItemsToCart.handler.js.map +1 -0
  11. package/lib/graphql/mutations/applyCoupon.handler.d.ts +3 -0
  12. package/lib/graphql/mutations/applyCoupon.handler.js +7 -0
  13. package/lib/graphql/mutations/applyCoupon.handler.js.map +1 -0
  14. package/lib/graphql/mutations/applyRewardPoints.handler.d.ts +3 -0
  15. package/lib/graphql/mutations/applyRewardPoints.handler.js +7 -0
  16. package/lib/graphql/mutations/applyRewardPoints.handler.js.map +1 -0
  17. package/lib/graphql/mutations/followById.handler.d.ts +3 -0
  18. package/lib/graphql/mutations/followById.handler.js +5 -0
  19. package/lib/graphql/mutations/followById.handler.js.map +1 -0
  20. package/lib/graphql/mutations/getCartShareLink.handler.d.ts +3 -0
  21. package/lib/graphql/mutations/getCartShareLink.handler.js +7 -0
  22. package/lib/graphql/mutations/getCartShareLink.handler.js.map +1 -0
  23. package/lib/graphql/mutations/index.d.ts +2 -0
  24. package/lib/graphql/mutations/index.js +54 -0
  25. package/lib/graphql/mutations/index.js.map +1 -0
  26. package/lib/graphql/mutations/loginWithAppleIOS.handler.d.ts +3 -0
  27. package/lib/graphql/mutations/loginWithAppleIOS.handler.js +7 -0
  28. package/lib/graphql/mutations/loginWithAppleIOS.handler.js.map +1 -0
  29. package/lib/graphql/mutations/loginWithEmailAndPassword.handler.d.ts +3 -0
  30. package/lib/graphql/mutations/loginWithEmailAndPassword.handler.js +7 -0
  31. package/lib/graphql/mutations/loginWithEmailAndPassword.handler.js.map +1 -0
  32. package/lib/graphql/mutations/loginWithFacebook.handler.d.ts +3 -0
  33. package/lib/graphql/mutations/loginWithFacebook.handler.js +7 -0
  34. package/lib/graphql/mutations/loginWithFacebook.handler.js.map +1 -0
  35. package/lib/graphql/mutations/loginWithGoogle.handler.d.ts +3 -0
  36. package/lib/graphql/mutations/loginWithGoogle.handler.js +7 -0
  37. package/lib/graphql/mutations/loginWithGoogle.handler.js.map +1 -0
  38. package/lib/graphql/mutations/loginWithOTP.handler.d.ts +3 -0
  39. package/lib/graphql/mutations/loginWithOTP.handler.js +7 -0
  40. package/lib/graphql/mutations/loginWithOTP.handler.js.map +1 -0
  41. package/lib/graphql/mutations/removeCoupon.handler.d.ts +3 -0
  42. package/lib/graphql/mutations/removeCoupon.handler.js +7 -0
  43. package/lib/graphql/mutations/removeCoupon.handler.js.map +1 -0
  44. package/lib/graphql/mutations/selectAddress.handler.d.ts +3 -0
  45. package/lib/graphql/mutations/selectAddress.handler.js +5 -0
  46. package/lib/graphql/mutations/selectAddress.handler.js.map +1 -0
  47. package/lib/graphql/mutations/selectPaymentMode.handler.d.ts +3 -0
  48. package/lib/graphql/mutations/selectPaymentMode.handler.js +5 -0
  49. package/lib/graphql/mutations/selectPaymentMode.handler.js.map +1 -0
  50. package/lib/graphql/mutations/updateAddress.handler.d.ts +3 -0
  51. package/lib/graphql/mutations/updateAddress.handler.js +7 -0
  52. package/lib/graphql/mutations/updateAddress.handler.js.map +1 -0
  53. package/lib/graphql/mutations/updateCart.handler.d.ts +3 -0
  54. package/lib/graphql/mutations/updateCart.handler.js +14 -0
  55. package/lib/graphql/mutations/updateCart.handler.js.map +1 -0
  56. package/lib/graphql/mutations/updateCartMeta.handler.d.ts +3 -0
  57. package/lib/graphql/mutations/updateCartMeta.handler.js +7 -0
  58. package/lib/graphql/mutations/updateCartMeta.handler.js.map +1 -0
  59. package/lib/graphql/mutations/updateProfile.handler.d.ts +3 -0
  60. package/lib/graphql/mutations/updateProfile.handler.js +9 -0
  61. package/lib/graphql/mutations/updateProfile.handler.js.map +1 -0
  62. package/lib/graphql/mutations/verifyEmailOtp.handler.d.ts +3 -0
  63. package/lib/graphql/mutations/verifyEmailOtp.handler.js +7 -0
  64. package/lib/graphql/mutations/verifyEmailOtp.handler.js.map +1 -0
  65. package/lib/graphql/mutations/verifyMobileOTP.handler.d.ts +3 -0
  66. package/lib/graphql/mutations/verifyMobileOTP.handler.js +7 -0
  67. package/lib/graphql/mutations/verifyMobileOTP.handler.js.map +1 -0
  68. package/lib/graphql/query/address.handler.d.ts +3 -0
  69. package/lib/graphql/query/address.handler.js +7 -0
  70. package/lib/graphql/query/address.handler.js.map +1 -0
  71. package/lib/graphql/query/addresses.handler.d.ts +3 -0
  72. package/lib/graphql/query/addresses.handler.js +7 -0
  73. package/lib/graphql/query/addresses.handler.js.map +1 -0
  74. package/lib/graphql/query/aggregatorsConfig.handler.d.ts +3 -0
  75. package/lib/graphql/query/aggregatorsConfig.handler.js +7 -0
  76. package/lib/graphql/query/aggregatorsConfig.handler.js.map +1 -0
  77. package/lib/graphql/query/allCountries.handler.d.ts +3 -0
  78. package/lib/graphql/query/allCountries.handler.js +8 -0
  79. package/lib/graphql/query/allCountries.handler.js.map +1 -0
  80. package/lib/graphql/query/applicationConfiguration.handler.d.ts +3 -0
  81. package/lib/graphql/query/applicationConfiguration.handler.js +24 -0
  82. package/lib/graphql/query/applicationConfiguration.handler.js.map +1 -0
  83. package/lib/graphql/query/applicationContent.handler.d.ts +3 -0
  84. package/lib/graphql/query/applicationContent.handler.js +38 -0
  85. package/lib/graphql/query/applicationContent.handler.js.map +1 -0
  86. package/lib/graphql/query/applicationStaff.handler.d.ts +2 -0
  87. package/lib/graphql/query/applicationStaff.handler.js +7 -0
  88. package/lib/graphql/query/applicationStaff.handler.js.map +1 -0
  89. package/lib/graphql/query/blog.handler.d.ts +3 -0
  90. package/lib/graphql/query/blog.handler.js +7 -0
  91. package/lib/graphql/query/blog.handler.js.map +1 -0
  92. package/lib/graphql/query/brands.handler.d.ts +3 -0
  93. package/lib/graphql/query/brands.handler.js +8 -0
  94. package/lib/graphql/query/brands.handler.js.map +1 -0
  95. package/lib/graphql/query/bulkDiscountOffers.handler.d.ts +3 -0
  96. package/lib/graphql/query/bulkDiscountOffers.handler.js +7 -0
  97. package/lib/graphql/query/bulkDiscountOffers.handler.js.map +1 -0
  98. package/lib/graphql/query/cartHandler.d.ts +3 -0
  99. package/lib/graphql/query/cartHandler.js +9 -0
  100. package/lib/graphql/query/cartHandler.js.map +1 -0
  101. package/lib/graphql/query/cartShipmentDetails.handler.d.ts +3 -0
  102. package/lib/graphql/query/cartShipmentDetails.handler.js +7 -0
  103. package/lib/graphql/query/cartShipmentDetails.handler.js.map +1 -0
  104. package/lib/graphql/query/categories.handler.d.ts +3 -0
  105. package/lib/graphql/query/categories.handler.js +8 -0
  106. package/lib/graphql/query/categories.handler.js.map +1 -0
  107. package/lib/graphql/query/collection.handler.d.ts +3 -0
  108. package/lib/graphql/query/collection.handler.js +9 -0
  109. package/lib/graphql/query/collection.handler.js.map +1 -0
  110. package/lib/graphql/query/collectionItems.handler.d.ts +3 -0
  111. package/lib/graphql/query/collectionItems.handler.js +7 -0
  112. package/lib/graphql/query/collectionItems.handler.js.map +1 -0
  113. package/lib/graphql/query/collections.handler.d.ts +3 -0
  114. package/lib/graphql/query/collections.handler.js +7 -0
  115. package/lib/graphql/query/collections.handler.js.map +1 -0
  116. package/lib/graphql/query/coupons.handler.d.ts +3 -0
  117. package/lib/graphql/query/coupons.handler.js +7 -0
  118. package/lib/graphql/query/coupons.handler.js.map +1 -0
  119. package/lib/graphql/query/customPage.hadler.d.ts +2 -0
  120. package/lib/graphql/query/customPage.hadler.js +7 -0
  121. package/lib/graphql/query/customPage.hadler.js.map +1 -0
  122. package/lib/graphql/query/faqsByCategory.handler.d.ts +3 -0
  123. package/lib/graphql/query/faqsByCategory.handler.js +7 -0
  124. package/lib/graphql/query/faqsByCategory.handler.js.map +1 -0
  125. package/lib/graphql/query/followedListing.handler.d.ts +3 -0
  126. package/lib/graphql/query/followedListing.handler.js +7 -0
  127. package/lib/graphql/query/followedListing.handler.js.map +1 -0
  128. package/lib/graphql/query/followerCount.handler.d.ts +3 -0
  129. package/lib/graphql/query/followerCount.handler.js +7 -0
  130. package/lib/graphql/query/followerCount.handler.js.map +1 -0
  131. package/lib/graphql/query/index.d.ts +2 -0
  132. package/lib/graphql/query/index.js +83 -0
  133. package/lib/graphql/query/index.js.map +1 -0
  134. package/lib/graphql/query/localityHandler.d.ts +3 -0
  135. package/lib/graphql/query/localityHandler.js +7 -0
  136. package/lib/graphql/query/localityHandler.js.map +1 -0
  137. package/lib/graphql/query/order.handler.d.ts +3 -0
  138. package/lib/graphql/query/order.handler.js +5 -0
  139. package/lib/graphql/query/order.handler.js.map +1 -0
  140. package/lib/graphql/query/page.handler.d.ts +3 -0
  141. package/lib/graphql/query/page.handler.js +3 -0
  142. package/lib/graphql/query/page.handler.js.map +1 -0
  143. package/lib/graphql/query/paymentModeRoutes.handler.d.ts +3 -0
  144. package/lib/graphql/query/paymentModeRoutes.handler.js +8 -0
  145. package/lib/graphql/query/paymentModeRoutes.handler.js.map +1 -0
  146. package/lib/graphql/query/pincodeDetails.handler.d.ts +2 -0
  147. package/lib/graphql/query/pincodeDetails.handler.js +7 -0
  148. package/lib/graphql/query/pincodeDetails.handler.js.map +1 -0
  149. package/lib/graphql/query/platformConfig.handler.d.ts +3 -0
  150. package/lib/graphql/query/platformConfig.handler.js +7 -0
  151. package/lib/graphql/query/platformConfig.handler.js.map +1 -0
  152. package/lib/graphql/query/product.handler.d.ts +3 -0
  153. package/lib/graphql/query/product.handler.js +12 -0
  154. package/lib/graphql/query/product.handler.js.map +1 -0
  155. package/lib/graphql/query/productLadderPromotion.handler.d.ts +3 -0
  156. package/lib/graphql/query/productLadderPromotion.handler.js +7 -0
  157. package/lib/graphql/query/productLadderPromotion.handler.js.map +1 -0
  158. package/lib/graphql/query/productPrice.handler.d.ts +3 -0
  159. package/lib/graphql/query/productPrice.handler.js +5 -0
  160. package/lib/graphql/query/productPrice.handler.js.map +1 -0
  161. package/lib/graphql/query/productSellers.handler.d.ts +3 -0
  162. package/lib/graphql/query/productSellers.handler.js +7 -0
  163. package/lib/graphql/query/productSellers.handler.js.map +1 -0
  164. package/lib/graphql/query/products.handler.d.ts +3 -0
  165. package/lib/graphql/query/products.handler.js +9 -0
  166. package/lib/graphql/query/products.handler.js.map +1 -0
  167. package/lib/graphql/query/promotionOffers.handler.d.ts +3 -0
  168. package/lib/graphql/query/promotionOffers.handler.js +7 -0
  169. package/lib/graphql/query/promotionOffers.handler.js.map +1 -0
  170. package/lib/graphql/query/store.handler.d.ts +3 -0
  171. package/lib/graphql/query/store.handler.js +7 -0
  172. package/lib/graphql/query/store.handler.js.map +1 -0
  173. package/lib/graphql/query/theme.handler.d.ts +3 -0
  174. package/lib/graphql/query/theme.handler.js +13 -0
  175. package/lib/graphql/query/theme.handler.js.map +1 -0
  176. package/lib/graphql/query/user.handler.d.ts +3 -0
  177. package/lib/graphql/query/user.handler.js +12 -0
  178. package/lib/graphql/query/user.handler.js.map +1 -0
  179. package/lib/helpers/FPI-events.d.ts +34 -0
  180. package/lib/helpers/FPI-events.js +590 -0
  181. package/lib/helpers/FPI-events.js.map +1 -0
  182. package/lib/helpers/utils.d.ts +7 -0
  183. package/lib/helpers/utils.js +101 -0
  184. package/lib/helpers/utils.js.map +1 -0
  185. package/lib/index.d.ts +7 -0
  186. package/lib/index.js +13 -0
  187. package/lib/index.js.map +1 -0
  188. package/lib/store/enums/keys.d.ts +35 -0
  189. package/lib/store/enums/keys.js +38 -0
  190. package/lib/store/enums/keys.js.map +1 -0
  191. package/lib/store/index.d.ts +24 -0
  192. package/lib/store/index.js +244 -0
  193. package/lib/store/index.js.map +1 -0
  194. package/lib/store/modules/custom.d.ts +8 -0
  195. package/lib/store/modules/custom.js +11 -0
  196. package/lib/store/modules/custom.js.map +1 -0
  197. package/lib/store/modules/payment.d.ts +6 -0
  198. package/lib/store/modules/payment.js +10 -0
  199. package/lib/store/modules/payment.js.map +1 -0
  200. package/lib/store/modules/theme.d.ts +17 -0
  201. package/lib/store/modules/theme.js +30 -0
  202. package/lib/store/modules/theme.js.map +1 -0
  203. package/lib/store/slices/address.d.ts +4 -0
  204. package/lib/store/slices/address.js +24 -0
  205. package/lib/store/slices/address.js.map +1 -0
  206. package/lib/store/slices/auth.d.ts +4 -0
  207. package/lib/store/slices/auth.js +25 -0
  208. package/lib/store/slices/auth.js.map +1 -0
  209. package/lib/store/slices/brands.d.ts +4 -0
  210. package/lib/store/slices/brands.js +18 -0
  211. package/lib/store/slices/brands.js.map +1 -0
  212. package/lib/store/slices/cart.d.ts +4 -0
  213. package/lib/store/slices/cart.js +62 -0
  214. package/lib/store/slices/cart.js.map +1 -0
  215. package/lib/store/slices/categories.d.ts +4 -0
  216. package/lib/store/slices/categories.js +17 -0
  217. package/lib/store/slices/categories.js.map +1 -0
  218. package/lib/store/slices/collection.d.ts +4 -0
  219. package/lib/store/slices/collection.js +25 -0
  220. package/lib/store/slices/collection.js.map +1 -0
  221. package/lib/store/slices/configuration.d.ts +4 -0
  222. package/lib/store/slices/configuration.js +45 -0
  223. package/lib/store/slices/configuration.js.map +1 -0
  224. package/lib/store/slices/content.d.ts +4 -0
  225. package/lib/store/slices/content.js +75 -0
  226. package/lib/store/slices/content.js.map +1 -0
  227. package/lib/store/slices/custom.d.ts +3 -0
  228. package/lib/store/slices/custom.js +17 -0
  229. package/lib/store/slices/custom.js.map +1 -0
  230. package/lib/store/slices/logistic.d.ts +4 -0
  231. package/lib/store/slices/logistic.js +81 -0
  232. package/lib/store/slices/logistic.js.map +1 -0
  233. package/lib/store/slices/order.d.ts +1 -0
  234. package/lib/store/slices/order.js +11 -0
  235. package/lib/store/slices/order.js.map +1 -0
  236. package/lib/store/slices/payment.d.ts +23 -0
  237. package/lib/store/slices/payment.js +57 -0
  238. package/lib/store/slices/payment.js.map +1 -0
  239. package/lib/store/slices/product.d.ts +4 -0
  240. package/lib/store/slices/product.js +70 -0
  241. package/lib/store/slices/product.js.map +1 -0
  242. package/lib/store/slices/products.d.ts +4 -0
  243. package/lib/store/slices/products.js +27 -0
  244. package/lib/store/slices/products.js.map +1 -0
  245. package/lib/store/slices/share.d.ts +1 -0
  246. package/lib/store/slices/share.js +11 -0
  247. package/lib/store/slices/share.js.map +1 -0
  248. package/lib/store/slices/theme.d.ts +25 -0
  249. package/lib/store/slices/theme.js +84 -0
  250. package/lib/store/slices/theme.js.map +1 -0
  251. package/lib/store/store.d.ts +64 -0
  252. package/lib/store/store.js +44 -0
  253. package/lib/store/store.js.map +1 -0
  254. package/lib/store/utils/gateways/ajiodhan.d.ts +8 -0
  255. package/lib/store/utils/gateways/ajiodhan.js +27 -0
  256. package/lib/store/utils/gateways/ajiodhan.js.map +1 -0
  257. package/lib/store/utils/gateways/ccavenue.d.ts +13 -0
  258. package/lib/store/utils/gateways/ccavenue.js +19 -0
  259. package/lib/store/utils/gateways/ccavenue.js.map +1 -0
  260. package/lib/store/utils/gateways/epaylater.d.ts +14 -0
  261. package/lib/store/utils/gateways/epaylater.js +28 -0
  262. package/lib/store/utils/gateways/epaylater.js.map +1 -0
  263. package/lib/store/utils/gateways/helper.d.ts +1 -0
  264. package/lib/store/utils/gateways/helper.js +17 -0
  265. package/lib/store/utils/gateways/helper.js.map +1 -0
  266. package/lib/store/utils/gateways/index.d.ts +1 -0
  267. package/lib/store/utils/gateways/index.js +27 -0
  268. package/lib/store/utils/gateways/index.js.map +1 -0
  269. package/lib/store/utils/gateways/jio.d.ts +12 -0
  270. package/lib/store/utils/gateways/jio.js +24 -0
  271. package/lib/store/utils/gateways/jio.js.map +1 -0
  272. package/lib/store/utils/gateways/jiopay.d.ts +21 -0
  273. package/lib/store/utils/gateways/jiopay.js +30 -0
  274. package/lib/store/utils/gateways/jiopay.js.map +1 -0
  275. package/lib/store/utils/gateways/juspay.d.ts +34 -0
  276. package/lib/store/utils/gateways/juspay.js +63 -0
  277. package/lib/store/utils/gateways/juspay.js.map +1 -0
  278. package/lib/store/utils/gateways/payumoney.d.ts +8 -0
  279. package/lib/store/utils/gateways/payumoney.js +17 -0
  280. package/lib/store/utils/gateways/payumoney.js.map +1 -0
  281. package/lib/store/utils/gateways/potlee.d.ts +63 -0
  282. package/lib/store/utils/gateways/potlee.js +315 -0
  283. package/lib/store/utils/gateways/potlee.js.map +1 -0
  284. package/lib/store/utils/gateways/razorpay.d.ts +46 -0
  285. package/lib/store/utils/gateways/razorpay.js +70 -0
  286. package/lib/store/utils/gateways/razorpay.js.map +1 -0
  287. package/lib/store/utils/gateways/rupifi.d.ts +17 -0
  288. package/lib/store/utils/gateways/rupifi.js +63 -0
  289. package/lib/store/utils/gateways/rupifi.js.map +1 -0
  290. package/lib/store/utils/gateways/simply.d.ts +43 -0
  291. package/lib/store/utils/gateways/simply.js +222 -0
  292. package/lib/store/utils/gateways/simply.js.map +1 -0
  293. package/lib/store/utils/gateways/standard_extension.d.ts +13 -0
  294. package/lib/store/utils/gateways/standard_extension.js +22 -0
  295. package/lib/store/utils/gateways/standard_extension.js.map +1 -0
  296. package/lib/store/utils/helper.d.ts +1 -0
  297. package/lib/store/utils/helper.js +17 -0
  298. package/lib/store/utils/helper.js.map +1 -0
  299. package/lib/store/utils/payment.d.ts +4 -0
  300. package/lib/store/utils/payment.js +496 -0
  301. package/lib/store/utils/payment.js.map +1 -0
  302. package/lib/store/utils/util.d.ts +14 -0
  303. package/lib/store/utils/util.js +67 -0
  304. package/lib/store/utils/util.js.map +1 -0
  305. package/lib/types/address.d.ts +7 -0
  306. package/lib/types/address.js +2 -0
  307. package/lib/types/address.js.map +1 -0
  308. package/lib/types/auth.d.ts +69 -0
  309. package/lib/types/auth.js +2 -0
  310. package/lib/types/auth.js.map +1 -0
  311. package/lib/types/brands.d.ts +6 -0
  312. package/lib/types/brands.js +2 -0
  313. package/lib/types/brands.js.map +1 -0
  314. package/lib/types/cart.d.ts +39 -0
  315. package/lib/types/cart.js +2 -0
  316. package/lib/types/cart.js.map +1 -0
  317. package/lib/types/categories.d.ts +5 -0
  318. package/lib/types/categories.js +2 -0
  319. package/lib/types/categories.js.map +1 -0
  320. package/lib/types/collection.d.ts +10 -0
  321. package/lib/types/collection.js +2 -0
  322. package/lib/types/collection.js.map +1 -0
  323. package/lib/types/configuration.d.ts +19 -0
  324. package/lib/types/configuration.js +2 -0
  325. package/lib/types/configuration.js.map +1 -0
  326. package/lib/types/content.d.ts +35 -0
  327. package/lib/types/content.js +2 -0
  328. package/lib/types/content.js.map +1 -0
  329. package/lib/types/custom.d.ts +12 -0
  330. package/lib/types/custom.js +2 -0
  331. package/lib/types/custom.js.map +1 -0
  332. package/lib/types/graphql.d.ts +11471 -0
  333. package/lib/types/graphql.js +198 -0
  334. package/lib/types/graphql.js.map +1 -0
  335. package/lib/types/index.d.ts +56 -0
  336. package/lib/types/index.js +2 -0
  337. package/lib/types/index.js.map +1 -0
  338. package/lib/types/logistic.d.ts +9 -0
  339. package/lib/types/logistic.js +2 -0
  340. package/lib/types/logistic.js.map +1 -0
  341. package/lib/types/product.d.ts +29 -0
  342. package/lib/types/product.js +2 -0
  343. package/lib/types/product.js.map +1 -0
  344. package/lib/types/products.d.ts +29 -0
  345. package/lib/types/products.js +2 -0
  346. package/lib/types/products.js.map +1 -0
  347. package/lib/types/theme.d.ts +26 -0
  348. package/lib/types/theme.js +2 -0
  349. package/lib/types/theme.js.map +1 -0
  350. package/package.json +45 -0
  351. package/schema.json +58765 -0
  352. package/webpack.config.js +23 -0
@@ -0,0 +1,70 @@
1
+ import { createSlice, } from "@reduxjs/toolkit";
2
+ import { STORE_KEYS } from "../enums/keys";
3
+ const initialState = {
4
+ product_details: {},
5
+ product_variants: {},
6
+ product_meta: {},
7
+ bulk_price: {},
8
+ similar_compare_products: {},
9
+ frequently_compared_products: {},
10
+ product_price_by_slug: {},
11
+ product_seller_by_slug: {},
12
+ follow_by_id: {},
13
+ follower_count_by_id: {},
14
+ followed_listing: {},
15
+ fetch_follow_ids: {},
16
+ followed_products: {},
17
+ unfollow_by_id: {},
18
+ };
19
+ const pdpSlice = createSlice({
20
+ name: STORE_KEYS.PRODUCT_DETAILS,
21
+ initialState,
22
+ reducers: {
23
+ setProduct(state, action) {
24
+ state.product_details = action.payload;
25
+ state.product_meta = action.payload;
26
+ },
27
+ setProductVariants(state, action) {
28
+ state.product_variants = action.payload;
29
+ },
30
+ setbulkDiscountOffers(state, action) {
31
+ state.bulk_price = action.payload;
32
+ },
33
+ setcompareSimilarProduct(state, action) {
34
+ state.similar_compare_products = action.payload;
35
+ },
36
+ setcompareWithFrequentlyCompared(state, action) {
37
+ state.frequently_compared_products = action.payload;
38
+ },
39
+ setproductPrice(state, action) {
40
+ state.product_price_by_slug = action.payload;
41
+ },
42
+ setFollowListing(state, action) {
43
+ state.followed_listing = action.payload;
44
+ },
45
+ setfollowerCount(state, action) {
46
+ state.follower_count_by_id = action.payload;
47
+ },
48
+ setfollowedProducts(state, action) {
49
+ state.followed_products = action.payload;
50
+ },
51
+ setproductSellers(state, action) {
52
+ // let currentItems = action.product_seller_by_slug.items || [];
53
+ // let items;
54
+ // if (Number(action.payload.page.current) > 1) {
55
+ // items = currentItems.concat(action.payload.items || []);
56
+ // } else {
57
+ // items = action.payload.items;
58
+ // }
59
+ // state.product_seller_by_slug.items = {
60
+ // ...items,
61
+ // error: null,
62
+ // loading: false,
63
+ // };
64
+ state.product_seller_by_slug = action.payload;
65
+ },
66
+ }
67
+ });
68
+ export const pdpReducer = pdpSlice.reducer;
69
+ export const { setProduct, setfollowerCount, setproductSellers, setproductPrice, setcompareWithFrequentlyCompared, setProductVariants, setbulkDiscountOffers, setFollowListing, setcompareSimilarProduct, setfollowedProducts, } = pdpSlice.actions;
70
+ //# sourceMappingURL=product.js.map
@@ -0,0 +1 @@
1
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OAAO,CAAC;QACtD,CAAC;QACD,eAAe,CAAC,KAAK,EAAE,MAA+D;YACpF,KAAK,CAAC,qBAAqB,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/C,CAAC;QACD,gBAAgB,CAAC,KAAK,EAAE,MAAmC;YACzD,KAAK,CAAC,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC;QAC1C,CAAC;QACD,gBAAgB,CAAC,KAAK,EAAE,MAAmC;YACzD,KAAK,CAAC,oBAAoB,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9C,CAAC;QACD,mBAAmB,CAAC,KAAK,EAAE,MAAyB;YAClD,KAAK,CAAC,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC;QAC3C,CAAC;QACD,iBAAiB,CAAC,KAAK,EAAE,MAAoC;YAC3D,gEAAgE;YAChE,aAAa;YACb,iDAAiD;YACjD,6DAA6D;YAC7D,WAAW;YACX,kCAAkC;YAClC,IAAI;YACJ,yCAAyC;YACzC,cAAc;YACd,iBAAiB;YACjB,oBAAoB;YACpB,KAAK;YACL,KAAK,CAAC,sBAAsB,GAAG,MAAM,CAAC,OAAO,CAAC;QAChD,CAAC;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC;AAC3C,MAAM,CAAC,MAAM,EACX,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gCAAgC,EAChC,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,GACpB,GAAG,QAAQ,CAAC,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ProductsSlice } from "../../types/products";
2
+ import { ProductConnection } from "../../types/graphql";
3
+ export declare const plpReducer: import("redux").Reducer<ProductsSlice, import("redux").AnyAction>;
4
+ export declare const resetProductListingMeta: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"products/resetProductListingMeta">, setProducts: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProductConnection, "products/setProducts">;
@@ -0,0 +1,27 @@
1
+ import { createSlice } from "@reduxjs/toolkit";
2
+ const initialState = {
3
+ product_lists: {},
4
+ product_listing_meta: {},
5
+ category_listing_meta: {},
6
+ collection_listing_meta: {},
7
+ brand_listing_meta: {},
8
+ search_results: {},
9
+ product_search_results: {},
10
+ };
11
+ const plpSlice = createSlice({
12
+ name: "products",
13
+ initialState,
14
+ reducers: {
15
+ resetProductListingMeta(state) {
16
+ state.product_listing_meta = {
17
+ error: null,
18
+ };
19
+ },
20
+ setProducts(state, action) {
21
+ state.product_lists = action.payload;
22
+ }
23
+ }
24
+ });
25
+ export const plpReducer = plpSlice.reducer;
26
+ export const { resetProductListingMeta, setProducts } = plpSlice.actions;
27
+ //# sourceMappingURL=products.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.js","sourceRoot":"","sources":["../../../src/store/slices/products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAO/C,MAAM,YAAY,GAAkB;IAClC,aAAa,EAAE,EAAE;IACjB,oBAAoB,EAAE,EAAE;IACxB,qBAAqB,EAAE,EAAE;IACzB,uBAAuB,EAAE,EAAE;IAC3B,kBAAkB,EAAE,EAAE;IACtB,cAAc,EAAE,EAAE;IAClB,sBAAsB,EAAE,EAAE;CAC3B,CAAC;AAGF,MAAM,QAAQ,GAAG,WAAW,CAAC;IAC3B,IAAI,EAAE,UAAU;IAChB,YAAY;IACZ,QAAQ,EAAE;QACR,uBAAuB,CAAC,KAAK;YAC3B,KAAK,CAAC,oBAAoB,GAAG;gBAC3B,KAAK,EAAE,IAAI;aACZ,CAAC;QACJ,CAAC;QACD,WAAW,CAAC,KAAK,EAAE,MAAuC;YACxD,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC,OAAO,CAAA;QACtC,CAAC;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC;AAC3C,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,WAAW,EAAC,GAAG,QAAQ,CAAC,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const shareReducer: import("redux").Reducer<{}, import("redux").AnyAction>;
@@ -0,0 +1,11 @@
1
+ import { createSlice } from '@reduxjs/toolkit';
2
+ import { STORE_KEYS } from '../enums/keys';
3
+ const initialState = {};
4
+ const shareSlice = createSlice({
5
+ name: STORE_KEYS.SHARE,
6
+ initialState,
7
+ reducers: {},
8
+ extraReducers: (builder) => { },
9
+ });
10
+ export const shareReducer = shareSlice.reducer;
11
+ //# sourceMappingURL=share.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share.js","sourceRoot":"","sources":["../../../src/store/slices/share.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,YAAY,GAAO,EACxB,CAAC;AAGF,MAAM,UAAU,GAAG,WAAW,CAAC;IAC3B,IAAI,EAAE,UAAU,CAAC,KAAK;IACtB,YAAY;IACZ,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,GAAG,CAAC;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { CustomAction } from "../../types";
2
+ import { AddSectionEvent, DragSectionEvent, RemoveSection, ThemeSlice, UpdateSection } from "../../types/theme";
3
+ import { STORE_KEYS } from "../enums/keys";
4
+ import { AvailablePage, Maybe, ThemeDetail } from "../../types/graphql";
5
+ declare const themeSlice: import("@reduxjs/toolkit").Slice<ThemeSlice, {
6
+ dragSection(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: CustomAction<DragSectionEvent>): void;
7
+ addSection(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: CustomAction<AddSectionEvent>): void;
8
+ removeSection(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: CustomAction<RemoveSection>): void;
9
+ updateSection(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: CustomAction<UpdateSection>): void;
10
+ setTheme(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: {
11
+ type: string;
12
+ payload: any;
13
+ }): void;
14
+ setGlobalConfig(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: {
15
+ payload: any;
16
+ type: string;
17
+ }): void;
18
+ setAppliedTheme(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: CustomAction<ThemeDetail>): void;
19
+ setPreviewTheme(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: CustomAction<ThemeDetail>): void;
20
+ setthemePageDetail(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: CustomAction<AvailablePage>): void;
21
+ setthemePages(state: import("immer/dist/internal").WritableDraft<ThemeSlice>, action: CustomAction<Array<Maybe<AvailablePage>>>): void;
22
+ }, STORE_KEYS.THEME>;
23
+ export declare const themeReducer: import("redux").Reducer<ThemeSlice, import("redux").AnyAction>;
24
+ export declare const dragSection: import("@reduxjs/toolkit").ActionCreatorWithPayload<DragSectionEvent, "theme/dragSection">, addSection: import("@reduxjs/toolkit").ActionCreatorWithPayload<AddSectionEvent, "theme/addSection">, removeSection: import("@reduxjs/toolkit").ActionCreatorWithPayload<RemoveSection, "theme/removeSection">, updateSection: import("@reduxjs/toolkit").ActionCreatorWithPayload<UpdateSection, "theme/updateSection">, setTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "theme/setTheme">, setGlobalConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "theme/setGlobalConfig">, setAppliedTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<ThemeDetail, "theme/setAppliedTheme">, setPreviewTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<ThemeDetail, "theme/setPreviewTheme">, setthemePageDetail: import("@reduxjs/toolkit").ActionCreatorWithPayload<AvailablePage, "theme/setthemePageDetail">, setthemePages: import("@reduxjs/toolkit").ActionCreatorWithPayload<Maybe<AvailablePage>[], "theme/setthemePages">;
25
+ export default themeSlice;
@@ -0,0 +1,84 @@
1
+ import { createSlice } from "@reduxjs/toolkit";
2
+ import { STORE_KEYS } from "../enums/keys";
3
+ const initialState = {
4
+ theme: {},
5
+ appliedTheme: {},
6
+ page: {},
7
+ themePages: {},
8
+ sectionKeys: {},
9
+ allPages: {},
10
+ };
11
+ const themeSlice = createSlice({
12
+ name: STORE_KEYS.THEME,
13
+ initialState,
14
+ reducers: {
15
+ dragSection(state, action) {
16
+ const { index, newIndex } = action.payload;
17
+ if ((index || index === 0) &&
18
+ (newIndex || newIndex === 0) &&
19
+ state.page &&
20
+ state.page.sections) {
21
+ [state.page.sections[index], state.page.sections[newIndex]] = [
22
+ state.page.sections[newIndex],
23
+ state.page.sections[index],
24
+ ];
25
+ }
26
+ },
27
+ addSection(state, action) {
28
+ var _a;
29
+ let data = action.payload;
30
+ state.sectionKeys[data.name]
31
+ ? state.sectionKeys[data.name]++
32
+ : (state.sectionKeys[data.name] = 1);
33
+ data.counter = state.sectionKeys[data.name];
34
+ state.page.sections = [...((_a = state === null || state === void 0 ? void 0 : state.page.sections) !== null && _a !== void 0 ? _a : []), data];
35
+ },
36
+ removeSection(state, action) {
37
+ var _a, _b;
38
+ let data = action.payload;
39
+ let currentSections = [...((_b = (_a = state.page) === null || _a === void 0 ? void 0 : _a.sections) !== null && _b !== void 0 ? _b : [])];
40
+ currentSections.splice(data.removedIndex, 1);
41
+ state.page.sections = [...currentSections];
42
+ },
43
+ updateSection(state, action) {
44
+ let data = action.payload;
45
+ if (state.page.sections) {
46
+ state.page.sections[data.index] = Object.assign(Object.assign({}, state.page.sections[data.index]), data.section);
47
+ }
48
+ },
49
+ setTheme(state, action) {
50
+ state.theme = {};
51
+ state.theme = action.payload;
52
+ state.theme.error = null;
53
+ state.theme.loading = false;
54
+ },
55
+ setGlobalConfig(state, action) {
56
+ state.theme.config = action.payload;
57
+ },
58
+ // Reducers Here
59
+ setAppliedTheme(state, action) {
60
+ state.appliedTheme = action.payload;
61
+ },
62
+ setPreviewTheme(state, action) {
63
+ state.theme = action.payload;
64
+ },
65
+ setthemePageDetail(state, action) {
66
+ var _a, _b;
67
+ state.page = action.payload;
68
+ if ((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.sections) === null || _b === void 0 ? void 0 : _b.length) {
69
+ state.page.sections = state.page.sections.map((section) => {
70
+ const updatedSection = Object.assign(Object.assign({}, section), { __source: section.source });
71
+ return updatedSection;
72
+ });
73
+ }
74
+ state.allPages[`${action.payload.value}`] = action.payload;
75
+ },
76
+ setthemePages(state, action) {
77
+ state.themePages = action.payload;
78
+ }
79
+ }
80
+ });
81
+ export const themeReducer = themeSlice.reducer;
82
+ export const { dragSection, addSection, removeSection, updateSection, setTheme, setGlobalConfig, setAppliedTheme, setPreviewTheme, setthemePageDetail, setthemePages } = themeSlice.actions;
83
+ export default themeSlice;
84
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/store/slices/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,YAAY,GAAe;IAC/B,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,EAAE;IAChB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,EAAE;CACb,CAAC;AAGF,MAAM,UAAU,GAAG,WAAW,CAAC;IAC7B,IAAI,EAAE,UAAU,CAAC,KAAK;IACtB,YAAY;IACZ,QAAQ,EAAE;QACR,WAAW,CACT,KAAK,EACL,MAAsC;YAEtC,MAAM,EAAE,KAAK,EAAE,QAAQ,E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A,MAAM,CAAC,OAAO,0CAAE,QAAQ,0CAAE,MAAM,EAAE;gBACpC,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAoC,EAAE,EAAE;oBACrF,MAAM,cAAc,mCACf,OAAO,KACV,QAAQ,EAAE,OAAO,CAAC,MAAM,GACzB,CAAA;oBACC,OAAO,cAAc,CAAC;gBAC1B,CAAC,CAAC,CAAA;aACH;YACD,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;QAC7D,CAAC;QACD,aAAa,CAAC,KAAK,EAAE,MAAiD;YACpE,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC;QACpC,CAAC;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC;AAC/C,MAAM,CAAC,MAAM,EACX,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,QAAQ,EACR,eAAe,EACf,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,aAAa,EACd,GAAG,UAAU,CAAC,OAAO,CAAC;AAEvB,eAAe,UAAU,CAAC"}
@@ -0,0 +1,64 @@
1
+ declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{
2
+ products: import("../types/products").ProductsSlice;
3
+ product: import("../types/product").ProductSlice;
4
+ cart: import("../types/cart").CartSlice;
5
+ brands: import("../types/brands").BrandsSlice;
6
+ address: import("../types/address").AddressSlice;
7
+ content: import("../types/content").ContentSlice;
8
+ theme: import("../types/theme").ThemeSlice;
9
+ configuration: import("../types/configuration").ConfigurationSlice;
10
+ logistic: import("../types/logistic").LogisticSlice;
11
+ categories: import("../types/categories").CategoriesSlice;
12
+ collection: import("../types/collection").CollectionsSlice;
13
+ auth: import("../types/auth").AuthSlice;
14
+ payment: {
15
+ payment_options: any;
16
+ aggregators_config: any;
17
+ };
18
+ share: {};
19
+ order: {};
20
+ custom: import("../types/custom").CustomSlice;
21
+ }>, import("redux").AnyAction>;
22
+ export declare function createStore(initialData: unknown): import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<import("redux").EmptyObject & {
23
+ products: import("../types/products").ProductsSlice;
24
+ product: import("../types/product").ProductSlice;
25
+ cart: import("../types/cart").CartSlice;
26
+ brands: import("../types/brands").BrandsSlice;
27
+ address: import("../types/address").AddressSlice;
28
+ content: import("../types/content").ContentSlice;
29
+ theme: import("../types/theme").ThemeSlice;
30
+ configuration: import("../types/configuration").ConfigurationSlice;
31
+ logistic: import("../types/logistic").LogisticSlice;
32
+ categories: import("../types/categories").CategoriesSlice;
33
+ collection: import("../types/collection").CollectionsSlice;
34
+ auth: import("../types/auth").AuthSlice;
35
+ payment: {
36
+ payment_options: any;
37
+ aggregators_config: any;
38
+ };
39
+ share: {};
40
+ order: {};
41
+ custom: import("../types/custom").CustomSlice;
42
+ }, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<import("redux").CombinedState<{
43
+ products: import("../types/products").ProductsSlice;
44
+ product: import("../types/product").ProductSlice;
45
+ cart: import("../types/cart").CartSlice;
46
+ brands: import("../types/brands").BrandsSlice;
47
+ address: import("../types/address").AddressSlice;
48
+ content: import("../types/content").ContentSlice;
49
+ theme: import("../types/theme").ThemeSlice;
50
+ configuration: import("../types/configuration").ConfigurationSlice;
51
+ logistic: import("../types/logistic").LogisticSlice;
52
+ categories: import("../types/categories").CategoriesSlice;
53
+ collection: import("../types/collection").CollectionsSlice;
54
+ auth: import("../types/auth").AuthSlice;
55
+ payment: {
56
+ payment_options: any;
57
+ aggregators_config: any;
58
+ };
59
+ share: {};
60
+ order: {};
61
+ custom: import("../types/custom").CustomSlice;
62
+ }>, import("redux").AnyAction, undefined>]>;
63
+ export type RootState = ReturnType<typeof rootReducer>;
64
+ export {};
@@ -0,0 +1,44 @@
1
+ import { combineReducers, configureStore } from "@reduxjs/toolkit";
2
+ import { STORE_KEYS } from "./enums/keys";
3
+ import { plpReducer } from "./slices/products";
4
+ import { addressReducer } from "./slices/address";
5
+ import { authReducer } from "./slices/auth";
6
+ import { brandsReducer } from "./slices/brands";
7
+ import { cartReducer } from "./slices/cart";
8
+ import { categoriesReducer } from "./slices/categories";
9
+ import { collectionReducer } from "./slices/collection";
10
+ import { configurationReducer } from "./slices/configuration";
11
+ import { contentReducer } from "./slices/content";
12
+ import { customReducer } from "./slices/custom";
13
+ import { logisticsReducer } from "./slices/logistic";
14
+ import { orderReducer } from "./slices/order";
15
+ import { paymentReducer } from "./slices/payment";
16
+ import { pdpReducer } from "./slices/product";
17
+ import { shareReducer } from "./slices/share";
18
+ import { themeReducer } from "./slices/theme";
19
+ const rootReducer = combineReducers({
20
+ [STORE_KEYS.PRODUCTS]: plpReducer,
21
+ [STORE_KEYS.PRODUCT_DETAILS]: pdpReducer,
22
+ [STORE_KEYS.CART]: cartReducer,
23
+ [STORE_KEYS.BRANDS]: brandsReducer,
24
+ [STORE_KEYS.ADDRESS]: addressReducer,
25
+ [STORE_KEYS.CONTENT]: contentReducer,
26
+ [STORE_KEYS.THEME]: themeReducer,
27
+ [STORE_KEYS.CONFIGURATION]: configurationReducer,
28
+ [STORE_KEYS.LOGISTIC]: logisticsReducer,
29
+ [STORE_KEYS.CATEGORIES]: categoriesReducer,
30
+ [STORE_KEYS.COLLECTION]: collectionReducer,
31
+ [STORE_KEYS.AUTH]: authReducer,
32
+ [STORE_KEYS.PAYMENT]: paymentReducer,
33
+ [STORE_KEYS.SHARE]: shareReducer,
34
+ [STORE_KEYS.ORDER]: orderReducer,
35
+ [STORE_KEYS.CUSTOM]: customReducer,
36
+ });
37
+ export function createStore(initialData) {
38
+ const store = configureStore({
39
+ reducer: rootReducer,
40
+ preloadedState: initialData || {},
41
+ });
42
+ return store;
43
+ }
44
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.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AC,OAAO,CAAC,EAAE,cAAc;IACpC,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc;IACpC,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,YAAY;IAChC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,oBAAoB;IAChD,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,gBAAgB;IACvC,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,iBAAiB;IAC1C,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,iBAAiB;IAC1C,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,WAAW;IAC9B,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc;IACpC,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,YAAY;IAChC,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,YAAY;IAChC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,aAAa;CACrC,CAAC,CAAC;AAEH,MAAM,UAAU,WAAW,CAAC,WAAoB;IAC5C,MAAM,KAAK,GAAG,cAAc,CAAC;QACzB,OAAO,EAAE,WAAW;QACpB,cAAc,EAAE,WAAW,IAAI,EAAE;KACpC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export default class AjiodhanPayment {
2
+ selectedPayment: any;
3
+ paymentFlow: any;
4
+ constructor(selectedPayment: {
5
+ paymentFlowMeta: any;
6
+ });
7
+ transaction(obj: any): Promise<void>;
8
+ }
@@ -0,0 +1,27 @@
1
+ export default class AjiodhanPayment {
2
+ constructor(selectedPayment) {
3
+ this.selectedPayment = selectedPayment;
4
+ this.paymentFlow = selectedPayment.paymentFlowMeta;
5
+ }
6
+ /*
7
+ transaction
8
+ **/
9
+ transaction(obj) {
10
+ var self = this;
11
+ // const body = {
12
+ // checksum: obj.checksum,
13
+ // encdata: obj.encdata,
14
+ // mcode: obj.mCode
15
+ // };
16
+ return new Promise(function (resolve, reject) {
17
+ try {
18
+ window.location = obj.redirect_url;
19
+ resolve();
20
+ }
21
+ catch (err) {
22
+ reject(err);
23
+ }
24
+ });
25
+ }
26
+ }
27
+ //# sourceMappingURL=ajiodhan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ajiodhan.js","sourceRoot":"","sources":["../../../../src/store/utils/gateways/ajiodhan.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,eAAe;IAGhC,YAAY,eAA0C;QAClD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,eAAe,CAAC,eAAe,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,GAAQ;QAChB,IAAI,IAAI,GAAG,IAAI,CAAC;QAChB,iBAAiB;QACjB,8BAA8B;QAC9B,4BAA4B;QAC5B,uBAAuB;QACvB,KAAK;QACL,OAAO,IAAI,OAAO,CAAO,UAAU,OAAO,EAAE,MAAM;YAC9C,IAAI;gBACA,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC,YAAY,CAAC;gBACnC,OAAO,EAAE,CAAC;aACb;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,CAAC,GAAG,CAAC,CAAC;aACf;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -0,0 +1,13 @@
1
+ interface PaymentFlow {
2
+ api_link: string;
3
+ }
4
+ interface SelectedPayment {
5
+ paymentFlowMeta: PaymentFlow;
6
+ }
7
+ export default class CcavenuePayment {
8
+ selectedPayment: SelectedPayment;
9
+ paymentFlow: PaymentFlow;
10
+ constructor(selectedPayment: SelectedPayment);
11
+ transaction(obj: any): Promise<boolean>;
12
+ }
13
+ export {};
@@ -0,0 +1,19 @@
1
+ import { dummyFormSubmit } from "./helper";
2
+ export default class CcavenuePayment {
3
+ constructor(selectedPayment) {
4
+ this.selectedPayment = selectedPayment;
5
+ this.paymentFlow = selectedPayment.paymentFlowMeta;
6
+ }
7
+ transaction(obj) {
8
+ return new Promise((resolve, reject) => {
9
+ try {
10
+ dummyFormSubmit(this.paymentFlow.api_link, obj, 'POST');
11
+ resolve(true);
12
+ }
13
+ catch (err) {
14
+ reject(err);
15
+ }
16
+ });
17
+ }
18
+ }
19
+ //# sourceMappingURL=ccavenue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ccavenue.js","sourceRoot":"","sources":["../../../../src/store/utils/gateways/ccavenue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAU3C,MAAM,CAAC,OAAO,OAAO,eAAe;IAIhC,YAAY,eAAgC;QACxC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,eAAe,CAAC,eAAe,CAAC;IACvD,CAAC;IAED,WAAW,CAAC,GAAQ;QAChB,OAAO,IAAI,OAAO,CAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC5C,IAAI;gBACA,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;gBACxD,OAAO,CAAC,IAAI,CAAC,CAAC;aACjB;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,CAAC,GAAG,CAAC,CAAC;aACf;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -0,0 +1,14 @@
1
+ export default class EpayLaterPayment {
2
+ selectedPayment: {
3
+ paymentFlowMeta: any;
4
+ };
5
+ paymentFlow: any;
6
+ constructor(selectedPayment: {
7
+ paymentFlowMeta: any;
8
+ });
9
+ transaction(obj: {
10
+ checksum: any;
11
+ encdata: any;
12
+ mCode: any;
13
+ }): Promise<void>;
14
+ }
@@ -0,0 +1,28 @@
1
+ // import { dummyFormSubmit } from './helper';
2
+ export default class EpayLaterPayment {
3
+ constructor(selectedPayment) {
4
+ this.selectedPayment = selectedPayment;
5
+ this.paymentFlow = selectedPayment.paymentFlowMeta;
6
+ }
7
+ /*
8
+ transaction
9
+ **/
10
+ transaction(obj) {
11
+ var self = this;
12
+ const body = {
13
+ checksum: obj.checksum,
14
+ encdata: obj.encdata,
15
+ mcode: obj.mCode,
16
+ };
17
+ return new Promise(function (resolve, reject) {
18
+ try {
19
+ // dummyFormSubmit(self.paymentFlow.api_link, body, 'POST');
20
+ resolve();
21
+ }
22
+ catch (err) {
23
+ reject(err);
24
+ }
25
+ });
26
+ }
27
+ }
28
+ //# sourceMappingURL=epaylater.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"epaylater.js","sourceRoot":"","sources":["../../../../src/store/utils/gateways/epaylater.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,MAAM,CAAC,OAAO,OAAO,gBAAgB;IAGjC,YAAY,eAA0C;QAClD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,eAAe,CAAC,eAAe,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,GAAiD;QACzD,IAAI,IAAI,GAAG,IAAI,CAAC;QAChB,MAAM,IAAI,GAAG;YACT,QAAQ,EAAE,GAAG,CAAC,QAAQ;YACtB,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,KAAK,EAAE,GAAG,CAAC,KAAK;SACnB,CAAC;QACF,OAAO,IAAI,OAAO,CAAO,UAAU,OAAO,EAAE,MAAM;YAC9C,IAAI;gBACA,4DAA4D;gBAC5D,OAAO,EAAE,CAAC;aACb;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,CAAC,GAAG,CAAC,CAAC;aACf;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -0,0 +1 @@
1
+ export declare function dummyFormSubmit(path: any, params: any, method?: string): void;
@@ -0,0 +1,17 @@
1
+ export function dummyFormSubmit(path, params, method = 'POST') {
2
+ const form = document.createElement('form');
3
+ form.method = method;
4
+ form.action = path;
5
+ for (const key in params) {
6
+ if (params.hasOwnProperty(key)) {
7
+ const hiddenField = document.createElement('input');
8
+ hiddenField.type = 'hidden';
9
+ hiddenField.name = key;
10
+ hiddenField.value = params[key];
11
+ form.appendChild(hiddenField);
12
+ }
13
+ }
14
+ document.body.appendChild(form);
15
+ form.submit();
16
+ }
17
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../../src/store/utils/gateways/helper.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAe,CAAC,IAAQ,EAAE,MAAU,EAAE,MAAM,GAAG,MAAM;IACnE,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACrB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IAEnB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACtB,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YAC5B,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YACpD,WAAW,CAAC,IAAI,GAAG,QAAQ,CAAC;YAC5B,WAAW,CAAC,IAAI,GAAG,GAAG,CAAC;YACvB,WAAW,CAAC,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;YAEhC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;SACjC;KACJ;IAED,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC,IAAI,CAAC,MAAM,EAAE,CAAC;AAChB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const PaymentGatway: Record<string, any>;
@@ -0,0 +1,27 @@
1
+ import JuspayPayment from './juspay';
2
+ import RazorpayPayment from './razorpay';
3
+ import SimplypayPayment from './simply';
4
+ import RupifiPayment from './rupifi';
5
+ import PayumoneyPayment from './payumoney';
6
+ import JiopayPayment from './jiopay';
7
+ import JioPayment from './jio';
8
+ import PotleePayment from './potlee';
9
+ import EpayLaterPayment from './epaylater';
10
+ import AjiodhanPayment from './ajiodhan';
11
+ import StandardExtension from './standard_extension';
12
+ import CcavenuePayment from './ccavenue';
13
+ export const PaymentGatway = {
14
+ Juspay: JuspayPayment,
15
+ Razorpay: RazorpayPayment,
16
+ Simpl: SimplypayPayment,
17
+ Potlee: PotleePayment,
18
+ Rupifi: RupifiPayment,
19
+ Payumoney: PayumoneyPayment,
20
+ Jiopay: JiopayPayment,
21
+ Jio: JioPayment,
22
+ Epaylater: EpayLaterPayment,
23
+ Ajiodhan: AjiodhanPayment,
24
+ StandardExtension: StandardExtension,
25
+ Ccavenue: CcavenuePayment,
26
+ };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/store/utils/gateways/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,eAAe,MAAM,YAAY,CAAC;AACzC,OAAO,gBAAgB,MAAM,UAAU,CAAC;AACxC,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,UAAU,MAAM,OAAO,CAAC;AAC/B,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,eAAe,MAAM,YAAY,CAAC;AACzC,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,eAAe,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,aAAa,GAAwB;IAC9C,MAAM,EAAE,aAAa;IACrB,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,gBAAgB;IACvB,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,aAAa;IACrB,SAAS,EAAE,gBAAgB;IAC3B,MAAM,EAAE,aAAa;IACrB,GAAG,EAAE,UAAU;IACf,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE,eAAe;IACzB,iBAAiB,EAAE,iBAAiB;IACpC,QAAQ,EAAE,eAAe;CAC5B,CAAC"}
@@ -0,0 +1,12 @@
1
+ export default class JioPayment {
2
+ selectedPayment: {
3
+ paymentFlowMeta: any;
4
+ };
5
+ paymentFlow: any;
6
+ constructor(selectedPayment: {
7
+ paymentFlowMeta: any;
8
+ });
9
+ transaction(obj: {
10
+ base64_html: any;
11
+ }): Promise<void>;
12
+ }
@@ -0,0 +1,24 @@
1
+ export default class JioPayment {
2
+ constructor(selectedPayment) {
3
+ this.selectedPayment = selectedPayment;
4
+ this.paymentFlow = selectedPayment.paymentFlowMeta;
5
+ }
6
+ /*
7
+ transaction
8
+ **/
9
+ transaction(obj) {
10
+ const self = this;
11
+ const body = {
12
+ base64_html: obj === null || obj === void 0 ? void 0 : obj.base64_html,
13
+ };
14
+ return new Promise(function (resolve, reject) {
15
+ try {
16
+ resolve();
17
+ }
18
+ catch (err) {
19
+ reject(err);
20
+ }
21
+ });
22
+ }
23
+ }
24
+ //# sourceMappingURL=jio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jio.js","sourceRoot":"","sources":["../../../../src/store/utils/gateways/jio.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,OAAO,OAAO,UAAU;IAI3B,YAAY,eAA0C;QAClD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,eAAe,CAAC,eAAe,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,GAA0B;QAClC,MAAM,IAAI,GAAG,IAAI,CAAC;QAClB,MAAM,IAAI,GAAG;YACT,WAAW,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,WAAW;SAChC,CAAC;QAEF,OAAO,IAAI,OAAO,CAAO,UAAU,OAAO,EAAE,MAAM;YAC9C,IAAI;gBACA,OAAO,EAAE,CAAC;aACb;YAAC,OAAO,GAAG,EAAE;gBACV,MAAM,CAAC,GAAG,CAAC,CAAC;aACf;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -0,0 +1,21 @@
1
+ export default class JiopayPayment {
2
+ selectedPayment: {
3
+ paymentFlowMeta: any;
4
+ };
5
+ paymentFlow: any;
6
+ constructor(selectedPayment: {
7
+ paymentFlowMeta: any;
8
+ });
9
+ transaction(obj: {
10
+ merchant_id: any;
11
+ appidtoken: any;
12
+ appaccesstoken: any;
13
+ intentid: any;
14
+ themes: {
15
+ mid?: any;
16
+ appidtoken?: any;
17
+ appaccesstoken?: any;
18
+ intentid?: any;
19
+ };
20
+ }): Promise<void>;
21
+ }