@tap-payments/auth-jsconnect 2.4.66-test → 2.4.68-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 (35) hide show
  1. package/build/@types/app.d.ts +12 -0
  2. package/build/@types/form.d.ts +3 -0
  3. package/build/api/data.d.ts +7 -0
  4. package/build/api/data.js +25 -1
  5. package/build/api/index.d.ts +12 -0
  6. package/build/api/individual.d.ts +9 -0
  7. package/build/assets/locales/ar.json +7 -1
  8. package/build/assets/locales/en.json +7 -1
  9. package/build/constants/api.d.ts +3 -0
  10. package/build/constants/api.js +7 -1
  11. package/build/features/app/brand/brandStore.d.ts +20 -0
  12. package/build/features/app/brand/brandStore.js +145 -67
  13. package/build/features/bank/Bank.js +7 -2
  14. package/build/features/brand/Brand.js +7 -2
  15. package/build/features/brand/screens/BrandInfo/BrandInfo.js +33 -14
  16. package/build/features/brand/screens/BrandInfo/SegmentLocations.d.ts +10 -0
  17. package/build/features/brand/screens/BrandInfo/{Segments.js → SegmentLocations.js} +5 -6
  18. package/build/features/brand/screens/BrandInfo/SegmentProfits.d.ts +10 -0
  19. package/build/features/brand/screens/BrandInfo/SegmentProfits.js +69 -0
  20. package/build/features/brand/screens/BrandInfo/SegmentTechs.d.ts +10 -0
  21. package/build/features/brand/screens/BrandInfo/SegmentTechs.js +69 -0
  22. package/build/features/brand/screens/BrandInfo/TeamSize.js +0 -1
  23. package/build/features/brand/screens/BrandInfo/validation.d.ts +9 -3
  24. package/build/features/brand/screens/BrandInfo/validation.js +3 -1
  25. package/build/features/business/Business.js +4 -1
  26. package/build/features/connect/Connect.js +4 -1
  27. package/build/features/connectExpress/ConnectExpress.js +4 -1
  28. package/build/features/entity/Entity.js +7 -2
  29. package/build/features/individual/Individual.js +7 -2
  30. package/build/features/password/Password.js +4 -1
  31. package/build/features/tax/Tax.js +7 -2
  32. package/build/utils/gtm.d.ts +4 -3
  33. package/build/utils/gtm.js +3 -0
  34. package/package.json +1 -1
  35. package/build/features/brand/screens/BrandInfo/Segments.d.ts +0 -10
@@ -451,6 +451,9 @@ export type BrandDataStatus = {
451
451
  'segment.type': FieldType;
452
452
  'segment.teams': FieldType;
453
453
  'segment.sale': FieldType;
454
+ 'segment.location_type': FieldType;
455
+ 'segment.profit_type': FieldType;
456
+ 'segment.tech_type': FieldType;
454
457
  activities: FieldType;
455
458
  channel_services: FieldType;
456
459
  };
@@ -534,6 +537,9 @@ export type BrandDataVerification = {
534
537
  'segment.sale': string;
535
538
  'segment.teams': string;
536
539
  'segment.type': string;
540
+ 'segment.location_type': string;
541
+ 'segment.profit_type': string;
542
+ 'segment.tech_type': string;
537
543
  terms: string;
538
544
  };
