@tap-payments/auth-jsconnect 2.11.6-development → 2.11.6-sandbox

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 (44) hide show
  1. package/build/@types/terminal.d.ts +44 -32
  2. package/build/api/auth.d.ts +1 -7
  3. package/build/api/index.d.ts +2 -2
  4. package/build/api/terminal.d.ts +2 -2
  5. package/build/api/terminal.js +11 -21
  6. package/build/assets/locales/ar.json +4 -0
  7. package/build/assets/locales/en.json +4 -0
  8. package/build/components/DeviceCard/DeviceCard.js +1 -1
  9. package/build/components/Tooltip/Tooltip.js +1 -1
  10. package/build/constants/app.d.ts +3 -2
  11. package/build/constants/app.js +22 -32
  12. package/build/constants/flows.d.ts +1 -1
  13. package/build/constants/flows.js +1 -1
  14. package/build/features/app/terminal/terminalStore.d.ts +7 -7
  15. package/build/features/app/terminal/terminalStore.js +46 -50
  16. package/build/features/featuresScreens.js +3 -3
  17. package/build/features/terminal/Terminal.js +2 -2
  18. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +9 -8
  19. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +6 -5
  20. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +9 -9
  21. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
  22. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +3 -3
  23. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +1 -1
  24. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +15 -15
  25. package/build/features/terminal/screens/{POSDeviceListPage/POSDeviceListPage.js → TerminalListPage/TerminalListPage.js} +9 -9
  26. package/build/features/terminal/screens/TerminalListPage/index.d.ts +2 -0
  27. package/build/features/terminal/screens/TerminalListPage/index.js +2 -0
  28. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +7 -5
  29. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +11 -12
  30. package/build/features/terminal/screens/shared/TerminalList.d.ts +11 -0
  31. package/build/features/terminal/screens/shared/TerminalList.js +25 -0
  32. package/build/features/terminal/screens/shared/index.d.ts +2 -2
  33. package/build/features/terminal/screens/shared/index.js +2 -2
  34. package/build/features/terminal/screens/shared/styles.d.ts +1 -1
  35. package/build/features/terminal/screens/shared/styles.js +1 -1
  36. package/build/features/terminal/screens/shared/utils.d.ts +4 -4
  37. package/build/features/terminal/screens/shared/utils.js +9 -8
  38. package/build/utils/common.js +3 -3
  39. package/package.json +2 -2
  40. package/build/features/terminal/screens/POSDeviceListPage/index.d.ts +0 -2
  41. package/build/features/terminal/screens/POSDeviceListPage/index.js +0 -2
  42. package/build/features/terminal/screens/shared/POSDeviceList.d.ts +0 -11
  43. package/build/features/terminal/screens/shared/POSDeviceList.js +0 -28
  44. /package/build/features/terminal/screens/{POSDeviceListPage/POSDeviceListPage.d.ts → TerminalListPage/TerminalListPage.d.ts} +0 -0
@@ -3,6 +3,13 @@ declare type Name = {
3
3
  };
