@tap-payments/auth-jsconnect 2.3.11-test → 2.3.13-test

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.
@@ -16,6 +16,7 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
16
16
  name: any;
17
17
  contact: any;
18
18
  individuals: any;
19
+ business: any;
19
20
  flows: any;
20
21
  };
21
22
  salesChannels: any;
@@ -37,6 +38,7 @@ export declare const verifyBrandLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
37
38
  name: any;
38
39
  contact: any;
39
40
  individuals: any;
41
+ business: any;
40
42
  flows: any;
41
43
  };
42
44
  salesChannels: any;
@@ -125,6 +125,7 @@ export var verifyLeadToken = createAsyncThunk('brandVerifyLeadToken', function (
125
125
  name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names,
126
126
  contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact,
127
127
  individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
128
+ business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
128
129
  flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []
129
130
  },
130
131
  salesChannels: salesChannels,
@@ -205,6 +206,7 @@ export var verifyBrandLeadOTP = createAsyncThunk('verifyBrandLeadOTP', function
205
206
  name: (_f = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _f === void 0 ? void 0 : _f.names,
206
207
  contact: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.contact,
207
208
  individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
209
+ business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
208
210
  flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []
209
211
  },
210
212
  salesChannels: salesChannels,
@@ -10,8 +10,8 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
10
10
  } | {
11
11
  data: any;
12
12
  isRequireOTP: boolean;
13
+ token: string;
13
14
  leadData?: undefined;
14
- token?: undefined;
15
15
  brandData?: undefined;
16
16
  boardId?: undefined;
17
17
  }, string, {}>;
@@ -163,7 +163,7 @@ export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', functio
163
163
  brandData: brandData,
164
164
  boardId: leadData === null || leadData === void 0 ? void 0 : leadData.board_id
165
165
  }];
166
- case 19: return [2, { data: data, isRequireOTP: true }];
166
+ case 19: return [2, { data: data, isRequireOTP: true, token: token }];
167
167
  }
168
168
  });
169
169
  }); });
@@ -15,6 +15,7 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
15
15
  name: any;
16
16
  contact: any;
17
17
  individuals: any;
18
+ business: any;
18
19
  flows: any;
19
20
  entityTypes: any;
20
21
  };
@@ -34,6 +35,7 @@ export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<
34
35
  name: any;
35
36
  contact: any;
36
37
  individuals: any;
38
+ business: any;
37
39
  flows: any;
38
40
  entityTypes: any;
39
41
  };
@@ -132,6 +132,7 @@ export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function
132
132
  name: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.names,
133
133
  contact: (_e = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _e === void 0 ? void 0 : _e.contact,
134
134
  individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
135
+ business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
135
136
  flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [],
136
137
  entityTypes: entityTypes
137
138
  },
@@ -217,6 +218,7 @@ export var verifyEntityLeadOTP = createAsyncThunk('verifyEntityLeadOTP', functio
217
218
  name: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.names,
218
219
  contact: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.contact,
219
220
  individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
221
+ business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
220
222
  flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [],
221
223
  entityTypes: entityTypes
222
224
  },
@@ -20,6 +20,7 @@ export declare const verifyToken: import("@reduxjs/toolkit").AsyncThunk<{
20
20
  countries: CountryCode[];
21
21
  countryCode: any;
22
22
  notification: any;
23
+ business: any;
23
24
  flows: any;
24
25
  };
25
26
  token: string;
@@ -77,6 +78,7 @@ export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
77
78
  countries: CountryCode[];
78
79
  countryCode: any;
79
80
  notification: any;
81
+ business: any;
80
82
  flows: any;
81
83
  };
82
84
  formData: {
@@ -177,6 +177,7 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
177
177
  countries: countries,
178
178
  countryCode: countryCode,
179
179
  notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification,
180
+ business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
180
181
  flows: (boardInfoStatus === null || boardInfoStatus === void 0 ? void 0 : boardInfoStatus.info) || []
181
182
  },
182
183
  token: token
@@ -493,6 +494,7 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
493
494
  countries: countries,
494
495
  countryCode: countryCode,
495
496
  notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification,