539
545
  export type EntityDataVerification = {
@@ -604,6 +610,12 @@ export interface CountryTrackingData extends CommonDataLayer {
604
610
  export interface LeadIdentificationData extends CommonDataLayer {
605
611
  lead_ID?: string;
606
612
  }
613
+ export interface EventPageTrackingData extends CommonDataLayer {
614
+ title?: string;
615
+ }
616
+ export interface PageTrackingData {
617
+ title?: string;
618
+ }
607
619
  export type VerifyExpressTokenParams = {
608
620
  public_key: string;
609
621
  post: {
@@ -32,6 +32,9 @@ export type BrandFormValues = {
32
32
  brandName: string;
33
33
  brandLogoId?: string;
34
34
  segment?: Segment | undefined;
35
+ segmentLocation?: Segment | undefined;
36
+ segmentProfit?: Segment | undefined;
37
+ segmentTech?: Segment | undefined;
35
38
  teamSize?: TeamSize | undefined;
36
39
  salesChannels: Array<SaleChannel>;
37
40
  termAndConditionChecked?: boolean;
@@ -8,6 +8,10 @@ type GetSegmentsBody = {
8
8
  type GetTeamSizeBody = {
9
9
  page: number;
10
10
  };
11
+ type SegmentDataListBody = {
12
+ page: number;
13
+ limit: number;
14
+ };
11
15
  type GetMonthlyIncomeBody = {
12
16
  page: number;
13
17
  country_code: Array<string>;
@@ -46,5 +50,8 @@ declare const dataService: {
46
50
  getTeamSize: (data: GetTeamSizeBody) => Promise<any>;
47
51
  getActivities: (config?: AxiosRequestConfig) => Promise<any>;
48
52
  getActivitiesIsIc: () => Promise<any>;
53
+ getSegmentLocation: (data: SegmentDataListBody) => Promise<any>;
54
+ getSegmentProfit: (data: SegmentDataListBody) => Promise<any>;
55
+ getSegmentTech: (data: SegmentDataListBody) => Promise<any>;
49
56
  };
50
57
  export { dataService };
package/build/api/data.js CHANGED
@@ -84,6 +84,27 @@ var getTeamSize = function (data) {
84
84
  data: data
85
85
  });
86
86
  };
87
+ var getSegmentLocation = function (data) {
88
+ return httpClient({
89
+ method: 'post',
90
+ url: "".concat(ENDPOINT_PATHS.SEGMENT_LOCATION, "/list"),
91
+ data: data
92
+ });
93
+ };
94
+ var getSegmentProfit = function (data) {
95
+ return httpClient({
96
+ method: 'post',
97
+ url: "".concat(ENDPOINT_PATHS.SEGMENT_PROFIT, "/list"),
98
+ data: data
99
+ });
100
+ };
101
+ var getSegmentTech = function (data) {
102
+ return httpClient({
103
+ method: 'post',
104
+ url: "".concat(ENDPOINT_PATHS.SEGMENT_TECH, "/list"),
105
+ data: data
106
+ });
107
+ };
87
108
  var dataService = {
88
109
  getChannelsOfServices: getChannelsOfServices,
89
110
  getCustomerBases: getCustomerBases,
@@ -95,6 +116,9 @@ var dataService = {
95
116
  getSegments: getSegments,
96
117
  getTeamSize: getTeamSize,
97
118
  getActivities: getActivities,
98
- getActivitiesIsIc: getActivitiesIsIc
119
+ getActivitiesIsIc: getActivitiesIsIc,
120
+ getSegmentLocation: getSegmentLocation,
121
+ getSegmentProfit: getSegmentProfit,
122
+ getSegmentTech: getSegmentTech
99
123
  };
100
124
  export { dataService };
@@ -110,6 +110,18 @@ declare const API: {
110
110
  }) => Promise<any>;
111
111
  getActivities: (config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
112
112
  getActivitiesIsIc: () => Promise<any>;
113
+ getSegmentLocation: (data: {
114
+ page: number;
115
+ limit: number;
116
+ }) => Promise<any>;
117
+ getSegmentProfit: (data: {
118
+ page: number;
119
+ limit: number;
120
+ }) => Promise<any>;
121
+ getSegmentTech: (data: {
122
+ page: number;
123
+ limit: number;
124
+ }) => Promise<any>;
113
125
  };
114
126
  individualService: {
115
127
  retrieveIndividualInfo: (id: string) => Promise<any>;
@@ -53,6 +53,15 @@ export type UpdateBrandBody = {
53
53
  };
54
54
  };
55
55
  segment?: {
56
+ location_type?: {
57
+ id: string;
58
+ };
59
+ profit_type?: {
60
+ id: string;
61
+ };
62
+ tech_type?: {
63
+ id: string;
64
+ };
56
65
  type?: {
57
66
  id: string;
58
67
  };
@@ -408,5 +408,11 @@
408
408
  "mobile_app_label": "تطبيقات هاتف",
409
409
  "physical_store_label": "متجر",
410
410
  "social_media_label": "وسائل التواصل الاجتماعي",
411
- "selected_activities": "اختر الأنشطة"
411
+ "selected_activities": "اختر الأنشطة",
412
+ "section_location_title": "الموقع",
413
+ "section_tech_title": "التقنية",
414
+ "section_profit_title": "الربح",
415
+ "alert_choose_segment_location": "يُرجى تحديد الموقع",
416
+ "alert_choose_segment_profit": "يُرجى تحديد الربح",
417
+ "alert_choose_segment_tech": "الرجاء تحديد التقنية"
412
418
  }
@@ -438,5 +438,11 @@
438
438
  "mobile_app_label": "Mobile App",
439
439
  "physical_store_label": "Physical Store",
440
440
  "social_media_label": "Social Media",
441
- "selected_activities": "Selected Activities"
441
+ "selected_activities": "Selected Activities",
442
+ "segment_location_title": "Segment Location",
443
+ "segment_tech_title": "Segment Tech",
444
+ "segment_profit_title": "Segment Profit",
445
+ "alert_choose_segment_location": "Please select segment location",
446
+ "alert_choose_segment_profit": "Please select segment profit",
447
+ "alert_choose_segment_tech": "Please select segment tech"
442
448
  }
@@ -50,4 +50,7 @@ export declare const ENDPOINT_PATHS: {
50
50
  BUSINESS: string;
51
51
  RETRIEVE_ACTIVITIES_ISIC: string;
52
52
  CONNECT: string;
53
+ SEGMENT_LOCATION: string;
54
+ SEGMENT_PROFIT: string;
55
+ SEGMENT_TECH: string;
53
56
  };
@@ -49,6 +49,9 @@ var TEAM_SIZE_PATH = '/businessSegment/team/list';
49
49
  var ADDRESS_PATH = '/address';
50
50
  var INIT_PATH = 'init';
51
51
  var BUSINESS_PATH = '/business';
52
+ var SEGMENT_LOCATION_PATH = "".concat(BRAND_PATH, "/segment/location");
53
+ var SEGMENT_PROFIT_PATH = "".concat(BRAND_PATH, "/segment/profit");
54
+ var SEGMENT_TECH_PATH = "".concat(BRAND_PATH, "/segment/tech");
52
55
  export var ENDPOINT_PATHS = {
53
56
  CREATE_EXPRESS_AUTH_PATH: CREATE_EXPRESS_AUTH_PATH,
54
57
  Verify_Express_Auth_OTP_PATH: Verify_Express_Auth_OTP_PATH,
@@ -100,5 +103,8 @@ export var ENDPOINT_PATHS = {
100
103
  INIT: INIT_PATH,
101
104
  BUSINESS: BUSINESS_PATH,
102
105
  RETRIEVE_ACTIVITIES_ISIC: RETRIEVE_ACTIVITIES_ISIC_PATH,
103
- CONNECT: CONNECT_PATH
106
+ CONNECT: CONNECT_PATH,
107
+ SEGMENT_LOCATION: SEGMENT_LOCATION_PATH,
108
+ SEGMENT_PROFIT: SEGMENT_PROFIT_PATH,
109
+ SEGMENT_TECH: SEGMENT_TECH_PATH
104
110
  };
@@ -23,6 +23,9 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
23
23
  salesChannels: any;
24
24
  segmentsList: any;
25
25
  teamSizeList: any;
26
+ segmentLocationList: any;
27
+ segmentProfitList: any;
28
+ segmentTechList: any;
26
29
  token: string;
27
30
  }, VerifyLeadTokenProps, {
28
31
  state?: unknown;
@@ -64,6 +67,9 @@ export declare const verifyBrandLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
64
67
  salesChannels: any;
65
68
  segmentsList: any;
66
69
  teamSizeList: any;
70
+ segmentLocationList: any;
71
+ segmentProfitList: any;
72
+ segmentTechList: any;
67
73
  formData: OTPFormValues;
68
74
  }, OTPFormValues, {
69
75
  state?: unknown;
@@ -75,6 +81,20 @@ export declare const verifyBrandLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
75
81
  fulfilledMeta?: unknown;
76
82
  rejectedMeta?: unknown;
77
83
  }>;
84
+ export declare const retrieveSegmentDataList: import("@reduxjs/toolkit").AsyncThunk<{
85
+ segmentLocation: any;
86
+ segmentProfit: any;
87
+ segmentTech: any;
88
+ }, void, {
89
+ state?: unknown;
90
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
91
+ extra?: unknown;
92
+ rejectValue?: unknown;
93
+ serializedErrorType?: unknown;
94
+ pendingMeta?: unknown;
95
+ fulfilledMeta?: unknown;
96
+ rejectedMeta?: unknown;
97
+ }>;
78
98
  export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
79
99
  flows: any;
80
100
  }, void, {