4
4
  export interface TerminalDeviceInfo {
5
5
  id: string;
6
+ status: string;
7
+ object?: string;
8
+ live_mode: boolean;
9
+ api_version?: string;
10
+ feature_version?: string;
11
+ serial_number: string;
12
+ linked: boolean;
6
13
  display_name: string;
7
14
  model: {
8
15
  id: string;
@@ -20,7 +27,39 @@ export interface TerminalDeviceInfo {
20
27
  image: string;
21
28
  image_url: string;
22
29
  };
23
- serial_number: string;
30
+ merchant?: {
31
+ id: string;
32
+ brand: {
33
+ id: string;
34
+ name: {
35
+ text: string;
36
+ lang: string;
37
+ }[];
38
+ logo: string;
39
+ };
40
+ };
41
+ terminal?: {
42
+ id: string;
43
+ legacy_id: string;
44
+ name: Name;
45
+ device: {
46
+ id: string;
47
+ created: string;
48
+ display_name: string;
49
+ };
50
+ };
51
+ platform?: {
52
+ id: string;
53
+ segment: string;
54
+ brand?: {
55
+ id: string;
56
+ name: {
57
+ text: string;
58
+ lang: string;
59
+ }[];
60
+ logo: string;
61
+ };
62
+ };
24
63
  }
25
64
  export interface TerminalInfo {
26
65
  acceptance_status?: string;
@@ -32,22 +71,11 @@ export interface TerminalInfo {
32
71
  };
33
72
  brand?: {
34
73
  id: string;
35
- logo?: string;
36
- };
37
- billingplatform?: {
38
- id: string;
39
74
  };
40
75
  charges?: {
41
76
  status: string;
42
77
  status_message: string;
43
78
  };
44
- device?: {
45
- id: string;
46
- created: string;
47
- display_name: string;
48
- reference: string;
49
- logo?: string;
50
- };
51
79
  feature_version?: string;
52
80
  id: string;
53
81
  legacy_id: string;
@@ -61,7 +89,7 @@ export interface TerminalInfo {
61
89
  platform?: {
62
90
  brand: {
63
91
  id: string;
64
- logo?: string;
92
+ logo: string;
65
93
  name: {
66
94
  text: string;
67
95
  lang: string;
@@ -79,26 +107,10 @@ export interface TerminalInfo {
79
107
  wallet?: {
80
108
  id: string;
81
109
  };
82
- linked: boolean;
83
- terminal_device: TerminalDeviceInfo;
84
- }
85
- export interface POSInfo {
86
- id: string;
87
- object: string;
88
- live_mode: boolean;
89
- reference: string;
90
- display_name: string;
91
- merchant: {
110
+ device?: {
92
111
  id: string;
93
- legacy_id: string;
94
- brand: {
95
- id: string;
96
- name: {
97
- lang: string;
98
- text: string;
99
- }[];
100
- logo: string;
101
- };
112
+ created: string;
113
+ display_name: string;
102
114
  };
103
115
  }
104
116
  export {};
@@ -18,18 +18,12 @@ export declare type CivilID = {
18
18
  country_code: string;
19
19
  };
20
20
  export declare type TerminalCredential = {
21
- terminal?: {
21
+ terminal: {
22
22
  id: string;
23
23
  terminal_device?: {
24
24
  id: string;
25
25
  };
26
26
  };
27
- merchant?: {
28
- id: string;
29
- };
30
- device: {
31
- id: string;
32
- };
33
27
  };
34
28
  export declare type CreateAuthBody = {
35
29
  country: string;
@@ -166,9 +166,9 @@ declare const API: {
166
166
  getInitialData: (body: InitBody) => Promise<any>;
167
167
  };
168
168
  terminalService: {
169
+ retrieveTerminalDeviceList: (merchants: string[]) => Promise<any>;
169
170
  unlinkTerminalDevice: ({ deviceId, ...payload }: UnlinkTerminalDeviceProps) => Promise<any>;
170
- retrieveTerminalList: (merchants: string[], getTerminalDevice?: boolean) => Promise<any>;
171
- retrievePOSDevices: (merchants: string[]) => Promise<any>;
171
+ retrieveTerminalList: (merchantIds: string[]) => Promise<any>;
172
172
  };
173
173
  };
174
174
  export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody, ConfigBody, MerchantListBody, CreateEntityBody, CreateNafathAuthBody, GetUserListSegmentBody, CreateKYCAuthBody, GenerateAuthLinkNewTerminalProps, UnlinkTerminalDeviceProps, LinkTerminalDeviceProps };
@@ -21,8 +21,8 @@ export interface LinkTerminalDeviceProps {
21
21
  action: string;
22
22
  }
23
23
  declare const terminalService: {
24
+ retrieveTerminalDeviceList: (merchants: string[]) => Promise<any>;
24
25
  unlinkTerminalDevice: ({ deviceId, ...payload }: UnlinkTerminalDeviceProps) => Promise<any>;
25
- retrieveTerminalList: (merchants: string[], getTerminalDevice?: boolean) => Promise<any>;
26
- retrievePOSDevices: (merchants: string[]) => Promise<any>;
26
+ retrieveTerminalList: (merchantIds: string[]) => Promise<any>;
27
27
  };
28
28
  export { terminalService };
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -22,20 +11,21 @@ var __rest = (this && this.__rest) || function (s, e) {
22
11
  };
23
12
  import { ENDPOINT_PATHS } from '../constants';
24
13
  import { httpClient } from './axios';
25
- var retrieveTerminalList = function (merchants, getTerminalDevice) {
26
- if (getTerminalDevice === void 0) { getTerminalDevice = true; }
14
+ var retrieveTerminalDeviceList = function (merchants) {
27
15
  return httpClient({
28
16
  method: 'post',
29
- url: "".concat(ENDPOINT_PATHS.TERMINAL, "/list"),
30
- data: __assign({ merchants: merchants }, (getTerminalDevice && { terminal_device: true }))
31
- });
17
+ url: "".concat(ENDPOINT_PATHS.TERMINAL, "/device/list"),
18
+ data: {
19
+ merchants: merchants
20
+ }
21
+ }).catch(function () { });
32
22
  };
33
- var retrievePOSDevices = function (merchants) {
23
+ var retrieveTerminalList = function (merchantIds) {
34
24
  return httpClient({
35
25
  method: 'post',
36
- url: "".concat(ENDPOINT_PATHS.MERCHANT, "/pos/device/list"),
26
+ url: "".concat(ENDPOINT_PATHS.TERMINAL, "/list"),
37
27
  data: {
38
- merchants: merchants
28
+ merchant_id: merchantIds
39
29
  }
40
30
  });
41
31
  };
@@ -48,8 +38,8 @@ var unlinkTerminalDevice = function (_a) {
48
38
  });
49
39
  };
50
40
  var terminalService = {
41
+ retrieveTerminalDeviceList: retrieveTerminalDeviceList,
51
42
  unlinkTerminalDevice: unlinkTerminalDevice,
52
- retrieveTerminalList: retrieveTerminalList,
53
- retrievePOSDevices: retrievePOSDevices
43
+ retrieveTerminalList: retrieveTerminalList
54
44
  };
55
45
  export { terminalService };
@@ -137,6 +137,7 @@
137
137
  "capital_paid_hint": "00000",
138
138
  "capital_paid_input_label": "رأس المال المدفوع",
139
139
  "capital_paid_label": "رأس المال المدفوع ({{currency}})",
140
+ "capital_paid_input_label": "رأس المال المدفوع",
140
141
  "capital_paid_required": "Please Enter paid amount",
141
142
  "capital_share_count_hint": "00000",
142
143
  "capital_share_count_label": "عدد اسهم رأس المال",
@@ -144,6 +145,7 @@
144
145
  "capital_share_value_hint": "00000",
145
146
  "capital_share_value_input_label": "قيمة السهم",
146
147
  "capital_share_value_label": "قيمة السهم ({{currency}})",
148
+ "capital_share_value_input_label": "قيمة السهم",
147
149
  "capital_share_value_required": "Please Enter share value",
148
150
  "category": "الفئة",
149
151
  "category_name": "اسم الفئة",
@@ -284,6 +286,7 @@
284
286
  "expected_customers_to_serve": "عدد العملاء شهريا",
285
287
  "expected_sale_per_month": "البيع المتوقع في الشهر؟",
286
288
  "expected_sales_monthly": "البيع المتوقع في الشهر؟ ({{currency}})",
289
+ "expected_sale_per_month": "البيع المتوقع في الشهر؟",
287
290
  "expected_sales_yearly": "ما هي المبيعات المتوقعة لعملك شهريًا؟",
288
291
  "expected_served_monthly": "عدد العملاء شهريا",
289
292
  "expiry_date": "تاريخ الإنتهاء",
@@ -493,6 +496,7 @@
493
496
  "please_choose_is_authorized": "الرجاء التأكيد إذا كنت أنت المستخدم المصرح له",
494
497
  "please_choose_relative_pep": "هل أنت أو أحد أقاربك شخص مكشوف علنًا (PEP)",
495
498
  "please_enter_actual_income": "ما هو دخلك الشهري ({{currency}}) ؟ ",
499
+ "monthly_income": "ما هو دخلك الشهري؟ ",
496
500
  "please_enter_employer_name": "يرجى إدخال اسم منشأه العمل الخاص بك",
497
501
  "please_try_again_after_few_minutes": "يمكنك محاولة تسجيل الدخول مرة أخرى بعد {{minutes}} دقيقة",
498
502
  "powered_by": "بواسطة",
@@ -136,6 +136,7 @@
136
136
  "capital_paid_hint": "00000",
137
137
  "capital_paid_input_label": "Capital Paid",
138
138
  "capital_paid_label": "Capital Paid ({{currency}})",
139
+ "capital_paid_input_label": "Capital Paid",
139
140
  "capital_paid_required": "Please Enter paid amount",
140
141
  "capital_share_count_hint": "00000",
141
142
  "capital_share_count_label": "Capital Share Count",
@@ -143,6 +144,7 @@
143
144
  "capital_share_value_hint": "00000",
144
145
  "capital_share_value_input_label": "Capital Share Value",
145
146
  "capital_share_value_label": "Capital Share Value ({{currency}})",
147
+ "capital_share_value_input_label": "Capital Share Value",
146
148
  "capital_share_value_required": "Please Enter share value",
147
149
  "category": "Category",
148
150
  "category_name": "Category name",
@@ -292,6 +294,7 @@
292
294
  "expected_customers_to_serve": "Customers served per month",
293
295
  "expected_sale_per_month": "Expected sale per month?",
294
296
  "expected_sales_monthly": "Expected sale per month? ({{currency}})",
297
+ "expected_sale_per_month": "Expected sale per month?",
295
298
  "expected_sales_yearly": "What is the expected sales for your business per month?",
296
299
  "expected_served_monthly": "Customers served per month",
297
300
  "expiry_date": "Date of expiry",
@@ -509,6 +512,7 @@
509
512
  "please_choose_is_authorized": "Please tell us if you are the authorized user",
510
513
  "please_choose_relative_pep": "Are you or one of your relatives a Publicly Exposed Person (PEP)",
511
514
  "please_enter_actual_income": "Monthly income ({{currency}})",
515
+ "monthly_income": "Monthly income",
512
516
  "please_enter_employer_name": "Please enter the name of your employer",
513
517
  "please_try_again_after_few_minutes": "You can try to login again after {{minutes}} mins",
514
518
  "powered_by": "Powered by",
@@ -98,6 +98,6 @@ export var DeviceCard = function (_a) {
98
98
  if (arrow)
99
99
  return _jsx(ArrowIcon, {});
100
100
  };
101
- return (_jsxs(DeviceCardContainer, __assign({ onClick: onClick, sx: { cursor: onClick ? 'pointer' : 'default' }, showBorder: border }, rest, { children: [_jsxs(DeviceDetails, { children: [image && _jsx(DeviceImage, { src: image, alt: 'Device' }), _jsxs(DeviceInfo, { children: [_jsx(DeviceTitle, { children: name }), _jsxs(DeviceIdInfo, { children: [pairedWith && (_jsxs("span", { children: [t('terminal_paired_with'), ": ", _jsx(DeviceIdBold, { children: pairedWith })] })), _jsxs("span", { children: [t(deviceIdLabel !== null && deviceIdLabel !== void 0 ? deviceIdLabel : 'terminal_device_id'), ": ", _jsx(DeviceIdBold, { children: deviceId })] })] })] })] }), badge && _jsx(Badge, __assign({ active: isLinked }, { children: isLinked ? t('terminal_linked') : t('terminal_unlinked') })), _jsx(Box, __assign({ display: 'flex', alignItems: 'center' }, { children: getEndComponent() }))] })));
101
+ return (_jsxs(DeviceCardContainer, __assign({ onClick: onClick, sx: { cursor: onClick ? 'pointer' : 'default' }, showBorder: border }, rest, { children: [_jsxs(DeviceDetails, { children: [image && _jsx(DeviceImage, { src: image, alt: 'Device' }), _jsxs(DeviceInfo, { children: [_jsx(DeviceTitle, { children: name }), _jsxs(DeviceIdInfo, { children: [pairedWith && (_jsxs("span", { children: [t('terminal_paired_with'), ": ", _jsx(DeviceIdBold, { children: pairedWith })] })), _jsxs("span", { children: [t(deviceIdLabel !== null && deviceIdLabel !== void 0 ? deviceIdLabel : 'terminal_device_id'), ": ", _jsx(DeviceIdBold, { children: deviceId }), "`"] })] })] })] }), badge && _jsx(Badge, __assign({ active: isLinked }, { children: isLinked ? t('terminal_linked') : t('terminal_unlinked') })), _jsx(Box, __assign({ display: 'flex', alignItems: 'center' }, { children: getEndComponent() }))] })));
102
102
  };
103
103
  export default memo(DeviceCard);
@@ -33,7 +33,7 @@ var StyledTooltip = styled(function (_a) {
33
33
  var _b;
34
34
  var theme = _a.theme;
35
35
  return (_b = {},
36
- _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)) }),
36
+ _b["& .".concat(tooltipClasses.tooltip)] = __assign(__assign({ color: alpha(theme.palette.text.primary, 0.5), width: 'fit-content', maxHeight: 'fit-content' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightLight, backgroundColor: theme.palette.secondary.light, border: "1px solid ".concat(alpha(theme.palette.divider, 0.8)), zIndex: 2147483647 }),
37
37
  _b);
38
38
  });
39
39
  var TextStyled = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isAr'; } })(function (_a) {
@@ -1,5 +1,6 @@
1
- import { ScreenStepNavigation, BusinessType, POSInfo, TerminalInfo } from '../@types';
1
+ import { ScreenStepNavigation, BusinessType, TerminalInfo, TerminalDeviceInfo } from '../@types';
2
2
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
+ export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
3
4
  export declare const CONNECT_PROD_URL = "https://connect.tap.company";
4
5
  export declare const CLIENT_ORIGIN: string;
5
6
  export declare const TAP_WEBSITE = "https://www.tap.company/";
@@ -325,6 +326,6 @@ interface CountryToCurrencyMapping {
325
326
  [countryCode: string]: string;
326
327
  }
327
328
  export declare const COUNTRY_TO_CURRENCY: CountryToCurrencyMapping;
329
+ export declare const SELECTED_TERMINAL_DEVICE_DEFAULT_INFO: TerminalDeviceInfo;
328
330
  export declare const SELECTED_TERMINAL_DEFAULT_INFO: TerminalInfo;
329
- export declare const SELECTED_POS_DEFAULT_INFO: POSInfo;
330
331
  export {};
@@ -1,6 +1,7 @@
1
1
  import { BusinessType } from '../@types';
2
2
  import { CONNECT_FLOWS } from './flows';
3
3
  export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
4
+ export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
4
5
  export var CONNECT_PROD_URL = 'https://connect.tap.company';
5
6
  export var CLIENT_ORIGIN = window.location.origin;
6
7
  export var TAP_WEBSITE = 'https://www.tap.company/';
@@ -999,12 +1000,12 @@ export var TERMINAL_SCREENS_NAVIGATION = [
999
1000
  },
1000
1001
  {
1001
1002
  name: CONNECT_FLOWS.terminal.terminalDeviceList,
1002
- next: [CONNECT_FLOWS.terminal.posDeviceList, CONNECT_FLOWS.terminal.linkedTerminalInfo, CONNECT_FLOWS.terminal.unlinkedTerminalInfo],
1003
+ next: [CONNECT_FLOWS.terminal.terminalList, CONNECT_FLOWS.terminal.linkedTerminalInfo, CONNECT_FLOWS.terminal.unlinkedTerminalInfo],
1003
1004
  prev: CONNECT_FLOWS.terminal.board,
1004
1005
  order: 2
1005
1006
  },
1006
1007
  {
1007
- name: CONNECT_FLOWS.terminal.posDeviceList,
1008
+ name: CONNECT_FLOWS.terminal.terminalList,
1008
1009
  next: CONNECT_FLOWS.terminal.terminalLinkNew,
1009
1010
  prev: CONNECT_FLOWS.terminal.terminalDeviceList,
1010
1011
  order: 3
@@ -1012,7 +1013,7 @@ export var TERMINAL_SCREENS_NAVIGATION = [
1012
1013
  {
1013
1014
  name: CONNECT_FLOWS.terminal.terminalLinkNew,
1014
1015
  next: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1015
- prev: [CONNECT_FLOWS.terminal.noTerminalLinked, CONNECT_FLOWS.terminal.posDeviceList],
1016
+ prev: [CONNECT_FLOWS.terminal.noTerminalLinked, CONNECT_FLOWS.terminal.terminalList],
1016
1017
  order: 3
1017
1018
  },
1018
1019
  {
@@ -1337,42 +1338,31 @@ export var COUNTRY_TO_CURRENCY = {
1337
1338
  HK: 'HKD',
1338
1339
  SG: 'SGD'
1339
1340
  };
1340
- export var SELECTED_TERMINAL_DEFAULT_INFO = {
1341
+ export var SELECTED_TERMINAL_DEVICE_DEFAULT_INFO = {
1341
1342
  id: '',
1343
+ status: '',
1342
1344
  live_mode: false,
1343
- legacy_id: '',
1344
1345
  linked: false,
1345
- merchant: { id: '' },
1346
- name: { en: '' },
1347
- terminal_device: {
1346
+ serial_number: '',
1347
+ display_name: '',
1348
+ model: {
1349
+ live_mode: false,
1350
+ status: '',
1348
1351
  id: '',
1349
- display_name: '',
1350
- model: {
1351
- live_mode: false,
1352
- status: '',
1353
- id: '',
1354
- name: [],
1355
- image: '',
1356
- image_url: '',
1357
- model: '',
1358
- type: ''
1359
- },
1360
- serial_number: ''
1352
+ name: [],
1353
+ image: '',
1354
+ image_url: '',
1355
+ model: '',
1356
+ type: ''
1361
1357
  }
1362
1358
  };
1363
- export var SELECTED_POS_DEFAULT_INFO = {
1359
+ export var SELECTED_TERMINAL_DEFAULT_INFO = {
1364
1360
  id: '',
1365
- display_name: '',
1366
- live_mode: false,
1361
+ legacy_id: '',
1367
1362
  merchant: {
1368
- id: '',
1369
- legacy_id: '',
1370
- brand: {
1371
- id: '',
1372
- logo: '',
1373
- name: []
1374
- }
1363
+ id: ''
1375
1364
  },
1376
- object: '',
1377
- reference: ''
1365
+ name: {
1366
+ en: ''
1367
+ }
1378
1368
  };
@@ -36,6 +36,6 @@ export declare const CONNECT_FLOWS: {
36
36
  terminalUnlinkedSuccess: string;
37
37
  board: string;
38
38
  resetPassword: string;
39
- posDeviceList: string;
39
+ terminalList: string;
40
40
  };
41
41
  };
@@ -37,6 +37,6 @@ export var CONNECT_FLOWS = {
37
37
  terminalUnlinkedSuccess: 'TERMINAL_UNLINKED_SUCCESS_STEP',
38
38
  board: 'TERMINAL_BOARD_STEP',
39
39
  resetPassword: 'TERMINAL_RESET_PASSWORD',
40
- posDeviceList: 'TERMINAL_POS_DEVICE_LIST_STEP'
40
+ terminalList: 'TERMINAL_LIST_STEP'
41
41
  }
42
42
  };
@@ -1,5 +1,5 @@
1
1
  import { RootState } from '../../../app/store';
2
- import { ActionState, FlowsTypes, OTPFormValues, POSInfo, SharedState, TerminalInfo } from '../../../@types';
2
+ import { ActionState, FlowsTypes, OTPFormValues, SharedState, TerminalDeviceInfo, TerminalInfo } from '../../../@types';
3
3
  interface VerifyLeadTokenProps {
4
4
  token: string;
5
5
  isInternally?: boolean;
@@ -28,7 +28,7 @@ export declare const linkNewTerminal: import("@reduxjs/toolkit").AsyncThunk<{
28
28
  data: any;
29
29
  nextScreen: string;
30
30
  }, void, {}>;
31
- export declare const retrievePOSDevices: import("@reduxjs/toolkit").AsyncThunk<{
31
+ export declare const retrieveTerminalList: import("@reduxjs/toolkit").AsyncThunk<{
32
32
  data: any;
33
33
  }, void, {}>;
34
34
  interface pushNotificationLinkNewTerminalParams {
@@ -64,7 +64,7 @@ declare type RetrieveBoardStatusProps = {
64
64
  export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
65
65
  flows: any;
66
66
  }, RetrieveBoardStatusProps, {}>;
67
- export declare const retrieveTerminalList: import("@reduxjs/toolkit").AsyncThunk<{
67
+ export declare const retrieveTerminalDeviceList: import("@reduxjs/toolkit").AsyncThunk<{
68
68
  data: any;
69
69
  }, void, {}>;
70
70
  export declare const updateDeviceLinkedSuccess: import("@reduxjs/toolkit").AsyncThunk<{
@@ -87,24 +87,24 @@ export interface TerminalData {
87
87
  verify: VerifyData;
88
88
  otpData: OTPFormValues;
89
89
  terminalInfo: {
90
+ selectedTerminalDevice: TerminalDeviceInfo;
90
91
  selectedTerminal: TerminalInfo;
91
- selectedPOS: POSInfo;
92
92
  };
93
93
  }
94
94
  export interface TerminalDataState extends SharedState<TerminalData & ResponseData> {
95
95
  customLoading?: boolean;
96
- posDevicesLoading?: boolean;
96
+ terminalListLoading?: boolean;
97
97
  }
98
98
  export declare const terminalSlice: import("@reduxjs/toolkit").Slice<TerminalDataState, {
99
99
  clearError: (state: TerminalDataState) => void;
100
100
  setError(state: TerminalDataState, action: ActionState<string>): void;
101
101
  stopLoader: (state: TerminalDataState) => void;
102
102
  resetOTPScreen: (state: TerminalDataState) => void;
103
+ storeSelectedTerminalDevice: (state: TerminalDataState, action: ActionState<TerminalDeviceInfo>) => void;
103
104
  storeSelectedTerminal: (state: TerminalDataState, action: ActionState<TerminalInfo>) => void;
104
- storeSelectedPOS: (state: TerminalDataState, action: ActionState<POSInfo>) => void;
105
105
  resetTerminalLinkResponse: (state: TerminalDataState) => void;
106
106
  }, "terminal/store">;
107
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storeSelectedTerminal: import("@reduxjs/toolkit").ActionCreatorWithPayload<TerminalInfo, string>, storeSelectedPOS: import("@reduxjs/toolkit").ActionCreatorWithPayload<POSInfo, string>, resetTerminalLinkResponse: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
107
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storeSelectedTerminalDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload<TerminalDeviceInfo, string>, storeSelectedTerminal: import("@reduxjs/toolkit").ActionCreatorWithPayload<TerminalInfo, string>, resetTerminalLinkResponse: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
108
108
  declare const _default: import("redux").Reducer<TerminalDataState, import("redux").AnyAction>;
109
109
  export default _default;
110
110
  export declare const terminalSelector: (state: RootState) => TerminalDataState;