@tap-payments/auth-jsconnect 2.4.70-test → 2.4.72-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.
- package/build/@types/app.d.ts +1 -0
- package/build/@types/form.d.ts +5 -3
- package/build/assets/locales/ar.json +3 -3
- package/build/constants/app.d.ts +2 -0
- package/build/constants/app.js +23 -9
- package/build/features/app/brand/brandStore.d.ts +19 -9
- package/build/features/app/brand/brandStore.js +141 -126
- package/build/features/app/connect/connectStore.d.ts +15 -1
- package/build/features/app/connect/connectStore.js +146 -83
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +14 -51
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +2 -14
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandName.js +2 -3
- package/build/features/brand/screens/BrandInfo/validation.d.ts +0 -12
- package/build/features/brand/screens/BrandInfo/validation.js +0 -4
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +5 -0
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +102 -0
- package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +2 -0
- package/build/features/brand/screens/BrandSegmentInfo/index.js +2 -0
- package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +17 -0
- package/build/features/brand/screens/BrandSegmentInfo/validation.js +9 -0
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +5 -0
- package/build/features/connect/screens/BrandSegment/BrandSegment.js +84 -0
- package/build/features/connect/screens/{Merchant → BrandSegment}/SegmentLocations.js +1 -1
- package/build/features/connect/screens/{Merchant → BrandSegment}/SegmentProfits.js +1 -1
- package/build/features/connect/screens/{Merchant → BrandSegment}/SegmentTechs.js +1 -1
- package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.js +1 -1
- package/build/features/connect/screens/BrandSegment/index.d.ts +3 -0
- package/build/features/connect/screens/BrandSegment/index.js +2 -0
- package/build/features/connect/screens/BrandSegment/validation.d.ts +17 -0
- package/build/features/connect/screens/BrandSegment/validation.js +9 -0
- package/build/features/connect/screens/Merchant/BrandList.js +2 -25
- package/build/features/connect/screens/Merchant/Merchant.js +4 -25
- package/build/features/connect/screens/Merchant/validation.d.ts +0 -12
- package/build/features/connect/screens/Merchant/validation.js +0 -8
- package/build/features/featuresScreens.js +10 -0
- package/package.json +1 -1
- /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentLocations.d.ts +0 -0
- /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentLocations.js +0 -0
- /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentProfits.d.ts +0 -0
- /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentProfits.js +0 -0
- /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentTechs.d.ts +0 -0
- /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentTechs.js +0 -0
- /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.d.ts +0 -0
- /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.js +0 -0
- /package/build/features/connect/screens/{Merchant → BrandSegment}/SegmentLocations.d.ts +0 -0
- /package/build/features/connect/screens/{Merchant → BrandSegment}/SegmentProfits.d.ts +0 -0
- /package/build/features/connect/screens/{Merchant → BrandSegment}/SegmentTechs.d.ts +0 -0
- /package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.d.ts +0 -0
package/build/@types/app.d.ts
CHANGED
package/build/@types/form.d.ts
CHANGED
|
@@ -31,13 +31,15 @@ export type IndividualFormValues = {
|
|
|
31
31
|
export type BrandFormValues = {
|
|
32
32
|
brandName: string;
|
|
33
33
|
brandLogoId?: string;
|
|
34
|
+
salesChannels: Array<SaleChannel>;
|
|
35
|
+
termAndConditionChecked?: boolean;
|
|
36
|
+
selectedBrandItem: BrandInfo;
|
|
37
|
+
};
|
|
38
|
+
export type BrandSegmentFormValues = {
|
|
34
39
|
segmentLocation?: Segment | undefined;
|
|
35
40
|
segmentProfit?: Segment | undefined;
|
|
36
41
|
segmentTech?: Segment | undefined;
|
|
37
42
|
teamSize?: TeamSize | undefined;
|
|
38
|
-
salesChannels: Array<SaleChannel>;
|
|
39
|
-
termAndConditionChecked?: boolean;
|
|
40
|
-
selectedBrandItem: BrandInfo;
|
|
41
43
|
};
|
|
42
44
|
export type BrandActivitiesFormValues = {
|
|
43
45
|
activities: Array<Activity>;
|
|
@@ -409,9 +409,9 @@
|
|
|
409
409
|
"physical_store_label": "متجر",
|
|
410
410
|
"social_media_label": "وسائل التواصل الاجتماعي",
|
|
411
411
|
"selected_activities": "اختر الأنشطة",
|
|
412
|
-
"
|
|
413
|
-
"
|
|
414
|
-
"
|
|
412
|
+
"segment_location_title": "الموقع",
|
|
413
|
+
"segment_tech_title": "التقنية",
|
|
414
|
+
"segment_profit_title": "الربح",
|
|
415
415
|
"alert_choose_segment_location": "يُرجى تحديد الموقع",
|
|
416
416
|
"alert_choose_segment_profit": "يُرجى تحديد الربح",
|
|
417
417
|
"alert_choose_segment_tech": "الرجاء تحديد التقنية"
|
package/build/constants/app.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export declare const CONNECT_STEP_NAMES: {
|
|
|
85
85
|
UPDATE_LEAD_INDIVIDUAL: string;
|
|
86
86
|
UPDATE_LEAD_BRAND: string;
|
|
87
87
|
UPDATE_BRAND_INFO: string;
|
|
88
|
+
UPDATE_BRAND_SEGMENT_INFO: string;
|
|
88
89
|
CREATE_AUTH_PASSWORD: string;
|
|
89
90
|
VERIFY_AUTH_PASSWORD: string;
|
|
90
91
|
CONNECT_SUCCESS: string;
|
|
@@ -157,6 +158,7 @@ export declare const ENTITY_STEP_NAMES: {
|
|
|
157
158
|
export declare const BRAND_STEP_NAMES: {
|
|
158
159
|
PHONE_AUTH: string;
|
|
159
160
|
BRAND_INFO: string;
|
|
161
|
+
BRAND_SEGMENT_INFO: string;
|
|
160
162
|
BRAND_ACTIVITIES: string;
|
|
161
163
|
BRAND_SUCCESS: string;
|
|
162
164
|
};
|
package/build/constants/app.js
CHANGED
|
@@ -55,15 +55,21 @@ export var CONNECT_SCREENS_NAVIGATION = [
|
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
name: 'CONNECT_MERCHANT_INFO_STEP',
|
|
58
|
-
next: '
|
|
58
|
+
next: 'CONNECT_BRAND_SEGMENT_INFO_STEP',
|
|
59
59
|
prev: ['CONNECT_INDIVIDUAL_STEP', 'CONNECT_NID_STEP', 'CONNECT_MOBILE_STEP', 'CONNECT_CIVIL_ID_STEP'],
|
|
60
60
|
order: 4
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
name: '
|
|
64
|
-
next: '',
|
|
63
|
+
name: 'CONNECT_BRAND_SEGMENT_INFO_STEP',
|
|
64
|
+
next: 'CONNECT_THANK_YOU_STEP',
|
|
65
65
|
prev: 'CONNECT_MERCHANT_INFO_STEP',
|
|
66
66
|
order: 5
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'CONNECT_THANK_YOU_STEP',
|
|
70
|
+
next: '',
|
|
71
|
+
prev: 'CONNECT_BRAND_SEGMENT_INFO_STEP',
|
|
72
|
+
order: 6
|
|
67
73
|
}
|
|
68
74
|
];
|
|
69
75
|
export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
@@ -501,33 +507,39 @@ export var BRAND_SCREENS_NAVIGATION = [
|
|
|
501
507
|
},
|
|
502
508
|
{
|
|
503
509
|
name: 'BRAND_INFO_STEP',
|
|
504
|
-
next: '
|
|
510
|
+
next: 'BRAND_SEGMENT_INFO_STEP',
|
|
505
511
|
prev: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
506
512
|
order: 2
|
|
507
513
|
},
|
|
508
514
|
{
|
|
509
|
-
name: '
|
|
510
|
-
next: '
|
|
515
|
+
name: 'BRAND_SEGMENT_INFO_STEP',
|
|
516
|
+
next: 'BRAND_ACTIVITIES_STEP',
|
|
511
517
|
prev: 'BRAND_INFO_STEP',
|
|
512
518
|
order: 3
|
|
513
519
|
},
|
|
520
|
+
{
|
|
521
|
+
name: 'BRAND_ACTIVITIES_STEP',
|
|
522
|
+
next: 'BRAND_DETAILS_SUCCESS_STEP',
|
|
523
|
+
prev: 'BRAND_SEGMENT_INFO_STEP',
|
|
524
|
+
order: 4
|
|
525
|
+
},
|
|
514
526
|
{
|
|
515
527
|
name: 'BRAND_DETAILS_SUCCESS_STEP',
|
|
516
528
|
next: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
517
529
|
prev: 'BRAND_ACTIVITIES_STEP',
|
|
518
|
-
order:
|
|
530
|
+
order: 5
|
|
519
531
|
},
|
|
520
532
|
{
|
|
521
533
|
name: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
522
534
|
next: 'BRAND_RESET_PASSWORD_SUCCESS',
|
|
523
535
|
prev: '',
|
|
524
|
-
order:
|
|
536
|
+
order: 6
|
|
525
537
|
},
|
|
526
538
|
{
|
|
527
539
|
name: 'BRAND_RESET_PASSWORD_SUCCESS',
|
|
528
540
|
next: '',
|
|
529
541
|
prev: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
|
|
530
|
-
order:
|
|
542
|
+
order: 6
|
|
531
543
|
}
|
|
532
544
|
];
|
|
533
545
|
export var DefaultDeviceInfo = {
|
|
@@ -589,6 +601,7 @@ export var CONNECT_STEP_NAMES = {
|
|
|
589
601
|
UPDATE_LEAD_INDIVIDUAL: 'connect_update_lead_individual',
|
|
590
602
|
UPDATE_LEAD_BRAND: 'connect_update_lead_brand',
|
|
591
603
|
UPDATE_BRAND_INFO: 'connect_update_brand_info',
|
|
604
|
+
UPDATE_BRAND_SEGMENT_INFO: 'connect_update_brand_segment_info',
|
|
592
605
|
CREATE_AUTH_PASSWORD: 'connect_create_auth_password',
|
|
593
606
|
VERIFY_AUTH_PASSWORD: 'connect_verify_auth_password',
|
|
594
607
|
CONNECT_SUCCESS: 'connect_completed'
|
|
@@ -661,6 +674,7 @@ export var ENTITY_STEP_NAMES = {
|
|
|
661
674
|
export var BRAND_STEP_NAMES = {
|
|
662
675
|
PHONE_AUTH: 'brand_phone_auth',
|
|
663
676
|
BRAND_INFO: 'brand_info',
|
|
677
|
+
BRAND_SEGMENT_INFO: 'brand_segment_info',
|
|
664
678
|
BRAND_ACTIVITIES: 'brand_activities',
|
|
665
679
|
BRAND_SUCCESS: 'brand_completed'
|
|
666
680
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
|
-
import { ActionState, AsyncThunkParams, BrandActivitiesFormValues, BrandFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
2
|
+
import { ActionState, AsyncThunkParams, BrandActivitiesFormValues, BrandFormValues, BrandSegmentFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
interface VerifyLeadTokenProps {
|
|
5
5
|
token: string;
|
|
@@ -21,10 +21,6 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
21
21
|
notification: any;
|
|
22
22
|
};
|
|
23
23
|
salesChannels: any;
|
|
24
|
-
teamSizeList: any;
|
|
25
|
-
segmentLocationList: any;
|
|
26
|
-
segmentProfitList: any;
|
|
27
|
-
segmentTechList: any;
|
|
28
24
|
token: string;
|
|
29
25
|
}, VerifyLeadTokenProps, {
|
|
30
26
|
state?: unknown;
|
|
@@ -64,10 +60,6 @@ export declare const verifyBrandLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
64
60
|
notification: any;
|
|
65
61
|
};
|
|
66
62
|
salesChannels: any;
|
|
67
|
-
teamSizeList: any;
|
|
68
|
-
segmentLocationList: any;
|
|
69
|
-
segmentProfitList: any;
|
|
70
|
-
segmentTechList: any;
|
|
71
63
|
formData: OTPFormValues;
|
|
72
64
|
}, OTPFormValues, {
|
|
73
65
|
state?: unknown;
|
|
@@ -139,6 +131,10 @@ export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").Asyn
|
|
|
139
131
|
export declare const updateBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
140
132
|
data: any;
|
|
141
133
|
formData: Omit<BrandFormValues, "termAndConditionChecked" | "selectedBrandItem">;
|
|
134
|
+
teamSizeList: any;
|
|
135
|
+
segmentLocationList: any;
|
|
136
|
+
segmentProfitList: any;
|
|
137
|
+
segmentTechList: any;
|
|
142
138
|
}, AsyncThunkParams<Omit<BrandFormValues, "termAndConditionChecked" | "selectedBrandItem">>, {
|
|
143
139
|
state?: unknown;
|
|
144
140
|
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
@@ -149,6 +145,19 @@ export declare const updateBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
149
145
|
fulfilledMeta?: unknown;
|
|
150
146
|
rejectedMeta?: unknown;
|
|
151
147
|
}>;
|
|
148
|
+
export declare const updateSegmentBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
149
|
+
data: any;
|
|
150
|
+
formData: BrandSegmentFormValues;
|
|
151
|
+
}, AsyncThunkParams<BrandSegmentFormValues>, {
|
|
152
|
+
state?: unknown;
|
|
153
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
154
|
+
extra?: unknown;
|
|
155
|
+
rejectValue?: unknown;
|
|
156
|
+
serializedErrorType?: unknown;
|
|
157
|
+
pendingMeta?: unknown;
|
|
158
|
+
fulfilledMeta?: unknown;
|
|
159
|
+
rejectedMeta?: unknown;
|
|
160
|
+
}>;
|
|
152
161
|
export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<any, {
|
|
153
162
|
leadId: string;
|
|
154
163
|
}, {
|
|
@@ -209,6 +218,7 @@ export interface BrandData {
|
|
|
209
218
|
verify: ResponseData & VerifyData;
|
|
210
219
|
otpData: OTPFormValues & ResponseData;
|
|
211
220
|
brandData: Omit<BrandFormValues, 'selectedBrandItem' | 'termAndConditionChecked'> & ResponseData;
|
|
221
|
+
brandSegmentData: BrandSegmentFormValues & ResponseData;
|
|
212
222
|
brandActivities: BrandActivitiesFormValues & ResponseData;
|
|
213
223
|
flowName: FlowsTypes;
|
|
214
224
|
}
|