@tap-payments/auth-jsconnect 2.4.69-test → 2.4.71-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.
Files changed (43) hide show
  1. package/build/@types/app.d.ts +10 -0
  2. package/build/@types/form.d.ts +6 -4
  3. package/build/assets/locales/ar.json +3 -3
  4. package/build/constants/app.d.ts +1 -0
  5. package/build/constants/app.js +13 -6
  6. package/build/features/app/brand/brandStore.d.ts +19 -11
  7. package/build/features/app/brand/brandStore.js +141 -134
  8. package/build/features/app/connect/connectStore.d.ts +18 -4
  9. package/build/features/app/connect/connectStore.js +88 -41
  10. package/build/features/brand/screens/BrandInfo/BrandInfo.js +14 -52
  11. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -2
  12. package/build/features/brand/screens/BrandInfo/BrandLogo.js +2 -14
  13. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -2
  14. package/build/features/brand/screens/BrandInfo/BrandName.js +2 -3
  15. package/build/features/brand/screens/BrandInfo/validation.d.ts +0 -12
  16. package/build/features/brand/screens/BrandInfo/validation.js +0 -4
  17. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +5 -0
  18. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +102 -0
  19. package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +2 -0
  20. package/build/features/brand/screens/BrandSegmentInfo/index.js +2 -0
  21. package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +17 -0
  22. package/build/features/brand/screens/BrandSegmentInfo/validation.js +9 -0
  23. package/build/features/connect/screens/Merchant/BrandList.js +13 -3
  24. package/build/features/connect/screens/Merchant/Merchant.js +18 -8
  25. package/build/features/connect/screens/Merchant/SegmentLocations.d.ts +8 -0
  26. package/build/features/connect/screens/Merchant/SegmentLocations.js +66 -0
  27. package/build/features/connect/screens/Merchant/SegmentProfits.d.ts +8 -0
  28. package/build/features/connect/screens/Merchant/{Segments.js → SegmentProfits.js} +16 -16
  29. package/build/features/connect/screens/Merchant/SegmentTechs.d.ts +8 -0
  30. package/build/features/connect/screens/Merchant/SegmentTechs.js +66 -0
  31. package/build/features/connect/screens/Merchant/validation.d.ts +9 -3
  32. package/build/features/connect/screens/Merchant/validation.js +6 -2
  33. package/build/features/featuresScreens.js +5 -0
  34. package/package.json +1 -1
  35. package/build/features/connect/screens/Merchant/Segments.d.ts +0 -8
  36. /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentLocations.d.ts +0 -0
  37. /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentLocations.js +0 -0
  38. /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentProfits.d.ts +0 -0
  39. /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentProfits.js +0 -0
  40. /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentTechs.d.ts +0 -0
  41. /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/SegmentTechs.js +0 -0
  42. /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.d.ts +0 -0
  43. /package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.js +0 -0
@@ -274,6 +274,15 @@ export type BrandInfo = {
274
274
  team: {
275
275
  id: string;
276
276
  };
277
+ location_type: {
278
+ id: string;
279
+ };
280
+ profit_type: {
281
+ id: string;
282
+ };
283
+ tech_type: {
284
+ id: string;
285
+ };
277
286
  };
278
287
  id: string;
