@gofynd/fdk-store-gql 3.0.38-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +29 -0
- package/README.md +84 -0
- package/azure-pipelines.yml +56 -0
- package/codegen.yml +6 -0
- package/lib/graphql/mutations/UnFollowById.handler.d.ts +3 -0
- package/lib/graphql/mutations/UnFollowById.handler.js +5 -0
- package/lib/graphql/mutations/UnFollowById.handler.js.map +1 -0
- package/lib/graphql/mutations/addItemsToCart.handler.d.ts +3 -0
- package/lib/graphql/mutations/addItemsToCart.handler.js +9 -0
- package/lib/graphql/mutations/addItemsToCart.handler.js.map +1 -0
- package/lib/graphql/mutations/applyCoupon.handler.d.ts +3 -0
- package/lib/graphql/mutations/applyCoupon.handler.js +7 -0
- package/lib/graphql/mutations/applyCoupon.handler.js.map +1 -0
- package/lib/graphql/mutations/applyRewardPoints.handler.d.ts +3 -0
- package/lib/graphql/mutations/applyRewardPoints.handler.js +7 -0
- package/lib/graphql/mutations/applyRewardPoints.handler.js.map +1 -0
- package/lib/graphql/mutations/followById.handler.d.ts +3 -0
- package/lib/graphql/mutations/followById.handler.js +5 -0
- package/lib/graphql/mutations/followById.handler.js.map +1 -0
- package/lib/graphql/mutations/getCartShareLink.handler.d.ts +3 -0
- package/lib/graphql/mutations/getCartShareLink.handler.js +7 -0
- package/lib/graphql/mutations/getCartShareLink.handler.js.map +1 -0
- package/lib/graphql/mutations/index.d.ts +2 -0
- package/lib/graphql/mutations/index.js +54 -0
- package/lib/graphql/mutations/index.js.map +1 -0
- package/lib/graphql/mutations/loginWithAppleIOS.handler.d.ts +3 -0
- package/lib/graphql/mutations/loginWithAppleIOS.handler.js +7 -0
- package/lib/graphql/mutations/loginWithAppleIOS.handler.js.map +1 -0
- package/lib/graphql/mutations/loginWithEmailAndPassword.handler.d.ts +3 -0
- package/lib/graphql/mutations/loginWithEmailAndPassword.handler.js +7 -0
- package/lib/graphql/mutations/loginWithEmailAndPassword.handler.js.map +1 -0
- package/lib/graphql/mutations/loginWithFacebook.handler.d.ts +3 -0
- package/lib/graphql/mutations/loginWithFacebook.handler.js +7 -0
- package/lib/graphql/mutations/loginWithFacebook.handler.js.map +1 -0
- package/lib/graphql/mutations/loginWithGoogle.handler.d.ts +3 -0
- package/lib/graphql/mutations/loginWithGoogle.handler.js +7 -0
- package/lib/graphql/mutations/loginWithGoogle.handler.js.map +1 -0
- package/lib/graphql/mutations/loginWithOTP.handler.d.ts +3 -0
- package/lib/graphql/mutations/loginWithOTP.handler.js +7 -0
- package/lib/graphql/mutations/loginWithOTP.handler.js.map +1 -0
- package/lib/graphql/mutations/removeCoupon.handler.d.ts +3 -0
- package/lib/graphql/mutations/removeCoupon.handler.js +7 -0
- package/lib/graphql/mutations/removeCoupon.handler.js.map +1 -0
- package/lib/graphql/mutations/selectAddress.handler.d.ts +3 -0
- package/lib/graphql/mutations/selectAddress.handler.js +5 -0
- package/lib/graphql/mutations/selectAddress.handler.js.map +1 -0
- package/lib/graphql/mutations/selectPaymentMode.handler.d.ts +3 -0
- package/lib/graphql/mutations/selectPaymentMode.handler.js +5 -0
- package/lib/graphql/mutations/selectPaymentMode.handler.js.map +1 -0
- package/lib/graphql/mutations/updateAddress.handler.d.ts +3 -0
- package/lib/graphql/mutations/updateAddress.handler.js +7 -0
- package/lib/graphql/mutations/updateAddress.handler.js.map +1 -0
- package/lib/graphql/mutations/updateCart.handler.d.ts +3 -0
- package/lib/graphql/mutations/updateCart.handler.js +14 -0
- package/lib/graphql/mutations/updateCart.handler.js.map +1 -0
- package/lib/graphql/mutations/updateCartMeta.handler.d.ts +3 -0
- package/lib/graphql/mutations/updateCartMeta.handler.js +7 -0
- package/lib/graphql/mutations/updateCartMeta.handler.js.map +1 -0
- package/lib/graphql/mutations/updateProfile.handler.d.ts +3 -0
- package/lib/graphql/mutations/updateProfile.handler.js +9 -0
- package/lib/graphql/mutations/updateProfile.handler.js.map +1 -0
- package/lib/graphql/mutations/verifyEmailOtp.handler.d.ts +3 -0
- package/lib/graphql/mutations/verifyEmailOtp.handler.js +7 -0
- package/lib/graphql/mutations/verifyEmailOtp.handler.js.map +1 -0
- package/lib/graphql/mutations/verifyMobileOTP.handler.d.ts +3 -0
- package/lib/graphql/mutations/verifyMobileOTP.handler.js +7 -0
- package/lib/graphql/mutations/verifyMobileOTP.handler.js.map +1 -0
- package/lib/graphql/query/address.handler.d.ts +3 -0
- package/lib/graphql/query/address.handler.js +7 -0
- package/lib/graphql/query/address.handler.js.map +1 -0
- package/lib/graphql/query/addresses.handler.d.ts +3 -0
- package/lib/graphql/query/addresses.handler.js +7 -0
- package/lib/graphql/query/addresses.handler.js.map +1 -0
- package/lib/graphql/query/aggregatorsConfig.handler.d.ts +3 -0
- package/lib/graphql/query/aggregatorsConfig.handler.js +7 -0
- package/lib/graphql/query/aggregatorsConfig.handler.js.map +1 -0
- package/lib/graphql/query/allCountries.handler.d.ts +3 -0
- package/lib/graphql/query/allCountries.handler.js +8 -0
- package/lib/graphql/query/allCountries.handler.js.map +1 -0
- package/lib/graphql/query/applicationConfiguration.handler.d.ts +3 -0
- package/lib/graphql/query/applicationConfiguration.handler.js +24 -0
- package/lib/graphql/query/applicationConfiguration.handler.js.map +1 -0
- package/lib/graphql/query/applicationContent.handler.d.ts +3 -0
- package/lib/graphql/query/applicationContent.handler.js +38 -0
- package/lib/graphql/query/applicationContent.handler.js.map +1 -0
- package/lib/graphql/query/applicationStaff.handler.d.ts +2 -0
- package/lib/graphql/query/applicationStaff.handler.js +7 -0
- package/lib/graphql/query/applicationStaff.handler.js.map +1 -0
- package/lib/graphql/query/blog.handler.d.ts +3 -0
- package/lib/graphql/query/blog.handler.js +7 -0
- package/lib/graphql/query/blog.handler.js.map +1 -0
- package/lib/graphql/query/brands.handler.d.ts +3 -0
- package/lib/graphql/query/brands.handler.js +8 -0
- package/lib/graphql/query/brands.handler.js.map +1 -0
- package/lib/graphql/query/bulkDiscountOffers.handler.d.ts +3 -0
- package/lib/graphql/query/bulkDiscountOffers.handler.js +7 -0
- package/lib/graphql/query/bulkDiscountOffers.handler.js.map +1 -0
- package/lib/graphql/query/cartHandler.d.ts +3 -0
- package/lib/graphql/query/cartHandler.js +9 -0
- package/lib/graphql/query/cartHandler.js.map +1 -0
- package/lib/graphql/query/cartShipmentDetails.handler.d.ts +3 -0
- package/lib/graphql/query/cartShipmentDetails.handler.js +7 -0
- package/lib/graphql/query/cartShipmentDetails.handler.js.map +1 -0
- package/lib/graphql/query/categories.handler.d.ts +3 -0
- package/lib/graphql/query/categories.handler.js +8 -0
- package/lib/graphql/query/categories.handler.js.map +1 -0
- package/lib/graphql/query/collection.handler.d.ts +3 -0
- package/lib/graphql/query/collection.handler.js +9 -0
- package/lib/graphql/query/collection.handler.js.map +1 -0
- package/lib/graphql/query/collectionItems.handler.d.ts +3 -0
- package/lib/graphql/query/collectionItems.handler.js +7 -0
- package/lib/graphql/query/collectionItems.handler.js.map +1 -0
- package/lib/graphql/query/collections.handler.d.ts +3 -0
- package/lib/graphql/query/collections.handler.js +7 -0
- package/lib/graphql/query/collections.handler.js.map +1 -0
- package/lib/graphql/query/coupons.handler.d.ts +3 -0
- package/lib/graphql/query/coupons.handler.js +7 -0
- package/lib/graphql/query/coupons.handler.js.map +1 -0
- package/lib/graphql/query/customPage.hadler.d.ts +2 -0
- package/lib/graphql/query/customPage.hadler.js +7 -0
- package/lib/graphql/query/customPage.hadler.js.map +1 -0
- package/lib/graphql/query/faqsByCategory.handler.d.ts +3 -0
- package/lib/graphql/query/faqsByCategory.handler.js +7 -0
- package/lib/graphql/query/faqsByCategory.handler.js.map +1 -0
- package/lib/graphql/query/followedListing.handler.d.ts +3 -0
- package/lib/graphql/query/followedListing.handler.js +7 -0
- package/lib/graphql/query/followedListing.handler.js.map +1 -0
- package/lib/graphql/query/followerCount.handler.d.ts +3 -0
- package/lib/graphql/query/followerCount.handler.js +7 -0
- package/lib/graphql/query/followerCount.handler.js.map +1 -0
- package/lib/graphql/query/index.d.ts +2 -0
- package/lib/graphql/query/index.js +83 -0
- package/lib/graphql/query/index.js.map +1 -0
- package/lib/graphql/query/localityHandler.d.ts +3 -0
- package/lib/graphql/query/localityHandler.js +7 -0
- package/lib/graphql/query/localityHandler.js.map +1 -0
- package/lib/graphql/query/order.handler.d.ts +3 -0
- package/lib/graphql/query/order.handler.js +5 -0
- package/lib/graphql/query/order.handler.js.map +1 -0
- package/lib/graphql/query/page.handler.d.ts +3 -0
- package/lib/graphql/query/page.handler.js +3 -0
- package/lib/graphql/query/page.handler.js.map +1 -0
- package/lib/graphql/query/paymentModeRoutes.handler.d.ts +3 -0
- package/lib/graphql/query/paymentModeRoutes.handler.js +8 -0
- package/lib/graphql/query/paymentModeRoutes.handler.js.map +1 -0
- package/lib/graphql/query/pincodeDetails.handler.d.ts +2 -0
- package/lib/graphql/query/pincodeDetails.handler.js +7 -0
- package/lib/graphql/query/pincodeDetails.handler.js.map +1 -0
- package/lib/graphql/query/platformConfig.handler.d.ts +3 -0
- package/lib/graphql/query/platformConfig.handler.js +7 -0
- package/lib/graphql/query/platformConfig.handler.js.map +1 -0
- package/lib/graphql/query/product.handler.d.ts +3 -0
- package/lib/graphql/query/product.handler.js +12 -0
- package/lib/graphql/query/product.handler.js.map +1 -0
- package/lib/graphql/query/productLadderPromotion.handler.d.ts +3 -0
- package/lib/graphql/query/productLadderPromotion.handler.js +7 -0
- package/lib/graphql/query/productLadderPromotion.handler.js.map +1 -0
- package/lib/graphql/query/productPrice.handler.d.ts +3 -0
- package/lib/graphql/query/productPrice.handler.js +5 -0
- package/lib/graphql/query/productPrice.handler.js.map +1 -0
- package/lib/graphql/query/productSellers.handler.d.ts +3 -0
- package/lib/graphql/query/productSellers.handler.js +7 -0
- package/lib/graphql/query/productSellers.handler.js.map +1 -0
- package/lib/graphql/query/products.handler.d.ts +3 -0
- package/lib/graphql/query/products.handler.js +9 -0
- package/lib/graphql/query/products.handler.js.map +1 -0
- package/lib/graphql/query/promotionOffers.handler.d.ts +3 -0
- package/lib/graphql/query/promotionOffers.handler.js +7 -0
- package/lib/graphql/query/promotionOffers.handler.js.map +1 -0
- package/lib/graphql/query/store.handler.d.ts +3 -0
- package/lib/graphql/query/store.handler.js +7 -0
- package/lib/graphql/query/store.handler.js.map +1 -0
- package/lib/graphql/query/theme.handler.d.ts +3 -0
- package/lib/graphql/query/theme.handler.js +13 -0
- package/lib/graphql/query/theme.handler.js.map +1 -0
- package/lib/graphql/query/user.handler.d.ts +3 -0
- package/lib/graphql/query/user.handler.js +12 -0
- package/lib/graphql/query/user.handler.js.map +1 -0
- package/lib/helpers/FPI-events.d.ts +34 -0
- package/lib/helpers/FPI-events.js +590 -0
- package/lib/helpers/FPI-events.js.map +1 -0
- package/lib/helpers/utils.d.ts +7 -0
- package/lib/helpers/utils.js +101 -0
- package/lib/helpers/utils.js.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -0
- package/lib/store/enums/keys.d.ts +35 -0
- package/lib/store/enums/keys.js +38 -0
- package/lib/store/enums/keys.js.map +1 -0
- package/lib/store/index.d.ts +24 -0
- package/lib/store/index.js +244 -0
- package/lib/store/index.js.map +1 -0
- package/lib/store/modules/custom.d.ts +8 -0
- package/lib/store/modules/custom.js +11 -0
- package/lib/store/modules/custom.js.map +1 -0
- package/lib/store/modules/payment.d.ts +6 -0
- package/lib/store/modules/payment.js +10 -0
- package/lib/store/modules/payment.js.map +1 -0
- package/lib/store/modules/theme.d.ts +17 -0
- package/lib/store/modules/theme.js +30 -0
- package/lib/store/modules/theme.js.map +1 -0
- package/lib/store/slices/address.d.ts +4 -0
- package/lib/store/slices/address.js +24 -0
- package/lib/store/slices/address.js.map +1 -0
- package/lib/store/slices/auth.d.ts +4 -0
- package/lib/store/slices/auth.js +25 -0
- package/lib/store/slices/auth.js.map +1 -0
- package/lib/store/slices/brands.d.ts +4 -0
- package/lib/store/slices/brands.js +18 -0
- package/lib/store/slices/brands.js.map +1 -0
- package/lib/store/slices/cart.d.ts +4 -0
- package/lib/store/slices/cart.js +62 -0
- package/lib/store/slices/cart.js.map +1 -0
- package/lib/store/slices/categories.d.ts +4 -0
- package/lib/store/slices/categories.js +17 -0
- package/lib/store/slices/categories.js.map +1 -0
- package/lib/store/slices/collection.d.ts +4 -0
- package/lib/store/slices/collection.js +25 -0
- package/lib/store/slices/collection.js.map +1 -0
- package/lib/store/slices/configuration.d.ts +4 -0
- package/lib/store/slices/configuration.js +45 -0
- package/lib/store/slices/configuration.js.map +1 -0
- package/lib/store/slices/content.d.ts +4 -0
- package/lib/store/slices/content.js +75 -0
- package/lib/store/slices/content.js.map +1 -0
- package/lib/store/slices/custom.d.ts +3 -0
- package/lib/store/slices/custom.js +17 -0
- package/lib/store/slices/custom.js.map +1 -0
- package/lib/store/slices/logistic.d.ts +4 -0
- package/lib/store/slices/logistic.js +81 -0
- package/lib/store/slices/logistic.js.map +1 -0
- package/lib/store/slices/order.d.ts +1 -0
- package/lib/store/slices/order.js +11 -0
- package/lib/store/slices/order.js.map +1 -0
- package/lib/store/slices/payment.d.ts +23 -0
- package/lib/store/slices/payment.js +57 -0
- package/lib/store/slices/payment.js.map +1 -0
- package/lib/store/slices/product.d.ts +4 -0
- package/lib/store/slices/product.js +70 -0
- package/lib/store/slices/product.js.map +1 -0
- package/lib/store/slices/products.d.ts +4 -0
- package/lib/store/slices/products.js +27 -0
- package/lib/store/slices/products.js.map +1 -0
- package/lib/store/slices/share.d.ts +1 -0
- package/lib/store/slices/share.js +11 -0
- package/lib/store/slices/share.js.map +1 -0
- package/lib/store/slices/theme.d.ts +25 -0
- package/lib/store/slices/theme.js +84 -0
- package/lib/store/slices/theme.js.map +1 -0
- package/lib/store/store.d.ts +64 -0
- package/lib/store/store.js +44 -0
- package/lib/store/store.js.map +1 -0
- package/lib/store/utils/gateways/ajiodhan.d.ts +8 -0
- package/lib/store/utils/gateways/ajiodhan.js +27 -0
- package/lib/store/utils/gateways/ajiodhan.js.map +1 -0
- package/lib/store/utils/gateways/ccavenue.d.ts +13 -0
- package/lib/store/utils/gateways/ccavenue.js +19 -0
- package/lib/store/utils/gateways/ccavenue.js.map +1 -0
- package/lib/store/utils/gateways/epaylater.d.ts +14 -0
- package/lib/store/utils/gateways/epaylater.js +28 -0
- package/lib/store/utils/gateways/epaylater.js.map +1 -0
- package/lib/store/utils/gateways/helper.d.ts +1 -0
- package/lib/store/utils/gateways/helper.js +17 -0
- package/lib/store/utils/gateways/helper.js.map +1 -0
- package/lib/store/utils/gateways/index.d.ts +1 -0
- package/lib/store/utils/gateways/index.js +27 -0
- package/lib/store/utils/gateways/index.js.map +1 -0
- package/lib/store/utils/gateways/jio.d.ts +12 -0
- package/lib/store/utils/gateways/jio.js +24 -0
- package/lib/store/utils/gateways/jio.js.map +1 -0
- package/lib/store/utils/gateways/jiopay.d.ts +21 -0
- package/lib/store/utils/gateways/jiopay.js +30 -0
- package/lib/store/utils/gateways/jiopay.js.map +1 -0
- package/lib/store/utils/gateways/juspay.d.ts +34 -0
- package/lib/store/utils/gateways/juspay.js +63 -0
- package/lib/store/utils/gateways/juspay.js.map +1 -0
- package/lib/store/utils/gateways/payumoney.d.ts +8 -0
- package/lib/store/utils/gateways/payumoney.js +17 -0
- package/lib/store/utils/gateways/payumoney.js.map +1 -0
- package/lib/store/utils/gateways/potlee.d.ts +63 -0
- package/lib/store/utils/gateways/potlee.js +315 -0
- package/lib/store/utils/gateways/potlee.js.map +1 -0
- package/lib/store/utils/gateways/razorpay.d.ts +46 -0
- package/lib/store/utils/gateways/razorpay.js +70 -0
- package/lib/store/utils/gateways/razorpay.js.map +1 -0
- package/lib/store/utils/gateways/rupifi.d.ts +17 -0
- package/lib/store/utils/gateways/rupifi.js +63 -0
- package/lib/store/utils/gateways/rupifi.js.map +1 -0
- package/lib/store/utils/gateways/simply.d.ts +43 -0
- package/lib/store/utils/gateways/simply.js +222 -0
- package/lib/store/utils/gateways/simply.js.map +1 -0
- package/lib/store/utils/gateways/standard_extension.d.ts +13 -0
- package/lib/store/utils/gateways/standard_extension.js +22 -0
- package/lib/store/utils/gateways/standard_extension.js.map +1 -0
- package/lib/store/utils/helper.d.ts +1 -0
- package/lib/store/utils/helper.js +17 -0
- package/lib/store/utils/helper.js.map +1 -0
- package/lib/store/utils/payment.d.ts +4 -0
- package/lib/store/utils/payment.js +496 -0
- package/lib/store/utils/payment.js.map +1 -0
- package/lib/store/utils/util.d.ts +14 -0
- package/lib/store/utils/util.js +67 -0
- package/lib/store/utils/util.js.map +1 -0
- package/lib/types/address.d.ts +7 -0
- package/lib/types/address.js +2 -0
- package/lib/types/address.js.map +1 -0
- package/lib/types/auth.d.ts +69 -0
- package/lib/types/auth.js +2 -0
- package/lib/types/auth.js.map +1 -0
- package/lib/types/brands.d.ts +6 -0
- package/lib/types/brands.js +2 -0
- package/lib/types/brands.js.map +1 -0
- package/lib/types/cart.d.ts +39 -0
- package/lib/types/cart.js +2 -0
- package/lib/types/cart.js.map +1 -0
- package/lib/types/categories.d.ts +5 -0
- package/lib/types/categories.js +2 -0
- package/lib/types/categories.js.map +1 -0
- package/lib/types/collection.d.ts +10 -0
- package/lib/types/collection.js +2 -0
- package/lib/types/collection.js.map +1 -0
- package/lib/types/configuration.d.ts +19 -0
- package/lib/types/configuration.js +2 -0
- package/lib/types/configuration.js.map +1 -0
- package/lib/types/content.d.ts +35 -0
- package/lib/types/content.js +2 -0
- package/lib/types/content.js.map +1 -0
- package/lib/types/custom.d.ts +12 -0
- package/lib/types/custom.js +2 -0
- package/lib/types/custom.js.map +1 -0
- package/lib/types/graphql.d.ts +11471 -0
- package/lib/types/graphql.js +198 -0
- package/lib/types/graphql.js.map +1 -0
- package/lib/types/index.d.ts +56 -0
- package/lib/types/index.js +2 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/logistic.d.ts +9 -0
- package/lib/types/logistic.js +2 -0
- package/lib/types/logistic.js.map +1 -0
- package/lib/types/product.d.ts +29 -0
- package/lib/types/product.js +2 -0
- package/lib/types/product.js.map +1 -0
- package/lib/types/products.d.ts +29 -0
- package/lib/types/products.js +2 -0
- package/lib/types/products.js.map +1 -0
- package/lib/types/theme.d.ts +26 -0
- package/lib/types/theme.js +2 -0
- package/lib/types/theme.js.map +1 -0
- package/package.json +45 -0
- package/schema.json +58765 -0
- package/webpack.config.js +23 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { setpincodeDetails } from "../../store/slices/logistic";
|
|
2
|
+
export function pincodeDetailsHandler(pincodeDetails, dispatch, params) {
|
|
3
|
+
if (pincodeDetails) {
|
|
4
|
+
dispatch(setpincodeDetails(Object.assign(Object.assign({}, pincodeDetails), params)));
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=pincodeDetails.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pincodeDetails.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/pincodeDetails.handler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,UAAU,qBAAqB,CAAC,cAAmB,EAAE,QAAkC,EAAC,MAAa;IACvG,IAAI,cAAc,EAAE;QAChB,QAAQ,CAAC,iBAAiB,iCAAK,cAAc,GAAI,MAAM,EAAE,CAAC,CAAA;KAC7D;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformConfig.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/platformConfig.handler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,UAAU,qBAAqB,CAAC,cAA8B,EAAE,QAAkC;IACpG,IAAI,cAAc,EAAE;QAChB,QAAQ,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAA;KAC9C;AACL,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { setProduct, setProductVariants } from "../../store/slices/product";
|
|
2
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
+
export function productHandler(product, dispatch, params, oldStore) {
|
|
4
|
+
if (product) {
|
|
5
|
+
dispatch(setProduct(product));
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.PRODUCT_DETAIL_PAGE_VIEW, params, product, oldStore);
|
|
7
|
+
}
|
|
8
|
+
if (product.variants) {
|
|
9
|
+
dispatch(setProductVariants(product.variants));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=product.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/product.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,cAAc,CAC5B,OAAgB,EAChB,QAAkC,EAClC,MAAe,EACf,QAAiB;IAEjB,IAAI,OAAO,EAAE;QACX,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,YAAY,CACV,UAAU,CAAC,wBAAwB,EACnC,MAAM,EACN,OAAO,EACP,QAAQ,CACT,CAAA;KACF;IACD,IAAI,OAAO,CAAC,QAAQ,EAAE;QACpB,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;KAChD;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { setproductLadderPromotion } from "../../store/slices/cart";
|
|
2
|
+
export function productLadderPromotionHandler(productLadderPromotion, dispatch) {
|
|
3
|
+
if (productLadderPromotion) {
|
|
4
|
+
dispatch(setproductLadderPromotion(productLadderPromotion));
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=productLadderPromotion.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productLadderPromotion.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/productLadderPromotion.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,UAAU,6BAA6B,CAC3C,sBAA8C,EAC9C,QAAkC;IAElC,IAAI,sBAAsB,EAAE;QAC1B,QAAQ,CAAC,yBAAyB,CAAC,sBAAsB,CAAC,CAAC,CAAC;KAC7D;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { setproductPrice } from "../../store/slices/product";
|
|
2
|
+
export function productPriceHandler(productPrice, dispatch, params) {
|
|
3
|
+
dispatch(setproductPrice(Object.assign(Object.assign({}, productPrice), params)));
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=productPrice.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productPrice.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/productPrice.handler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,UAAU,mBAAmB,CACjC,YAA8B,EAC9B,QAAkC,EAClC,MAAW;IAET,QAAQ,CAAC,eAAe,iCAAK,YAAY,GAAK,MAAM,EAAE,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productSellers.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/productSellers.handler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,UAAU,qBAAqB,CACnC,cAA8B,EAC9B,QAAkC;IAElC,IAAI,cAAc,EAAE;QAClB,QAAQ,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { setProducts } from "../../store/slices/products";
|
|
2
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
+
export function productsHandler(products, dispatch, params, oldStore) {
|
|
4
|
+
if (products) {
|
|
5
|
+
dispatch(setProducts(products));
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.PRODUCT_LIST_VIEW, params, products, oldStore);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=products.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/products.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,eAAe,CAC7B,QAA2B,EAC3B,QAAkC,EAClC,MAAe,EACf,QAAiB;IAEjB,IAAI,QAAQ,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;QAChC,YAAY,CACV,UAAU,CAAC,iBAAiB,EAC5B,MAAM,EACN,QAAQ,EACR,QAAQ,CACT,CAAA;KACF;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotionOffers.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/promotionOffers.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,UAAU,sBAAsB,CACpC,eAA+B,EAC/B,QAAkC;IAElC,IAAI,eAAe,EAAE;QACnB,QAAQ,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC,CAAC;KAC/C;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/store.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAE5D,MAAM,UAAU,YAAY,CAC1B,KAAY,EACZ,QAAkC;IAElC,IAAI,KAAK,EAAE;QACT,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;KAC3B;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { setPreviewTheme, setthemePageDetail, setthemePages } from "../../store/slices/theme";
|
|
2
|
+
export function themeHandler(theme, dispatch) {
|
|
3
|
+
if (theme === null || theme === void 0 ? void 0 : theme.preview_theme) {
|
|
4
|
+
dispatch(setPreviewTheme(theme.preview_theme));
|
|
5
|
+
}
|
|
6
|
+
if (theme.theme_page_detail) {
|
|
7
|
+
dispatch(setthemePageDetail(theme.theme_page_detail));
|
|
8
|
+
}
|
|
9
|
+
if (theme.theme_pages) {
|
|
10
|
+
dispatch(setthemePages(theme.theme_pages));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=theme.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/theme.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,eAAe,EAAE,kBAAkB,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAI9G,MAAM,UAAU,YAAY,CAAC,KAAY,EAAE,QAAkC;IAEzE,IAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,EAAE;QACtB,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAA;KACjD;IACD,IAAI,KAAK,CAAC,iBAAiB,EAAE;QACzB,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;KACxD;IACD,IAAI,KAAK,CAAC,WAAW,EAAE;QACnB,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAA;KAC7C;AACL,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { setUserData } from "../../store/slices/auth";
|
|
2
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
+
export function userHandler(user, dispatch, params, oldStore) {
|
|
4
|
+
if (user === null || user === void 0 ? void 0 : user.logged_in_user) {
|
|
5
|
+
dispatch(setUserData(user.logged_in_user));
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.LOG_IN, params, user.logged_in_user, oldStore);
|
|
7
|
+
}
|
|
8
|
+
if (user.logout) {
|
|
9
|
+
emitFPIEvent(FPI_EVENTS.LOG_OUT, params, user.logout, oldStore);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=user.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/user.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,WAAW,CACzB,IAAU,EACV,QAAkC,EAClC,MAAe,EACf,QAAiB;IAEjB,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,EAAE;QACxB,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;QAC3C,YAAY,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;KACxE;IACD,IAAI,IAAI,CAAC,MAAM,EAAE;QACf,YAAY,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;KACjE;AACH,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitterFunction } from "../types";
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
FPI: {
|
|
5
|
+
event: {
|
|
6
|
+
emit: (eventName: string, payload: any) => undefined;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
fpi: any;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export type PayloadCreator = (result: any, param: any, store: any, oldStore?: any) => any;
|
|
13
|
+
type FPI_EVENTS = {
|
|
14
|
+
[key: string]: {
|
|
15
|
+
eventName: string;
|
|
16
|
+
payloadCreator: PayloadCreator;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type EventMap = {
|
|
20
|
+
eventName: string;
|
|
21
|
+
payloadCreator: PayloadCreator;
|
|
22
|
+
};
|
|
23
|
+
export declare const FPI_EVENTS: FPI_EVENTS;
|
|
24
|
+
export declare function emitFPIEvent(event: EventMap | undefined, params: any, result: any, oldStore: any, eventEmitter?: EventEmitterFunction): boolean;
|
|
25
|
+
export declare function defaultFPIEmit(eventName: string, payload: any): void;
|
|
26
|
+
export declare function collectUnemittedEvents(customData: {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
hasOwnProperty: (arg0: string) => any;
|
|
29
|
+
}): any[];
|
|
30
|
+
export declare function emitAllEvents(events: any, FPI_EVENTS: {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
hasOwnProperty?: any;
|
|
33
|
+
}, storeInitialData: unknown): void;
|
|
34
|
+
export {};
|