@gofynd/fdk-store-gql 3.0.65 → 3.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +5 -3
- package/azure-pipelines.yml +116 -53
- package/github_app_jwt.txt +1 -0
- package/lib/graphql/mutations/addAddress.handler.d.ts +3 -0
- package/lib/graphql/mutations/addAddress.handler.js +7 -0
- package/lib/graphql/mutations/addAddress.handler.js.map +1 -0
- package/lib/graphql/mutations/applyCoupon.handler.d.ts +1 -1
- package/lib/graphql/mutations/applyCoupon.handler.js +3 -1
- package/lib/graphql/mutations/applyCoupon.handler.js.map +1 -1
- package/lib/graphql/mutations/forgotPassword.handler.d.ts +3 -0
- package/lib/graphql/mutations/forgotPassword.handler.js +7 -0
- package/lib/graphql/mutations/forgotPassword.handler.js.map +1 -0
- package/lib/graphql/mutations/getCartShareLink.handler.d.ts +1 -1
- package/lib/graphql/mutations/getCartShareLink.handler.js +3 -1
- package/lib/graphql/mutations/getCartShareLink.handler.js.map +1 -1
- package/lib/graphql/mutations/index.js +18 -0
- package/lib/graphql/mutations/index.js.map +1 -1
- package/lib/graphql/mutations/registerWithForm.handler.d.ts +3 -0
- package/lib/graphql/mutations/registerWithForm.handler.js +7 -0
- package/lib/graphql/mutations/registerWithForm.handler.js.map +1 -0
- package/lib/graphql/mutations/removeAddress.handler.d.ts +3 -0
- package/lib/graphql/mutations/removeAddress.handler.js +7 -0
- package/lib/graphql/mutations/removeAddress.handler.js.map +1 -0
- package/lib/graphql/mutations/removeCoupon.handler.d.ts +1 -1
- package/lib/graphql/mutations/removeCoupon.handler.js +3 -1
- package/lib/graphql/mutations/removeCoupon.handler.js.map +1 -1
- package/lib/graphql/mutations/sendOTPOnEmail.handler.d.ts +3 -0
- package/lib/graphql/mutations/sendOTPOnEmail.handler.js +10 -0
- package/lib/graphql/mutations/sendOTPOnEmail.handler.js.map +1 -0
- package/lib/graphql/mutations/sendOTPOnMobile.handler.d.ts +3 -0
- package/lib/graphql/mutations/sendOTPOnMobile.handler.js +10 -0
- package/lib/graphql/mutations/sendOTPOnMobile.handler.js.map +1 -0
- package/lib/graphql/mutations/sendResetPasswordEmail.handler.d.ts +3 -0
- package/lib/graphql/mutations/sendResetPasswordEmail.handler.js +7 -0
- package/lib/graphql/mutations/sendResetPasswordEmail.handler.js.map +1 -0
- package/lib/graphql/mutations/sendResetPasswordMobile.handler.d.ts +3 -0
- package/lib/graphql/mutations/sendResetPasswordMobile.handler.js +7 -0
- package/lib/graphql/mutations/sendResetPasswordMobile.handler.js.map +1 -0
- package/lib/graphql/mutations/submitCustomForm.handler.d.ts +3 -0
- package/lib/graphql/mutations/submitCustomForm.handler.js +7 -0
- package/lib/graphql/mutations/submitCustomForm.handler.js.map +1 -0
- package/lib/graphql/mutations/updateAddress.handler.d.ts +1 -1
- package/lib/graphql/mutations/updateAddress.handler.js +3 -1
- package/lib/graphql/mutations/updateAddress.handler.js.map +1 -1
- package/lib/graphql/query/applicationContent.handler.d.ts +1 -1
- package/lib/graphql/query/applicationContent.handler.js +4 -2
- package/lib/graphql/query/applicationContent.handler.js.map +1 -1
- package/lib/graphql/query/brands.handler.d.ts +1 -1
- package/lib/graphql/query/brands.handler.js +3 -2
- package/lib/graphql/query/brands.handler.js.map +1 -1
- package/lib/graphql/query/collections.handler.d.ts +1 -1
- package/lib/graphql/query/collections.handler.js +3 -1
- package/lib/graphql/query/collections.handler.js.map +1 -1
- package/lib/graphql/query/coupons.handler.d.ts +1 -1
- package/lib/graphql/query/coupons.handler.js +3 -1
- package/lib/graphql/query/coupons.handler.js.map +1 -1
- package/lib/graphql/query/faqsByCategory.handler.d.ts +1 -1
- package/lib/graphql/query/faqsByCategory.handler.js +3 -1
- package/lib/graphql/query/faqsByCategory.handler.js.map +1 -1
- package/lib/graphql/query/followedListing.handler.d.ts +1 -1
- package/lib/graphql/query/followedListing.handler.js +3 -1
- package/lib/graphql/query/followedListing.handler.js.map +1 -1
- package/lib/graphql/query/index.js +4 -0
- package/lib/graphql/query/index.js.map +1 -1
- package/lib/graphql/query/order.handler.js +1 -1
- package/lib/graphql/query/order.handler.js.map +1 -1
- package/lib/graphql/query/productComparison.handler.d.ts +3 -0
- package/lib/graphql/query/productComparison.handler.js +7 -0
- package/lib/graphql/query/productComparison.handler.js.map +1 -0
- package/lib/graphql/query/products.handler.js +16 -9
- package/lib/graphql/query/products.handler.js.map +1 -1
- package/lib/graphql/query/promotions.handler.d.ts +3 -0
- package/lib/graphql/query/promotions.handler.js +7 -0
- package/lib/graphql/query/promotions.handler.js.map +1 -0
- package/lib/graphql/query/searchProduct.handler.js +4 -4
- package/lib/graphql/query/searchProduct.handler.js.map +1 -1
- package/lib/helpers/FPI-events.js +429 -35
- package/lib/helpers/FPI-events.js.map +1 -1
- package/lib/helpers/utils.d.ts +8 -1
- package/lib/helpers/utils.js +32 -28
- package/lib/helpers/utils.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/store/enums/keys.d.ts +5 -0
- package/lib/store/enums/keys.js +5 -0
- package/lib/store/enums/keys.js.map +1 -1
- package/lib/store/index.d.ts +1 -0
- package/lib/store/index.js +87 -42
- package/lib/store/index.js.map +1 -1
- package/lib/store/slices/logistic.js +2 -2
- package/lib/store/slices/logistic.js.map +1 -1
- package/lib/store/utils/payment.js +16 -14
- package/lib/store/utils/payment.js.map +1 -1
- package/package.json +5 -3
|
@@ -7,6 +7,10 @@ on:
|
|
|
7
7
|
release:
|
|
8
8
|
types: [created]
|
|
9
9
|
|
|
10
|
+
permissions:
|
|
11
|
+
id-token: write # Required for OIDC
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
10
14
|
jobs:
|
|
11
15
|
publish-npm:
|
|
12
16
|
runs-on: ubuntu-latest
|
|
@@ -14,7 +18,7 @@ jobs:
|
|
|
14
18
|
- uses: actions/checkout@v4
|
|
15
19
|
- uses: actions/setup-node@v4
|
|
16
20
|
with:
|
|
17
|
-
node-version:
|
|
21
|
+
node-version: 24
|
|
18
22
|
registry-url: https://registry.npmjs.org/
|
|
19
23
|
- uses: jaywcjlove/github-action-package@main
|
|
20
24
|
with:
|
|
@@ -22,5 +26,3 @@ jobs:
|
|
|
22
26
|
rename: "@gofynd/fdk-store-gql"
|
|
23
27
|
- run: npm ci
|
|
24
28
|
- run: npm publish --access public
|
|
25
|
-
env:
|
|
26
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
|
package/azure-pipelines.yml
CHANGED
|
@@ -12,7 +12,7 @@ pool:
|
|
|
12
12
|
docker-new
|
|
13
13
|
|
|
14
14
|
variables:
|
|
15
|
-
- group:
|
|
15
|
+
- group: ado-gh-sync-vg # contains GITHUB_APP_ID and GITHUB_APP_INSTALLATION_ID
|
|
16
16
|
|
|
17
17
|
jobs:
|
|
18
18
|
- job: GitHubSync
|
|
@@ -20,57 +20,120 @@ jobs:
|
|
|
20
20
|
steps:
|
|
21
21
|
- checkout: self
|
|
22
22
|
|
|
23
|
+
- task: DownloadSecureFile@1
|
|
24
|
+
name: githubAppKey
|
|
25
|
+
inputs:
|
|
26
|
+
secureFile: 'ado-gh-sync.pem'
|
|
27
|
+
|
|
23
28
|
- script: |
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
29
|
+
set -euo pipefail
|
|
30
|
+
|
|
31
|
+
echo "Tag build: $(Build.SourceBranchName)"
|
|
32
|
+
BRANCH_NAME=main
|
|
33
|
+
|
|
34
|
+
git config --global user.email "jigar.dafda@gmail.com"
|
|
35
|
+
git config --global user.name "Jigar Dafda"
|
|
36
|
+
|
|
37
|
+
# ---- Generate GitHub App JWT (RS256) ----
|
|
38
|
+
export GITHUB_APP_PEM_PATH="$(githubAppKey.secureFilePath)"
|
|
39
|
+
|
|
40
|
+
node <<'NODE'
|
|
41
|
+
const fs = require('fs');
|
|
42
|
+
const crypto = require('crypto');
|
|
43
|
+
|
|
44
|
+
function b64url(input) {
|
|
45
|
+
return Buffer.from(input).toString('base64')
|
|
46
|
+
.replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const appId = process.env.GITHUB_APP_ID;
|
|
50
|
+
const pemPath = process.env.GITHUB_APP_PEM_PATH;
|
|
51
|
+
|
|
52
|
+
if (!appId || !pemPath) {
|
|
53
|
+
console.error("Missing env: GITHUB_APP_ID / GITHUB_APP_PEM_PATH");
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const privateKey = fs.readFileSync(pemPath, 'utf8');
|
|
58
|
+
|
|
59
|
+
const now = Math.floor(Date.now() / 1000);
|
|
60
|
+
const header = { alg: "RS256", typ: "JWT" };
|
|
61
|
+
const payload = {
|
|
62
|
+
iat: now - 30,
|
|
63
|
+
exp: now + 9 * 60, // <= 10 minutes
|
|
64
|
+
iss: appId
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const unsigned = `${b64url(JSON.stringify(header))}.${b64url(JSON.stringify(payload))}`;
|
|
68
|
+
const sign = crypto.createSign('RSA-SHA256');
|
|
69
|
+
sign.update(unsigned);
|
|
70
|
+
const signature = sign.sign(privateKey);
|
|
71
|
+
const jwt = `${unsigned}.${b64url(signature)}`;
|
|
72
|
+
|
|
73
|
+
fs.writeFileSync('github_app_jwt.txt', jwt);
|
|
74
|
+
NODE
|
|
75
|
+
|
|
76
|
+
JWT="$(cat github_app_jwt.txt)"
|
|
77
|
+
|
|
78
|
+
# ---- Exchange JWT for Installation Access Token ----
|
|
79
|
+
INSTALL_TOKEN="$(
|
|
80
|
+
curl -sS -X POST \
|
|
81
|
+
-H "Authorization: Bearer ${JWT}" \
|
|
82
|
+
-H "Accept: application/vnd.github+json" \
|
|
83
|
+
"https://api.github.com/app/installations/${GITHUB_APP_INSTALLATION_ID}/access_tokens" \
|
|
84
|
+
| node -pe "JSON.parse(require('fs').readFileSync(0,'utf8')).token"
|
|
85
|
+
)"
|
|
86
|
+
|
|
87
|
+
if [ -z "$INSTALL_TOKEN" ] || [ "$INSTALL_TOKEN" = "undefined" ]; then
|
|
88
|
+
echo "Failed to get installation token"
|
|
89
|
+
exit 1
|
|
75
90
|
fi
|
|
76
|
-
|
|
91
|
+
|
|
92
|
+
# Build header for git HTTPS auth with GitHub App token
|
|
93
|
+
BASIC_B64="$(printf '%s:%s' "x-access-token" "$INSTALL_TOKEN" | base64 | tr -d '\n')"
|
|
94
|
+
AUTH_HEADER="Authorization: Basic ${BASIC_B64}"
|
|
95
|
+
|
|
96
|
+
# ---- Sync flow ----
|
|
97
|
+
git -c http.extraheader="$AUTH_HEADER" clone https://github.com/gofynd/fdk-store-gql.git
|
|
98
|
+
cd fdk-store-gql
|
|
99
|
+
git checkout "$BRANCH_NAME"
|
|
100
|
+
|
|
101
|
+
rm -rf ./*
|
|
102
|
+
cd ..
|
|
103
|
+
|
|
104
|
+
cp -R $(ls | grep -v "fdk-store-gql") ./fdk-store-gql
|
|
105
|
+
cp .gitignore.ci ./fdk-store-gql/.gitignore
|
|
106
|
+
|
|
107
|
+
cd fdk-store-gql
|
|
108
|
+
NODE_ENV=development npm install
|
|
109
|
+
npm run build
|
|
110
|
+
|
|
111
|
+
git add -A
|
|
112
|
+
git commit -m "[Auto Generated]" || echo "No changes to commit"
|
|
113
|
+
|
|
114
|
+
git -c http.extraheader="$AUTH_HEADER" push origin "$BRANCH_NAME"
|
|
115
|
+
|
|
116
|
+
git tag "$(Build.SourceBranchName)" || echo "Tag already exists locally"
|
|
117
|
+
git -c http.extraheader="$AUTH_HEADER" push origin "$(Build.SourceBranchName)"
|
|
118
|
+
|
|
119
|
+
# Create GitHub release using installation token
|
|
120
|
+
RELEASE_TITLE="Release_$(Build.SourceBranchName)"
|
|
121
|
+
POST_DATA=$(printf '{
|
|
122
|
+
"tag_name": "%s",
|
|
123
|
+
"target_commitish": "%s",
|
|
124
|
+
"name": "%s",
|
|
125
|
+
"body": "%s",
|
|
126
|
+
"draft": false,
|
|
127
|
+
"prerelease": false
|
|
128
|
+
}' "$(Build.SourceBranchName)" "$BRANCH_NAME" "$RELEASE_TITLE" "$RELEASE_TITLE")
|
|
129
|
+
|
|
130
|
+
curl -sS -X POST \
|
|
131
|
+
-H "Authorization: token ${INSTALL_TOKEN}" \
|
|
132
|
+
-H "Accept: application/vnd.github+json" \
|
|
133
|
+
-H "Content-Type: application/json" \
|
|
134
|
+
-d "$POST_DATA" \
|
|
135
|
+
"https://api.github.com/repos/gofynd/fdk-store-gql/releases"
|
|
136
|
+
displayName: 'Sync with GitHub (GitHub App auth)'
|
|
137
|
+
env:
|
|
138
|
+
GITHUB_APP_ID: $(GITHUB_APP_ID)
|
|
139
|
+
GITHUB_APP_INSTALLATION_ID: $(GITHUB_APP_INSTALLATION_ID)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NzM2NTc0MzAsImV4cCI6MTc3MzY1ODAwMCwiaXNzIjoiMzA1NjEyNSJ9.4w6L9nQJWmK7iFCMQ7mOz71WCQbd_SJuK3p3yFUJUawrYORy35zGSAepkDpU8A4mSVZWHqKyHCnE5e_mqfK8PodKgEG_GYHoiKR8aw6xptahMnnBHlzvqyXQj4HKjkzljdjmTbSaKxvEViL6I_nAG1rOHjXfP_XdQZ3bT8cjazqSo_o2m0tTreu9b0AfiSE-DgJguXFn-tCjXTPd_33sSk2UPdsnMgnhpN_mlKehBbOhzblWDshYIAVc7mLwd4v0TuffoeHikUADJhfc8NBo6UQl3dIn1jX0SVFCQSHP8I1Dk_WoybRAPRxbLzZJKj4kFXIU_iEmth42JRSKic1dcg
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { SaveAddressResponse } from "../../types/graphql";
|
|
3
|
+
export declare function addAddressHandler(addAddress: SaveAddressResponse, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
+
export function addAddressHandler(addAddress, dispatch, params, oldStore, options) {
|
|
3
|
+
if (addAddress) {
|
|
4
|
+
emitFPIEvent(FPI_EVENTS.ADDRESS_ADD, params, addAddress, oldStore, dispatch, options);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=addAddress.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addAddress.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/addAddress.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,iBAAiB,CAC/B,UAA+B,EAC/B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,UAAU,EAAE;QACd,YAAY,CACV,UAAU,CAAC,WAAW,EACtB,MAAM,EACN,UAAU,EACV,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>, options?: any): void;
|
|
3
|
+
export declare function applyCouponHandler(applyCoupon: CartDetailResponse, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { setapplyCoupon, } from "../../store/slices/cart";
|
|
2
2
|
import { conditionalStoreDispatch } from "../../store/utils/util";
|
|
3
|
-
|
|
3
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
4
|
+
export function applyCouponHandler(applyCoupon, dispatch, params, oldStore, options) {
|
|
4
5
|
if (applyCoupon) {
|
|
5
6
|
conditionalStoreDispatch(dispatch, setapplyCoupon, applyCoupon, options);
|
|
7
|
+
emitFPIEvent(FPI_EVENTS.COUPON_APPLY, params, applyCoupon, oldStore, dispatch, options);
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
//# sourceMappingURL=applyCoupon.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyCoupon.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/applyCoupon.handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applyCoupon.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/applyCoupon.handler.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,GACf,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,kBAAkB,CAChC,WAA+B,EAC/B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,WAAW,EAAE;QACf,wBAAwB,CAAC,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,YAAY,CACV,UAAU,CAAC,YAAY,EACvB,MAAM,EACN,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { LoginSuccess } from "../../types/graphql";
|
|
3
|
+
export declare function forgotPasswordHandler(forgotPassword: LoginSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
+
export function forgotPasswordHandler(forgotPassword, dispatch, params, oldStore, options) {
|
|
3
|
+
if (forgotPassword) {
|
|
4
|
+
emitFPIEvent(FPI_EVENTS.USER_PASSWORD_RESET_SUCCESS, params, forgotPassword, oldStore, dispatch, options);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=forgotPassword.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forgotPassword.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/forgotPassword.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,qBAAqB,CACnC,cAA4B,EAC5B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,cAAc,EAAE;QAClB,YAAY,CACV,UAAU,CAAC,2BAA2B,EACtC,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 { GetShareCartLinkResponse } from "../../types/graphql";
|
|
3
|
-
export declare function getCartShareLinkHandler(getCartShareLink: GetShareCartLinkResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
|
|
3
|
+
export declare function getCartShareLinkHandler(getCartShareLink: GetShareCartLinkResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { setgetCartShareLink } from "../../store/slices/cart";
|
|
2
2
|
import { conditionalStoreDispatch } from "../../store/utils/util";
|
|
3
|
-
|
|
3
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
4
|
+
export function getCartShareLinkHandler(getCartShareLink, dispatch, params, oldStore, options) {
|
|
4
5
|
if (getCartShareLink) {
|
|
5
6
|
conditionalStoreDispatch(dispatch, setgetCartShareLink, getCartShareLink, options);
|
|
7
|
+
emitFPIEvent(FPI_EVENTS.CART_SHARE, params, getCartShareLink, oldStore, dispatch, options);
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
//# sourceMappingURL=getCartShareLink.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCartShareLink.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/getCartShareLink.handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCartShareLink.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/getCartShareLink.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,uBAAuB,CACrC,gBAA0C,EAC1C,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,IAAI,gBAAgB,EAAE;QACpB,wBAAwB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;QACnF,YAAY,CACV,UAAU,CAAC,UAAU,EACrB,MAAM,EACN,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
|
|
@@ -8,6 +8,8 @@ import { loginWithFacebookHandler } from "./loginWithFacebook.handler";
|
|
|
8
8
|
import { loginWithGoogleHandler } from "./loginWithGoogle.handler";
|
|
9
9
|
import { loginWithOTPHandler } from "./loginWithOTP.handler";
|
|
10
10
|
import { removeCouponHandler } from "./removeCoupon.handler";
|
|
11
|
+
import { addAddressHandler } from "./addAddress.handler";
|
|
12
|
+
import { removeAddressHandler } from "./removeAddress.handler";
|
|
11
13
|
import { updateAddressHandler } from "./updateAddress.handler";
|
|
12
14
|
import { updateCartHandler } from "./updateCart.handler";
|
|
13
15
|
import { updateCartMetaHandler } from "./updateCartMeta.handler";
|
|
@@ -19,8 +21,17 @@ import { unfollowByIdHandler } from "./UnFollowById.handler";
|
|
|
19
21
|
import { selectAddressHandler } from "./selectAddress.handler";
|
|
20
22
|
import { selectPaymentModehandler } from "./selectPaymentMode.handler";
|
|
21
23
|
import { updateShipmentStatusHandler } from "./updateShipmentStatus.handler";
|
|
24
|
+
import { registerWithFormHandler } from "./registerWithForm.handler";
|
|
25
|
+
import { sendResetPasswordEmailHandler } from "./sendResetPasswordEmail.handler";
|
|
26
|
+
import { sendResetPasswordMobileHandler } from "./sendResetPasswordMobile.handler";
|
|
27
|
+
import { forgotPasswordHandler } from "./forgotPassword.handler";
|
|
28
|
+
import { sendOTPOnEmailHandler } from "./sendOTPOnEmail.handler";
|
|
29
|
+
import { sendOTPOnMobileHandler } from "./sendOTPOnMobile.handler";
|
|
30
|
+
import { submitCustomFormHandler } from "./submitCustomForm.handler";
|
|
22
31
|
const handlerMap = {
|
|
32
|
+
addAddress: addAddressHandler,
|
|
23
33
|
updateAddress: updateAddressHandler,
|
|
34
|
+
removeAddress: removeAddressHandler,
|
|
24
35
|
loginWithAppleIOS: loginWithAppleIOSHandler,
|
|
25
36
|
loginWithEmailAndPassword: loginWithEmailAndPasswordHandler,
|
|
26
37
|
loginWithOTP: loginWithOTPHandler,
|
|
@@ -41,6 +52,13 @@ const handlerMap = {
|
|
|
41
52
|
selectAddress: selectAddressHandler,
|
|
42
53
|
selectPaymentMode: selectPaymentModehandler,
|
|
43
54
|
updateShipmentStatus: updateShipmentStatusHandler,
|
|
55
|
+
registerWithForm: registerWithFormHandler,
|
|
56
|
+
sendResetPasswordEmail: sendResetPasswordEmailHandler,
|
|
57
|
+
sendResetPasswordMobile: sendResetPasswordMobileHandler,
|
|
58
|
+
forgotPassword: forgotPasswordHandler,
|
|
59
|
+
sendOTPOnEmail: sendOTPOnEmailHandler,
|
|
60
|
+
sendOTPOnMobile: sendOTPOnMobileHandler,
|
|
61
|
+
submitCustomForm: submitCustomFormHandler,
|
|
44
62
|
};
|
|
45
63
|
export function mutationResponseHandler(response, dispatch, params, store, options) {
|
|
46
64
|
if (!(response === null || response === void 0 ? void 0 : response.data)) {
|
|
@@ -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,6BAA6B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE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aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,GAAG,CAAC,CAAA,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,EAAE;gBAC3D,KAAK,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAQ,EAAE,GAAQ,EAAE,EAAE;oBACrD,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,CAAC,KAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA,EAAE;wBACvD,OAAO,GAAG,CAAC;qBACZ;oBACD,OAAO,GAAG,CAAC;gBACb,CAAC,EAAE,IAAI,CAAC,CAAC;aACV;YACD,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;SAC9E;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { RegisterFormSuccess } from "../../types/graphql";
|
|
3
|
+
export declare function registerWithFormHandler(registerWithForm: RegisterFormSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
+
export function registerWithFormHandler(registerWithForm, dispatch, params, oldStore, options) {
|
|
3
|
+
if (registerWithForm) {
|
|
4
|
+
emitFPIEvent(FPI_EVENTS.USER_REGISTER, params, registerWithForm, oldStore, dispatch, options);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=registerWithForm.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerWithForm.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/registerWithForm.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,uBAAuB,CACrC,gBAAqC,EACrC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,gBAAgB,EAAE;QACpB,YAAY,CACV,UAAU,CAAC,aAAa,EACxB,MAAM,EACN,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { DeleteAddressResponse } from "../../types/graphql";
|
|
3
|
+
export declare function removeAddressHandler(removeAddress: DeleteAddressResponse, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
+
export function removeAddressHandler(removeAddress, dispatch, params, oldStore, options) {
|
|
3
|
+
if (removeAddress) {
|
|
4
|
+
emitFPIEvent(FPI_EVENTS.ADDRESS_REMOVE, params, removeAddress, oldStore, dispatch, options);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=removeAddress.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeAddress.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/removeAddress.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,oBAAoB,CAClC,aAAoC,EACpC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,aAAa,EAAE;QACjB,YAAY,CACV,UAAU,CAAC,cAAc,EACzB,MAAM,EACN,aAAa,EACb,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 removeCouponHandler(removeCoupon: CartDetailResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
|
|
3
|
+
export declare function removeCouponHandler(removeCoupon: CartDetailResponse, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { setremoveCoupon, } from "../../store/slices/cart";
|
|
2
2
|
import { conditionalStoreDispatch } from "../../store/utils/util";
|
|
3
|
-
|
|
3
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
4
|
+
export function removeCouponHandler(removeCoupon, dispatch, params, oldStore, options) {
|
|
4
5
|
if (removeCoupon) {
|
|
5
6
|
conditionalStoreDispatch(dispatch, setremoveCoupon, removeCoupon, options);
|
|
7
|
+
emitFPIEvent(FPI_EVENTS.COUPON_REMOVE, params, removeCoupon, oldStore, dispatch, options);
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
//# sourceMappingURL=removeCoupon.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeCoupon.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/removeCoupon.handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeCoupon.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/removeCoupon.handler.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,mBAAmB,CACjC,YAAgC,EAChC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,YAAY,EAAE;QAChB,wBAAwB,CAAC,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC3E,YAAY,CACV,UAAU,CAAC,aAAa,EACxB,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { EmailOtpSuccess } from "../../types/graphql";
|
|
3
|
+
export declare function sendOTPOnEmailHandler(sendOTPOnEmail: EmailOtpSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UserAction } from "../../types/graphql";
|
|
2
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
+
export function sendOTPOnEmailHandler(sendOTPOnEmail, dispatch, params, oldStore, options) {
|
|
4
|
+
if (sendOTPOnEmail) {
|
|
5
|
+
if ((params === null || params === void 0 ? void 0 : params.action) === UserAction.Resend) {
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.USER_RESEND_OTP, params, sendOTPOnEmail, oldStore, dispatch, options);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=sendOTPOnEmail.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendOTPOnEmail.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/sendOTPOnEmail.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,qBAAqB,CACnC,cAA+B,EAC/B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,cAAc,EAAE;QAClB,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAK,UAAU,CAAC,MAAM,EAAE;YACxC,YAAY,CACV,UAAU,CAAC,eAAe,EAC1B,MAAM,EACN,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;SACH;KACF;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UserAction, } from "../../types/graphql";
|
|
2
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
3
|
+
export function sendOTPOnMobileHandler(sendOTPOnMobile, dispatch, params, oldStore, options) {
|
|
4
|
+
if (sendOTPOnMobile) {
|
|
5
|
+
if ((params === null || params === void 0 ? void 0 : params.action) === UserAction.Resend) {
|
|
6
|
+
emitFPIEvent(FPI_EVENTS.USER_RESEND_OTP, params, sendOTPOnMobile, oldStore, dispatch, options);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=sendOTPOnMobile.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendOTPOnMobile.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/sendOTPOnMobile.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,UAAU,GAAI,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,sBAAsB,CACpC,eAA2B,EAC3B,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,eAAe,EAAE;QACnB,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAK,UAAU,CAAC,MAAM,EAAE;YACxC,YAAY,CACV,UAAU,CAAC,eAAe,EAC1B,MAAM,EACN,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;SACH;KACF;AACH,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { ResetPasswordSuccess } from "../../types/graphql";
|
|
3
|
+
export declare function sendResetPasswordEmailHandler(sendResetPasswordEmail: ResetPasswordSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
+
export function sendResetPasswordEmailHandler(sendResetPasswordEmail, dispatch, params, oldStore, options) {
|
|
3
|
+
if (sendResetPasswordEmail) {
|
|
4
|
+
emitFPIEvent(FPI_EVENTS.USER_PASSWORD_RESET_REQUEST, params, sendResetPasswordEmail, oldStore, dispatch, options);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=sendResetPasswordEmail.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendResetPasswordEmail.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/sendResetPasswordEmail.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,6BAA6B,CAC3C,sBAA4C,EAC5C,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,sBAAsB,EAAE;QAC1B,YAAY,CACV,UAAU,CAAC,2BAA2B,EACtC,MAAM,EACN,sBAAsB,EACtB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { ResetPasswordSuccess } from "../../types/graphql";
|
|
3
|
+
export declare function sendResetPasswordMobileHandler(sendResetPasswordMobile: ResetPasswordSuccess, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
+
export function sendResetPasswordMobileHandler(sendResetPasswordMobile, dispatch, params, oldStore, options) {
|
|
3
|
+
if (sendResetPasswordMobile) {
|
|
4
|
+
emitFPIEvent(FPI_EVENTS.USER_PASSWORD_RESET_REQUEST, params, sendResetPasswordMobile, oldStore, dispatch, options);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=sendResetPasswordMobile.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendResetPasswordMobile.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/sendResetPasswordMobile.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,8BAA8B,CAC5C,uBAA6C,EAC7C,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,uBAAuB,EAAE;QAC3B,YAAY,CACV,UAAU,CAAC,2BAA2B,EACtC,MAAM,EACN,uBAAuB,EACvB,QAAQ,EACR,QAAQ,EACR,OAAO,CACR,CAAC;KACH;AACH,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
|
+
import { SubmitCustomFormResponse } from "../../types/graphql";
|
|
3
|
+
export declare function submitCustomFormHandler(submitCustomForm: SubmitCustomFormResponse, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
|
+
export function submitCustomFormHandler(submitCustomForm, dispatch, params, oldStore, options) {
|
|
3
|
+
if (submitCustomForm) {
|
|
4
|
+
emitFPIEvent(FPI_EVENTS.CONTACT_US_SUBMIT, params, submitCustomForm, oldStore, dispatch, options);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=submitCustomForm.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitCustomForm.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/submitCustomForm.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEpE,MAAM,UAAU,uBAAuB,CACrC,gBAA0C,EAC1C,QAAkC,EAClC,MAAe,EACf,QAAiB,EACjB,OAAa;IAEb,IAAI,gBAAgB,EAAE;QACpB,YAAY,CACV,UAAU,CAAC,iBAAiB,EAC5B,MAAM,EACN,gBAAgB,EAChB,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 { UpdateAddressResponse } from "../../types/graphql";
|
|
3
|
-
export declare function updateAddressHandler(updateAddress: UpdateAddressResponse, dispatch: ThunkActionDispatch<any>, options?: any): void;
|
|
3
|
+
export declare function updateAddressHandler(updateAddress: UpdateAddressResponse, dispatch: ThunkActionDispatch<any>, params: any, oldStore: unknown, options?: any): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { setupdateAddress } from "../../store/slices/address";
|
|
2
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
2
3
|
import { conditionalStoreDispatch } from "../../store/utils/util";
|
|
3
|
-
export function updateAddressHandler(updateAddress, dispatch, options) {
|
|
4
|
+
export function updateAddressHandler(updateAddress, dispatch, params, oldStore, options) {
|
|
4
5
|
if (updateAddress) {
|
|
5
6
|
conditionalStoreDispatch(dispatch, setupdateAddress, updateAddress, options);
|
|
7
|
+
emitFPIEvent(FPI_EVENTS.ADDRESS_UPDATE, params, updateAddress, oldStore, dispatch, options);
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
//# sourceMappingURL=updateAddress.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateAddress.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateAddress.handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updateAddress.handler.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateAddress.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,UAAU,oBAAoB,CAClC,aAAoC,EACpC,QAAkC,EAClC,MAAW,EACX,QAAiB,EACjB,OAAa;IAEb,IAAI,aAAa,EAAE;QACjB,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC7E,YAAY,CACV,UAAU,CAAC,cAAc,EACzB,MAAM,EACN,aAAa,EACb,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 { ApplicationContent } from "../../types/graphql";
|
|
3
|
-
export declare function applicationContenthandler(applicationContent: ApplicationContent, dispatch: ThunkActionDispatch<any>, options?: any): void;
|
|
3
|
+
export declare function applicationContenthandler(applicationContent: ApplicationContent, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { setnavigations, setseoConfiguration, setblogs, setdataLoaders, setannouncements, setsupportInformation, settags, setlandingPage, setlegalInformation, setfaqCategories, setfaqs, } from "../../store/slices/content";
|
|
2
2
|
import { conditionalStoreDispatch } from "../../store/utils/util";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
4
|
+
export function applicationContenthandler(applicationContent, dispatch, params, oldStore, options) {
|
|
5
|
+
const { announcements, blogs, seo_configuration, data_loaders, faq_categories, faqs, landing_page, navigations, legal_information, support_information, tags, } = applicationContent;
|
|
5
6
|
if (navigations) {
|
|
6
7
|
conditionalStoreDispatch(dispatch, setnavigations, navigations, options);
|
|
7
8
|
}
|
|
8
9
|
if (faq_categories) {
|
|
9
10
|
conditionalStoreDispatch(dispatch, setfaqCategories, faq_categories, options);
|
|
11
|
+
emitFPIEvent(FPI_EVENTS.FAQ_CATEGORIES_VIEW, params, faq_categories, oldStore, dispatch, options);
|
|
10
12
|
}
|
|
11
13
|
if (faqs) {
|
|
12
14
|
conditionalStoreDispatch(dispatch, setfaqs, faqs, options);
|
|
@@ -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;AAEpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,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,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Y,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,3 +1,3 @@
|
|
|
1
1
|
import type { ThunkActionDispatch } from "redux-thunk";
|
|
2
2
|
import { BrandConnection } from "../../types/graphql";
|
|
3
|
-
export declare function brandsHandler(brands: BrandConnection, dispatch: ThunkActionDispatch<any>, options?: any): void;
|
|
3
|
+
export declare function brandsHandler(brands: BrandConnection, dispatch: ThunkActionDispatch<any>, params: unknown, oldStore: unknown, options?: any): void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { setBrands } from "../../store/slices/brands";
|
|
2
2
|
import { conditionalStoreDispatch } from "../../store/utils/util";
|
|
3
|
-
|
|
4
|
-
export function brandsHandler(brands, dispatch, options) {
|
|
3
|
+
import { emitFPIEvent, FPI_EVENTS } from "../../helpers/FPI-events";
|
|
4
|
+
export function brandsHandler(brands, dispatch, params, oldStore, options) {
|
|
5
5
|
if (brands === null || brands === void 0 ? void 0 : brands.items) {
|
|
6
6
|
conditionalStoreDispatch(dispatch, setBrands, brands, options);
|
|
7
|
+
emitFPIEvent(FPI_EVENTS.BRANDS_VIEW, params, brands, oldStore, dispatch, options);
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=brands.handler.js.map
|