@gofynd/fdk-store-gql 3.0.64 → 3.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/lib/graphql/mutations/addItemsToCart.handler.js +2 -1
  2. package/lib/graphql/mutations/addItemsToCart.handler.js.map +1 -1
  3. package/lib/graphql/mutations/applyCoupon.handler.d.ts +1 -1
  4. package/lib/graphql/mutations/applyCoupon.handler.js +3 -2
  5. package/lib/graphql/mutations/applyCoupon.handler.js.map +1 -1
  6. package/lib/graphql/mutations/applyRewardPoints.handler.d.ts +1 -1
  7. package/lib/graphql/mutations/applyRewardPoints.handler.js +3 -2
  8. package/lib/graphql/mutations/applyRewardPoints.handler.js.map +1 -1
  9. package/lib/graphql/mutations/getCartShareLink.handler.d.ts +1 -1
  10. package/lib/graphql/mutations/getCartShareLink.handler.js +3 -2
  11. package/lib/graphql/mutations/getCartShareLink.handler.js.map +1 -1
  12. package/lib/graphql/mutations/loginWithAppleIOS.handler.js +2 -1
  13. package/lib/graphql/mutations/loginWithAppleIOS.handler.js.map +1 -1
  14. package/lib/graphql/mutations/loginWithEmailAndPassword.handler.js +2 -1
  15. package/lib/graphql/mutations/loginWithEmailAndPassword.handler.js.map +1 -1
  16. package/lib/graphql/mutations/loginWithFacebook.handler.js +2 -1
  17. package/lib/graphql/mutations/loginWithFacebook.handler.js.map +1 -1
  18. package/lib/graphql/mutations/loginWithGoogle.handler.js +2 -1
  19. package/lib/graphql/mutations/loginWithGoogle.handler.js.map +1 -1
  20. package/lib/graphql/mutations/loginWithOTP.handler.d.ts +1 -1
  21. package/lib/graphql/mutations/loginWithOTP.handler.js +3 -2
  22. package/lib/graphql/mutations/loginWithOTP.handler.js.map +1 -1
  23. package/lib/graphql/mutations/removeCoupon.handler.d.ts +1 -1
  24. package/lib/graphql/mutations/removeCoupon.handler.js +3 -2
  25. package/lib/graphql/mutations/removeCoupon.handler.js.map +1 -1
  26. package/lib/graphql/mutations/updateAddress.handler.d.ts +1 -1
  27. package/lib/graphql/mutations/updateAddress.handler.js +3 -2
  28. package/lib/graphql/mutations/updateAddress.handler.js.map +1 -1
  29. package/lib/graphql/mutations/updateCart.handler.js +2 -1
  30. package/lib/graphql/mutations/updateCart.handler.js.map +1 -1
  31. package/lib/graphql/mutations/updateCartMeta.handler.d.ts +1 -1
  32. package/lib/graphql/mutations/updateCartMeta.handler.js +3 -2
  33. package/lib/graphql/mutations/updateCartMeta.handler.js.map +1 -1
  34. package/lib/graphql/mutations/updateProfile.handler.js +2 -1
  35. package/lib/graphql/mutations/updateProfile.handler.js.map +1 -1
  36. package/lib/graphql/mutations/verifyEmailOtp.handler.js +2 -1
  37. package/lib/graphql/mutations/verifyEmailOtp.handler.js.map +1 -1
  38. package/lib/graphql/mutations/verifyMobileOTP.handler.js +2 -1
  39. package/lib/graphql/mutations/verifyMobileOTP.handler.js.map +1 -1
  40. package/lib/graphql/query/address.handler.d.ts +1 -1
  41. package/lib/graphql/query/address.handler.js +3 -2
  42. package/lib/graphql/query/address.handler.js.map +1 -1
  43. package/lib/graphql/query/addresses.handler.d.ts +1 -1
  44. package/lib/graphql/query/addresses.handler.js +3 -2
  45. package/lib/graphql/query/addresses.handler.js.map +1 -1
  46. package/lib/graphql/query/aggregatorsConfig.handler.d.ts +1 -1
  47. package/lib/graphql/query/aggregatorsConfig.handler.js +3 -2
  48. package/lib/graphql/query/aggregatorsConfig.handler.js.map +1 -1
  49. package/lib/graphql/query/allCountries.handler.d.ts +1 -1
  50. package/lib/graphql/query/allCountries.handler.js +3 -2
  51. package/lib/graphql/query/allCountries.handler.js.map +1 -1
  52. package/lib/graphql/query/applicationConfiguration.handler.d.ts +1 -1
  53. package/lib/graphql/query/applicationConfiguration.handler.js +8 -7
  54. package/lib/graphql/query/applicationConfiguration.handler.js.map +1 -1
  55. package/lib/graphql/query/applicationContent.handler.d.ts +1 -1
  56. package/lib/graphql/query/applicationContent.handler.js +13 -12
  57. package/lib/graphql/query/applicationContent.handler.js.map +1 -1
  58. package/lib/graphql/query/applicationStaff.handler.d.ts +1 -1
  59. package/lib/graphql/query/applicationStaff.handler.js +3 -2
  60. package/lib/graphql/query/applicationStaff.handler.js.map +1 -1
  61. package/lib/graphql/query/blog.handler.d.ts +1 -1
  62. package/lib/graphql/query/blog.handler.js +3 -2
  63. package/lib/graphql/query/blog.handler.js.map +1 -1
  64. package/lib/graphql/query/brand.handler.d.ts +1 -1
  65. package/lib/graphql/query/brand.handler.js +3 -2
  66. package/lib/graphql/query/brand.handler.js.map +1 -1
  67. package/lib/graphql/query/brands.handler.d.ts +1 -1
  68. package/lib/graphql/query/brands.handler.js +3 -2
  69. package/lib/graphql/query/brands.handler.js.map +1 -1
  70. package/lib/graphql/query/bulkDiscountOffers.handler.d.ts +1 -1
  71. package/lib/graphql/query/bulkDiscountOffers.handler.js +3 -2
  72. package/lib/graphql/query/bulkDiscountOffers.handler.js.map +1 -1
  73. package/lib/graphql/query/cartHandler.js +2 -1
  74. package/lib/graphql/query/cartHandler.js.map +1 -1
  75. package/lib/graphql/query/cartShipmentDetails.handler.d.ts +1 -1
  76. package/lib/graphql/query/cartShipmentDetails.handler.js +3 -2
  77. package/lib/graphql/query/cartShipmentDetails.handler.js.map +1 -1
  78. package/lib/graphql/query/categories.handler.d.ts +1 -1
  79. package/lib/graphql/query/categories.handler.js +3 -2
  80. package/lib/graphql/query/categories.handler.js.map +1 -1
  81. package/lib/graphql/query/category.handler.d.ts +1 -1
  82. package/lib/graphql/query/category.handler.js +3 -2
  83. package/lib/graphql/query/category.handler.js.map +1 -1
  84. package/lib/graphql/query/collection.handler.js +2 -1
  85. package/lib/graphql/query/collection.handler.js.map +1 -1
  86. package/lib/graphql/query/collectionItems.handler.d.ts +1 -1
  87. package/lib/graphql/query/collectionItems.handler.js +3 -2
  88. package/lib/graphql/query/collectionItems.handler.js.map +1 -1
  89. package/lib/graphql/query/collections.handler.d.ts +1 -1
  90. package/lib/graphql/query/collections.handler.js +3 -2
  91. package/lib/graphql/query/collections.handler.js.map +1 -1
  92. package/lib/graphql/query/coupons.handler.d.ts +1 -1
  93. package/lib/graphql/query/coupons.handler.js +3 -2
  94. package/lib/graphql/query/coupons.handler.js.map +1 -1
  95. package/lib/graphql/query/customPage.hadler.d.ts +1 -1
  96. package/lib/graphql/query/customPage.hadler.js +3 -2
  97. package/lib/graphql/query/customPage.hadler.js.map +1 -1
  98. package/lib/graphql/query/faqsByCategory.handler.d.ts +1 -1
  99. package/lib/graphql/query/faqsByCategory.handler.js +3 -2
  100. package/lib/graphql/query/faqsByCategory.handler.js.map +1 -1
  101. package/lib/graphql/query/followedListing.handler.d.ts +1 -1
  102. package/lib/graphql/query/followedListing.handler.js +3 -2
  103. package/lib/graphql/query/followedListing.handler.js.map +1 -1
  104. package/lib/graphql/query/followerCount.handler.d.ts +1 -1
  105. package/lib/graphql/query/followerCount.handler.js +3 -2
  106. package/lib/graphql/query/followerCount.handler.js.map +1 -1
  107. package/lib/graphql/query/localityHandler.js +2 -1
  108. package/lib/graphql/query/localityHandler.js.map +1 -1
  109. package/lib/graphql/query/paymentModeRoutes.handler.d.ts +1 -1
  110. package/lib/graphql/query/paymentModeRoutes.handler.js +3 -2
  111. package/lib/graphql/query/paymentModeRoutes.handler.js.map +1 -1
  112. package/lib/graphql/query/pincodeDetails.handler.d.ts +1 -1
  113. package/lib/graphql/query/pincodeDetails.handler.js +3 -2
  114. package/lib/graphql/query/pincodeDetails.handler.js.map +1 -1
  115. package/lib/graphql/query/platformConfig.handler.d.ts +1 -1
  116. package/lib/graphql/query/platformConfig.handler.js +3 -2
  117. package/lib/graphql/query/platformConfig.handler.js.map +1 -1
  118. package/lib/graphql/query/product.handler.js +3 -2
  119. package/lib/graphql/query/product.handler.js.map +1 -1
  120. package/lib/graphql/query/productLadderPromotion.handler.d.ts +1 -1
  121. package/lib/graphql/query/productLadderPromotion.handler.js +3 -2
  122. package/lib/graphql/query/productLadderPromotion.handler.js.map +1 -1
  123. package/lib/graphql/query/productPrice.handler.js +2 -1
  124. package/lib/graphql/query/productPrice.handler.js.map +1 -1
  125. package/lib/graphql/query/productSellers.handler.d.ts +1 -1
  126. package/lib/graphql/query/productSellers.handler.js +3 -2
  127. package/lib/graphql/query/productSellers.handler.js.map +1 -1
  128. package/lib/graphql/query/products.handler.js +2 -1
  129. package/lib/graphql/query/products.handler.js.map +1 -1
  130. package/lib/graphql/query/productsPriceWithFulfillmentOption.handler.js +2 -1
  131. package/lib/graphql/query/productsPriceWithFulfillmentOption.handler.js.map +1 -1
  132. package/lib/graphql/query/promotionOffers.handler.d.ts +1 -1
  133. package/lib/graphql/query/promotionOffers.handler.js +3 -2
  134. package/lib/graphql/query/promotionOffers.handler.js.map +1 -1
  135. package/lib/graphql/query/store.handler.d.ts +1 -1
  136. package/lib/graphql/query/store.handler.js +3 -2
  137. package/lib/graphql/query/store.handler.js.map +1 -1
  138. package/lib/graphql/query/theme.handler.d.ts +1 -1
  139. package/lib/graphql/query/theme.handler.js +5 -4
  140. package/lib/graphql/query/theme.handler.js.map +1 -1
  141. package/lib/graphql/query/user.handler.js +2 -1
  142. package/lib/graphql/query/user.handler.js.map +1 -1
  143. package/lib/store/index.d.ts +8 -0
  144. package/lib/store/index.js +20 -0
  145. package/lib/store/index.js.map +1 -1
  146. package/lib/store/utils/util.d.ts +8 -0
  147. package/lib/store/utils/util.js +12 -0
  148. package/lib/store/utils/util.js.map +1 -1
  149. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