279
288
  name: {
@@ -456,6 +465,7 @@ export type BrandDataStatus = {
456
465
  'segment.tech_type': FieldType;
457
466
  activities: FieldType;
458
467
  channel_services: FieldType;
468
+ logo: FieldType;
459
469
  };
460
470
  export interface MerchantInfo {
461
471
  id: string;
@@ -31,15 +31,17 @@ export type IndividualFormValues = {
31
31
  export type BrandFormValues = {
32
32
  brandName: string;
33
33
  brandLogoId?: string;
34
- segment?: Segment | undefined;
34
+ salesChannels: Array<SaleChannel>;
35
+ termAndConditionChecked?: boolean;
36
+ selectedBrandItem: BrandInfo;
37
+ };
38
+ export type BrandSegmentFormValues = {
35
39
  segmentLocation?: Segment | undefined;
36
40
  segmentProfit?: Segment | undefined;
37
41
  segmentTech?: Segment | undefined;
38
42
  teamSize?: TeamSize | undefined;
39
- salesChannels: Array<SaleChannel>;
40
- termAndConditionChecked?: boolean;
41
- selectedBrandItem: BrandInfo;
42
43
  };
44
+ export type ConnectBrandFormValues = BrandFormValues & BrandSegmentFormValues;
43
45
  export type BrandActivitiesFormValues = {
44
46
  activities: Array<Activity>;
45
47
  customerLocations: Array<CustomerLocation>;
@@ -409,9 +409,9 @@
409
409
  "physical_store_label": "متجر",
410
410
  "social_media_label": "وسائل التواصل الاجتماعي",
411
411
  "selected_activities": "اختر الأنشطة",
412
- "section_location_title": "الموقع",
413
- "section_tech_title": "التقنية",
414
- "section_profit_title": "الربح",
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": "الرجاء تحديد التقنية"
@@ -157,6 +157,7 @@ export declare const ENTITY_STEP_NAMES: {
157
157
  export declare const BRAND_STEP_NAMES: {
158
158
  PHONE_AUTH: string;
159
159
  BRAND_INFO: string;
160
+ BRAND_SEGMENT_INFO: string;
160
161
  BRAND_ACTIVITIES: string;
161
162
  BRAND_SUCCESS: string;
162
163
  };
@@ -501,33 +501,39 @@ export var BRAND_SCREENS_NAVIGATION = [
501
501
  },
502
502
  {
503
503
  name: 'BRAND_INFO_STEP',
504
- next: 'BRAND_ACTIVITIES_STEP',
504
+ next: 'BRAND_SEGMENT_INFO_STEP',
505
505
  prev: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
506
506
  order: 2
507
507
  },
508
508
  {
509
- name: 'BRAND_ACTIVITIES_STEP',
510
- next: 'BRAND_DETAILS_SUCCESS_STEP',
509
+ name: 'BRAND_SEGMENT_INFO_STEP',
510
+ next: 'BRAND_ACTIVITIES_STEP',
511
511
  prev: 'BRAND_INFO_STEP',
512
512
  order: 3
513
513
  },
514
+ {
515
+ name: 'BRAND_ACTIVITIES_STEP',
516
+ next: 'BRAND_DETAILS_SUCCESS_STEP',
517
+ prev: 'BRAND_SEGMENT_INFO_STEP',
518
+ order: 4
519
+ },
514
520
  {
515
521
  name: 'BRAND_DETAILS_SUCCESS_STEP',
516
522
  next: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
517
523
  prev: 'BRAND_ACTIVITIES_STEP',
518
- order: 4
524
+ order: 5
519
525
  },
520
526
  {
521
527
  name: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
522
528
  next: 'BRAND_RESET_PASSWORD_SUCCESS',
523
529
  prev: '',
524
- order: 5
530
+ order: 6
525
531
  },
526
532
  {
527
533
  name: 'BRAND_RESET_PASSWORD_SUCCESS',
528
534
  next: '',
529
535
  prev: 'BRAND_SUCCESS_FOUR_FLOWS_BUTTONS_STEP',
530
- order: 5
536
+ order: 6
531
537
  }
532
538
  ];
533
539
  export var DefaultDeviceInfo = {
@@ -661,6 +667,7 @@ export var ENTITY_STEP_NAMES = {
661
667
  export var BRAND_STEP_NAMES = {
662
668
  PHONE_AUTH: 'brand_phone_auth',
663
669
  BRAND_INFO: 'brand_info',
670
+ BRAND_SEGMENT_INFO: 'brand_segment_info',
664
671
  BRAND_ACTIVITIES: 'brand_activities',
665
672
  BRAND_SUCCESS: 'brand_completed'
666
673
  };
@@ -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,11 +21,6 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
21
21
  notification: any;
22
22
  };
23
23
  salesChannels: any;
24
- segmentsList: any;
25
- teamSizeList: any;
26
- segmentLocationList: any;
27
- segmentProfitList: any;
28
- segmentTechList: any;
29
24
  token: string;
30
25
  }, VerifyLeadTokenProps, {
31
26
  state?: unknown;
@@ -65,11 +60,6 @@ export declare const verifyBrandLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
65
60
  notification: any;
66
61
  };
67
62
  salesChannels: any;
68
- segmentsList: any;
69
- teamSizeList: any;
70
- segmentLocationList: any;
71
- segmentProfitList: any;
72
- segmentTechList: any;
73
63
  formData: OTPFormValues;
74
64
  }, OTPFormValues, {
75
65
  state?: unknown;
@@ -141,6 +131,10 @@ export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").Asyn
141
131
  export declare const updateBrand: import("@reduxjs/toolkit").AsyncThunk<{
142
132
  data: any;
143
133
  formData: Omit<BrandFormValues, "termAndConditionChecked" | "selectedBrandItem">;
134
+ teamSizeList: any;
135
+ segmentLocationList: any;
136
+ segmentProfitList: any;
137
+ segmentTechList: any;
144
138
  }, AsyncThunkParams<Omit<BrandFormValues, "termAndConditionChecked" | "selectedBrandItem">>, {
145
139
  state?: unknown;
146
140
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
@@ -151,6 +145,19 @@ export declare const updateBrand: import("@reduxjs/toolkit").AsyncThunk<{
151
145
  fulfilledMeta?: unknown;
152
146
  rejectedMeta?: unknown;
153
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
+ }>;
154
161
  export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<any, {
155
162
  leadId: string;
156
163
  }, {
@@ -211,6 +218,7 @@ export interface BrandData {
211
218
  verify: ResponseData & VerifyData;
212
219
  otpData: OTPFormValues & ResponseData;
213
220
  brandData: Omit<BrandFormValues, 'selectedBrandItem' | 'termAndConditionChecked'> & ResponseData;
221
+ brandSegmentData: BrandSegmentFormValues & ResponseData;
214
222
  brandActivities: BrandActivitiesFormValues & ResponseData;
215
223
  flowName: FlowsTypes;
216
224
  }