@gofynd/fdk-store-gql 3.0.47-beta.5 → 3.0.47-beta.6
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/lib/graphql/mutations/UnFollowById.handler.d.ts +1 -1
- package/lib/graphql/mutations/UnFollowById.handler.js +2 -2
- package/lib/graphql/mutations/UnFollowById.handler.js.map +1 -1
- package/lib/graphql/mutations/addItemsToCart.handler.d.ts +1 -1
- package/lib/graphql/mutations/addItemsToCart.handler.js +2 -2
- package/lib/graphql/mutations/addItemsToCart.handler.js.map +1 -1
- package/lib/graphql/mutations/followById.handler.d.ts +1 -1
- package/lib/graphql/mutations/followById.handler.js +2 -2
- package/lib/graphql/mutations/followById.handler.js.map +1 -1
- package/lib/graphql/mutations/index.d.ts +1 -1
- package/lib/graphql/mutations/index.js +5 -13
- package/lib/graphql/mutations/index.js.map +1 -1
- package/lib/graphql/mutations/loginWithAppleIOS.handler.d.ts +1 -1
- package/lib/graphql/mutations/loginWithAppleIOS.handler.js +2 -2
- package/lib/graphql/mutations/loginWithAppleIOS.handler.js.map +1 -1
- package/lib/graphql/mutations/loginWithEmailAndPassword.handler.d.ts +1 -1
- package/lib/graphql/mutations/loginWithEmailAndPassword.handler.js +2 -2
- package/lib/graphql/mutations/loginWithEmailAndPassword.handler.js.map +1 -1
- package/lib/graphql/mutations/loginWithFacebook.handler.d.ts +1 -1
- package/lib/graphql/mutations/loginWithFacebook.handler.js +2 -2
- package/lib/graphql/mutations/loginWithFacebook.handler.js.map +1 -1
- package/lib/graphql/mutations/loginWithGoogle.handler.d.ts +1 -1
- package/lib/graphql/mutations/loginWithGoogle.handler.js +2 -2
- package/lib/graphql/mutations/loginWithGoogle.handler.js.map +1 -1
- package/lib/graphql/mutations/selectAddress.handler.d.ts +1 -1
- package/lib/graphql/mutations/selectAddress.handler.js +2 -2
- package/lib/graphql/mutations/selectAddress.handler.js.map +1 -1
- package/lib/graphql/mutations/selectPaymentMode.handler.d.ts +1 -1
- package/lib/graphql/mutations/selectPaymentMode.handler.js +2 -2
- package/lib/graphql/mutations/selectPaymentMode.handler.js.map +1 -1
- package/lib/graphql/mutations/updateCart.handler.d.ts +1 -1
- package/lib/graphql/mutations/updateCart.handler.js +3 -3
- package/lib/graphql/mutations/updateCart.handler.js.map +1 -1
- package/lib/graphql/mutations/updateProfile.handler.d.ts +1 -1
- package/lib/graphql/mutations/updateProfile.handler.js +2 -2
- package/lib/graphql/mutations/updateProfile.handler.js.map +1 -1
- package/lib/graphql/mutations/updateShipmentStatus.handler.d.ts +1 -1
- package/lib/graphql/mutations/updateShipmentStatus.handler.js +2 -2
- package/lib/graphql/mutations/updateShipmentStatus.handler.js.map +1 -1
- package/lib/graphql/mutations/verifyEmailOtp.handler.d.ts +1 -1
- package/lib/graphql/mutations/verifyEmailOtp.handler.js +2 -2
- package/lib/graphql/mutations/verifyEmailOtp.handler.js.map +1 -1
- package/lib/graphql/mutations/verifyMobileOTP.handler.d.ts +1 -1
- package/lib/graphql/mutations/verifyMobileOTP.handler.js +2 -2
- package/lib/graphql/mutations/verifyMobileOTP.handler.js.map +1 -1
- package/lib/graphql/query/cartHandler.d.ts +1 -1
- package/lib/graphql/query/cartHandler.js +2 -2
- package/lib/graphql/query/cartHandler.js.map +1 -1
- package/lib/graphql/query/collection.handler.d.ts +1 -1
- package/lib/graphql/query/collection.handler.js +2 -2
- package/lib/graphql/query/collection.handler.js.map +1 -1
- package/lib/graphql/query/index.d.ts +1 -1
- package/lib/graphql/query/index.js +5 -16
- package/lib/graphql/query/index.js.map +1 -1
- package/lib/graphql/query/order.handler.d.ts +1 -1
- package/lib/graphql/query/order.handler.js +2 -2
- package/lib/graphql/query/order.handler.js.map +1 -1
- package/lib/graphql/query/product.handler.d.ts +1 -1
- package/lib/graphql/query/product.handler.js +2 -2
- package/lib/graphql/query/product.handler.js.map +1 -1
- package/lib/graphql/query/productPrice.handler.d.ts +1 -1
- package/lib/graphql/query/productPrice.handler.js +1 -7
- package/lib/graphql/query/productPrice.handler.js.map +1 -1
- package/lib/graphql/query/products.handler.d.ts +1 -1
- package/lib/graphql/query/products.handler.js +2 -2
- package/lib/graphql/query/products.handler.js.map +1 -1
- package/lib/graphql/query/searchProduct.handler.d.ts +1 -1
- package/lib/graphql/query/searchProduct.handler.js +2 -2
- package/lib/graphql/query/searchProduct.handler.js.map +1 -1
- package/lib/graphql/query/user.handler.d.ts +1 -1
- package/lib/graphql/query/user.handler.js +2 -2
- package/lib/graphql/query/user.handler.js.map +1 -1
- package/lib/helpers/FPI-events.d.ts +1 -1
- package/lib/helpers/FPI-events.js +48 -79
- package/lib/helpers/FPI-events.js.map +1 -1
- package/lib/store/index.d.ts +1 -0
- package/lib/store/index.js +16 -22
- package/lib/store/index.js.map +1 -1
- package/lib/store/slices/logistic.js +6 -7
- package/lib/store/slices/logistic.js.map +1 -1
- package/package.json +1 -1
- package/lib/graphql/query/deliveryPromise.handler.d.ts +0 -3
- package/lib/graphql/query/deliveryPromise.handler.js +0 -9
- package/lib/graphql/query/deliveryPromise.handler.js.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { FollowPostResponse } from "../../types/graphql";
|
|
3
|
-
export declare function unfollowByIdHandler(res: FollowPostResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function unfollowByIdHandler(res: FollowPostResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
-
export function unfollowByIdHandler(res, dispatch, params, oldStore) {
|
|
3
|
-
emitFPIEvent(FPI_EVENTS.REMOVE_FROM_WISHLIST, params, res, oldStore, dispatch);
|
|
2
|
+
export function unfollowByIdHandler(res, dispatch, params, oldStore, options) {
|
|
3
|
+
emitFPIEvent(FPI_EVENTS.REMOVE_FROM_WISHLIST, params, res, oldStore, dispatch, options);
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=UnFollowById.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnFollowById.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/UnFollowById.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,mBAAmB,CACjC,GAAuB,EACvB,QAAkC,EAClC,MAAe,EACf,QAAiB;
|
|
1
|
+
{"version":3,"file":"UnFollowById.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/UnFollowById.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,mBAAmB,CACjC,GAAuB,EACvB,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,YAAY,CACV,UAAU,CAAC,oBAAoB,EAC/B,MAAM,EACN,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { AddCartDetailResponse } from "../../types/graphql";
|
|
3
|
-
export declare function addItemsToCartHandler(addItemsToCart: AddCartDetailResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function addItemsToCartHandler(addItemsToCart: AddCartDetailResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setaddItemsToCart } from "../../store/slices/cart";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function addItemsToCartHandler(addItemsToCart, dispatch, params, oldStore) {
|
|
3
|
+
export function addItemsToCartHandler(addItemsToCart, dispatch, params, oldStore, options) {
|
|
4
4
|
if (addItemsToCart) {
|
|
5
5
|
dispatch(setaddItemsToCart(addItemsToCart));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.ADD_TO_CART, params, addItemsToCart, oldStore, dispatch);
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.ADD_TO_CART, params, addItemsToCart, oldStore, dispatch, options);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=addItemsToCart.handler.js.map
|
|
@@ -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;
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { FollowPostResponse } from "../../types/graphql";
|
|
3
|
-
export declare function followByIdHandler(res: FollowPostResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function followByIdHandler(res: FollowPostResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
-
export function followByIdHandler(res, dispatch, params, oldStore) {
|
|
3
|
-
emitFPIEvent(FPI_EVENTS.ADD_TO_WISHLIST, params, res, oldStore, dispatch);
|
|
2
|
+
export function followByIdHandler(res, dispatch, params, oldStore, options) {
|
|
3
|
+
emitFPIEvent(FPI_EVENTS.ADD_TO_WISHLIST, params, res, oldStore, dispatch, options);
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=followById.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"followById.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/followById.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,iBAAiB,CAC/B,GAAuB,EACvB,QAAkC,EAClC,MAAe,EACf,QAAiB;
|
|
1
|
+
{"version":3,"file":"followById.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/followById.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,iBAAiB,CAC/B,GAAuB,EACvB,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,YAAY,CAAC,UAAU,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
-
export declare function mutationResponseHandler(
|
|
2
|
+
export declare function mutationResponseHandler(responseData: any, dispatch: ThunkActionDispatch<any>, params: any, store: any, options: any): void;
|
|
@@ -42,22 +42,14 @@ const handlerMap = {
|
|
|
42
42
|
selectPaymentMode: selectPaymentModehandler,
|
|
43
43
|
updateShipmentStatus: updateShipmentStatusHandler,
|
|
44
44
|
};
|
|
45
|
-
export function mutationResponseHandler(
|
|
46
|
-
|
|
45
|
+
export function mutationResponseHandler(responseData, dispatch, params, store, options) {
|
|
46
|
+
console.log({ responseData });
|
|
47
|
+
if (!responseData) {
|
|
47
48
|
return;
|
|
48
49
|
}
|
|
49
50
|
Object.keys(handlerMap).forEach((key) => {
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
if (!(response === null || response === void 0 ? void 0 : response.data[key]) && Array.isArray(response === null || response === void 0 ? void 0 : response.errors)) {
|
|
53
|
-
error = response === null || response === void 0 ? void 0 : response.errors.reduce((acc, err) => {
|
|
54
|
-
if (Array.isArray(err === null || err === void 0 ? void 0 : err.path) && (err === null || err === void 0 ? void 0 : err.path.includes(key))) {
|
|
55
|
-
return err;
|
|
56
|
-
}
|
|
57
|
-
return acc;
|
|
58
|
-
}, null);
|
|
59
|
-
}
|
|
60
|
-
handlerMap[key](response.data[key], dispatch, params, store, error);
|
|
51
|
+
if (responseData.hasOwnProperty(key)) {
|
|
52
|
+
handlerMap[key](responseData[key], dispatch, params, store, options);
|
|
61
53
|
}
|
|
62
54
|
});
|
|
63
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/mutations/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BA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AAC,CAAC,GAAG,EAAE,EAAE;QAEtC,IAAI,YAAY,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YACpC,UAAU,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;SACtE;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { AuthSuccess } from "../../types/graphql";
|
|
3
|
-
export declare function loginWithAppleIOSHandler(loginWithAppleIOS: AuthSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown): void;
|
|
3
|
+
export declare function loginWithAppleIOSHandler(loginWithAppleIOS: AuthSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setUserData } from "../../store/slices/auth";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function loginWithAppleIOSHandler(loginWithAppleIOS, dispatch, params, oldStore) {
|
|
3
|
+
export function loginWithAppleIOSHandler(loginWithAppleIOS, dispatch, params, oldStore, options) {
|
|
4
4
|
if (loginWithAppleIOS) {
|
|
5
5
|
dispatch(setUserData(loginWithAppleIOS));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'apple' }), loginWithAppleIOS === null || loginWithAppleIOS === void 0 ? void 0 : loginWithAppleIOS.user, oldStore, dispatch);
|
|
6
|
+
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
7
|
}
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=loginWithAppleIOS.handler.js.map
|
|
@@ -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;
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { LoginSuccess } from "../../types/graphql";
|
|
3
|
-
export declare function loginWithEmailAndPasswordHandler(loginWithEmailAndPassword: LoginSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown): void;
|
|
3
|
+
export declare function loginWithEmailAndPasswordHandler(loginWithEmailAndPassword: LoginSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setUserData } from "../../store/slices/auth";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function loginWithEmailAndPasswordHandler(loginWithEmailAndPassword, dispatch, params, oldStore) {
|
|
3
|
+
export function loginWithEmailAndPasswordHandler(loginWithEmailAndPassword, dispatch, params, oldStore, options) {
|
|
4
4
|
if (loginWithEmailAndPassword) {
|
|
5
5
|
dispatch(setUserData(loginWithEmailAndPassword));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'email' }), loginWithEmailAndPassword === null || loginWithEmailAndPassword === void 0 ? void 0 : loginWithEmailAndPassword.user, oldStore, dispatch);
|
|
6
|
+
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
7
|
}
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=loginWithEmailAndPassword.handler.js.map
|
|
@@ -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;
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { AuthSuccess } from "../../types/graphql";
|
|
3
|
-
export declare function loginWithFacebookHandler(loginWithFacebook: AuthSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown): void;
|
|
3
|
+
export declare function loginWithFacebookHandler(loginWithFacebook: AuthSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setUserData } from "../../store/slices/auth";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function loginWithFacebookHandler(loginWithFacebook, dispatch, params, oldStore) {
|
|
3
|
+
export function loginWithFacebookHandler(loginWithFacebook, dispatch, params, oldStore, options) {
|
|
4
4
|
if (loginWithFacebook) {
|
|
5
5
|
dispatch(setUserData(loginWithFacebook));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.LOG_IN, params, Object.assign(Object.assign({}, params), { method: 'facebook' }), loginWithFacebook === null || loginWithFacebook === void 0 ? void 0 : loginWithFacebook.user, oldStore, dispatch);
|
|
6
|
+
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
7
|
}
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=loginWithFacebook.handler.js.map
|
|
@@ -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;
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { AuthSuccess } from "../../types/graphql";
|
|
3
|
-
export declare function loginWithGoogleHandler(loginWithGoogle: AuthSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown): void;
|
|
3
|
+
export declare function loginWithGoogleHandler(loginWithGoogle: AuthSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setUserData } from "../../store/slices/auth";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function loginWithGoogleHandler(loginWithGoogle, dispatch, params, oldStore) {
|
|
3
|
+
export function loginWithGoogleHandler(loginWithGoogle, dispatch, params, oldStore, options) {
|
|
4
4
|
if (loginWithGoogle) {
|
|
5
5
|
dispatch(setUserData(loginWithGoogle));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'google' }), loginWithGoogle === null || loginWithGoogle === void 0 ? void 0 : loginWithGoogle.user, oldStore, dispatch);
|
|
6
|
+
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
7
|
}
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=loginWithGoogle.handler.js.map
|
|
@@ -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;
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { CartShipmentsResponse } from "../../types/graphql";
|
|
3
|
-
export declare function selectAddressHandler(res: CartShipmentsResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function selectAddressHandler(res: CartShipmentsResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
-
export function selectAddressHandler(res, dispatch, params, oldStore) {
|
|
3
|
-
emitFPIEvent(FPI_EVENTS.ADD_ADDRESS_INFORMATION, params, res, oldStore, dispatch);
|
|
2
|
+
export function selectAddressHandler(res, dispatch, params, oldStore, options) {
|
|
3
|
+
emitFPIEvent(FPI_EVENTS.ADD_ADDRESS_INFORMATION, params, res, oldStore, dispatch, options);
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=selectAddress.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectAddress.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/selectAddress.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,oBAAoB,CAClC,GAA0B,EAC1B,QAAkC,EAClC,MAAe,EACf,QAAiB;
|
|
1
|
+
{"version":3,"file":"selectAddress.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/selectAddress.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,oBAAoB,CAClC,GAA0B,EAC1B,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,YAAY,CACV,UAAU,CAAC,uBAAuB,EAClC,MAAM,EACN,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { Cart } from "../../types/graphql";
|
|
3
|
-
export declare function selectPaymentModehandler(res: Cart, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function selectPaymentModehandler(res: Cart, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
-
export function selectPaymentModehandler(res, dispatch, params, oldStore) {
|
|
3
|
-
emitFPIEvent(FPI_EVENTS.ADD_PAYMENT_INFORMATION, params, res, oldStore, dispatch);
|
|
2
|
+
export function selectPaymentModehandler(res, dispatch, params, oldStore, options) {
|
|
3
|
+
emitFPIEvent(FPI_EVENTS.ADD_PAYMENT_INFORMATION, params, res, oldStore, dispatch, options);
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=selectPaymentMode.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectPaymentMode.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/selectPaymentMode.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,wBAAwB,CACtC,GAAS,EACT,QAAkC,EAClC,MAAe,EACf,QAAiB;
|
|
1
|
+
{"version":3,"file":"selectPaymentMode.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/selectPaymentMode.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,wBAAwB,CACtC,GAAS,EACT,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,YAAY,CACV,UAAU,CAAC,uBAAuB,EAClC,MAAM,EACN,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { UpdateCartDetailResponse } from "../../types/graphql";
|
|
3
|
-
export declare function updateCartHandler(updateCart: UpdateCartDetailResponse, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown): void;
|
|
3
|
+
export declare function updateCartHandler(updateCart: UpdateCartDetailResponse, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { setUpdateCart } from "../../store/slices/cart";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function updateCartHandler(updateCart, dispatch, params, oldStore) {
|
|
3
|
+
export function updateCartHandler(updateCart, dispatch, params, oldStore, options) {
|
|
4
4
|
if (updateCart.cart) {
|
|
5
5
|
if (params.updateCartRequestInput.operation === "update_item") {
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.UPDATE_CART, params, updateCart, oldStore, dispatch);
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.UPDATE_CART, params, updateCart, oldStore, dispatch, options);
|
|
7
7
|
}
|
|
8
8
|
else {
|
|
9
|
-
emitFPIEvent(FPI_EVENTS.REMOVE_FROM_CART, params, updateCart, oldStore, dispatch);
|
|
9
|
+
emitFPIEvent(FPI_EVENTS.REMOVE_FROM_CART, params, updateCart, oldStore, dispatch, options);
|
|
10
10
|
}
|
|
11
11
|
dispatch(setUpdateCart(updateCart.cart));
|
|
12
12
|
}
|
|
@@ -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;
|
|
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,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;QACD,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;KAC1C;AACH,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { ProfileEditSuccess } from "../../types/graphql";
|
|
3
|
-
export declare function updateProfileHandler(updateProfile: ProfileEditSuccess, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function updateProfileHandler(updateProfile: ProfileEditSuccess, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setUserData } from "../../store/slices/auth";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function updateProfileHandler(updateProfile, dispatch, params, oldStore) {
|
|
3
|
+
export function updateProfileHandler(updateProfile, dispatch, params, oldStore, options) {
|
|
4
4
|
if (updateProfile) {
|
|
5
5
|
dispatch(setUserData(updateProfile));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.PROFILE_UPDATE, params, updateProfile, oldStore, dispatch);
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.PROFILE_UPDATE, params, updateProfile, oldStore, dispatch, options);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=updateProfile.handler.js.map
|
|
@@ -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;
|
|
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"}
|
|
@@ -2,4 +2,4 @@ import type { ThunkActionDispatch } from "redux-thunk";
|
|
|
2
2
|
import { StatusesBodyResponse, UpdateShipmentStatusRequestInput } from "../../types/graphql";
|
|
3
3
|
export declare function updateShipmentStatusHandler(shipment: StatusesBodyResponse, dispatch: ThunkActionDispatch<any>, params: Record<string, unknown> & {
|
|
4
4
|
updateShipmentStatusRequestInput: UpdateShipmentStatusRequestInput;
|
|
5
|
-
}, oldStore: unknown): void;
|
|
5
|
+
}, oldStore: unknown, options?: any): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
-
export function updateShipmentStatusHandler(shipment, dispatch, params, oldStore) {
|
|
2
|
+
export function updateShipmentStatusHandler(shipment, dispatch, params, oldStore, options) {
|
|
3
3
|
var _a, _b, _c;
|
|
4
4
|
if (shipment) {
|
|
5
5
|
const isReturn = ((_c = (_b = (_a = params === null || params === void 0 ? void 0 : params.updateShipmentStatusRequestInput) === null || _a === void 0 ? void 0 : _a.statuses) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.status) === 'return_initiated';
|
|
6
6
|
if (isReturn) {
|
|
7
|
-
emitFPIEvent(FPI_EVENTS.REFUND_SUCCESS, params, shipment, oldStore, dispatch);
|
|
7
|
+
emitFPIEvent(FPI_EVENTS.REFUND_SUCCESS, params, shipment, oldStore, dispatch, options);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateShipmentStatus.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateShipmentStatus.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,2BAA2B,CACzC,QAA8B,EAC9B,QAAkC,EAClC,MAAwG,EACxG,QAAiB;;
|
|
1
|
+
{"version":3,"file":"updateShipmentStatus.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateShipmentStatus.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,2BAA2B,CACzC,QAA8B,EAC9B,QAAkC,EAClC,MAAwG,EACxG,QAAiB,EACjB,OAAa;;IAEb,IAAI,QAAQ,EAAE;QACZ,MAAM,QAAQ,GAAG,CAAA,MAAA,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,gCAAgC,0CAAE,QAAQ,0CAAG,CAAC,CAAC,0CAAE,MAAM,MAAK,kBAAkB,CAAC;QACxG,IAAI,QAAQ,EAAE;YACZ,YAAY,CACV,UAAU,CAAC,cAAc,EACzB,MAAM,EACN,QAAQ,EACR,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 { VerifyOtpSuccess } from "../../types/graphql";
|
|
3
|
-
export declare function verifyEmailOTPHandler(verifyEmailOTP: VerifyOtpSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown): void;
|
|
3
|
+
export declare function verifyEmailOTPHandler(verifyEmailOTP: VerifyOtpSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setUserData } from "../../store/slices/auth";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function verifyEmailOTPHandler(verifyEmailOTP, dispatch, params, oldStore) {
|
|
3
|
+
export function verifyEmailOTPHandler(verifyEmailOTP, dispatch, params, oldStore, options) {
|
|
4
4
|
if (verifyEmailOTP) {
|
|
5
5
|
dispatch(setUserData(verifyEmailOTP));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'email' }), verifyEmailOTP === null || verifyEmailOTP === void 0 ? void 0 : verifyEmailOTP.user, oldStore, dispatch);
|
|
6
|
+
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
7
|
}
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=verifyEmailOtp.handler.js.map
|
|
@@ -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;
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { VerifyOtpSuccess } from "../../types/graphql";
|
|
3
|
-
export declare function verifyMobileOTPHandler(verifyMobileOTP: VerifyOtpSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown): void;
|
|
3
|
+
export declare function verifyMobileOTPHandler(verifyMobileOTP: VerifyOtpSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setUserData } from "../../store/slices/auth";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function verifyMobileOTPHandler(verifyMobileOTP, dispatch, params, oldStore) {
|
|
3
|
+
export function verifyMobileOTPHandler(verifyMobileOTP, dispatch, params, oldStore, options) {
|
|
4
4
|
if (verifyMobileOTP) {
|
|
5
5
|
dispatch(setUserData(verifyMobileOTP));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.LOG_IN, Object.assign(Object.assign({}, params), { method: 'phone' }), verifyMobileOTP === null || verifyMobileOTP === void 0 ? void 0 : verifyMobileOTP.user, oldStore, dispatch);
|
|
6
|
+
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
7
|
}
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=verifyMobileOTP.handler.js.map
|
|
@@ -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;
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { Cart } from "../../types/graphql";
|
|
3
|
-
export declare function cartHandler(cart: Cart, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function cartHandler(cart: Cart, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { setCart } from "../../store/slices/cart";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function cartHandler(cart, dispatch, params, oldStore) {
|
|
3
|
+
export function cartHandler(cart, dispatch, params, oldStore, options) {
|
|
4
4
|
var _a;
|
|
5
5
|
if (cart) {
|
|
6
6
|
dispatch(setCart(cart));
|
|
7
7
|
if ((cart === null || cart === void 0 ? void 0 : cart.items) && ((_a = cart.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
8
|
-
emitFPIEvent(FPI_EVENTS.VIEW_CART, params, cart, oldStore, dispatch);
|
|
8
|
+
emitFPIEvent(FPI_EVENTS.VIEW_CART, params, cart, oldStore, dispatch, options);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartHandler.js","sourceRoot":"","sources":["../../../src/graphql/query/cartHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,WAAW,CACzB,IAAU,EACV,QAAkC,EAClC,MAAe,EACf,QAAiB;;
|
|
1
|
+
{"version":3,"file":"cartHandler.js","sourceRoot":"","sources":["../../../src/graphql/query/cartHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,WAAW,CACzB,IAAU,EACV,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;;IAEb,IAAI,IAAI,EAAE;QACR,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACxB,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,KAAI,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,MAAM,IAAG,CAAC,EAAE;YACzC,YAAY,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;SAC/E;KACF;AACH,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { Collection } from "../../types/graphql";
|
|
3
|
-
export declare function collectionHandler(collection: Collection, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function collectionHandler(collection: Collection, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setcollection } from "../../store/slices/collection";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function collectionHandler(collection, dispatch, params, oldStore) {
|
|
3
|
+
export function collectionHandler(collection, dispatch, params, oldStore, options) {
|
|
4
4
|
if (collection) {
|
|
5
5
|
dispatch(setcollection(collection));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.COLLECTION_LIST_VIEW, params, collection, oldStore, dispatch);
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.COLLECTION_LIST_VIEW, params, collection, oldStore, dispatch, options);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=collection.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/collection.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,iBAAiB,CAC/B,UAAsB,EACtB,QAAkC,EAClC,MAAe,EACf,QAAiB;
|
|
1
|
+
{"version":3,"file":"collection.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/collection.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,iBAAiB,CAC/B,UAAsB,EACtB,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,IAAI,UAAU,EAAE;QACd,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;QACpC,YAAY,CACV,UAAU,CAAC,oBAAoB,EAC/B,MAAM,EACN,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
-
export declare function queryResponseHandler(
|
|
2
|
+
export declare function queryResponseHandler(responseData: any, dispatch: ThunkActionDispatch<any>, params: any, store: any, options: any): void;
|
|
@@ -36,7 +36,6 @@ import { collectionsHandler } from "./collections.handler";
|
|
|
36
36
|
import { localityHandler } from "./localityHandler";
|
|
37
37
|
import { orderHandler } from "./order.handler";
|
|
38
38
|
import { searchHandler } from "./searchProduct.handler";
|
|
39
|
-
import { deliveryPromiseHandler } from "./deliveryPromise.handler";
|
|
40
39
|
const handlerMap = {
|
|
41
40
|
theme: themeHandler,
|
|
42
41
|
address: addressHandler,
|
|
@@ -75,25 +74,15 @@ const handlerMap = {
|
|
|
75
74
|
followedListing: followedListingHandler,
|
|
76
75
|
followerCount: followerCountHandler,
|
|
77
76
|
order: orderHandler,
|
|
78
|
-
searchProduct: searchHandler
|
|
79
|
-
deliveryPromise: deliveryPromiseHandler,
|
|
77
|
+
searchProduct: searchHandler
|
|
80
78
|
};
|
|
81
|
-
export function queryResponseHandler(
|
|
82
|
-
if (!
|
|
79
|
+
export function queryResponseHandler(responseData, dispatch, params, store, options) {
|
|
80
|
+
if (!responseData) {
|
|
83
81
|
return;
|
|
84
82
|
}
|
|
85
83
|
Object.keys(handlerMap).forEach((key) => {
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
if (!response.data[key] && Array.isArray(response === null || response === void 0 ? void 0 : response.errors)) {
|
|
89
|
-
error = response === null || response === void 0 ? void 0 : response.errors.reduce((acc, err) => {
|
|
90
|
-
if (Array.isArray(err.path) && (err === null || err === void 0 ? void 0 : err.path.includes(key))) {
|
|
91
|
-
return err;
|
|
92
|
-
}
|
|
93
|
-
return acc;
|
|
94
|
-
}, null);
|
|
95
|
-
}
|
|
96
|
-
handlerMap[key](response.data[key], dispatch, params, store, error);
|
|
84
|
+
if (responseData.hasOwnProperty(key)) {
|
|
85
|
+
handlerMap[key](responseData[key], dispatch, params, store, options);
|
|
97
86
|
}
|
|
98
87
|
});
|
|
99
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graphql/query/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,+BAA+B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,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AAC,CAAC,GAAG,EAAE,EAAE;QACtC,IAAI,YAAY,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YACpC,UAAU,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;SACtE;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { Order } from "../../types/graphql";
|
|
3
|
-
export declare function orderHandler(res: Order, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function orderHandler(res: Order, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
-
export function orderHandler(res, dispatch, params, oldStore) {
|
|
3
|
-
emitFPIEvent(FPI_EVENTS.ORDER_PROCESSED, params, res, oldStore, dispatch);
|
|
2
|
+
export function orderHandler(res, dispatch, params, oldStore, options) {
|
|
3
|
+
emitFPIEvent(FPI_EVENTS.ORDER_PROCESSED, params, res, oldStore, dispatch, options);
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=order.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/order.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,YAAY,CAC1B,GAAU,EACV,QAAkC,EAClC,MAAe,EACf,QAAiB;
|
|
1
|
+
{"version":3,"file":"order.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/order.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,YAAY,CAC1B,GAAU,EACV,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,YAAY,CAAC,UAAU,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { Product } from "../../types/graphql";
|
|
3
|
-
export declare function productHandler(product: Product, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown): void;
|
|
3
|
+
export declare function productHandler(product: Product, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setProduct, setProductVariants } from "../../store/slices/product";
|
|
2
2
|
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
-
export function productHandler(product, dispatch, params, oldStore) {
|
|
3
|
+
export function productHandler(product, dispatch, params, oldStore, options) {
|
|
4
4
|
if (product) {
|
|
5
5
|
dispatch(setProduct(product));
|
|
6
|
-
emitFPIEvent(FPI_EVENTS.PRODUCT_DETAIL_PAGE_VIEW, params, product, oldStore, dispatch);
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.PRODUCT_DETAIL_PAGE_VIEW, params, product, oldStore, dispatch, options);
|
|
7
7
|
}
|
|
8
8
|
if (product.variants) {
|
|
9
9
|
dispatch(setProductVariants(product.variants));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/product.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,cAAc,CAC5B,OAAgB,EAChB,QAAkC,EAClC,MAAe,EACf,QAAiB;
|
|
1
|
+
{"version":3,"file":"product.handler.js","sourceRoot":"","sources":["../../../src/graphql/query/product.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,cAAc,CAC5B,OAAgB,EAChB,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,IAAI,OAAO,EAAE;QACX,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,YAAY,CACV,UAAU,CAAC,wBAAwB,EACnC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;IACD,IAAI,OAAO,CAAC,QAAQ,EAAE;QACpB,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;KAChD;AACH,CAAC"}
|