497
+ business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
496
498
  flows: (boardInfoStatus === null || boardInfoStatus === void 0 ? void 0 : boardInfoStatus.info) || []
497
499
  },
498
500
  formData: __assign({}, params)
@@ -9,7 +9,7 @@ var ResetPasswordSuccess = function (_a) {
9
9
  var _b, _c;
10
10
  var t = useTranslation().t;
11
11
  var data = useAppSelector(bankSelector).data;
12
- var email = ((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact).email;
12
+ var email = (((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact) || {}).email;
13
13
  var maskedEmail = maskEmail(email);
14
14
  return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: _jsx(Trans, { i18nKey: 'reset_password_success_description_dev', values: { email: maskedEmail } }), showEmailProviders: true }));
15
15
  };
@@ -9,7 +9,7 @@ var ResetPasswordSuccess = function (_a) {
9
9
  var _b, _c;
10
10
  var t = useTranslation().t;
11
11
  var data = useAppSelector(brandSelector).data;
12
- var email = ((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact).email;
12
+ var email = (((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact) || {}).email;
13
13
  var maskedEmail = maskEmail(email);
14
14
  return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: _jsx(Trans, { i18nKey: 'reset_password_success_description_dev', values: { email: maskedEmail } }), showEmailProviders: true }));
15
15
  };
@@ -9,7 +9,7 @@ var ResetPasswordSuccess = function (_a) {
9
9
  var _b, _c;
10
10
  var t = useTranslation().t;
11
11
  var data = useAppSelector(businessSelector).data;
12
- var email = ((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact).email;
12
+ var email = (((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact) || {}).email;
13
13
  var maskedEmail = maskEmail(email);
14
14
  return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: _jsx(Trans, { i18nKey: 'reset_password_success_description_dev', values: { email: maskedEmail } }), showEmailProviders: true }));
15
15
  };
@@ -9,7 +9,7 @@ var ResetPasswordSuccess = function (_a) {
9
9
  var _b, _c;
10
10
  var t = useTranslation().t;
11
11
  var data = useAppSelector(entitySelector).data;
12
- var email = ((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact).email;
12
+ var email = (((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact) || {}).email;
13
13
  var maskedEmail = maskEmail(email);
14
14
  return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: _jsx(Trans, { i18nKey: 'reset_password_success_description_dev', values: { email: maskedEmail } }), showEmailProviders: true }));
15
15
  };
@@ -9,7 +9,7 @@ var ResetPasswordSuccess = function (_a) {
9
9
  var _b, _c;
10
10
  var t = useTranslation().t;
11
11
  var data = useAppSelector(individualSelector).data;
12
- var email = ((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact).email;
12
+ var email = (((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact) || {}).email;
13
13
  var maskedEmail = maskEmail(email);
14
14
  return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: _jsx(Trans, { i18nKey: 'reset_password_success_description_dev', values: { email: maskedEmail } }), showEmailProviders: true }));
15
15
  };
@@ -9,7 +9,7 @@ var ResetPasswordSuccess = function (_a) {
9
9
  var _b, _c;
10
10
  var t = useTranslation().t;
11
11
  var data = useAppSelector(passwordSelector).data;
12
- var email = ((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact).email;
12
+ var email = (((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact) || {}).email;
13
13
  var maskedEmail = maskEmail(email);
14
14
  return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: _jsx(Trans, { i18nKey: 'reset_password_success_description_dev', values: { email: maskedEmail } }), showEmailProviders: true }));
15
15
  };
@@ -9,7 +9,7 @@ var ResetPasswordSuccess = function (_a) {
9
9
  var _b, _c;
10
10
  var t = useTranslation().t;
11
11
  var data = useAppSelector(taxSelector).data;
12
- var email = ((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact).email;
12
+ var email = (((_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.business) === null || _c === void 0 ? void 0 : _c.primary_contact) || {}).email;
13
13
  var maskedEmail = maskEmail(email);
14
14
  return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: _jsx(Trans, { i18nKey: 'reset_password_success_description_dev', values: { email: maskedEmail } }), showEmailProviders: true }));
15
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.3.11-test",
3
+ "version": "2.3.13-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",