1
  import { setaddItemsToCart } from "../../store/slices/cart";
2
2
  import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
3
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
4
  export function addItemsToCartHandler(addItemsToCart, dispatch, params, oldStore, options) {
4
5
  if (addItemsToCart) {
5
- dispatch(setaddItemsToCart(addItemsToCart));
6
+ conditionalStoreDispatch(dispatch, setaddItemsToCart, addItemsToCart, options);
6
7
  emitFPIEvent(FPI_EVENTS.ADD_TO_CART, params, addItemsToCart, oldStore, dispatch, options);
7
8
  }
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"addItemsToCart.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/addItemsToCart.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,qBAAqB,CACnC,cAAqC,EACrC,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,IAAI,cAAc,EAAE;QAClB,QAAQ,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC;QAC5C,YAAY,CACV,UAAU,CAAC,WAAW,EACtB,MAAM,EACN,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
1
+ {"version":3,"file":"addItemsToCart.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/addItemsToCart.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,qBAAqB,CACnC,cAAqC,EACrC,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,IAAI,cAAc,EAAE;QAClB,wBAAwB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QAC/E,YAAY,CACV,UAAU,CAAC,WAAW,EACtB,MAAM,EACN,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { CartDetailResponse } from "../../types/graphql";
3
- export declare function applyCouponHandler(applyCoupon: CartDetailResponse, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function applyCouponHandler(applyCoupon: CartDetailResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setapplyCoupon, } from "../../store/slices/cart";
2
- export function applyCouponHandler(applyCoupon, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function applyCouponHandler(applyCoupon, dispatch, options) {
3
4
  if (applyCoupon) {
4
- dispatch(setapplyCoupon(applyCoupon));
5
+ conditionalStoreDispatch(dispatch, setapplyCoupon, applyCoupon, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=applyCoupon.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"applyCoupon.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/applyCoupon.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,cAAc,GAEf,MAAM,yBAAyB,CAAC;AAajC,MAAM,UAAU,kBAAkB,CAChC,WAA+B,EAC/B,QAAkC;IAElC,IAAI,WAAW,EAAE;QACf,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;KACvC;AACH,CAAC"}
1
+ {"version":3,"file":"applyCoupon.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/applyCoupon.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,cAAc,GAEf,MAAM,yBAAyB,CAAC;AAYjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,kBAAkB,CAChC,WAA+B,EAC/B,QAAkC,EAClC,OAAa;IAEb,IAAI,WAAW,EAAE;QACf,wBAAwB,CAAC,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;KAC1E;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { CartDetailResponse } from "../../types/graphql";
3
- export declare function applyRewardPointsHandler(applyRewardPoints: CartDetailResponse, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function applyRewardPointsHandler(applyRewardPoints: CartDetailResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setrewardPoints, } from "../../store/slices/cart";
2
- export function applyRewardPointsHandler(applyRewardPoints, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function applyRewardPointsHandler(applyRewardPoints, dispatch, options) {
3
4
  if (applyRewardPoints) {
4
- dispatch(setrewardPoints(applyRewardPoints));
5
+ conditionalStoreDispatch(dispatch, setrewardPoints, applyRewardPoints, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=applyRewardPoints.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"applyRewardPoints.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/applyRewardPoints.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAajC,MAAM,UAAU,wBAAwB,CACtC,iBAAqC,EACrC,QAAkC;IAElC,IAAI,iBAAiB,EAAE;QACrB,QAAQ,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC;KAC9C;AACH,CAAC"}
1
+ {"version":3,"file":"applyRewardPoints.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/applyRewardPoints.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAYjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,wBAAwB,CACtC,iBAAqC,EACrC,QAAkC,EAClC,OAAa;IAEb,IAAI,iBAAiB,EAAE;QACrB,wBAAwB,CAAC,QAAQ,EAAE,eAAe,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;KACjF;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { GetShareCartLinkResponse } from "../../types/graphql";
3
- export declare function getCartShareLinkHandler(getCartShareLink: GetShareCartLinkResponse, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function getCartShareLinkHandler(getCartShareLink: GetShareCartLinkResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setgetCartShareLink } from "../../store/slices/cart";
2
- export function getCartShareLinkHandler(getCartShareLink, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function getCartShareLinkHandler(getCartShareLink, dispatch, options) {
3
4
  if (getCartShareLink) {
4
- dispatch(setgetCartShareLink(getCartShareLink));
5
+ conditionalStoreDispatch(dispatch, setgetCartShareLink, getCartShareLink, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=getCartShareLink.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCartShareLink.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/getCartShareLink.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAW9D,MAAM,UAAU,uBAAuB,CACrC,gBAA0C,EAC1C,QAAkC;IAElC,IAAI,gBAAgB,EAAE;QACpB,QAAQ,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,CAAC;KACjD;AACH,CAAC"}
1
+ {"version":3,"file":"getCartShareLink.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/getCartShareLink.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAU9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,uBAAuB,CACrC,gBAA0C,EAC1C,QAAkC,EAClC,OAAa;IAEb,IAAI,gBAAgB,EAAE;QACpB,wBAAwB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;KACpF;AACH,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { setUserData } from "../../store/slices/auth";
2
2
  import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
3
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
4
  export function loginWithAppleIOSHandler(loginWithAppleIOS, dispatch, params, oldStore, options) {
4
5
  if (loginWithAppleIOS) {
5
- dispatch(setUserData(loginWithAppleIOS));
6
+ conditionalStoreDispatch(dispatch, setUserData, loginWithAppleIOS, options);
6
7
  emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'apple' }), loginWithAppleIOS === null || loginWithAppleIOS === void 0 ? void 0 : loginWithAppleIOS.user, oldStore, dispatch, options);
7
8
  }
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"loginWithAppleIOS.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithAppleIOS.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAQtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,wBAAwB,CACtC,iBAA8B,EAC9B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAY;IAEZ,IAAI,iBAAiB,EAAE;QACrB,QAAQ,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC;QACzC,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,OAAO,KAC5B,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,EACvB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AAEH,CAAC"}
1
+ {"version":3,"file":"loginWithAppleIOS.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithAppleIOS.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAQtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,wBAAwB,CACtC,iBAA8B,EAC9B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAY;IAEZ,IAAI,iBAAiB,EAAE;QACrB,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC5E,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,OAAO,KAC5B,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,EACvB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AAEH,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { setUserData } from "../../store/slices/auth";
2
2
  import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
3
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
4
  export function loginWithEmailAndPasswordHandler(loginWithEmailAndPassword, dispatch, params, oldStore, options) {
4
5
  if (loginWithEmailAndPassword) {
5
- dispatch(setUserData(loginWithEmailAndPassword));
6
+ conditionalStoreDispatch(dispatch, setUserData, loginWithEmailAndPassword, options);
6
7
  emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'email' }), loginWithEmailAndPassword === null || loginWithEmailAndPassword === void 0 ? void 0 : loginWithEmailAndPassword.user, oldStore, dispatch, options);
7
8
  }
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"loginWithEmailAndPassword.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithEmailAndPassword.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAStD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,gCAAgC,CAC9C,yBAAuC,EACvC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,yBAAyB,EAAE;QAC7B,QAAQ,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC,CAAC;QACjD,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,OAAO,KAC5B,yBAAyB,aAAzB,yBAAyB,uBAAzB,yBAAyB,CAAE,IAAI,EAC/B,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AAEH,CAAC"}
1
+ {"version":3,"file":"loginWithEmailAndPassword.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithEmailAndPassword.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAStD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,gCAAgC,CAC9C,yBAAuC,EACvC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,yBAAyB,EAAE;QAC7B,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;QACpF,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,OAAO,KAC5B,yBAAyB,aAAzB,yBAAyB,uBAAzB,yBAAyB,CAAE,IAAI,EAC/B,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AAEH,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { setUserData } from "../../store/slices/auth";
2
2
  import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
3
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
4
  export function loginWithFacebookHandler(loginWithFacebook, dispatch, params, oldStore, options) {
4
5
  if (loginWithFacebook) {
5
- dispatch(setUserData(loginWithFacebook));
6
+ conditionalStoreDispatch(dispatch, setUserData, loginWithFacebook, options);
6
7
  emitFPIEvent(FPI_EVENTS.LOG_IN, params, Object.assign(Object.assign({}, params), { method: 'facebook' }), loginWithFacebook === null || loginWithFacebook === void 0 ? void 0 : loginWithFacebook.user, oldStore, dispatch, options);
7
8
  }
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"loginWithFacebook.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithFacebook.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAQtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,wBAAwB,CACtC,iBAA8B,EAC9B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,iBAAiB,EAAE;QACrB,QAAQ,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC;QACzC,YAAY,CACV,UAAU,CAAC,MAAM,EACjB,MAAM,kCACD,MAAM,KAAE,MAAM,EAAE,UAAU,KAC/B,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,EACvB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
1
+ {"version":3,"file":"loginWithFacebook.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithFacebook.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAQtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,wBAAwB,CACtC,iBAA8B,EAC9B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,iBAAiB,EAAE;QACrB,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC5E,YAAY,CACV,UAAU,CAAC,MAAM,EACjB,MAAM,kCACD,MAAM,KAAE,MAAM,EAAE,UAAU,KAC/B,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,EACvB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { setUserData } from "../../store/slices/auth";
2
2
  import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
3
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
4
  export function loginWithGoogleHandler(loginWithGoogle, dispatch, params, oldStore, options) {
4
5
  if (loginWithGoogle) {
5
- dispatch(setUserData(loginWithGoogle));
6
+ conditionalStoreDispatch(dispatch, setUserData, loginWithGoogle, options);
6
7
  emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'google' }), loginWithGoogle === null || loginWithGoogle === void 0 ? void 0 : loginWithGoogle.user, oldStore, dispatch, options);
7
8
  }
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"loginWithGoogle.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithGoogle.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,sBAAsB,CACpC,eAA4B,EAC5B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAGb,IAAI,eAAe,EAAE;QACnB,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC;QACvC,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,QAAQ,KAC7B,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,EACrB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
1
+ {"version":3,"file":"loginWithGoogle.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithGoogle.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,sBAAsB,CACpC,eAA4B,EAC5B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAGb,IAAI,eAAe,EAAE;QACnB,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;QAC1E,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,QAAQ,KAC7B,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,EACrB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { SendOtpResponse } from "../../types/graphql";
3
- export declare function loginWithOTPHandler(loginWithOTP: SendOtpResponse, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function loginWithOTPHandler(loginWithOTP: SendOtpResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setUserData } from "../../store/slices/auth";
2
- export function loginWithOTPHandler(loginWithOTP, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function loginWithOTPHandler(loginWithOTP, dispatch, options) {
3
4
  if (loginWithOTP) {
4
- dispatch(setUserData(loginWithOTP));
5
+ conditionalStoreDispatch(dispatch, setUserData, loginWithOTP, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=loginWithOTP.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loginWithOTP.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithOTP.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,UAAU,mBAAmB,CACjC,YAA6B,EAC7B,QAAkC;IAElC,IAAI,YAAY,EAAE;QAChB,QAAQ,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;KACrC;AACH,CAAC"}
1
+ {"version":3,"file":"loginWithOTP.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/loginWithOTP.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,mBAAmB,CACjC,YAA6B,EAC7B,QAAkC,EAClC,OAAa;IAEb,IAAI,YAAY,EAAE;QAChB,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;KACxE;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { CartDetailResponse } from "../../types/graphql";
3
- export declare function removeCouponHandler(removeCoupon: CartDetailResponse, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function removeCouponHandler(removeCoupon: CartDetailResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setremoveCoupon, } from "../../store/slices/cart";
2
- export function removeCouponHandler(removeCoupon, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function removeCouponHandler(removeCoupon, dispatch, options) {
3
4
  if (removeCoupon) {
4
- dispatch(setremoveCoupon(removeCoupon));
5
+ conditionalStoreDispatch(dispatch, setremoveCoupon, removeCoupon, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=removeCoupon.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeCoupon.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/removeCoupon.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAajC,MAAM,UAAU,mBAAmB,CACjC,YAAgC,EAChC,QAAkC;IAElC,IAAI,YAAY,EAAE;QAChB,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC;KACzC;AACH,CAAC"}
1
+ {"version":3,"file":"removeCoupon.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/removeCoupon.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAYjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,mBAAmB,CACjC,YAAgC,EAChC,QAAkC,EAClC,OAAa;IAEb,IAAI,YAAY,EAAE;QAChB,wBAAwB,CAAC,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;KAC5E;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { UpdateAddressResponse } from "../../types/graphql";
3
- export declare function updateAddressHandler(updateAddress: UpdateAddressResponse, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function updateAddressHandler(updateAddress: UpdateAddressResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setupdateAddress } from "../../store/slices/address";
2
- export function updateAddressHandler(updateAddress, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function updateAddressHandler(updateAddress, dispatch, options) {
3
4
  if (updateAddress) {
4
- dispatch(setupdateAddress(updateAddress));
5
+ conditionalStoreDispatch(dispatch, setupdateAddress, updateAddress, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=updateAddress.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateAddress.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateAddress.handler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,UAAU,oBAAoB,CAClC,aAAoC,EACpC,QAAkC;IAElC,IAAI,aAAa,EAAE;QACjB,QAAQ,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC;KAC3C;AACH,CAAC"}
1
+ {"version":3,"file":"updateAddress.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateAddress.handler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,oBAAoB,CAClC,aAAoC,EACpC,QAAkC,EAClC,OAAa;IAEb,IAAI,aAAa,EAAE;QACjB,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;KAC9E;AACH,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { setUpdateCart } from "../../store/slices/cart";
2
2
  import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
3
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
4
  export function updateCartHandler(updateCart, dispatch, params, oldStore, options) {
4
5
  if (updateCart.cart) {
5
- dispatch(setUpdateCart(updateCart.cart));
6
+ conditionalStoreDispatch(dispatch, setUpdateCart, updateCart.cart, options);
6
7
  if (params.updateCartRequestInput.operation === "update_item") {
7
8
  emitFPIEvent(FPI_EVENTS.UPDATE_CART, params, updateCart, oldStore, dispatch, options);
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"updateCart.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateCart.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,iBAAiB,CAC/B,UAAoC,EACpC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,UAAU,CAAC,IAAI,EAAE;QACnB,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QACzC,IAAI,MAAM,CAAC,sBAAsB,CAAC,SAAS,KAAK,aAAa,EAAE;YAC7D,YAAY,CACV,UAAU,CAAC,WAAW,EACtB,MAAM,EACN,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;SACH;aAAM;YACL,YAAY,CACV,UAAU,CAAC,gBAAgB,EAC3B,MAAM,EACN,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;SACH;KACF;AACH,CAAC"}
1
+ {"version":3,"file":"updateCart.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateCart.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,iBAAiB,CAC/B,UAAoC,EACpC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,UAAU,CAAC,IAAI,EAAE;QACnB,wBAAwB,CAAC,QAAQ,EAAE,aAAa,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5E,IAAI,MAAM,CAAC,sBAAsB,CAAC,SAAS,KAAK,aAAa,EAAE;YAC7D,YAAY,CACV,UAAU,CAAC,WAAW,EACtB,MAAM,EACN,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;SACH;aAAM;YACL,YAAY,CACV,UAAU,CAAC,gBAAgB,EAC3B,MAAM,EACN,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;SACH;KACF;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { CartMetaResponse } from "../../types/graphql";
3
- export declare function updateCartMetaHandler(updateCartMeta: CartMetaResponse, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function updateCartMetaHandler(updateCartMeta: CartMetaResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setUpdateCartMeta } from "../../store/slices/cart";
2
- export function updateCartMetaHandler(updateCartMeta, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function updateCartMetaHandler(updateCartMeta, dispatch, options) {
3
4
  if (updateCartMeta) {
4
- dispatch(setUpdateCartMeta(updateCartMeta));
5
+ conditionalStoreDispatch(dispatch, setUpdateCartMeta, updateCartMeta, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=updateCartMeta.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateCartMeta.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateCartMeta.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,UAAU,qBAAqB,CACnC,cAAgC,EAChC,QAAkC;IAElC,IAAI,cAAc,EAAE;QAClB,QAAQ,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC"}
1
+ {"version":3,"file":"updateCartMeta.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateCartMeta.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,qBAAqB,CACnC,cAAgC,EAChC,QAAkC,EAClC,OAAa;IAEb,IAAI,cAAc,EAAE;QAClB,wBAAwB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;KAChF;AACH,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { setUserData } from "../../store/slices/auth";
2
2
  import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
3
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
4
  export function updateProfileHandler(updateProfile, dispatch, params, oldStore, options) {
4
5
  if (updateProfile) {
5
- dispatch(setUserData(updateProfile));
6
+ conditionalStoreDispatch(dispatch, setUserData, updateProfile, options);
6
7
  emitFPIEvent(FPI_EVENTS.PROFILE_UPDATE, params, updateProfile, oldStore, dispatch, options);
7
8
  }
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"updateProfile.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateProfile.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,oBAAoB,CAClC,aAAiC,EACjC,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,IAAI,aAAa,EAAE;QACjB,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC;QACrC,YAAY,CACV,UAAU,CAAC,cAAc,EACzB,MAAM,EACN,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
1
+ {"version":3,"file":"updateProfile.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateProfile.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,oBAAoB,CAClC,aAAiC,EACjC,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,IAAI,aAAa,EAAE;QACjB,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QACxE,YAAY,CACV,UAAU,CAAC,cAAc,EACzB,MAAM,EACN,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { setUserData } from "../../store/slices/auth";
2
2
  import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
3
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
4
  export function verifyEmailOTPHandler(verifyEmailOTP, dispatch, params, oldStore, options) {
4
5
  if (verifyEmailOTP) {
5
- dispatch(setUserData(verifyEmailOTP));
6
+ conditionalStoreDispatch(dispatch, setUserData, verifyEmailOTP, options);
6
7
  emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'email' }), verifyEmailOTP === null || verifyEmailOTP === void 0 ? void 0 : verifyEmailOTP.user, oldStore, dispatch, options);
7
8
  }
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"verifyEmailOtp.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/verifyEmailOtp.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,qBAAqB,CACnC,cAAgC,EAChC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,cAAc,EAAE;QAClB,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC;QACtC,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,OAAO,KAC5B,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,EACpB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AAEH,CAAC"}
1
+ {"version":3,"file":"verifyEmailOtp.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/verifyEmailOtp.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,qBAAqB,CACnC,cAAgC,EAChC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,cAAc,EAAE;QAClB,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QACzE,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,OAAO,KAC5B,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,EACpB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AAEH,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import { setUserData } from "../../store/slices/auth";
2
2
  import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
3
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
4
  export function verifyMobileOTPHandler(verifyMobileOTP, dispatch, params, oldStore, options) {
4
5
  if (verifyMobileOTP) {
5
- dispatch(setUserData(verifyMobileOTP));
6
+ conditionalStoreDispatch(dispatch, setUserData, verifyMobileOTP, options);
6
7
  emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'phone' }), verifyMobileOTP === null || verifyMobileOTP === void 0 ? void 0 : verifyMobileOTP.user, oldStore, dispatch, options);
7
8
  }
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"verifyMobileOTP.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/verifyMobileOTP.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,sBAAsB,CACpC,eAAiC,EACjC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,eAAe,EAAE;QACnB,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC;QACvC,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,OAAO,KAC5B,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,EACrB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AAEH,CAAC"}
1
+ {"version":3,"file":"verifyMobileOTP.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/verifyMobileOTP.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,sBAAsB,CACpC,eAAiC,EACjC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,eAAe,EAAE;QACnB,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;QAC1E,YAAY,CACV,UAAU,CAAC,MAAM,kCACZ,MAAM,KAAE,MAAM,EAAE,OAAO,KAC5B,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,EACrB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AAEH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { Address } from "../../types/graphql";
3
- export declare function addressHandler(address: Address, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function addressHandler(address: Address, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setAddressItem } from "../../store/slices/address";
2
- export function addressHandler(address, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function addressHandler(address, dispatch, options) {
3
4
  if (address.id) {
4
- dispatch(setAddressItem(address));
5
+ conditionalStoreDispatch(dispatch, setAddressItem, address, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=address.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"address.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/address.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI5D,MAAM,UAAU,cAAc,CAC5B,OAAgB,EAChB,QAAkC;IAElC,IAAI,OAAO,CAAC,EAAE,EAAE;QACd,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;KACnC;AACH,CAAC"}
1
+ {"version":3,"file":"address.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/address.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,cAAc,CAC5B,OAAgB,EAChB,QAAkC,EAClC,OAAa;IAEb,IAAI,OAAO,CAAC,EAAE,EAAE;QACd,wBAAwB,CAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;KACtE;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { Addresses } from "../../types/graphql";
3
- export declare function addressesHandler(addresses: Addresses, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function addressesHandler(addresses: Addresses, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setAddresses } from "../../store/slices/address";
2
- export function addressesHandler(addresses, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function addressesHandler(addresses, dispatch, options) {
3
4
  if (addresses) {
4
- dispatch(setAddresses(addresses));
5
+ conditionalStoreDispatch(dispatch, setAddresses, addresses, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=addresses.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"addresses.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/addresses.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D,MAAM,UAAU,gBAAgB,CAC9B,SAAoB,EACpB,QAAkC;IAElC,IAAI,SAAS,EAAE;QACb,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;KACnC;AACH,CAAC"}
1
+ {"version":3,"file":"addresses.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/addresses.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,gBAAgB,CAC9B,SAAoB,EACpB,QAAkC,EAClC,OAAa;IAEb,IAAI,SAAS,EAAE;QACb,wBAAwB,CAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;KACtE;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { AggregatorsConfigDetail } from "../../types/graphql";
3
- export declare function aggregatorsConfighandler(aggregatorsConfig: AggregatorsConfigDetail, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function aggregatorsConfighandler(aggregatorsConfig: AggregatorsConfigDetail, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,7 +1,8 @@
1
1
  import { setaggregatorsConfig } from "../../store/slices/payment";
2
- export function aggregatorsConfighandler(aggregatorsConfig, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function aggregatorsConfighandler(aggregatorsConfig, dispatch, options) {
3
4
  if (aggregatorsConfig) {
4
- dispatch(setaggregatorsConfig(aggregatorsConfig));
5
+ conditionalStoreDispatch(dispatch, setaggregatorsConfig, aggregatorsConfig, options);
5
6
  }
6
7
  }
7
8
  //# sourceMappingURL=aggregatorsConfig.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aggregatorsConfig.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/aggregatorsConfig.handler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,UAAU,wBAAwB,CACtC,iBAA0C,EAC1C,QAAkC;IAElC,IAAI,iBAAiB,EAAE;QACrB,QAAQ,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,CAAC;KACnD;AACH,CAAC"}
1
+ {"version":3,"file":"aggregatorsConfig.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/aggregatorsConfig.handler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,wBAAwB,CACtC,iBAA0C,EAC1C,QAAkC,EAClC,OAAa;IAEb,IAAI,iBAAiB,EAAE;QACrB,wBAAwB,CAAC,QAAQ,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;KACtF;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { CountryList } from "../../types/graphql";
3
- export declare function allCountrieshandler(allCountries: CountryList, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function allCountrieshandler(allCountries: CountryList, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,8 +1,9 @@
1
1
  import { setallCountries } from "../../store/slices/logistic";
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
2
3
  const themeMap = {};
3
- export function allCountrieshandler(allCountries, dispatch) {
4
+ export function allCountrieshandler(allCountries, dispatch, options) {
4
5
  if (allCountries) {
5
- dispatch(setallCountries(allCountries));
6
+ conditionalStoreDispatch(dispatch, setallCountries, allCountries, options);
6
7
  }
7
8
  }
8
9
  //# sourceMappingURL=allCountries.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allCountries.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/allCountries.handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB,MAAM,UAAU,mBAAmB,CACjC,YAAyB,EACzB,QAAkC;IAElC,IAAI,YAAY,EAAE;QAChB,QAAQ,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC;KACzC;AACH,CAAC"}
1
+ {"version":3,"file":"allCountries.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/allCountries.handler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB,MAAM,UAAU,mBAAmB,CACjC,YAAyB,EACzB,QAAkC,EAClC,OAAa;IAEb,IAAI,YAAY,EAAE;QAChB,wBAAwB,CAAC,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;KAC5E;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { ApplicationConfiguration } from "../../types/graphql";
3
- export declare function applicationConfigurationHandler(appconfiguration: ApplicationConfiguration, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function applicationConfigurationHandler(appconfiguration: ApplicationConfiguration, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,24 +1,25 @@
1
1
  import { setappDetails, setContactInfo, setFeatures, setintegrationTokens, setdeploymentStore, setcurrency, } from "../../store/slices/configuration";
2
- export function applicationConfigurationHandler(appconfiguration, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function applicationConfigurationHandler(appconfiguration, dispatch, options) {
3
4
  const { app_details = null, contact_info = null, features = null, integration_tokens = null, } = appconfiguration;
4
5
  const commonFeatures = (features === null || features === void 0 ? void 0 : features.common) || {};
5
6
  if (app_details) {
6
- dispatch(setappDetails(app_details));
7
+ conditionalStoreDispatch(dispatch, setappDetails, app_details, options);
7
8
  }
8
9
  if (contact_info) {
9
- dispatch(setContactInfo(contact_info));
10
+ conditionalStoreDispatch(dispatch, setContactInfo, contact_info, options);
10
11
  }
11
12
  if (features) {
12
- dispatch(setFeatures(features));
13
+ conditionalStoreDispatch(dispatch, setFeatures, features, options);
13
14
  }
14
15
  if (integration_tokens) {
15
- dispatch(setintegrationTokens(integration_tokens));
16
+ conditionalStoreDispatch(dispatch, setintegrationTokens, integration_tokens, options);
16
17
  }
17
18
  if (commonFeatures.deployment_store_selection) {
18
- dispatch(setdeploymentStore(commonFeatures.deployment_store_selection));
19
+ conditionalStoreDispatch(dispatch, setdeploymentStore, commonFeatures.deployment_store_selection, options);
19
20
  }
20
21
  if (commonFeatures.currency) {
21
- dispatch(setcurrency(commonFeatures.currency));
22
+ conditionalStoreDispatch(dispatch, setcurrency, commonFeatures.currency, options);
22
23
  }
23
24
  }
24
25
  //# sourceMappingURL=applicationConfiguration.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"applicationConfiguration.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/applicationConfiguration.handler.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,WAAW,GACZ,MAAM,kCAAkC,CAAC;AAG1C,MAAM,UAAU,+BAA+B,CAC7C,gBAA0C,EAC1C,QAAkC;IAElC,MAAM,EACJ,WAAW,GAAG,IAAI,EAClB,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,IAAI,GAC1B,GAAG,gBAAgB,CAAC;IAErB,MAAM,cAAc,GAAG,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,KAAI,EAAE,CAAC;IAE9C,IAAI,WAAW,EAAE;QACf,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;KACtC;IACD,IAAI,YAAY,EAAE;QAChB,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;KACxC;IACD,IAAI,QAAQ,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;KACjC;IACD,IAAI,kBAAkB,EAAE;QACtB,QAAQ,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC;KACpD;IACD,IAAI,cAAc,CAAC,0BAA0B,EAAE;QAC7C,QAAQ,CAAC,kBAAkB,CAAC,cAAc,CAAC,0BAA0B,CAAC,CAAC,CAAC;KACzE;IACD,IAAI,cAAc,CAAC,QAAQ,EAAE;QAC3B,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;KAChD;AACH,CAAC"}
1
+ {"version":3,"file":"applicationConfiguration.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/applicationConfiguration.handler.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,WAAW,GACZ,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,+BAA+B,CAC7C,gBAA0C,EAC1C,QAAkC,EAClC,OAAa;IAEb,MAAM,EACJ,WAAW,GAAG,IAAI,EAClB,YAAY,GAAG,IAAI,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,IAAI,GAC1B,GAAG,gBAAgB,CAAC;IAErB,MAAM,cAAc,GAAG,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,KAAI,EAAE,CAAC;IAE9C,IAAI,WAAW,EAAE;QACf,wBAAwB,CAAC,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;KACzE;IACD,IAAI,YAAY,EAAE;QAChB,wBAAwB,CAAC,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;KAC3E;IACD,IAAI,QAAQ,EAAE;QACZ,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;KACpE;IACD,IAAI,kBAAkB,EAAE;QACtB,wBAAwB,CAAC,QAAQ,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;KACvF;IACD,IAAI,cAAc,CAAC,0BAA0B,EAAE;QAC7C,wBAAwB,CAAC,QAAQ,EAAE,kBAAkB,EAAE,cAAc,CAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;KAC5G;IACD,IAAI,cAAc,CAAC,QAAQ,EAAE;QAC3B,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;KACnF;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
2
  import { ApplicationContent } from "../../types/graphql";
3
- export declare function applicationContenthandler(applicationContent: ApplicationContent, dispatch: ThunkActionDispatch<any>): void;
3
+ export declare function applicationContenthandler(applicationContent: ApplicationContent, dispatch: ThunkActionDispatch<any>, options?: any): void;
@@ -1,38 +1,39 @@
1
1
  import { setnavigations, setseoConfiguration, setblogs, setdataLoaders, setannouncements, setsupportInformation, settags, setlandingPage, setlegalInformation, setfaqCategories, setfaqs, } from "../../store/slices/content";
2
- export function applicationContenthandler(applicationContent, dispatch) {
2
+ import { conditionalStoreDispatch } from "../../store/utils/util";
3
+ export function applicationContenthandler(applicationContent, dispatch, options) {
3
4
  const { announcements, blogs, seo_configuration, custom_fields, data_loaders, faq_categories, faqs, landing_page, navigations, pages, slideshows, legal_information, support_information, tags, } = applicationContent;
4
5
  if (navigations) {
5
- dispatch(setnavigations(navigations));
6
+ conditionalStoreDispatch(dispatch, setnavigations, navigations, options);
6
7
  }
7
8
  if (faq_categories) {
8
- dispatch(setfaqCategories(faq_categories));
9
+ conditionalStoreDispatch(dispatch, setfaqCategories, faq_categories, options);
9
10
  }
10
11
  if (faqs) {
11
- dispatch(setfaqs(faqs));
12
+ conditionalStoreDispatch(dispatch, setfaqs, faqs, options);
12
13
  }
13
14
  if (seo_configuration) {
14
- dispatch(setseoConfiguration(seo_configuration));
15
+ conditionalStoreDispatch(dispatch, setseoConfiguration, seo_configuration, options);
15
16
  }
16
17
  if (legal_information) {
17
- dispatch(setlegalInformation(legal_information));
18
+ conditionalStoreDispatch(dispatch, setlegalInformation, legal_information, options);
18
19
  }
19
20
  if (blogs) {
20
- dispatch(setblogs(blogs));
21
+ conditionalStoreDispatch(dispatch, setblogs, blogs, options);
21
22
  }
22
23
  if (data_loaders) {
23
- dispatch(setdataLoaders(data_loaders));
24
+ conditionalStoreDispatch(dispatch, setdataLoaders, data_loaders, options);
24
25
  }
25
26
  if (announcements) {
26
- dispatch(setannouncements(announcements));
27
+ conditionalStoreDispatch(dispatch, setannouncements, announcements, options);
27
28
  }
28
29
  if (support_information) {
29
- dispatch(setsupportInformation(support_information));
30
+ conditionalStoreDispatch(dispatch, setsupportInformation, support_information, options);
30
31
  }
31
32
  if (tags) {
32
- dispatch(settags({ tags }));
33
+ conditionalStoreDispatch(dispatch, settags, { tags }, options);
33
34
  }
34
35
  if (landing_page) {
35
- dispatch(setlandingPage(landing_page));
36
+ conditionalStoreDispatch(dispatch, setlandingPage, landing_page, options);
36
37
  }
37
38
  }
38
39
  //# sourceMappingURL=applicationContent.handler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"applicationContent.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/applicationContent.handler.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,OAAO,EACP,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,GACR,MAAM,4BAA4B,CAAC;AAGpC,MAAM,UAAU,yBAAyB,CACvC,kBAAsC,EACtC,QAAkC;IAElC,MAAM,EACJ,aAAa,EACb,KAAK,EACL,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,GACL,GAAG,kBAAkB,CAAC;IAEvB,IAAI,WAAW,EAAE;QACf,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;KACvC;IACD,IAAI,cAAc,EAAE;QAClB,QAAQ,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;KAC5C;IACD,IAAI,IAAI,EAAE;QACR,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;KACzB;IACD,IAAI,iBAAiB,EAAE;QACrB,QAAQ,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC,CAAC;KAClD;IACD,IAAI,iBAAiB,EAAE;QACrB,QAAQ,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC,CAAC;KAClD;IACD,IAAI,KAAK,EAAE;QACT,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;KAC3B;IACD,IAAI,YAAY,EAAE;QAChB,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;KACxC;IACD,IAAI,aAAa,EAAE;QACjB,QAAQ,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC;KAC3C;IACD,IAAI,mBAAmB,EAAE;QACvB,QAAQ,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAC;KACtD;IACD,IAAI,IAAI,EAAE;QACR,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;KAC7B;IACD,IAAI,YAAY,EAAE;QAChB,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;KACxC;AACH,CAAC"}
1
+ {"version":3,"file":"applicationContent.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/applicationContent.handler.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,OAAO,EACP,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,GACR,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,yBAAyB,CACvC,kBAAsC,EACtC,QAAkC,EAClC,OAAa;IAEb,MAAM,EACJ,aAAa,EACb,KAAK,EACL,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,GACL,GAAG,kBAAkB,CAAC;IAEvB,IAAI,WAAW,EAAE;QACf,wBAAwB,CAAC,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;KAC1E;IACD,IAAI,cAAc,EAAE;QAClB,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;KAC/E;IACD,IAAI,IAAI,EAAE;QACR,wBAAwB,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;KAC5D;IACD,IAAI,iBAAiB,EAAE;QACrB,wBAAwB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;KACrF;IACD,IAAI,iBAAiB,EAAE;QACrB,wBAAwB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;KACrF;IACD,IAAI,KAAK,EAAE;QACT,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;KAC9D;IACD,IAAI,YAAY,EAAE;QAChB,wBAAwB,CAAC,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;KAC3E;IACD,IAAI,aAAa,EAAE;QACjB,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;KAC9E;IACD,IAAI,mBAAmB,EAAE;QACvB,wBAAwB,CAAC,QAAQ,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;KACzF;IACD,IAAI,IAAI,EAAE;QACR,wBAAwB,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;KAChE;IACD,IAAI,YAAY,EAAE;QAChB,wBAAwB,CAAC,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;KAC3E;AACH,CAAC"}
@@ -1,2 +1,2 @@
1
1
  import type { ThunkActionDispatch } from "redux-thunk";
2
- export declare function applicationStaffHandler(applicationStaff: any, dispatch: ThunkActionDispatch<any>): void;
2
+ export declare function applicationStaffHandler(applicationStaff: any, dispatch: ThunkActionDispatch<any>, options?: any): void;