@gofynd/fdk-store-gql 3.0.38-beta.11
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 +26 -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,496 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
+
var t = {};
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
+
t[p[i]] = s[p[i]];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
21
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
22
|
+
import { removeCookie } from "../../helpers/utils";
|
|
23
|
+
import { CHECKOUT_CART } from "./util";
|
|
24
|
+
export function handleConfirmPayment(params) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
const { is_redirection, queryParams } = params, options = __rest(params, ["is_redirection", "queryParams"]);
|
|
27
|
+
const query = `query ValidateCoupon{
|
|
28
|
+
validateCoupon(addressId: "${queryParams.address_id}",
|
|
29
|
+
aggregatorName: "${options.aggregator_name}",
|
|
30
|
+
id: "${queryParams.cart_id}",
|
|
31
|
+
paymentMode: "${options.payment_mode}",
|
|
32
|
+
paymentIdentifier: "${options.payment_identifier}") {
|
|
33
|
+
coupon_validity {
|
|
34
|
+
code
|
|
35
|
+
discount
|
|
36
|
+
display_message_en
|
|
37
|
+
next_validation_required
|
|
38
|
+
title
|
|
39
|
+
valid
|
|
40
|
+
}
|
|
41
|
+
message
|
|
42
|
+
success
|
|
43
|
+
}
|
|
44
|
+
}`;
|
|
45
|
+
const data = yield window.fpi.executeGQL(query);
|
|
46
|
+
//const data = await sdk.cart.validateCouponForPayment(queryOptions);
|
|
47
|
+
const coupon_validity = data === null || data === void 0 ? void 0 : data.coupon_validity;
|
|
48
|
+
if (options.disable_coupon_validation ||
|
|
49
|
+
(coupon_validity && coupon_validity.valid)) {
|
|
50
|
+
let { card_reference } = options, body = __rest(options, ["card_reference"]);
|
|
51
|
+
let param = {
|
|
52
|
+
updateCartPaymentRequestInput: {
|
|
53
|
+
aggregator_name: options.aggregator_name,
|
|
54
|
+
payment_mode: options.payment_mode,
|
|
55
|
+
id: queryParams.cart_id,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
const paymentOptionsQuery = `mutation SelectPaymentMode {
|
|
59
|
+
selectPaymentMode(id: "${queryParams.cart_id}",
|
|
60
|
+
updateCartPaymentRequestInput: {
|
|
61
|
+
address_id : "${queryParams.address_id}",
|
|
62
|
+
aggregator_name : "${options.aggregator_name}",
|
|
63
|
+
id : "${queryParams.cart_id}",
|
|
64
|
+
payment_mode : "${options.payment_mode}"
|
|
65
|
+
}) {
|
|
66
|
+
applied_promo_details {
|
|
67
|
+
amount
|
|
68
|
+
applied_free_articles {
|
|
69
|
+
article_id
|
|
70
|
+
free_gift_item_details {
|
|
71
|
+
item_brand_name
|
|
72
|
+
item_id
|
|
73
|
+
item_images_url
|
|
74
|
+
item_name
|
|
75
|
+
item_price_details
|
|
76
|
+
item_slug
|
|
77
|
+
}
|
|
78
|
+
parent_item_identifier
|
|
79
|
+
quantity
|
|
80
|
+
}
|
|
81
|
+
article_quantity
|
|
82
|
+
buy_rules {
|
|
83
|
+
cart_conditions
|
|
84
|
+
item_criteria
|
|
85
|
+
}
|
|
86
|
+
discount_rules {
|
|
87
|
+
item_criteria
|
|
88
|
+
matched_buy_rules
|
|
89
|
+
offer
|
|
90
|
+
raw_offer
|
|
91
|
+
}
|
|
92
|
+
mrp_promotion
|
|
93
|
+
offer_text
|
|
94
|
+
ownership {
|
|
95
|
+
payable_by
|
|
96
|
+
payable_category
|
|
97
|
+
}
|
|
98
|
+
promo_id
|
|
99
|
+
promotion_group
|
|
100
|
+
promotion_name
|
|
101
|
+
promotion_type
|
|
102
|
+
}
|
|
103
|
+
breakup_values {
|
|
104
|
+
coupon {
|
|
105
|
+
code
|
|
106
|
+
coupon_type
|
|
107
|
+
coupon_value
|
|
108
|
+
description
|
|
109
|
+
is_applied
|
|
110
|
+
max_discount_value
|
|
111
|
+
message
|
|
112
|
+
minimum_cart_value
|
|
113
|
+
sub_title
|
|
114
|
+
title
|
|
115
|
+
type
|
|
116
|
+
uid
|
|
117
|
+
value
|
|
118
|
+
expires_on
|
|
119
|
+
is_applicable
|
|
120
|
+
coupon_code
|
|
121
|
+
}
|
|
122
|
+
display {
|
|
123
|
+
currency_code
|
|
124
|
+
currency_symbol
|
|
125
|
+
display
|
|
126
|
+
key
|
|
127
|
+
message
|
|
128
|
+
value
|
|
129
|
+
}
|
|
130
|
+
loyalty_points {
|
|
131
|
+
applicable
|
|
132
|
+
description
|
|
133
|
+
is_applied
|
|
134
|
+
total
|
|
135
|
+
}
|
|
136
|
+
raw {
|
|
137
|
+
cod_charge
|
|
138
|
+
convenience_fee
|
|
139
|
+
coupon
|
|
140
|
+
delivery_charge
|
|
141
|
+
discount
|
|
142
|
+
fynd_cash
|
|
143
|
+
gift_card
|
|
144
|
+
gst_charges
|
|
145
|
+
mrp_total
|
|
146
|
+
subtotal
|
|
147
|
+
total
|
|
148
|
+
vog
|
|
149
|
+
you_saved
|
|
150
|
+
mop_total
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
buy_now
|
|
154
|
+
checkout_mode
|
|
155
|
+
comment
|
|
156
|
+
coupon_text
|
|
157
|
+
currency {
|
|
158
|
+
code
|
|
159
|
+
symbol
|
|
160
|
+
}
|
|
161
|
+
delivery_charge_info
|
|
162
|
+
delivery_promise {
|
|
163
|
+
formatted {
|
|
164
|
+
max
|
|
165
|
+
min
|
|
166
|
+
}
|
|
167
|
+
timestamp {
|
|
168
|
+
max
|
|
169
|
+
min
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
gstin
|
|
173
|
+
id
|
|
174
|
+
is_valid
|
|
175
|
+
items {
|
|
176
|
+
article {
|
|
177
|
+
_custom_json
|
|
178
|
+
cart_item_meta
|
|
179
|
+
extra_meta
|
|
180
|
+
gift_card
|
|
181
|
+
identifier
|
|
182
|
+
is_gift_visible
|
|
183
|
+
meta
|
|
184
|
+
mto_quantity
|
|
185
|
+
parent_item_identifiers
|
|
186
|
+
price {
|
|
187
|
+
base {
|
|
188
|
+
currency_code
|
|
189
|
+
currency_symbol
|
|
190
|
+
effective
|
|
191
|
+
marked
|
|
192
|
+
}
|
|
193
|
+
converted {
|
|
194
|
+
currency_code
|
|
195
|
+
currency_symbol
|
|
196
|
+
effective
|
|
197
|
+
marked
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
product_group_tags
|
|
201
|
+
quantity
|
|
202
|
+
seller {
|
|
203
|
+
name
|
|
204
|
+
uid
|
|
205
|
+
}
|
|
206
|
+
seller_identifier
|
|
207
|
+
size
|
|
208
|
+
store {
|
|
209
|
+
name
|
|
210
|
+
store_code
|
|
211
|
+
uid
|
|
212
|
+
}
|
|
213
|
+
type
|
|
214
|
+
uid
|
|
215
|
+
}
|
|
216
|
+
availability {
|
|
217
|
+
available_sizes {
|
|
218
|
+
dimension {
|
|
219
|
+
height
|
|
220
|
+
is_default
|
|
221
|
+
length
|
|
222
|
+
unit
|
|
223
|
+
width
|
|
224
|
+
}
|
|
225
|
+
display
|
|
226
|
+
is_available
|
|
227
|
+
quantity
|
|
228
|
+
seller_identifiers
|
|
229
|
+
value
|
|
230
|
+
weight {
|
|
231
|
+
is_default
|
|
232
|
+
shipping
|
|
233
|
+
unit
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
deliverable
|
|
237
|
+
is_valid
|
|
238
|
+
other_store_quantity
|
|
239
|
+
out_of_stock
|
|
240
|
+
sizes
|
|
241
|
+
}
|
|
242
|
+
bulk_offer
|
|
243
|
+
coupon {
|
|
244
|
+
code
|
|
245
|
+
discount_single_quantity
|
|
246
|
+
discount_total_quantity
|
|
247
|
+
}
|
|
248
|
+
coupon_message
|
|
249
|
+
custom_order
|
|
250
|
+
delivery_promise {
|
|
251
|
+
formatted {
|
|
252
|
+
max
|
|
253
|
+
min
|
|
254
|
+
}
|
|
255
|
+
timestamp {
|
|
256
|
+
max
|
|
257
|
+
min
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
discount
|
|
261
|
+
identifiers {
|
|
262
|
+
identifier
|
|
263
|
+
}
|
|
264
|
+
is_set
|
|
265
|
+
key
|
|
266
|
+
message
|
|
267
|
+
moq
|
|
268
|
+
parent_item_identifiers
|
|
269
|
+
price {
|
|
270
|
+
base {
|
|
271
|
+
add_on
|
|
272
|
+
currency_code
|
|
273
|
+
currency_symbol
|
|
274
|
+
effective
|
|
275
|
+
marked
|
|
276
|
+
selling
|
|
277
|
+
}
|
|
278
|
+
converted {
|
|
279
|
+
add_on
|
|
280
|
+
currency_code
|
|
281
|
+
currency_symbol
|
|
282
|
+
effective
|
|
283
|
+
marked
|
|
284
|
+
selling
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
price_per_unit {
|
|
288
|
+
|
|
289
|
+
}
|
|
290
|
+
product {
|
|
291
|
+
_custom_json
|
|
292
|
+
action {
|
|
293
|
+
query {
|
|
294
|
+
product_slug
|
|
295
|
+
}
|
|
296
|
+
type
|
|
297
|
+
url
|
|
298
|
+
}
|
|
299
|
+
brand {
|
|
300
|
+
name
|
|
301
|
+
uid
|
|
302
|
+
}
|
|
303
|
+
categories {
|
|
304
|
+
name
|
|
305
|
+
uid
|
|
306
|
+
}
|
|
307
|
+
images {
|
|
308
|
+
aspect_ratio
|
|
309
|
+
secure_url
|
|
310
|
+
url
|
|
311
|
+
}
|
|
312
|
+
item_code
|
|
313
|
+
name
|
|
314
|
+
slug
|
|
315
|
+
tags
|
|
316
|
+
teaser_tag {
|
|
317
|
+
tags
|
|
318
|
+
}
|
|
319
|
+
type
|
|
320
|
+
uid
|
|
321
|
+
}
|
|
322
|
+
promo_meta {
|
|
323
|
+
message
|
|
324
|
+
}
|
|
325
|
+
promotions_applied {
|
|
326
|
+
amount
|
|
327
|
+
article_quantity
|
|
328
|
+
mrp_promotion
|
|
329
|
+
offer_text
|
|
330
|
+
promo_id
|
|
331
|
+
promotion_group
|
|
332
|
+
promotion_name
|
|
333
|
+
promotion_type
|
|
334
|
+
}
|
|
335
|
+
quantity
|
|
336
|
+
}
|
|
337
|
+
last_modified
|
|
338
|
+
message
|
|
339
|
+
pan_config
|
|
340
|
+
pan_no
|
|
341
|
+
payment_selection_lock {
|
|
342
|
+
default_options
|
|
343
|
+
enabled
|
|
344
|
+
payment_identifier
|
|
345
|
+
}
|
|
346
|
+
restrict_checkout
|
|
347
|
+
}
|
|
348
|
+
}`;
|
|
349
|
+
const res = yield window.fpi.executeGQL(`
|
|
350
|
+
${paymentOptionsQuery}
|
|
351
|
+
`);
|
|
352
|
+
emitFPIEvent(FPI_EVENTS.ADD_PAYMENT_INFORMATION, param, res, "");
|
|
353
|
+
return res;
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
throw data;
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
export function handleCODOrder(paymentOptions) {
|
|
361
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
363
|
+
const orderInfo = yield createOrder(paymentOptions);
|
|
364
|
+
if ((_b = (_a = orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.data) === null || _a === void 0 ? void 0 : _a.checkoutCart) === null || _b === void 0 ? void 0 : _b.success) {
|
|
365
|
+
// Reset ordering store in case of successful checkout
|
|
366
|
+
removeCookie("m_orderingStore");
|
|
367
|
+
//navigate to order status
|
|
368
|
+
const CODParams = {
|
|
369
|
+
success: "true",
|
|
370
|
+
delivery_address_id: paymentOptions.address_id,
|
|
371
|
+
order_id: (_d = (_c = orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.data) === null || _c === void 0 ? void 0 : _c.checkoutCart) === null || _d === void 0 ? void 0 : _d.order_id,
|
|
372
|
+
billing_address_id: paymentOptions.billing_address_id,
|
|
373
|
+
};
|
|
374
|
+
if (paymentOptions.id) {
|
|
375
|
+
CODParams["cart_id"] = paymentOptions.id;
|
|
376
|
+
}
|
|
377
|
+
const params = new URLSearchParams();
|
|
378
|
+
for (const key in CODParams) {
|
|
379
|
+
if (CODParams.hasOwnProperty(key)) {
|
|
380
|
+
params.append(key, CODParams[key]);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
const currentURL = (_f = (_e = orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.data) === null || _e === void 0 ? void 0 : _e.checkoutCart) === null || _f === void 0 ? void 0 : _f.callback_url;
|
|
384
|
+
const finalUrl = `${currentURL}?${params.toString()}`;
|
|
385
|
+
window.location.href = finalUrl || "";
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
const params = new URLSearchParams();
|
|
389
|
+
const currentURL = ((_g = window === null || window === void 0 ? void 0 : window.location) === null || _g === void 0 ? void 0 : _g.origin) + "/cart/order-status/";
|
|
390
|
+
params.append("success", "false");
|
|
391
|
+
const finalUrl = `${currentURL}?${params.toString()}`;
|
|
392
|
+
window.location.href = finalUrl;
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
export function transactOrder(paymentOptions, state) {
|
|
397
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
+
let currentPaymentGateway = null;
|
|
400
|
+
if (((_b = (_a = paymentOptions.payment) === null || _a === void 0 ? void 0 : _a.paymentFlowMeta) === null || _b === void 0 ? void 0 : _b.type) == "standard_extension") {
|
|
401
|
+
currentPaymentGateway = window.PaymentGateways["StandardExtension"];
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
const { PaymentGateways } = window.fpi;
|
|
405
|
+
currentPaymentGateway = PaymentGateways[paymentOptions.aggregator];
|
|
406
|
+
}
|
|
407
|
+
currentPaymentGateway = new currentPaymentGateway(paymentOptions.payment, window.fpi.store.getState());
|
|
408
|
+
if (currentPaymentGateway.injectScript) {
|
|
409
|
+
yield currentPaymentGateway.injectScript();
|
|
410
|
+
}
|
|
411
|
+
let orderInfo = yield createOrder(paymentOptions);
|
|
412
|
+
if ((_d = (_c = orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.data) === null || _c === void 0 ? void 0 : _c.checkoutCart) === null || _d === void 0 ? void 0 : _d.success) {
|
|
413
|
+
// Reset ordering store in case of successful checkout
|
|
414
|
+
removeCookie("m_orderingStore");
|
|
415
|
+
//get updated order info
|
|
416
|
+
orderInfo = updateOrderInfo(currentPaymentGateway, (_e = orderInfo.data) === null || _e === void 0 ? void 0 : _e.checkoutCart, paymentOptions);
|
|
417
|
+
(_f = orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.data) === null || _f === void 0 ? true : delete _f.token;
|
|
418
|
+
let orderInfoPayload = orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.data;
|
|
419
|
+
const isLoggedIn = state.auth.is_logged_in;
|
|
420
|
+
let rbiGuidelineSave = Object.assign(Object.assign({}, (isLoggedIn
|
|
421
|
+
? {
|
|
422
|
+
checkedBoxValue: (_g = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.payment) === null || _g === void 0 ? void 0 : _g.is_card_secure,
|
|
423
|
+
}
|
|
424
|
+
: { checkedBoxValue: false })), { paymentdata: Object.assign(Object.assign({}, paymentOptions), { option: {
|
|
425
|
+
card_number: ((_h = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.payment) === null || _h === void 0 ? void 0 : _h.card_token)
|
|
426
|
+
? ""
|
|
427
|
+
: (_j = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.payment) === null || _j === void 0 ? void 0 : _j.card_number,
|
|
428
|
+
} }) });
|
|
429
|
+
if (orderInfoPayload === null || orderInfoPayload === void 0 ? void 0 : orderInfoPayload.card_token) {
|
|
430
|
+
orderInfoPayload === null || orderInfoPayload === void 0 ? true : delete orderInfoPayload.card_token;
|
|
431
|
+
}
|
|
432
|
+
const res = yield currentPaymentGateway.transaction(orderInfoPayload, rbiGuidelineSave);
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
function createOrder(paymentOptions) {
|
|
439
|
+
let options = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ address_id: paymentOptions.address_id, billing_address_id: paymentOptions.billing_address_id, aggregator: paymentOptions.aggregator, merchant_code: paymentOptions.merchant_code, payment_mode: paymentOptions.payment_mode, callback_url: paymentOptions.callback_url, meta: paymentOptions.meta, payment_methods: [
|
|
440
|
+
{
|
|
441
|
+
mode: paymentOptions.payment_mode,
|
|
442
|
+
name: paymentOptions.payment_mode,
|
|
443
|
+
payment: "required",
|
|
444
|
+
payment_meta: {
|
|
445
|
+
merchant_code: paymentOptions.merchant_code,
|
|
446
|
+
payment_gateway: paymentOptions.aggregator,
|
|
447
|
+
payment_identifier: paymentOptions.payment_identifier,
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
] }, (paymentOptions.id ? { id: paymentOptions.id } : {})), (paymentOptions.custom_meta
|
|
451
|
+
? { custom_meta: paymentOptions.custom_meta }
|
|
452
|
+
: {})), (paymentOptions.order_type
|
|
453
|
+
? { order_type: paymentOptions.order_type }
|
|
454
|
+
: {})), (paymentOptions.iin ? { iin: paymentOptions.iin } : {})), (paymentOptions.network ? { network: paymentOptions.network } : {})), (paymentOptions.type ? { type: paymentOptions.type } : {})), (paymentOptions.card_id ? { card_id: paymentOptions.card_id } : {})), (paymentOptions.payment_extra_identifiers
|
|
455
|
+
? {
|
|
456
|
+
payment_extra_identifiers: paymentOptions.payment_extra_identifiers,
|
|
457
|
+
}
|
|
458
|
+
: {})), (paymentOptions.staff ? { staff: paymentOptions.staff } : {})), (paymentOptions.ordering_store
|
|
459
|
+
? { ordering_store: paymentOptions.ordering_store }
|
|
460
|
+
: {}));
|
|
461
|
+
if ((paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.payment_mode) !== "CARD" &&
|
|
462
|
+
(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.payment_identifier))
|
|
463
|
+
options.payment_identifier = paymentOptions.payment_identifier;
|
|
464
|
+
return window.fpi.executeGQL(CHECKOUT_CART, {
|
|
465
|
+
cartCheckoutDetailRequestInput: options,
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
export function updateOrderInfo(currentPaymentGateway, orderInfo, paymentOptions) {
|
|
469
|
+
//update orderInfo with card and upi data
|
|
470
|
+
if (paymentOptions.payment_mode === "UPI" &&
|
|
471
|
+
currentPaymentGateway.createUPIPaymentData) {
|
|
472
|
+
const upiMeta = currentPaymentGateway.createUPIPaymentData({
|
|
473
|
+
vpa: paymentOptions.payment.upi.vpa,
|
|
474
|
+
});
|
|
475
|
+
Object.assign(orderInfo.data, upiMeta);
|
|
476
|
+
}
|
|
477
|
+
else if (paymentOptions.payment_mode === "CARD" &&
|
|
478
|
+
!paymentOptions.payment.card_token) {
|
|
479
|
+
let infoCard = {
|
|
480
|
+
card_security_code: paymentOptions.payment.cvv,
|
|
481
|
+
card_number: paymentOptions.payment.card_number,
|
|
482
|
+
card_exp_month: paymentOptions.payment.exp_month,
|
|
483
|
+
card_exp_year: paymentOptions.payment.exp_year,
|
|
484
|
+
name_on_card: paymentOptions.payment.name,
|
|
485
|
+
};
|
|
486
|
+
const cardMeta = currentPaymentGateway.createCardPaymentData(infoCard);
|
|
487
|
+
Object.assign(orderInfo.data, cardMeta);
|
|
488
|
+
}
|
|
489
|
+
else if (paymentOptions.payment_mode === "CARD" &&
|
|
490
|
+
paymentOptions.payment.card_reference) {
|
|
491
|
+
const cardMeta = currentPaymentGateway.createCardPaymentData(paymentOptions.payment);
|
|
492
|
+
Object.assign(orderInfo.data, cardMeta);
|
|
493
|
+
}
|
|
494
|
+
return orderInfo;
|
|
495
|
+
}
|
|
496
|
+
//# sourceMappingURL=payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../src/store/utils/payment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,UAAgB,oBAAoB,CAAC,MAAW;;QACpD,MAAM,EAAE,cAAc,EAAE,WAAW,KAAiB,MAAM,EAAlB,OAAO,UAAK,MAAM,EAApD,iCAA2C,CAAS,CAAC;QAC3D,MAAM,KAAK,GAAG;iCACiB,WAAW,CAAC,UAAU;uBAChC,OAAO,CAAC,eAAe;WACnC,WAAW,CA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C9C,WAAW,EAAE,cAAc,CAAC,OAAO,CAAC,WAAW;YAC/C,cAAc,EAAE,cAAc,CAAC,OAAO,CAAC,SAAS;YAChD,aAAa,EAAE,cAAc,CAAC,OAAO,CAAC,QAAQ;YAC9C,YAAY,EAAE,cAAc,CAAC,OAAO,CAAC,IAAI;SAC1C,CAAC;QACF,MAAM,QAAQ,GAAG,qBAAqB,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;QACvE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KACzC;SAAM,IACL,cAAc,CAAC,YAAY,KAAK,MAAM;QACtC,cAAc,CAAC,OAAO,CAAC,cAAc,EACrC;QACA,MAAM,QAAQ,GAAG,qBAAqB,CAAC,qBAAqB,CAC1D,cAAc,CAAC,OAAO,CACvB,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KACzC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const PENDING_ACTION_TYPE = "PENDING";
|
|
2
|
+
export declare const ERROR_ACTION_TYPE = "ERROR";
|
|
3
|
+
export declare const FULFILLED_ACTION_TYPE = "FULFILLED";
|
|
4
|
+
export declare function createLoadingAction(): {
|
|
5
|
+
type: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function createErrorAction(): {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function createPayloadAction<T>(payload: T): {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: T;
|
|
13
|
+
};
|
|
14
|
+
export declare const CHECKOUT_CART = "mutation checkoutCart(\n $buyNow: Boolean\n $cartCheckoutDetailRequestInput: CartCheckoutDetailRequestInput\n $cartType: String\n) {\n checkoutCart(\n buyNow: $buyNow\n cartCheckoutDetailRequestInput: $cartCheckoutDetailRequestInput\n cartType: $cartType\n ) {\n app_intercept_url\n callback_url\n cart {\n buy_now\n cart_id\n checkout_mode\n cod_available\n cod_charges\n cod_message\n comment\n coupon_text\n delivery_charge_info\n custom_cart_meta\n delivery_charge_order_value\n delivery_charges\n error_message\n gstin\n id\n is_valid\n last_modified\n message\n order_id\n restrict_checkout\n store_code\n store_emps\n success\n uid\n user_type\n }\n data\n message\n order_id\n payment_confirm_url\n success\n }\n}\n";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export const PENDING_ACTION_TYPE = 'PENDING';
|
|
2
|
+
export const ERROR_ACTION_TYPE = 'ERROR';
|
|
3
|
+
export const FULFILLED_ACTION_TYPE = 'FULFILLED';
|
|
4
|
+
export function createLoadingAction() {
|
|
5
|
+
return {
|
|
6
|
+
type: PENDING_ACTION_TYPE,
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export function createErrorAction() {
|
|
10
|
+
return {
|
|
11
|
+
type: ERROR_ACTION_TYPE,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export function createPayloadAction(payload) {
|
|
15
|
+
return {
|
|
16
|
+
type: FULFILLED_ACTION_TYPE,
|
|
17
|
+
payload,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export const CHECKOUT_CART = `mutation checkoutCart(
|
|
21
|
+
$buyNow: Boolean
|
|
22
|
+
$cartCheckoutDetailRequestInput: CartCheckoutDetailRequestInput
|
|
23
|
+
$cartType: String
|
|
24
|
+
) {
|
|
25
|
+
checkoutCart(
|
|
26
|
+
buyNow: $buyNow
|
|
27
|
+
cartCheckoutDetailRequestInput: $cartCheckoutDetailRequestInput
|
|
28
|
+
cartType: $cartType
|
|
29
|
+
) {
|
|
30
|
+
app_intercept_url
|
|
31
|
+
callback_url
|
|
32
|
+
cart {
|
|
33
|
+
buy_now
|
|
34
|
+
cart_id
|
|
35
|
+
checkout_mode
|
|
36
|
+
cod_available
|
|
37
|
+
cod_charges
|
|
38
|
+
cod_message
|
|
39
|
+
comment
|
|
40
|
+
coupon_text
|
|
41
|
+
delivery_charge_info
|
|
42
|
+
custom_cart_meta
|
|
43
|
+
delivery_charge_order_value
|
|
44
|
+
delivery_charges
|
|
45
|
+
error_message
|
|
46
|
+
gstin
|
|
47
|
+
id
|
|
48
|
+
is_valid
|
|
49
|
+
last_modified
|
|
50
|
+
message
|
|
51
|
+
order_id
|
|
52
|
+
restrict_checkout
|
|
53
|
+
store_code
|
|
54
|
+
store_emps
|
|
55
|
+
success
|
|
56
|
+
uid
|
|
57
|
+
user_type
|
|
58
|
+
}
|
|
59
|
+
data
|
|
60
|
+
message
|
|
61
|
+
order_id
|
|
62
|
+
payment_confirm_url
|
|
63
|
+
success
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/store/utils/util.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAC7C,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;AACzC,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC;AAEjD,MAAM,UAAU,mBAAmB;IAC/B,OAAO;QACH,IAAI,EAAE,mBAAmB;KAC5B,CAAA;AACL,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC7B,OAAO;QACH,IAAI,EAAE,iBAAiB;KAC1B,CAAA;AACL,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,OAAU;IAC7C,OAAO;QACH,IAAI,EAAE,qBAAqB;QAC3B,OAAO;KACV,CAAA;AACL,CAAC;AACD,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/types/address.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { CommonAsyncLoadingTypes } from ".";
|
|
2
|
+
export type PlatformDataType = Partial<any & CommonAsyncLoadingTypes>;
|
|
3
|
+
export type UserDataType = Partial<any & CommonAsyncLoadingTypes>;
|
|
4
|
+
export type AuthSlice = {
|
|
5
|
+
logged_in: boolean;
|
|
6
|
+
platform_data: PlatformDataType;
|
|
7
|
+
user_data: UserDataType;
|
|
8
|
+
user_fetched: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type SignUpUserParam = {
|
|
11
|
+
id: string;
|
|
12
|
+
body: any;
|
|
13
|
+
};
|
|
14
|
+
export type loginWithAppleIOSParam = {
|
|
15
|
+
platform?: string;
|
|
16
|
+
body: any;
|
|
17
|
+
};
|
|
18
|
+
export type verifyOTPParam = {
|
|
19
|
+
id: string;
|
|
20
|
+
body: any;
|
|
21
|
+
};
|
|
22
|
+
export type OAuthLoginParam = {
|
|
23
|
+
id: string;
|
|
24
|
+
body: any;
|
|
25
|
+
};
|
|
26
|
+
export type LogInOTPParam = {
|
|
27
|
+
id: string;
|
|
28
|
+
mobile: string;
|
|
29
|
+
country_code: string;
|
|
30
|
+
};
|
|
31
|
+
export type SignInUserWithPassword = {
|
|
32
|
+
password: string;
|
|
33
|
+
username: string;
|
|
34
|
+
};
|
|
35
|
+
export type ResetPasswordWithEmail = {
|
|
36
|
+
id: string;
|
|
37
|
+
email: string;
|
|
38
|
+
captcha_code: string;
|
|
39
|
+
};
|
|
40
|
+
export type ResetPasswordWithMobile = {
|
|
41
|
+
id: string;
|
|
42
|
+
mobile: string;
|
|
43
|
+
country_code: string;
|
|
44
|
+
captcha_code: string;
|
|
45
|
+
};
|
|
46
|
+
export type SendOTPOnMobile = {
|
|
47
|
+
id: string;
|
|
48
|
+
body: any;
|
|
49
|
+
};
|
|
50
|
+
export type SendOTPOnEmail = {
|
|
51
|
+
id: string;
|
|
52
|
+
body: any;
|
|
53
|
+
};
|
|
54
|
+
export type VerifyMobileOTP = {
|
|
55
|
+
id: string;
|
|
56
|
+
body: any;
|
|
57
|
+
};
|
|
58
|
+
export type VerifyEmailOTP = {
|
|
59
|
+
id: string;
|
|
60
|
+
body: any;
|
|
61
|
+
};
|
|
62
|
+
export type UpdateProfileType = {
|
|
63
|
+
id: string;
|
|
64
|
+
body: any;
|
|
65
|
+
};
|
|
66
|
+
export type SendEmailVerificationLink = {
|
|
67
|
+
id: string;
|
|
68
|
+
email: string;
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":""}
|