@tap-payments/auth-jsconnect 2.10.20-development → 2.11.1-beta

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 (163) hide show
  1. package/build/@types/app.d.ts +1 -2
  2. package/build/@types/app.js +0 -1
  3. package/build/@types/form.d.ts +0 -2
  4. package/build/@types/index.d.ts +0 -1
  5. package/build/@types/index.js +0 -1
  6. package/build/api/auth.d.ts +1 -9
  7. package/build/api/entity.d.ts +0 -3
  8. package/build/api/index.d.ts +1 -7
  9. package/build/api/index.js +1 -3
  10. package/build/api/lead.d.ts +0 -1
  11. package/build/app/rootReducer.d.ts +0 -1
  12. package/build/app/rootReducer.js +1 -3
  13. package/build/app/store.d.ts +0 -2
  14. package/build/assets/locales/ar.json +16 -48
  15. package/build/assets/locales/en.json +45 -51
  16. package/build/components/OTPTimer/OTPTimer.d.ts +1 -2
  17. package/build/components/OTPTimer/OTPTimer.js +4 -4
  18. package/build/components/Tooltip/Tooltip.js +1 -1
  19. package/build/constants/api.d.ts +1 -0
  20. package/build/constants/api.js +2 -0
  21. package/build/constants/app.d.ts +3 -21
  22. package/build/constants/app.js +5 -122
  23. package/build/constants/flows.d.ts +0 -15
  24. package/build/constants/flows.js +0 -15
  25. package/build/constants/validation.d.ts +0 -2
  26. package/build/constants/validation.js +0 -2
  27. package/build/features/app/business/businessStore.js +10 -15
  28. package/build/features/app/connectExpress/connectExpressStore.js +3 -17
  29. package/build/features/app/individual/individualStore.js +1 -0
  30. package/build/features/app/tax/taxStore.js +1 -1
  31. package/build/features/auth/screens/AuthenticationList/EntityList.js +2 -2
  32. package/build/features/business/screens/BusinessType/BusinessType.js +2 -13
  33. package/build/features/business/screens/BusinessType/EntityLicenseList.js +5 -11
  34. package/build/features/business/screens/BusinessType/LicenseList.js +7 -15
  35. package/build/features/business/screens/BusinessType/validation.d.ts +3 -6
  36. package/build/features/business/screens/BusinessType/validation.js +10 -31
  37. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +2 -2
  38. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +0 -1
  39. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +7 -23
  40. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  41. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  42. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +3 -6
  43. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +21 -57
  44. package/build/features/entity/screens/EntityName/EntityName.js +1 -2
  45. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  46. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  47. package/build/features/entity/screens/EntityName/validation.js +3 -14
  48. package/build/features/featuresScreens.d.ts +0 -1
  49. package/build/features/featuresScreens.js +0 -67
  50. package/build/features/shared/Button/Button.js +1 -1
  51. package/build/features/shared/Button/FlowsButtons.d.ts +0 -1
  52. package/build/features/shared/Button/FlowsButtons.js +2 -2
  53. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -2
  54. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +4 -5
  55. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -3
  56. package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
  57. package/build/hooks/useAppDispatch.d.ts +0 -1
  58. package/build/index.d.ts +2 -3
  59. package/build/index.js +2 -4
  60. package/build/theme/palette.js +0 -12
  61. package/build/theme/typography.js +0 -4
  62. package/build/utils/common.js +4 -4
  63. package/build/utils/string.d.ts +1 -2
  64. package/build/utils/string.js +2 -11
  65. package/package.json +2 -2
  66. package/build/@types/terminal.d.ts +0 -116
  67. package/build/@types/terminal.js +0 -1
  68. package/build/api/terminal.d.ts +0 -28
  69. package/build/api/terminal.js +0 -45
  70. package/build/components/DeviceCard/DeviceCard.d.ts +0 -18
  71. package/build/components/DeviceCard/DeviceCard.js +0 -103
  72. package/build/components/DeviceCard/index.d.ts +0 -3
  73. package/build/components/DeviceCard/index.js +0 -2
  74. package/build/features/app/terminal/terminalStore.d.ts +0 -110
  75. package/build/features/app/terminal/terminalStore.js +0 -676
  76. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +0 -35
  77. package/build/features/business/screens/BusinessType/UnifiedNumber.js +0 -84
  78. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +0 -36
  79. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +0 -81
  80. package/build/features/shared/PushNotification/PushNotification.d.ts +0 -11
  81. package/build/features/shared/PushNotification/PushNotification.js +0 -34
  82. package/build/features/shared/PushNotification/index.d.ts +0 -2
  83. package/build/features/shared/PushNotification/index.js +0 -2
  84. package/build/features/terminal/Terminal.d.ts +0 -14
  85. package/build/features/terminal/Terminal.js +0 -95
  86. package/build/features/terminal/index.d.ts +0 -1
  87. package/build/features/terminal/index.js +0 -1
  88. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +0 -3
  89. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +0 -69
  90. package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +0 -2
  91. package/build/features/terminal/screens/LinkNewTerminal/index.js +0 -2
  92. package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +0 -10
  93. package/build/features/terminal/screens/LinkNewTerminal/styles.js +0 -28
  94. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +0 -3
  95. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +0 -51
  96. package/build/features/terminal/screens/LinkedSuccess/index.d.ts +0 -2
  97. package/build/features/terminal/screens/LinkedSuccess/index.js +0 -2
  98. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +0 -3
  99. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +0 -55
  100. package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +0 -2
  101. package/build/features/terminal/screens/LinkedTerminalInfo/index.js +0 -2
  102. package/build/features/terminal/screens/Loading/Loading.d.ts +0 -4
  103. package/build/features/terminal/screens/Loading/Loading.js +0 -10
  104. package/build/features/terminal/screens/Loading/index.d.ts +0 -2
  105. package/build/features/terminal/screens/Loading/index.js +0 -2
  106. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +0 -3
  107. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +0 -58
  108. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +0 -2
  109. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +0 -2
  110. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +0 -36
  111. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +0 -34
  112. package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +0 -5
  113. package/build/features/terminal/screens/OperatorError/OperatorError.js +0 -9
  114. package/build/features/terminal/screens/OperatorError/index.d.ts +0 -2
  115. package/build/features/terminal/screens/OperatorError/index.js +0 -2
  116. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +0 -3
  117. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +0 -21
  118. package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +0 -2
  119. package/build/features/terminal/screens/ResetPasswordSuccess/index.js +0 -2
  120. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +0 -3
  121. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +0 -32
  122. package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +0 -2
  123. package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +0 -2
  124. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +0 -9
  125. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +0 -20
  126. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +0 -3
  127. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +0 -153
  128. package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +0 -2
  129. package/build/features/terminal/screens/TerminalDeviceList/index.js +0 -2
  130. package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +0 -9
  131. package/build/features/terminal/screens/TerminalDeviceList/styles.js +0 -13
  132. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.d.ts +0 -3
  133. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +0 -47
  134. package/build/features/terminal/screens/TerminalListPage/index.d.ts +0 -2
  135. package/build/features/terminal/screens/TerminalListPage/index.js +0 -2
  136. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +0 -3
  137. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +0 -53
  138. package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +0 -2
  139. package/build/features/terminal/screens/UnlinkedSuccess/index.js +0 -2
  140. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +0 -3
  141. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +0 -98
  142. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +0 -2
  143. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +0 -2
  144. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +0 -26
  145. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +0 -30
  146. package/build/features/terminal/screens/Verify/OTPInput.d.ts +0 -7
  147. package/build/features/terminal/screens/Verify/OTPInput.js +0 -51
  148. package/build/features/terminal/screens/Verify/Verify.d.ts +0 -5
  149. package/build/features/terminal/screens/Verify/Verify.js +0 -85
  150. package/build/features/terminal/screens/Verify/index.d.ts +0 -2
  151. package/build/features/terminal/screens/Verify/index.js +0 -2
  152. package/build/features/terminal/screens/Verify/validation.d.ts +0 -8
  153. package/build/features/terminal/screens/Verify/validation.js +0 -4
  154. package/build/features/terminal/screens/shared/Header.d.ts +0 -10
  155. package/build/features/terminal/screens/shared/Header.js +0 -30
  156. package/build/features/terminal/screens/shared/TerminalList.d.ts +0 -11
  157. package/build/features/terminal/screens/shared/TerminalList.js +0 -25
  158. package/build/features/terminal/screens/shared/index.d.ts +0 -5
  159. package/build/features/terminal/screens/shared/index.js +0 -5
  160. package/build/features/terminal/screens/shared/styles.d.ts +0 -196
  161. package/build/features/terminal/screens/shared/styles.js +0 -155
  162. package/build/features/terminal/screens/shared/utils.d.ts +0 -7
  163. package/build/features/terminal/screens/shared/utils.js +0 -24
