@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.
- 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,101 @@
|
|
|
1
|
+
import Base64 from 'crypto-js/enc-base64';
|
|
2
|
+
import Utf8 from 'crypto-js/enc-utf8';
|
|
3
|
+
import HmacSHA256 from 'crypto-js/hmac-sha256';
|
|
4
|
+
export function parseFilters(obj) {
|
|
5
|
+
return Object.entries(obj).reduce((str, [key, value]) => {
|
|
6
|
+
if (key.startsWith('__')) {
|
|
7
|
+
return str;
|
|
8
|
+
}
|
|
9
|
+
if (str.length != 0) {
|
|
10
|
+
str += ':::';
|
|
11
|
+
}
|
|
12
|
+
if (Array.isArray(value)) {
|
|
13
|
+
str += `${key}:${value.join('||')}`;
|
|
14
|
+
}
|
|
15
|
+
else if (value) {
|
|
16
|
+
str += `${key}:${value.toString()}`;
|
|
17
|
+
}
|
|
18
|
+
return str;
|
|
19
|
+
}, '');
|
|
20
|
+
}
|
|
21
|
+
;
|
|
22
|
+
export function createJWTToken(jsonObj, secret) {
|
|
23
|
+
// Defining our token parts
|
|
24
|
+
let header = {
|
|
25
|
+
alg: 'HS256',
|
|
26
|
+
typ: 'JWT',
|
|
27
|
+
};
|
|
28
|
+
function base64url(source) {
|
|
29
|
+
// Encode in classical base64
|
|
30
|
+
let encodedSource = Base64.stringify(source);
|
|
31
|
+
// Remove padding equal characters
|
|
32
|
+
encodedSource = encodedSource.replace(/=+$/, '');
|
|
33
|
+
// Replace characters according to base64url specifications
|
|
34
|
+
encodedSource = encodedSource.replace(/\+/g, '-');
|
|
35
|
+
encodedSource = encodedSource.replace(/\//g, '_');
|
|
36
|
+
return encodedSource;
|
|
37
|
+
}
|
|
38
|
+
let stringifiedHeader = Utf8.parse(JSON.stringify(header));
|
|
39
|
+
let encodedHeader = base64url(stringifiedHeader);
|
|
40
|
+
let stringifiedData = Utf8.parse(JSON.stringify(jsonObj));
|
|
41
|
+
let encodedData = base64url(stringifiedData);
|
|
42
|
+
let signature = encodedHeader + '.' + encodedData;
|
|
43
|
+
signature = HmacSHA256(signature, secret);
|
|
44
|
+
signature = base64url(signature);
|
|
45
|
+
return `${encodedHeader}.${encodedData}.${signature}`;
|
|
46
|
+
}
|
|
47
|
+
export function isRunningOnClient() {
|
|
48
|
+
if (typeof window !== 'undefined') {
|
|
49
|
+
return globalThis === window;
|
|
50
|
+
}
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
export function getCookie(key) {
|
|
54
|
+
if (isRunningOnClient()) {
|
|
55
|
+
const name = key + '=';
|
|
56
|
+
const decoded = decodeURIComponent(document.cookie);
|
|
57
|
+
const cArr = decoded.split('; ');
|
|
58
|
+
let res;
|
|
59
|
+
cArr.forEach((val) => {
|
|
60
|
+
if (val.indexOf(name) === 0)
|
|
61
|
+
res = val.substring(name.length);
|
|
62
|
+
});
|
|
63
|
+
if (!res) {
|
|
64
|
+
return '';
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
return JSON.parse(res);
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
return res || null;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export function setCookie(key, value, exp, domain, path) {
|
|
78
|
+
if (isRunningOnClient()) {
|
|
79
|
+
value = typeof value === 'object' ? JSON.stringify(value) : value;
|
|
80
|
+
let date = new Date();
|
|
81
|
+
date.setTime(date.getTime() + exp * 24 * 60 * 60 * 1000);
|
|
82
|
+
const expires = 'expires=' + date.toUTCString();
|
|
83
|
+
document.cookie = `${key}=${encodeURIComponent(value)}; ${exp !== null && expires}; domain=${domain ? domain : ''}; path=${path ? path : '/'};`;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export function removeCookie(name) {
|
|
87
|
+
if (isRunningOnClient()) {
|
|
88
|
+
document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export function cartItemsCount(cart) {
|
|
92
|
+
var _a, _b;
|
|
93
|
+
const count = (_b = (_a = cart === null || cart === void 0 ? void 0 : cart.items) === null || _a === void 0 ? void 0 : _a.reduce((total, item) => {
|
|
94
|
+
if (item.quantity) {
|
|
95
|
+
return total + item.quantity;
|
|
96
|
+
}
|
|
97
|
+
return total;
|
|
98
|
+
}, 0)) !== null && _b !== void 0 ? _b : 0;
|
|
99
|
+
return count;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/helpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAG/C,MAAM,UAAU,YAAY,CAAC,GAAQ;IACjC,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACpD,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;YACtB,OAAO,GAAG,CAAC;SACd;QACD,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE;YACjB,GAAG,IAAI,KAAK,CAAC;SAChB;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACtB,GAAG,IAAI,GAAG,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;SACvC;aAAM,IAAI,KAAK,EAAE;YACd,GAAG,IAAI,GAAG,GAAG,IAA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EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;QACzD,MAAM,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAChD,QAAQ,CAAC,MAAM,GAAG,GAAG,GAAG,IAAI,kBAAkB,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,IAAI,IAAI,OACtE,YAAY,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;KACtE;AACL,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAY;IACrC,IAAI,iBAAiB,EAAE,EAAE;QACrB,QAAQ,CAAC,MAAM,GAAG,GAAG,IAAI,mDAAmD,CAAC;KAChF;AACL,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAS;;IACpC,MAAM,KAAK,GAAG,MAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,0CAAE,MAAM,CAAC,CAAC,KAAS,EAAE,IAAQ,EAAE,EAAE;QACtD,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,OAAO,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC;SAChC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC,EAAE,CAAC,CAAC,mCAAI,CAAC,CAAC;IACX,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ApplicationStore from './store';
|
|
2
|
+
class FPIClient {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
const { applicationID, applicationToken, domain: themeDomain, storeInitialData = {} } = opts;
|
|
5
|
+
const concatenatedString = `${applicationID}:${applicationToken}`;
|
|
6
|
+
const encodedString = self.btoa.call(globalThis, concatenatedString);
|
|
7
|
+
const authorizationHeader = `Bearer ${encodedString}`;
|
|
8
|
+
const domain = themeDomain;
|
|
9
|
+
this.client = new ApplicationStore(storeInitialData, authorizationHeader, domain);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export default FPIClient;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,SAAS,CAAC;AAGvC,MAAM,SAAS;IAGX,YAAY,IAAsB;QAC9B,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,EAAC,WAAW,EAAE,gBAAgB,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC;QAE5F,MAAM,kBAAkB,GAAG,GAAG,aAAa,IAAI,gBAAgB,EAAE,CAAC;QAClE,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;QACrE,MAAM,mBAAmB,GAAG,UAAU,aAAa,EAAE,CAAC;QACtD,MAAM,MAAM,GAAG,WAAW,CAAC;QAE3B,IAAI,CAAC,MAAM,GAAG,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,mBAAmB,EAAC,MAAM,CAAC,CAAC;IACrF,CAAC;CACJ;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare enum STORE_KEYS {
|
|
2
|
+
PRODUCTS = "products",
|
|
3
|
+
PRODUCT_DETAILS = "product",
|
|
4
|
+
CART = "cart",
|
|
5
|
+
CHECKOUT = "checkout",
|
|
6
|
+
BRANDS = "brands",
|
|
7
|
+
CATEGORIES = "categories",
|
|
8
|
+
COLLECTION = "collection",
|
|
9
|
+
AUTH = "auth",
|
|
10
|
+
PAYMENT = "payment",
|
|
11
|
+
ADDRESS = "address",
|
|
12
|
+
CONTENT = "content",
|
|
13
|
+
THEME = "theme",
|
|
14
|
+
CONFIGURATION = "configuration",
|
|
15
|
+
LOGISTIC = "logistic",
|
|
16
|
+
SHARE = "share",
|
|
17
|
+
ORDER = "order",
|
|
18
|
+
CUSTOM = "custom"
|
|
19
|
+
}
|
|
20
|
+
export declare enum COOKIE_KEYS {
|
|
21
|
+
LOCATION_DATA = "app_location_details",
|
|
22
|
+
TOKEN = "m_token",
|
|
23
|
+
THEME_COLORS = "m_theme_colors",
|
|
24
|
+
CURRENCY = "m_currency",
|
|
25
|
+
PREVIOUS_SEARCHES = "m_prevSearches",
|
|
26
|
+
USER_PINCODE = "m_userPincode",
|
|
27
|
+
USER_CART = "m_usercart",
|
|
28
|
+
WISHLIST_UIDS = "m_wishlistUids",
|
|
29
|
+
COMPARE_SLUGS = "m_compare_slugs",
|
|
30
|
+
ORDERING_STORE = "m_orderingStore",
|
|
31
|
+
DEPLOYMENT_STORE = "m_deploymentStore",
|
|
32
|
+
SELECTED_EMPLOYEE = "m_selectedEmployee",
|
|
33
|
+
LOCATION_DETAILS = "m_locationDetails",
|
|
34
|
+
I18N_DETAILS = "app_i18n_details"
|
|
35
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export var STORE_KEYS;
|
|
2
|
+
(function (STORE_KEYS) {
|
|
3
|
+
STORE_KEYS["PRODUCTS"] = "products";
|
|
4
|
+
STORE_KEYS["PRODUCT_DETAILS"] = "product";
|
|
5
|
+
STORE_KEYS["CART"] = "cart";
|
|
6
|
+
STORE_KEYS["CHECKOUT"] = "checkout";
|
|
7
|
+
STORE_KEYS["BRANDS"] = "brands";
|
|
8
|
+
STORE_KEYS["CATEGORIES"] = "categories";
|
|
9
|
+
STORE_KEYS["COLLECTION"] = "collection";
|
|
10
|
+
STORE_KEYS["AUTH"] = "auth";
|
|
11
|
+
STORE_KEYS["PAYMENT"] = "payment";
|
|
12
|
+
STORE_KEYS["ADDRESS"] = "address";
|
|
13
|
+
STORE_KEYS["CONTENT"] = "content";
|
|
14
|
+
STORE_KEYS["THEME"] = "theme";
|
|
15
|
+
STORE_KEYS["CONFIGURATION"] = "configuration";
|
|
16
|
+
STORE_KEYS["LOGISTIC"] = "logistic";
|
|
17
|
+
STORE_KEYS["SHARE"] = "share";
|
|
18
|
+
STORE_KEYS["ORDER"] = "order";
|
|
19
|
+
STORE_KEYS["CUSTOM"] = "custom";
|
|
20
|
+
})(STORE_KEYS || (STORE_KEYS = {}));
|
|
21
|
+
export var COOKIE_KEYS;
|
|
22
|
+
(function (COOKIE_KEYS) {
|
|
23
|
+
COOKIE_KEYS["LOCATION_DATA"] = "app_location_details";
|
|
24
|
+
COOKIE_KEYS["TOKEN"] = "m_token";
|
|
25
|
+
COOKIE_KEYS["THEME_COLORS"] = "m_theme_colors";
|
|
26
|
+
COOKIE_KEYS["CURRENCY"] = "m_currency";
|
|
27
|
+
COOKIE_KEYS["PREVIOUS_SEARCHES"] = "m_prevSearches";
|
|
28
|
+
COOKIE_KEYS["USER_PINCODE"] = "m_userPincode";
|
|
29
|
+
COOKIE_KEYS["USER_CART"] = "m_usercart";
|
|
30
|
+
COOKIE_KEYS["WISHLIST_UIDS"] = "m_wishlistUids";
|
|
31
|
+
COOKIE_KEYS["COMPARE_SLUGS"] = "m_compare_slugs";
|
|
32
|
+
COOKIE_KEYS["ORDERING_STORE"] = "m_orderingStore";
|
|
33
|
+
COOKIE_KEYS["DEPLOYMENT_STORE"] = "m_deploymentStore";
|
|
34
|
+
COOKIE_KEYS["SELECTED_EMPLOYEE"] = "m_selectedEmployee";
|
|
35
|
+
COOKIE_KEYS["LOCATION_DETAILS"] = "m_locationDetails";
|
|
36
|
+
COOKIE_KEYS["I18N_DETAILS"] = "app_i18n_details";
|
|
37
|
+
})(COOKIE_KEYS || (COOKIE_KEYS = {}));
|
|
38
|
+
//# sourceMappingURL=keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../src/store/enums/keys.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAkBX;AAlBD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,yCAA2B,CAAA;IAC3B,2BAAa,CAAA;IACb,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;IACjB,uCAAyB,CAAA;IACzB,uCAAyB,CAAA;IACzB,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,6BAAe,CAAA;IACf,6CAA+B,CAAA;IAC/B,mCAAqB,CAAA;IACrB,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,+BAAiB,CAAA;AACnB,CAAC,EAlBW,UAAU,KAAV,UAAU,QAkBrB;AAED,MAAM,CAAN,IAAY,WAeX;AAfD,WAAY,WAAW;IACrB,qDAAsC,CAAA;IACtC,gCAAiB,CAAA;IACjB,8CAA+B,CAAA;IAC/B,sCAAuB,CAAA;IACvB,mDAAoC,CAAA;IACpC,6CAA8B,CAAA;IAC9B,uCAAwB,CAAA;IACxB,+CAAgC,CAAA;IAChC,gDAAiC,CAAA;IACjC,iDAAkC,CAAA;IAClC,qDAAsC,CAAA;IACtC,uDAAwC,CAAA;IACxC,qDAAsC,CAAA;IACtC,gDAAgC,CAAA;AAClC,CAAC,EAfW,WAAW,KAAX,WAAW,QAetB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { CustomModule } from "./modules/custom";
|
|
3
|
+
import { ThemeModule } from "./modules/theme";
|
|
4
|
+
import { PaymentModule } from "./modules/payment";
|
|
5
|
+
type ExecuteOptions = {
|
|
6
|
+
skipStoreUpdate?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare class ApplicationStore {
|
|
9
|
+
private store;
|
|
10
|
+
getters: any;
|
|
11
|
+
dispatch: ThunkActionDispatch<any>;
|
|
12
|
+
custom: CustomModule;
|
|
13
|
+
theme: ThemeModule;
|
|
14
|
+
payment: PaymentModule;
|
|
15
|
+
PaymentGateways: Record<string, any>;
|
|
16
|
+
private domain;
|
|
17
|
+
private authorizationHeader;
|
|
18
|
+
constructor(initialData: any, authorizationHeader: any, domain: any);
|
|
19
|
+
private executeFetch;
|
|
20
|
+
setI18nDetails(cookieValue: any): void;
|
|
21
|
+
observeStore(getterKey: string, onChange: Function): import("redux").Unsubscribe;
|
|
22
|
+
executeGQL(query: string, params: any | null, options?: ExecuteOptions): Promise<any>;
|
|
23
|
+
}
|
|
24
|
+
export default ApplicationStore;
|
|
@@ -0,0 +1,244 @@
|
|
|
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
|
+
import { CustomModule } from "./modules/custom";
|
|
11
|
+
import { ThemeModule } from "./modules/theme";
|
|
12
|
+
import { PaymentGatway } from "./utils/gateways";
|
|
13
|
+
import { createStore } from "./store";
|
|
14
|
+
import { queryResponseHandler } from "../graphql/query";
|
|
15
|
+
import { mutationResponseHandler } from "../graphql/mutations";
|
|
16
|
+
import { parse } from "graphql";
|
|
17
|
+
import { PaymentModule } from "./modules/payment";
|
|
18
|
+
import { COOKIE_KEYS } from "./enums/keys";
|
|
19
|
+
import { getCookie, isRunningOnClient, setCookie } from "../helpers/utils";
|
|
20
|
+
class ApplicationStore {
|
|
21
|
+
constructor(initialData, authorizationHeader, domain) {
|
|
22
|
+
this.PaymentGateways = PaymentGatway;
|
|
23
|
+
this.store = createStore(initialData);
|
|
24
|
+
this.domain = domain;
|
|
25
|
+
this.authorizationHeader = authorizationHeader;
|
|
26
|
+
this.getters = {
|
|
27
|
+
// Product Listing Getters
|
|
28
|
+
PRODUCTS: (store) => store.products.product_lists,
|
|
29
|
+
PRODUCT_LISTING_META: (store) => store.products.product_listing_meta,
|
|
30
|
+
CATEGORY_LISTING_META: (store) => store.products.category_listing_meta,
|
|
31
|
+
COLLECTION_LISTING_META: (store) => store.products.collection_listing_meta,
|
|
32
|
+
BRAND_LISTING_META: (store) => store.products.brand_listing_meta,
|
|
33
|
+
PRODUCT_SEARCH_RESULTS: (store) => store.products.product_search_results,
|
|
34
|
+
SEARCH_RESULTS: (store) => store.products.search_results,
|
|
35
|
+
// Product Description Getters
|
|
36
|
+
PRODUCT: (store) => store.product,
|
|
37
|
+
PRODUCT_DETAILS: (store) => store.product.product_details,
|
|
38
|
+
PRODUCT_VARIANTS: (store) => store.product.product_variants,
|
|
39
|
+
PRODUCT_META: (store) => store.product.product_meta,
|
|
40
|
+
BULK_PRICE: (store) => store.product.bulk_price,
|
|
41
|
+
SIMILAR_COMPARE_PRODUCTS: (store) => store.product.similar_compare_products,
|
|
42
|
+
FREQUENTLY_COMPARED_PRODUCTS: (store) => store.product.frequently_compared_products,
|
|
43
|
+
PRODUCT_PRICE_BY_SLUG: (store) => store.product.product_price_by_slug,
|
|
44
|
+
PRODUCT_SELLER_BY_SLUG: (store) => store.product.product_seller_by_slug,
|
|
45
|
+
FOLLOW_BY_ID: (store) => store.product.follow_by_id,
|
|
46
|
+
FOLLOWER_COUNT_BY_ID: (store) => store.product.follower_count_by_id,
|
|
47
|
+
FOLLOWED_LIST: (store) => store.product.followed_listing,
|
|
48
|
+
FOLLOW_IDS: (store) => store.product.fetch_follow_ids,
|
|
49
|
+
UNFOLLOW_BY_IDS: (store) => store.product.unfollow_by_id,
|
|
50
|
+
FOLLOWED_PRODUCTS: (store) => store.product.followed_products,
|
|
51
|
+
// Cart Getters
|
|
52
|
+
CART: (store) => store.cart,
|
|
53
|
+
CART_ITEMS: (store) => store.cart.cart_items,
|
|
54
|
+
BUY_NOW_CART_ITEMS: (store) => store.cart.buy_now_cart_items,
|
|
55
|
+
CHECKOUT_MODE: (store) => store.cart.checkout_mode,
|
|
56
|
+
CART_ITEMS_COUNT: (store) => store.cart.cart_items_count,
|
|
57
|
+
SHIPMENTS: (store) => store.cart.shipments,
|
|
58
|
+
LADDER_OFFERS: (store) => store.cart.ladder_offers,
|
|
59
|
+
PROMOTION_OFFERS: (store) => store.cart.promotion_offers,
|
|
60
|
+
COUPONS: (store) => store.cart.coupons,
|
|
61
|
+
CART_SHARE_LINK: (store) => store.cart.cart_share_link,
|
|
62
|
+
// Address Getters
|
|
63
|
+
ADDRESS: (store) => store.address.address,
|
|
64
|
+
ADDRESS_ITEM: (store) => store.address.address_item,
|
|
65
|
+
// categories Getters
|
|
66
|
+
CATEGORIES: (store) => store.categories.categories,
|
|
67
|
+
// Collection Getters
|
|
68
|
+
COLLECTION: (store) => store.collection,
|
|
69
|
+
COLLECTIONS: (store) => store.collection.collections,
|
|
70
|
+
COLLECTION_LIST: (store) => store.collection.collection,
|
|
71
|
+
COLLECTION_ITEM: (store) => store.collection.item,
|
|
72
|
+
// Theme Getters
|
|
73
|
+
THEME: (store) => store.theme.theme,
|
|
74
|
+
PAGE: (store) => store.theme.page,
|
|
75
|
+
ALL_PAGES: (store) => store.theme.allPages,
|
|
76
|
+
// Logistic Getters
|
|
77
|
+
LOGISTIC: (store) => store.logistic,
|
|
78
|
+
COUNTRIES: (store) => store.logistic.countries,
|
|
79
|
+
PRODUCT_TAT: (store) => store.logistic.product_tat,
|
|
80
|
+
PINCODE_DETAILS: (store) => store.logistic.pincode_details,
|
|
81
|
+
// Brands Getters
|
|
82
|
+
BRANDS: (store) => store.brands.brands,
|
|
83
|
+
BRAND: (store) => store.brands.brand,
|
|
84
|
+
// Configuration Getters
|
|
85
|
+
CONFIGURATION: (store) => store.configuration,
|
|
86
|
+
APPLICATION: (store) => store.configuration.application,
|
|
87
|
+
CONTACT_INFO: (store) => store.configuration.contact_info,
|
|
88
|
+
APP_FEATURES: (store) => store.configuration.app_features,
|
|
89
|
+
INTEGRATION_TOKENS: (store) => store.configuration.integration_tokens,
|
|
90
|
+
DEPLOYMENT_STORES: (store) => store.configuration.deployment_stores,
|
|
91
|
+
STAFF: (store) => store.configuration.staff,
|
|
92
|
+
STORE_DETAILS: (store) => store.configuration.store_details,
|
|
93
|
+
CURRENCIES: (store) => store.configuration.currencies,
|
|
94
|
+
// Content Getters
|
|
95
|
+
CONTENT: (store) => store.content,
|
|
96
|
+
NAVIGATION: (store) => store.content.navigation,
|
|
97
|
+
SEO: (store) => store.content.seo,
|
|
98
|
+
BLOG: (store) => store.content.blog,
|
|
99
|
+
BLOGS: (store) => store.content.blogs,
|
|
100
|
+
CUSTOM_PAGE: (store) => store.content.custom_page,
|
|
101
|
+
FAQ: (store) => store.content.faq_data,
|
|
102
|
+
FAQS: (store) => store.content.faqs,
|
|
103
|
+
FAQ_CATEGORY: (store) => store.content.faqCategory,
|
|
104
|
+
FAQ_CATEGORIES: (store) => store.content.faqCategories,
|
|
105
|
+
TAGS: (store) => store.content.tags,
|
|
106
|
+
LEGAL_DATA: (store) => store.content.legal_data,
|
|
107
|
+
SCREEN_SAVER: (store) => store.content.screen_saver,
|
|
108
|
+
SUPPORT_INFORMATION: (store) => store.content.support_information,
|
|
109
|
+
ANNOUNCEMENT: (store) => store.content.announcement,
|
|
110
|
+
LANDING_PAGE: (store) => store.content.landing_page,
|
|
111
|
+
DATA_LOADERS: (store) => store.content.data_loaders,
|
|
112
|
+
// Auth Getters
|
|
113
|
+
LOGGED_IN: (store) => store.auth.logged_in,
|
|
114
|
+
USER_FETCHED: (store) => store.auth.user_fetched,
|
|
115
|
+
USER_DATA: (store) => store.auth.user_data,
|
|
116
|
+
PLATFORM_DATA: (store) => store.auth.platform_data,
|
|
117
|
+
// Payment Getters
|
|
118
|
+
PAYMENT_OPTIONS: (store) => store.payment.payment_options,
|
|
119
|
+
AGGREGATORS_CONFIG: (store) => store.payment.aggregators_config,
|
|
120
|
+
// SELLER DETAILS
|
|
121
|
+
SELLER_DETAILS: (store) => store.custom["sellerDetailsKey"],
|
|
122
|
+
i18N_DETAILS: (store) => store.custom["i18nDetailsKey"],
|
|
123
|
+
LOCATION_DETAILS: (store) => store.custom["locationDetailsKey"],
|
|
124
|
+
// Custom Getters
|
|
125
|
+
CUSTOM_VALUE: (store) => store.custom,
|
|
126
|
+
};
|
|
127
|
+
this.dispatch = this.store.dispatch;
|
|
128
|
+
this.custom = new CustomModule(this.dispatch);
|
|
129
|
+
this.theme = new ThemeModule(this.dispatch);
|
|
130
|
+
this.payment = new PaymentModule(this.dispatch);
|
|
131
|
+
this.observeStore = this.observeStore.bind(this);
|
|
132
|
+
if (isRunningOnClient()) {
|
|
133
|
+
let i18nDetails = getCookie(COOKIE_KEYS.I18N_DETAILS);
|
|
134
|
+
this.custom.setValue("i18nDetailsKey", i18nDetails);
|
|
135
|
+
let locationDetails = getCookie(COOKIE_KEYS.LOCATION_DATA);
|
|
136
|
+
this.custom.setValue("locationDetailsKey", locationDetails);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
executeFetch(query, variables) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
const response = yield fetch(`${this.domain}/service/application/graphql/`, {
|
|
142
|
+
method: 'POST',
|
|
143
|
+
headers: {
|
|
144
|
+
'Content-Type': 'application/json',
|
|
145
|
+
'Authorization': this.authorizationHeader,
|
|
146
|
+
'credentials': 'include',
|
|
147
|
+
},
|
|
148
|
+
body: JSON.stringify({
|
|
149
|
+
query,
|
|
150
|
+
variables,
|
|
151
|
+
}),
|
|
152
|
+
});
|
|
153
|
+
const headers = response.headers;
|
|
154
|
+
const sellerDetails = headers.get('x-seller-details');
|
|
155
|
+
if (!response.ok) {
|
|
156
|
+
throw new Error(`GraphQL request failed with status ${response.status}`);
|
|
157
|
+
}
|
|
158
|
+
const result = yield response.json();
|
|
159
|
+
return { result, sellerDetails };
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
setI18nDetails(cookieValue) {
|
|
163
|
+
try {
|
|
164
|
+
let currentLocationData = getCookie(COOKIE_KEYS.LOCATION_DATA);
|
|
165
|
+
if (typeof currentLocationData !== "object" ||
|
|
166
|
+
currentLocationData === null) {
|
|
167
|
+
currentLocationData = {};
|
|
168
|
+
}
|
|
169
|
+
if (typeof cookieValue === "string") {
|
|
170
|
+
try {
|
|
171
|
+
cookieValue = JSON.parse(cookieValue);
|
|
172
|
+
}
|
|
173
|
+
catch (e) {
|
|
174
|
+
console.error("Error parsing cookieValue:", e);
|
|
175
|
+
cookieValue = {};
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (cookieValue.countryCode == currentLocationData.country_iso_code) {
|
|
179
|
+
currentLocationData.country_iso_code =
|
|
180
|
+
cookieValue.countryCode || currentLocationData.country_iso_code;
|
|
181
|
+
currentLocationData.country =
|
|
182
|
+
cookieValue.countryName || currentLocationData.country;
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
currentLocationData = {
|
|
186
|
+
country_iso_code: cookieValue.countryCode || currentLocationData.country_iso_code,
|
|
187
|
+
country: cookieValue.countryName || currentLocationData.country,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
setCookie(COOKIE_KEYS.LOCATION_DATA, currentLocationData, 1);
|
|
191
|
+
setCookie(COOKIE_KEYS.I18N_DETAILS, cookieValue, 1);
|
|
192
|
+
this.custom.setValue("i18nDetailsKey", cookieValue);
|
|
193
|
+
this.custom.setValue("locationDetailsKey", currentLocationData);
|
|
194
|
+
}
|
|
195
|
+
catch (error) {
|
|
196
|
+
console.error("Error while setting location data in cookie");
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
observeStore(getterKey, onChange) {
|
|
200
|
+
let previousState;
|
|
201
|
+
const handleChange = () => {
|
|
202
|
+
var _a, _b, _c;
|
|
203
|
+
let currentState = ((_c = (_b = (_a = this === null || this === void 0 ? void 0 : this.store) === null || _a === void 0 ? void 0 : _a.getState) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : {})[getterKey];
|
|
204
|
+
if (currentState !== previousState) {
|
|
205
|
+
previousState = currentState;
|
|
206
|
+
onChange(currentState);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
let unsubscribe = this.store.subscribe(handleChange);
|
|
210
|
+
handleChange();
|
|
211
|
+
return unsubscribe;
|
|
212
|
+
}
|
|
213
|
+
executeGQL(query, params, options) {
|
|
214
|
+
var _a, _b;
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
try {
|
|
217
|
+
const { result: responseData, sellerDetails } = yield this.executeFetch(query, params);
|
|
218
|
+
this.custom.setValue("sellerDetailsKey", sellerDetails);
|
|
219
|
+
if (!(options === null || options === void 0 ? void 0 : options.skipStoreUpdate)) {
|
|
220
|
+
if (((_b = (_a = parse(query).definitions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.operation) === 'mutation') {
|
|
221
|
+
mutationResponseHandler(responseData.data, this.dispatch, params);
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
queryResponseHandler(responseData.data, this.dispatch, params);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return responseData;
|
|
228
|
+
}
|
|
229
|
+
catch (error) {
|
|
230
|
+
return {
|
|
231
|
+
data: null,
|
|
232
|
+
errors: [
|
|
233
|
+
{
|
|
234
|
+
code: 'Error',
|
|
235
|
+
message: error.message || error,
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export default ApplicationStore;
|
|
244
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"m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QACf,OAAO,WAAW,CAAC;IACrB,CAAC;IAEY,UAAU,CAAC,KAAa,EAAE,MAAkB,EAAE,OAAwB;;;YACjF,IAAI;gBACF,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;gBACvF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC;gBACxD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,CAAA,EAAE;oBAC7B,IAAI,CAAA,MAAC,MAAA,KAAK,CAAC,KAAK,CAAC,CAAC,WAAW,0CAAG,CAAC,CAAS,0CAAE,SAAS,MAAK,UAAU,EAAE;wBACpE,uBAAuB,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;qBACnE;yBAAM;wBACL,oBAAoB,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;qBAChE;iBACF;gBACD,OAAO,YAAY,CAAC;aACrB;YAAC,OAAO,KAAU,EAAE;gBACnB,OAAO;oBACL,IAAI,EAAE,IAAI;oBACV,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,KAAK;yBAChC;qBACF;iBACF,CAAC;aACH;;KACF;CACF;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { AsyncThunkCompleted } from "../../types";
|
|
3
|
+
import { CustomPayload } from "../../types/custom";
|
|
4
|
+
export declare class CustomModule {
|
|
5
|
+
private dispatch;
|
|
6
|
+
constructor(dispatch: ThunkActionDispatch<any>);
|
|
7
|
+
setValue(key: string | Symbol, value: any): AsyncThunkCompleted<CustomPayload>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { setValue } from "../slices/custom";
|
|
2
|
+
export class CustomModule {
|
|
3
|
+
constructor(dispatch) {
|
|
4
|
+
this.dispatch = dispatch;
|
|
5
|
+
}
|
|
6
|
+
setValue(key, value) {
|
|
7
|
+
const params = { key, value };
|
|
8
|
+
return this.dispatch(setValue(params));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=custom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom.js","sourceRoot":"","sources":["../../../src/store/modules/custom.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,OAAO,YAAY;IACvB,YAAoB,QAAkC;QAAlC,aAAQ,GAAR,QAAQ,CAA0B;IAAG,CAAC;IAEnD,QAAQ,CAAC,GAAoB,EAAE,KAAU;QAC9C,MAAM,MAAM,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IACzC,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { checkoutPayment } from "../slices/payment";
|
|
2
|
+
export class PaymentModule {
|
|
3
|
+
constructor(dispatch) {
|
|
4
|
+
this.dispatch = dispatch;
|
|
5
|
+
}
|
|
6
|
+
checkoutPayment(payload) {
|
|
7
|
+
return this.dispatch(checkoutPayment(payload));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=payment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../src/store/modules/payment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,OAAO,aAAa;IACxB,YAAoB,QAAkC;QAAlC,aAAQ,GAAR,QAAQ,CAA0B;IAAG,CAAC;IAEjD,eAAe,CAAC,OAAW;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IACjD,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { Theme } from "../../types/graphql";
|
|
3
|
+
export declare class ThemeModule {
|
|
4
|
+
private dispatch;
|
|
5
|
+
constructor(dispatch: ThunkActionDispatch<any>);
|
|
6
|
+
dragSection(params: {
|
|
7
|
+
index: number;
|
|
8
|
+
newIndex: number;
|
|
9
|
+
}): any;
|
|
10
|
+
addSection(params?: any): any;
|
|
11
|
+
removeSection(params?: any): any;
|
|
12
|
+
updateSection(params?: any): any;
|
|
13
|
+
setTheme(params: any): any;
|
|
14
|
+
setGlobalConfig(params: any): any;
|
|
15
|
+
private appliedThemeGraphQLhandler;
|
|
16
|
+
handleThemeResponse(response: Theme): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { dragSection, addSection, removeSection, updateSection, setTheme, setGlobalConfig, } from "../slices/theme";
|
|
2
|
+
export class ThemeModule {
|
|
3
|
+
constructor(dispatch) {
|
|
4
|
+
this.dispatch = dispatch;
|
|
5
|
+
}
|
|
6
|
+
dragSection(params) {
|
|
7
|
+
return this.dispatch(dragSection(params));
|
|
8
|
+
}
|
|
9
|
+
addSection(params = {}) {
|
|
10
|
+
return this.dispatch(addSection(params));
|
|
11
|
+
}
|
|
12
|
+
removeSection(params = {}) {
|
|
13
|
+
return this.dispatch(removeSection(params));
|
|
14
|
+
}
|
|
15
|
+
updateSection(params = {}) {
|
|
16
|
+
return this.dispatch(updateSection(params));
|
|
17
|
+
}
|
|
18
|
+
setTheme(params) {
|
|
19
|
+
return this.dispatch(setTheme(params));
|
|
20
|
+
}
|
|
21
|
+
setGlobalConfig(params) {
|
|
22
|
+
return this.dispatch(setGlobalConfig(params));
|
|
23
|
+
}
|
|
24
|
+
appliedThemeGraphQLhandler(appliedTheme) {
|
|
25
|
+
return this.dispatch();
|
|
26
|
+
}
|
|
27
|
+
handleThemeResponse(response) {
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/store/modules/theme.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,QAAQ,EACR,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAGzB,MAAM,OAAO,WAAW;IACtB,YAAoB,QAAkC;QAAlC,aAAQ,GAAR,QAAQ,CAA0B;IAAG,CAAC;IAEjD,WAAW,CAAC,MAA2C;QAC5D,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,CAAC;IACM,UAAU,CAAC,SAAc,EAAE;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3C,CAAC;IACM,aAAa,CAAC,SAAc,EAAE;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9C,CAAC;IACM,aAAa,CAAC,SAAc,EAAE;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9C,CAAC;IACM,QAAQ,CAAC,MAAW;QACzB,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IACzC,CAAC;IACM,eAAe,CAAC,MAAW;QAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,CAAC;IACO,0BAA0B,CAAC,YAAyB;QAC1D,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAA;IACxB,CAAC;IACM,mBAAmB,CAAC,QAAe;IAE1C,CAAC;CACJ"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AddressSlice } from "../../types/address";
|
|
2
|
+
import { Address, Addresses, UpdateAddressResponse } from "../../types/graphql";
|
|
3
|
+
export declare const addressReducer: import("redux").Reducer<AddressSlice, import("redux").AnyAction>;
|
|
4
|
+
export declare const setAddressItem: import("@reduxjs/toolkit").ActionCreatorWithPayload<Address, "address/setAddressItem">, setAddresses: import("@reduxjs/toolkit").ActionCreatorWithPayload<Addresses, "address/setAddresses">, setupdateAddress: import("@reduxjs/toolkit").ActionCreatorWithPayload<UpdateAddressResponse, "address/setupdateAddress">;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createSlice } from "@reduxjs/toolkit";
|
|
2
|
+
import { STORE_KEYS } from "../enums/keys";
|
|
3
|
+
const initialState = {
|
|
4
|
+
address: {},
|
|
5
|
+
address_item: {},
|
|
6
|
+
};
|
|
7
|
+
const addressSlice = createSlice({
|
|
8
|
+
name: STORE_KEYS.ADDRESS,
|
|
9
|
+
initialState,
|
|
10
|
+
reducers: {
|
|
11
|
+
setAddressItem(state, action) {
|
|
12
|
+
state.address_item = action.payload;
|
|
13
|
+
},
|
|
14
|
+
setAddresses(state, action) {
|
|
15
|
+
state.address = action.payload;
|
|
16
|
+
},
|
|
17
|
+
setupdateAddress(state, action) {
|
|
18
|
+
state.address_item = action.payload;
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
export const addressReducer = addressSlice.reducer;
|
|
23
|
+
export const { setAddressItem, setAddresses, setupdateAddress } = addressSlice.actions;
|
|
24
|
+
//# sourceMappingURL=address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../../src/store/slices/address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIhD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,YAAY,GAAiB;IACjC,OAAO,EAAE,EAAE;IACX,YAAY,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,YAAY,GAAG,WAAW,CAAC;IAC/B,IAAI,EAAE,UAAU,CAAC,OAAO;IACxB,YAAY;IACZ,QAAQ,EAAE;QACR,cAAc,CAAC,KAAK,EAAE,MAA6B;YACjD,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC;QACtC,CAAC;QACD,YAAY,CAAC,KAAK,EAAE,MAA+B;YACjD,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QACjC,CAAC;QACD,gBAAgB,CAAC,KAAK,EAAE,MAA2C;YACjE,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC;QACtC,CAAC;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC;AACnD,MAAM,CAAC,MAAM,EAAE,cAAc,EAAG,YAAY,EAAE,gBAAgB,EAAC,GAAG,YAAY,CAAC,OAAO,CAAC"}
|