@@ -1,155 +0,0 @@
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
- import Box from '@mui/material/Box';
13
- import Button from '@mui/material/Button';
14
- import { alpha, styled } from '@mui/material/styles';
15
- import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';
16
- import Typography from '@mui/material/Typography';
17
- import Radio from '@mui/material/Radio';
18
- import Icon from '../../../../components/Icon';
19
- import DeviceCard from '../../../../components/DeviceCard';
20
- export var Container = styled(Box)(function () { return ({
21
- display: 'flex',
22
- flexDirection: 'column',
23
- width: '100%'
24
- }); });
25
- export var LinkNewTerminalContainer = styled(Container)(function (_a) {
26
- var spacing = _a.theme.spacing;
27
- return ({
28
- gap: spacing(1)
29
- });
30
- });
31
- export var TextTypography = styled(Typography)(function (_a) {
32
- var _b = _a.theme, palette = _b.palette, typography = _b.typography;
33
- return (__assign(__assign({}, typography.caption), { color: alpha(palette.text.primary, 0.6) }));
34
- });
35
- export var LinkWithText = styled(TextTypography)(function (_a) {
36
- var spacing = _a.theme.spacing;
37
- return ({
38
- paddingBlock: spacing(1)
39
- });
40
- });
41
- export var LinkTerminalText = styled(TextTypography)(function (_a) {
42
- var spacing = _a.theme.spacing;
43
- return ({
44
- paddingInline: spacing(2.625)
45
- });
46
- });
47
- export var QRCodeDescription = styled(Box)(function (_a) {
48
- var _b = _a.theme, palette = _b.palette, spacing = _b.spacing, typography = _b.typography;
49
- return (__assign(__assign({ backgroundColor: palette.common.white, borderWidth: spacing(0.125, 0, 0.125, 0), borderStyle: 'solid', borderColor: palette.divider, padding: spacing(1.5, 2.5, 1.5, 2.5), marginTop: spacing(1), color: palette.text.primary }, typography.body1), { fontWeight: typography.fontWeightLight }));
50
- });
51
- export var SuccessContainerStyled = styled(Container)(function () { return ({
52
- justifyContent: 'space-between',
53
- alignItems: 'center',
54
- pointerEvents: 'auto'
55
- }); });
56
- export var ScrollContainer = styled(Box)(function (_a) {
57
- var spacing = _a.theme.spacing;
58
- return ({
59
- maxHeight: spacing(20.625),
60
- overflow: 'scroll'
61
- });
62
- });
63
- export var TerminalListContainer = styled(Box)(function (_a) {
64
- var spacing = _a.theme.spacing;
65
- return ({
66
- display: 'flex',
67
- justifyContent: 'space-between',
68
- flexDirection: 'column',
69
- alignItems: 'center',
70
- width: '100%',
71
- gap: spacing(0.75)
72
- });
73
- });
74
- export var ListContainer = styled(Box)(function (_a) {
75
- var _b = _a.theme, spacing = _b.spacing, _c = _b.palette, common = _c.common, toastDeviceSelectorDropdown = _c.components.toastDeviceSelectorDropdown;
76
- return ({
77
- marginTop: spacing(1),
78
- border: "1px solid ".concat(toastDeviceSelectorDropdown.border),
79
- backgroundColor: common.white,
80
- borderRadius: spacing(1)
81
- });
82
- });
83
- export var TitleContainer = styled(Box)(function (_a) {
84
- var _b = _a.theme, spacing = _b.spacing, toastDeviceSelectorDropdown = _b.palette.components.toastDeviceSelectorDropdown;
85
- return ({
86
- padding: spacing(1.5, 2, 1.5, 2),
87
- display: 'flex',
88
- flexDirection: 'row',
89
- gap: spacing(0.75),
90
- alignItems: 'center',
91
- borderBottom: "1px solid ".concat(toastDeviceSelectorDropdown.border)
92
- });
93
- });
94
- export var Image = styled(Icon)(function (_a) {
95
- var spacing = _a.theme.spacing;
96
- return ({
97
- width: spacing(3),
98
- height: spacing(3)
99
- });
100
- });
101
- export var Title = styled(Typography)(function (_a) {
102
- var _b = _a.theme, typography = _b.typography, palette = _b.palette;
103
- return (__assign(__assign({}, typography.body2), { color: palette.components.deviceCard.title, fontWeight: typography.fontWeightBold }));
104
- });
105
- export var ListItem = styled(DeviceCard)(function (_a) {
106
- var spacing = _a.theme.spacing;
107
- return ({
108
- paddingTop: spacing(1),
109
- paddingBottom: spacing(1)
110
- });
111
- });
112
- export var StyledRadio = styled(Radio)(function (_a) {
113
- var theme = _a.theme;
114
- return ({
115
- '&.Mui-checked': {
116
- color: theme.palette.primary.main
117
- }
118
- });
119
- });
120
- export var ArrowIcon = styled(ArrowForwardIosIcon)(function (_a) {
121
- var _b = _a.theme, palette = _b.palette, direction = _b.direction;
122
- return (__assign({ color: palette.components.deviceCard.title, fontSize: '16px' }, (direction === 'rtl' && {
123
- transform: 'rotate(180deg)'
124
- })));
125
- });
126
- export var HeadContainer = styled(Box)(function (_a) {
127
- var spacing = _a.theme.spacing;
128
- return ({
129
- display: 'flex',
130
- justifyContent: 'space-between',
131
- alignItems: 'center',
132
- width: '100%',
133
- paddingBottom: spacing(2)
134
- });
135
- });
136
- export var LinkButton = styled(Button)(function (_a) {
137
- var _b = _a.theme, spacing = _b.spacing, palette = _b.palette, typography = _b.typography;
138
- return (__assign(__assign({}, typography.button_small), { fontWeight: typography.fontWeightRegular, textTransform: 'none', color: palette.primary.main, display: 'flex', alignItems: 'center', gap: spacing(0.5) }));
139
- });
140
- export var AddIconContainer = styled(Box)(function (_a) {
141
- var _b = _a.theme, spacing = _b.spacing, palette = _b.palette;
142
- return ({
143
- background: alpha(palette.primary.main, 0.1),
144
- height: spacing(2.25),
145
- width: spacing(2.25),
146
- display: 'flex',
147
- justifyContent: 'center',
148
- borderRadius: spacing(11.25),
149
- alignItems: 'center'
150
- });
151
- });
152
- export var LinkText = styled(Typography)(function (_a) {
153
- var typography = _a.theme.typography;
154
- return (__assign({}, typography.button_small));
155
- });
@@ -1,7 +0,0 @@
1
- import { TerminalDeviceInfo, TerminalInfo } from '../../../../@types';
2
- export declare const getPairedWith: (device: TerminalDeviceInfo) => string | undefined;
3
- export declare const getId: (device: TerminalDeviceInfo) => string;
4
- export declare const getIdLabel: (device: TerminalDeviceInfo) => "terminal_device_id" | "terminal_serial_number";
5
- export declare const getTerminalId: (terminal: TerminalInfo) => string;
6
- export declare const getTerminalName: (terminal: TerminalInfo) => string;
7
- export declare const getTerminalIdLabel: (terminal: TerminalInfo) => "terminal_device_id" | "terminal_id";
@@ -1,24 +0,0 @@
1
- export var getPairedWith = function (device) {
2
- var _a, _b, _c, _d;
3
- return (_c = (_b = (_a = device === null || device === void 0 ? void 0 : device.terminal) === null || _a === void 0 ? void 0 : _a.device) === null || _b === void 0 ? void 0 : _b.display_name) !== null && _c !== void 0 ? _c : (_d = device === null || device === void 0 ? void 0 : device.terminal) === null || _d === void 0 ? void 0 : _d.name.en;
4
- };
5
- export var getId = function (device) {
6
- var _a, _b, _c;
7
- return (_c = (_b = (_a = device === null || device === void 0 ? void 0 : device.terminal) === null || _a === void 0 ? void 0 : _a.device) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : device.serial_number;
8
- };
9
- export var getIdLabel = function (device) {
10
- var _a, _b;
11
- return ((_b = (_a = device === null || device === void 0 ? void 0 : device.terminal) === null || _a === void 0 ? void 0 : _a.device) === null || _b === void 0 ? void 0 : _b.id) ? 'terminal_device_id' : 'terminal_serial_number';
12
- };
13
- export var getTerminalId = function (terminal) {
14
- var _a, _b;
15
- return (_b = (_a = terminal === null || terminal === void 0 ? void 0 : terminal.device) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : terminal.legacy_id;
16
- };
17
- export var getTerminalName = function (terminal) {
18
- var _a, _b, _c;
19
- return (_b = (_a = terminal === null || terminal === void 0 ? void 0 : terminal.device) === null || _a === void 0 ? void 0 : _a.display_name) !== null && _b !== void 0 ? _b : (_c = terminal === null || terminal === void 0 ? void 0 : terminal.name) === null || _c === void 0 ? void 0 : _c.en;
20
- };
21
- export var getTerminalIdLabel = function (terminal) {
22
- var _a;
23
- return ((_a = terminal === null || terminal === void 0 ? void 0 : terminal.device) === null || _a === void 0 ? void 0 : _a.id) ? 'terminal_device_id' : 'terminal_id';
24
- };