@tap-payments/auth-jsconnect 2.11.0-sandbox → 2.11.0

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 (126) hide show
  1. package/build/@types/form.d.ts +4 -2
  2. package/build/@types/terminal.d.ts +32 -44
  3. package/build/api/account.d.ts +2 -2
  4. package/build/api/account.js +7 -4
  5. package/build/api/auth.d.ts +8 -2
  6. package/build/api/auth.js +7 -3
  7. package/build/api/axios.d.ts +1 -1
  8. package/build/api/entity.d.ts +3 -0
  9. package/build/api/headers.d.ts +5 -0
  10. package/build/api/headers.js +3 -0
  11. package/build/api/index.d.ts +6 -6
  12. package/build/api/lead.d.ts +1 -0
  13. package/build/api/operator.d.ts +1 -1
  14. package/build/api/operator.js +5 -2
  15. package/build/api/terminal.d.ts +3 -6
  16. package/build/api/terminal.js +22 -12
  17. package/build/assets/currencies/AEDSymbol.js +1 -1
  18. package/build/assets/currencies/SARSymbol.js +1 -1
  19. package/build/assets/locales/ar.json +10 -6
  20. package/build/assets/locales/en.json +13 -8
  21. package/build/components/DeviceCard/DeviceCard.d.ts +3 -2
  22. package/build/components/DeviceCard/DeviceCard.js +9 -10
  23. package/build/components/TruncatedTooltipText/TruncatedTooltipText.d.ts +7 -0
  24. package/build/components/TruncatedTooltipText/TruncatedTooltipText.js +33 -0
  25. package/build/components/TruncatedTooltipText/index.d.ts +2 -0
  26. package/build/components/TruncatedTooltipText/index.js +2 -0
  27. package/build/constants/api.d.ts +2 -0
  28. package/build/constants/api.js +4 -0
  29. package/build/constants/app.d.ts +12 -2
  30. package/build/constants/app.js +142 -41
  31. package/build/constants/flows.d.ts +2 -1
  32. package/build/constants/flows.js +2 -1
  33. package/build/constants/validation.d.ts +1 -0
  34. package/build/constants/validation.js +1 -0
  35. package/build/features/app/auth/authStore.js +64 -54
  36. package/build/features/app/bank/bankStore.js +24 -20
  37. package/build/features/app/board/boardStore.js +11 -7
  38. package/build/features/app/brand/brandStore.js +22 -18
  39. package/build/features/app/business/businessStore.js +45 -36
  40. package/build/features/app/connect/connectStore.d.ts +6 -5
  41. package/build/features/app/connect/connectStore.js +48 -31
  42. package/build/features/app/connectExpress/connectExpressStore.d.ts +6 -5
  43. package/build/features/app/connectExpress/connectExpressStore.js +61 -20
  44. package/build/features/app/entity/entityStore.js +21 -17
  45. package/build/features/app/individual/individualStore.js +34 -28
  46. package/build/features/app/password/passwordStore.js +44 -46
  47. package/build/features/app/signIn/signInStore.js +12 -16
  48. package/build/features/app/tax/taxStore.js +20 -16
  49. package/build/features/app/terminal/terminalStore.d.ts +8 -7
  50. package/build/features/app/terminal/terminalStore.js +93 -63
  51. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +10 -7
  52. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +4 -1
  53. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +6 -4
  54. package/build/features/auth/screens/AuthenticationList/EntityList.js +11 -3
  55. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
  56. package/build/features/business/screens/BusinessType/BusinessType.js +15 -5
  57. package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
  58. package/build/features/business/screens/BusinessType/LicenseList.js +20 -12
  59. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  60. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  61. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  62. package/build/features/business/screens/BusinessType/validation.js +31 -10
  63. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  64. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +10 -10
  65. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +4 -1
  66. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +6 -4
  67. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +11 -3
  68. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  69. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +27 -16
  70. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  71. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  72. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  73. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  74. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
  75. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
  76. package/build/features/connectExpress/screens/Mobile/Mobile.js +7 -6
  77. package/build/features/entity/screens/EntityName/EntityName.js +16 -15
  78. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  79. package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
  80. package/build/features/entity/screens/EntityName/validation.js +100 -85
  81. package/build/features/featuresScreens.js +63 -3
  82. package/build/features/shared/Button/FlowsButtons.d.ts +1 -0
  83. package/build/features/shared/Button/FlowsButtons.js +1 -1
  84. package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.js +9 -0
  85. package/build/features/shared/OTPVerifySecurityError/index.d.ts +2 -0
  86. package/build/features/shared/OTPVerifySecurityError/index.js +2 -0
  87. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +2 -1
  88. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +3 -2
  89. package/build/features/terminal/Terminal.js +2 -2
  90. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +8 -9
  91. package/build/features/terminal/screens/LinkNewTerminal/styles.js +2 -2
  92. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +5 -6
  93. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +15 -10
  94. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +59 -12
  95. package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.d.ts +3 -0
  96. package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.js +50 -0
  97. package/build/features/terminal/screens/POSDeviceListPage/index.d.ts +2 -0
  98. package/build/features/terminal/screens/POSDeviceListPage/index.js +2 -0
  99. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -5
  100. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +3 -3
  101. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +2 -2
  102. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +26 -17
  103. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +5 -7
  104. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +12 -11
  105. package/build/features/terminal/screens/Verify/Verify.js +6 -2
  106. package/build/features/terminal/screens/shared/POSDeviceList.d.ts +11 -0
  107. package/build/features/terminal/screens/shared/POSDeviceList.js +30 -0
  108. package/build/features/terminal/screens/shared/index.d.ts +2 -2
  109. package/build/features/terminal/screens/shared/index.js +2 -2
  110. package/build/features/terminal/screens/shared/styles.d.ts +1 -1
  111. package/build/features/terminal/screens/shared/styles.js +1 -1
  112. package/build/features/terminal/screens/shared/utils.d.ts +4 -4
  113. package/build/features/terminal/screens/shared/utils.js +9 -9
  114. package/build/utils/common.js +11 -4
  115. package/build/utils/error.d.ts +3 -0
  116. package/build/utils/error.js +9 -0
  117. package/build/utils/string.d.ts +2 -1
  118. package/build/utils/string.js +3 -2
  119. package/build/utils/validation.js +1 -1
  120. package/package.json +3 -3
  121. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +0 -42
  122. package/build/features/terminal/screens/TerminalListPage/index.d.ts +0 -2
  123. package/build/features/terminal/screens/TerminalListPage/index.js +0 -2
  124. package/build/features/terminal/screens/shared/TerminalList.d.ts +0 -11
  125. package/build/features/terminal/screens/shared/TerminalList.js +0 -25
  126. /package/build/features/{terminal/screens/TerminalListPage/TerminalListPage.d.ts → shared/OTPVerifySecurityError/OTPVerifySecurityError.d.ts} +0 -0
@@ -61,6 +61,7 @@ export declare type BrandActivitiesFormValues = {
61
61
  };
62
62
  export declare type BusinessTypeFormValues = {
63
63
  licenseNumber: string;
64
+ unifiedNumber: string;
64
65
  entityLegalName?: string;
65
66
  selectedEntityLicense?: EntityLicense;
66
67
  selectedLicense?: License;
@@ -103,8 +104,8 @@ export interface IndividualPersonalInfoFormValues extends IndividualEmailMobileF
103
104
  gender: string | null;
104
105
  nid: string;
105
106
  issuedCountry: CountryCode | undefined;
106
- expiryDate: string;
107
- dob: string;
107
+ expiryDate: string | undefined;
108
+ dob: string | undefined;
108
109
  placeOfBirthCountry: CountryCode | undefined;
109
110
  placeOfBirthCity: City | undefined;
110
111
  nationality: CountryCode | undefined;
@@ -150,6 +151,7 @@ export declare type EntityCapitalFormValues = {
150
151
  export declare type BusinessDataFormValues = {
151
152
  brandName: string;
152
153
  licenseNumber: string;
154
+ unifiedNumber: string;
153
155
  selectedLicense?: License;
154
156
  termAndConditionChecked?: boolean;
155
157
  };
@@ -3,13 +3,6 @@ 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;
13
6
  display_name: string;
14
7
  model: {
15
8
  id: string;
@@ -27,39 +20,7 @@ export interface TerminalDeviceInfo {
27
20
  image: string;
28
21
  image_url: string;
29
22
  };
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
- };
23
+ serial_number: string;
63
24
  }
64
25
  export interface TerminalInfo {
65
26
  acceptance_status?: string;
@@ -71,11 +32,22 @@ export interface TerminalInfo {
71
32
  };
72
33
  brand?: {
73
34
  id: string;
35
+ logo?: string;
36
+ };
37
+ billingplatform?: {
38
+ id: string;
74
39
  };
75
40
  charges?: {
76
41
  status: string;
77
42
  status_message: string;
78
43
  };
44
+ device?: {
45
+ id: string;
46
+ created: string;
47
+ display_name: string;
48
+ reference: string;
49
+ logo?: string;
50
+ };
79
51
  feature_version?: string;
80
52
  id: string;
81
53
  legacy_id: string;
@@ -89,7 +61,7 @@ export interface TerminalInfo {
89
61
  platform?: {
90
62
  brand: {
91
63
  id: string;
92
- logo: string;
64
+ logo?: string;
93
65
  name: {
94
66
  text: string;
95
67
  lang: string;
@@ -107,10 +79,26 @@ export interface TerminalInfo {
107
79
  wallet?: {
108
80
  id: string;
109
81
  };
110
- device?: {
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: {
111
92
  id: string;
112
- created: string;
113
- display_name: string;
93
+ legacy_id: string;
94
+ brand: {
95
+ id: string;
96
+ name: {
97
+ lang: string;
98
+ text: string;
99
+ }[];
100
+ logo: string;
101
+ };
114
102
  };
115
103
  }
116
104
  export {};
@@ -19,8 +19,8 @@ export declare type ExpressCreateAccountBody = {
19
19
  declare const accountService: {
20
20
  createAccount: (data: CreateAccountBody) => Promise<any>;
21
21
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
22
- checkAccountAvailability: (individualId: string) => Promise<any>;
23
- checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
22
+ checkAccountAvailability: (individualId: string, authSession?: string) => Promise<any>;
23
+ checkAccountAvailabilityStatus: (individualId: string, authSession?: string) => Promise<any>;
24
24
  checkMigrationStatus: (jobId: string) => Promise<any>;
25
25
  };
26
26
  export { accountService };
@@ -1,5 +1,6 @@
1
1
  import { ENDPOINT_PATHS } from '../constants';
2
2
  import { httpClient } from './axios';
3
+ import { getAuthHeaders } from './headers';
3
4
  var createAccount = function (data) {
4
5
  return httpClient({
5
6
  method: 'post',
@@ -14,16 +15,18 @@ var expressCreateAccount = function (data) {
14
15
  data: data
15
16
  });
16
17
  };
17
- var checkAccountAvailability = function (individualId) {
18
+ var checkAccountAvailability = function (individualId, authSession) {
18
19
  return httpClient({
19
20
  method: 'get',
20
- url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts")
21
+ url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts"),
22
+ headers: getAuthHeaders(authSession)
21
23
  });
22
24
  };
23
- var checkAccountAvailabilityStatus = function (individualId) {
25
+ var checkAccountAvailabilityStatus = function (individualId, authSession) {
24
26
  return httpClient({
25
27
  method: 'get',
26
- url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts?data=status")
28
+ url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts?data=status"),
29
+ headers: getAuthHeaders(authSession)
27
30
  });
28
31
  };
29
32
  var checkMigrationStatus = function (jobId) {
@@ -18,12 +18,18 @@ 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
+ };
27
33
  };
28
34
  export declare type CreateAuthBody = {
29
35
  country: string;
@@ -128,7 +134,7 @@ export declare type getExpressTokenVerifyParams = {
128
134
  export declare type ConfigBody = Pick<ConfigInfo, 'scope' | 'data' | 'lead' | 'board' | 'interface' | 'redirect' | 'post'>;
129
135
  declare const authService: {
130
136
  createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: AxiosRequestConfig) => Promise<any>;
131
- verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
137
+ verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody) => Promise<any>;
132
138
  createPassword: (data: CreatePasswordBody) => Promise<any>;
133
139
  verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
134
140
  getVerifyAuth: (token: string, config?: AxiosRequestConfig) => Promise<any>;
package/build/api/auth.js CHANGED
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import instance, { httpClient } from './axios';
12
+ import { httpClient } from './axios';
13
13
  import { ENDPOINT_PATHS } from '../constants';
14
14
  var createAuth = function (data, config) {
15
15
  return httpClient(__assign({ method: 'post', url: "".concat(ENDPOINT_PATHS.AUTH), data: data }, config));
@@ -17,8 +17,12 @@ var createAuth = function (data, config) {
17
17
  var createExpressAuth = function (data, config) {
18
18
  return httpClient(__assign({ method: 'post', url: "".concat(ENDPOINT_PATHS.CREATE_EXPRESS_AUTH_PATH), data: data }, config));
19
19
  };
20
- var verifyAuth = function (data, config) {
21
- return instance.put("".concat(ENDPOINT_PATHS.AUTH), data, config);
20
+ var verifyAuth = function (data) {
21
+ return httpClient({
22
+ method: 'put',
23
+ url: "".concat(ENDPOINT_PATHS.AUTH),
24
+ data: data
25
+ });
22
26
  };
23
27
  var createPassword = function (data) {
24
28
  return httpClient({
@@ -2,6 +2,6 @@ import { AxiosRequestConfig } from 'axios';
2
2
  declare const instance: import("axios").AxiosInstance;
3
3
  export declare const setAxiosGlobalHeaders: (headers: Record<string, string>) => void;
4
4
  export declare const removeAxiosGlobalHeaders: (arr: Array<string>) => void;
5
- export declare const getAxiosHeaders: () => import("axios").AxiosRequestHeaders;
5
+ export declare const getAxiosHeaders: () => Record<string, any>;
6
6
  export declare const httpClient: (config: AxiosRequestConfig) => Promise<any>;
7
7
  export default instance;
@@ -133,6 +133,9 @@ export declare type CreateEntityBody = {
133
133
  license: {
134
134
  number: string;
135
135
  type: string;
136
+ additional_info?: {
137
+ unified_number: string;
138
+ };
136
139
  };
137
140
  country: string;
138
141
  is_licensed?: boolean;
@@ -0,0 +1,5 @@
1
+ export declare const getAuthHeaders: (authSession?: string) => {
2
+ st: string;
3
+ } | {
4
+ st?: undefined;
5
+ };
@@ -0,0 +1,3 @@
1
+ export var getAuthHeaders = function (authSession) {
2
+ return authSession ? { st: authSession } : {};
3
+ };
@@ -21,7 +21,7 @@ declare const API: {
21
21
  };
22
22
  operatorService: {
23
23
  validateOperator: (body: ValidateOperatorBody) => Promise<any>;
24
- confirm: (data: ConfirmBody) => Promise<any>;
24
+ confirm: (data: ConfirmBody, authSession?: string) => Promise<any>;
25
25
  };
26
26
  countryService: {
27
27
  getCountries: (disableCountries?: boolean | undefined) => Promise<any> | {
@@ -32,7 +32,7 @@ declare const API: {
32
32
  };
33
33
  authService: {
34
34
  createAuth: (data: CreateAuthBody | CreateKYCAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
35
- verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
35
+ verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody) => Promise<any>;
36
36
  createPassword: (data: CreatePasswordBody) => Promise<any>;
37
37
  verifyExpressAuth: (data: VerifyAuthExpressOTPBody) => Promise<any>;
38
38
  getVerifyAuth: (token: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
@@ -91,8 +91,8 @@ declare const API: {
91
91
  accountService: {
92
92
  createAccount: (data: CreateAccountBody) => Promise<any>;
93
93
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
94
- checkAccountAvailability: (individualId: string) => Promise<any>;
95
- checkAccountAvailabilityStatus: (individualId: string) => Promise<any>;
94
+ checkAccountAvailability: (individualId: string, authSession?: string | undefined) => Promise<any>;
95
+ checkAccountAvailabilityStatus: (individualId: string, authSession?: string | undefined) => Promise<any>;
96
96
  checkMigrationStatus: (jobId: string) => Promise<any>;
97
97
  };
98
98
  dataService: {
@@ -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>;
170
169
  unlinkTerminalDevice: ({ deviceId, ...payload }: UnlinkTerminalDeviceProps) => Promise<any>;
171
- retrieveTerminalList: (merchantIds: string[]) => Promise<any>;
170
+ retrieveTerminalList: (merchants: string[], getTerminalDevice?: boolean) => Promise<any>;
171
+ retrievePOSDevices: (merchants: 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 };
@@ -49,6 +49,7 @@ export declare type UpdateLeadBody = {
49
49
  entity?: {
50
50
  id: string;
51
51
  };
52
+ unified_number?: string;
52
53
  name?: Name;
53
54
  contact?: Contact;
54
55
  send_invite?: boolean;
@@ -17,6 +17,6 @@ export declare type ConfirmBody = {
17
17
  };
18
18
  declare const operatorService: {
19
19
  validateOperator: (body: ValidateOperatorBody) => Promise<any>;
20
- confirm: (data: ConfirmBody) => Promise<any>;
20
+ confirm: (data: ConfirmBody, authSession?: string) => Promise<any>;
21
21
  };
22
22
  export { operatorService };
@@ -36,6 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  };
37
37
  import { ENDPOINT_PATHS } from '../constants';
38
38
  import { httpClient } from './axios';
39
+ import { getAuthHeaders } from './headers';
39
40
  var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0, function () {
40
41
  var data, error_1;
41
42
  return __generator(this, function (_a) {
@@ -59,11 +60,13 @@ var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0
59
60
  }
60
61
  });
61
62
  }); };
62
- var confirm = function (data) {
63
+ var confirm = function (data, authSession) {
64
+ if (authSession === void 0) { authSession = ''; }
63
65
  return httpClient({
64
66
  method: 'post',
65
67
  url: "".concat(ENDPOINT_PATHS.CONNECT, "/confirm"),
66
- data: data
68
+ data: data,
69
+ headers: getAuthHeaders(authSession)
67
70
  });
68
71
  };
69
72
  var operatorService = {
@@ -9,10 +9,7 @@ export interface GenerateAuthLinkNewTerminalProps {
9
9
  export interface UnlinkTerminalDeviceProps {
10
10
  deviceId: string;
11
11
  initiator: string;
12
- terminal: {
13
- id: string;
14
- };
15
- merchant: {
12
+ device: {
16
13
  id: string;
17
14
  };
18
15
  }
@@ -21,8 +18,8 @@ export interface LinkTerminalDeviceProps {
21
18
  action: string;
22
19
  }
23
20
  declare const terminalService: {
24
- retrieveTerminalDeviceList: (merchants: string[]) => Promise<any>;
25
21
  unlinkTerminalDevice: ({ deviceId, ...payload }: UnlinkTerminalDeviceProps) => Promise<any>;
26
- retrieveTerminalList: (merchantIds: string[]) => Promise<any>;
22
+ retrieveTerminalList: (merchants: string[], getTerminalDevice?: boolean) => Promise<any>;
23
+ retrievePOSDevices: (merchants: string[]) => Promise<any>;
27
24
  };
28
25
  export { terminalService };
@@ -1,3 +1,14 @@
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
+ };
1
12
  var __rest = (this && this.__rest) || function (s, e) {
2
13
  var t = {};
3
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -11,21 +22,20 @@ var __rest = (this && this.__rest) || function (s, e) {
11
22
  };
12
23
  import { ENDPOINT_PATHS } from '../constants';
13
24
  import { httpClient } from './axios';
14
- var retrieveTerminalDeviceList = function (merchants) {
25
+ var retrieveTerminalList = function (merchants, getTerminalDevice) {
26
+ if (getTerminalDevice === void 0) { getTerminalDevice = true; }
15
27
  return httpClient({
16
28
  method: 'post',
17
- url: "".concat(ENDPOINT_PATHS.TERMINAL, "/device/list"),
18
- data: {
19
- merchants: merchants
20
- }
21
- }).catch(function () { });
29
+ url: "".concat(ENDPOINT_PATHS.TERMINAL, "/list"),
30
+ data: __assign({ merchants: merchants }, (getTerminalDevice && { terminal_device: true }))
31
+ });
22
32
  };
23
- var retrieveTerminalList = function (merchantIds) {
33
+ var retrievePOSDevices = function (merchants) {
24
34
  return httpClient({
25
35
  method: 'post',
26
- url: "".concat(ENDPOINT_PATHS.TERMINAL, "/list"),
36
+ url: "".concat(ENDPOINT_PATHS.MERCHANT, "/pos/device/list"),
27
37
  data: {
28
- merchant_id: merchantIds
38
+ merchants: merchants
29
39
  }
30
40
  });
31
41
  };
@@ -33,13 +43,13 @@ var unlinkTerminalDevice = function (_a) {
33
43
  var deviceId = _a.deviceId, payload = __rest(_a, ["deviceId"]);
34
44
  return httpClient({
35
45
  method: 'put',
36
- url: "".concat(ENDPOINT_PATHS.TERMINAL, "/device/").concat(deviceId, "/unlink"),
46
+ url: "".concat(ENDPOINT_PATHS.TERMINAL, "/").concat(deviceId, "/unlink"),
37
47
  data: payload
38
48
  });
39
49
  };
40
50
  var terminalService = {
41
- retrieveTerminalDeviceList: retrieveTerminalDeviceList,
42
51
  unlinkTerminalDevice: unlinkTerminalDevice,
43
- retrieveTerminalList: retrieveTerminalList
52
+ retrieveTerminalList: retrieveTerminalList,
53
+ retrievePOSDevices: retrievePOSDevices
44
54
  };
45
55
  export { terminalService };
@@ -23,6 +23,6 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  var AEDSymbol = function (_a) {
25
25
  var _b = _a.height, height = _b === void 0 ? 10 : _b, svgProps = __rest(_a, ["height"]);
26
- return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 344.84 299.91' }, svgProps, { children: _jsx("path", { d: 'M342.14,140.96l2.7,2.54v-7.72c0-17-11.92-30.84-26.56-30.84h-23.41C278.49,36.7,222.69,0,139.68,0c-52.86,0-59.65,0-109.71,0,0,0,15.03,12.63,15.03,52.4v52.58h-27.68c-5.38,0-10.43-2.08-14.61-6.01l-2.7-2.54v7.72c0,17.01,11.92,30.84,26.56,30.84h18.44s0,29.99,0,29.99h-27.68c-5.38,0-10.43-2.07-14.61-6.01l-2.7-2.54v7.71c0,17,11.92,30.82,26.56,30.82h18.44s0,54.89,0,54.89c0,38.65-15.03,50.06-15.03,50.06h109.71c85.62,0,139.64-36.96,155.38-104.98h32.46c5.38,0,10.43,2.07,14.61,6l2.7,2.54v-7.71c0-17-11.92-30.83-26.56-30.83h-18.9c.32-4.88.49-9.87.49-15s-.18-10.11-.51-14.99h28.17c5.37,0,10.43,2.07,14.61,6.01ZM89.96,15.01h45.86c61.7,0,97.44,27.33,108.1,89.94l-153.96.02V15.01ZM136.21,284.93h-46.26v-89.98l153.87-.02c-9.97,56.66-42.07,88.38-107.61,90ZM247.34,149.96c0,5.13-.11,10.13-.34,14.99l-157.04.02v-29.99l157.05-.02c.22,4.84.33,9.83.33,15Z' }) })) })));
26
+ return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 344.84 299.91', style: { display: 'inline' } }, svgProps, { children: _jsx("path", { d: 'M342.14,140.96l2.7,2.54v-7.72c0-17-11.92-30.84-26.56-30.84h-23.41C278.49,36.7,222.69,0,139.68,0c-52.86,0-59.65,0-109.71,0,0,0,15.03,12.63,15.03,52.4v52.58h-27.68c-5.38,0-10.43-2.08-14.61-6.01l-2.7-2.54v7.72c0,17.01,11.92,30.84,26.56,30.84h18.44s0,29.99,0,29.99h-27.68c-5.38,0-10.43-2.07-14.61-6.01l-2.7-2.54v7.71c0,17,11.92,30.82,26.56,30.82h18.44s0,54.89,0,54.89c0,38.65-15.03,50.06-15.03,50.06h109.71c85.62,0,139.64-36.96,155.38-104.98h32.46c5.38,0,10.43,2.07,14.61,6l2.7,2.54v-7.71c0-17-11.92-30.83-26.56-30.83h-18.9c.32-4.88.49-9.87.49-15s-.18-10.11-.51-14.99h28.17c5.37,0,10.43,2.07,14.61,6.01ZM89.96,15.01h45.86c61.7,0,97.44,27.33,108.1,89.94l-153.96.02V15.01ZM136.21,284.93h-46.26v-89.98l153.87-.02c-9.97,56.66-42.07,88.38-107.61,90ZM247.34,149.96c0,5.13-.11,10.13-.34,14.99l-157.04.02v-29.99l157.05-.02c.22,4.84.33,9.83.33,15Z' }) })) })));
27
27
  };
28
28
  export default AEDSymbol;
@@ -23,6 +23,6 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  var SARSymbol = function (_a) {
25
25
  var _b = _a.height, height = _b === void 0 ? 10 : _b, svgProps = __rest(_a, ["height"]);
26
- return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 1124.14 1256.39' }, svgProps, { children: _jsx("path", { d: 'M699.62 1113.02a460.24 460.24 0 0 0-38.4 143.37l424.51-90.24a460.44 460.44 0 0 0 38.4-143.37l-424.51 90.24zM1085.73 895.8a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.33v-135.2l292.27-62.11a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.27V66.13a466.56 466.56 0 0 0-132.25 110.99v403.35l-132.25 28.11V0A466.4 466.4 0 0 0 396.7 110.99v525.69l-295.92 62.88a460.46 460.46 0 0 0-38.42 143.37l334.33-71.05v170.26l-358.3 76.14a460.16 460.16 0 0 0-38.4 143.37l375.03-79.7a119.13 119.13 0 0 0 73.83-49.24l68.78-101.97v-.02a65.72 65.72 0 0 0 11.3-36.97V743.77l132.25-28.11v270.4l424.53-90.28z' }) })) })));
26
+ return (_jsx("span", __assign({ style: { padding: '0 2px' } }, { children: _jsx("svg", __assign({ xmlns: 'http://www.w3.org/2000/svg', height: height, fill: 'currentColor', viewBox: '0 0 1124.14 1256.39', style: { display: 'inline' } }, svgProps, { children: _jsx("path", { d: 'M699.62 1113.02a460.24 460.24 0 0 0-38.4 143.37l424.51-90.24a460.44 460.44 0 0 0 38.4-143.37l-424.51 90.24zM1085.73 895.8a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.33v-135.2l292.27-62.11a460.16 460.16 0 0 0 38.4-143.37l-330.68 70.27V66.13a466.56 466.56 0 0 0-132.25 110.99v403.35l-132.25 28.11V0A466.4 466.4 0 0 0 396.7 110.99v525.69l-295.92 62.88a460.46 460.46 0 0 0-38.42 143.37l334.33-71.05v170.26l-358.3 76.14a460.16 460.16 0 0 0-38.4 143.37l375.03-79.7a119.13 119.13 0 0 0 73.83-49.24l68.78-101.97v-.02a65.72 65.72 0 0 0 11.3-36.97V743.77l132.25-28.11v270.4l424.53-90.28z' }) })) })));
27
27
  };
28
28
  export default SARSymbol;
@@ -393,6 +393,7 @@
393
393
  "loading": "تحميل...",
394
394
  "loading_bank_statement": "تحميل.......",
395
395
  "login_to_dashboard": "تسجيل الدخول لادارة الحساب",
396
+ "login_with_passcode": "تسجيل الدخول باستخدام رمز المرور",
396
397
  "mail_btn_open_title": "افتح البريد الإلكتروني",
397
398
  "marital_status": "الحالة الزوجية",
398
399
  "masking_symbols": "•••",
@@ -459,6 +460,8 @@
459
460
  "paci_verify_loading": "إحضار التفاصيل",
460
461
  "paci_verify_loading_desc": "الرجاء التحلي بالصبر حتى التحقق من التفاصيل",
461
462
  "paci_waiting_title": "Please wait we are verifying",
463
+ "passcode_required": "الرجاء إدخال رمز المرور المطلوب",
464
+ "passcode_title": "الرجاء إدخال رمز المرور الخاص بك",
462
465
  "password_flow_completed": "إعادة تعيين كلمة المرور",
463
466
  "password_flow_pending": "إعداد كلمة المرور",
464
467
  "password_flow_title": "إعداد كلمة المرور",
@@ -535,7 +538,7 @@
535
538
  "share_value_hint": "0000",
536
539
  "share_value_input_label": "قيمة السهم",
537
540
  "share_value_label": "قيمة السهم ({{currency}})",
538
- "share_value_input_label": "قيمة السهم",
541
+ "sign_in_with_otp": "تسجيل الدخول باستخدام رمز التحقق (OTP)",
539
542
  "sign_up": "Sign up",
540
543
  "signed_up": "تسجيل الدخول",
541
544
  "signin_email_label": "البريد الألكتروني",
@@ -567,6 +570,7 @@
567
570
  "signup_welcoming": "مرحبًا {{username}} ،",
568
571
  "signup_welcoming_hi": "مرحبا,",
569
572
  "social_media_label": "وسائل التواصل الاجتماعي",
573
+ "something_went_wrong": "حدث خطأ. يرجى المحاولة لاحقاً",
570
574
  "source_country_label": "الدولة",
571
575
  "start_with_number": "هل يمكنك التحقق من رقم الجوال الذي تم إدخاله. (ملاحظة - يبدأ رقم الجوال بـ 5 أو 05)",
572
576
  "step_required_by_rayah": "هذه الخطوة مطلوبة لبدء التحقق مع خدمة يقين من شركة علم",
@@ -659,6 +663,10 @@
659
663
  "update_later": "سأقوم بالتحديث لاحقاً",
660
664
  "update_mobile_number": "تحديث رقم الجوال",
661
665
  "uploaded_file": "file",
666
+ "v1_add_unified_number": "أضف الرقم الموحد",
667
+ "v1_company_unified_number_description": "يمكنك العثور على الرقم الموحد لشركتك في الزاوية العلوية اليسرى من شهادة تسجيل الشركة.",
668
+ "v1_company_unified_number_hint": "700xxxxxxx",
669
+ "v1_company_unified_number_label": "الرقم الموحد للشركة",
662
670
  "vat_id": "رقم الضريبي المميز",
663
671
  "vat_id_placeholder": "00000000",
664
672
  "verification_brand_name": "الاسم التجاري",
@@ -676,9 +684,5 @@
676
684
  "year": "السنة",
677
685
  "yes": "نعم",
678
686
  "your_brand_details": "تفاصيل علامتك التجارية",
679
- "يرجى التحقق من اسم تطبيق ابل": "",
680
- "passcode_title": "الرجاء إدخال رمز المرور الخاص بك",
681
- "sign_in_with_otp": "تسجيل الدخول باستخدام رمز التحقق (OTP)",
682
- "passcode_required": "الرجاء إدخال رمز المرور المطلوب",
683
- "login_with_passcode": "تسجيل الدخول باستخدام رمز المرور"
687
+ "يرجى التحقق من اسم تطبيق ابل": ""
684
688
  }
@@ -339,7 +339,7 @@
339
339
  "iban_input_placeholder": "{{countrycode}}44#################0",
340
340
  "id_placeholder": 2345566666,
341
341
  "ide_not_valid_url": "May you please verify the entered website address.",
342
- "ide_opt_sent_title": "A One Time Passcode (OTP) has been be sent to mobile number",
342
+ "ide_opt_sent_title": "A One Time Passcode (OTP) has been sent to mobile number",
343
343
  "ide_otp_resend_label": "Resend OTP",
344
344
  "ide_otp_waiting_title": "Please be patient as we are processing... ",
345
345
  "ide_registered_mobile_status_message": "Registered mobile ",
@@ -396,6 +396,7 @@
396
396
  "kyc_token_invalid": "May you please verify link of which you are trying to open.",
397
397
  "kyc_users_description": "Please select an authorized registered ID to approve with {{provider}}",
398
398
  "kyc_verification": "Know Your Customer (KYC)",
399
+ "kyc_privacy_policy": "Privacy Policy",
399
400
  "language": "العربية",
400
401
  "license_info": "License information",
401
402
  "license_name_hint": "Enter legal name",
@@ -408,6 +409,7 @@
408
409
  "loading": "Loading...",
409
410
  "loading_bank_statement": "loading....",
410
411
  "login_to_dashboard": "Login to dashboard",
412
+ "login_with_passcode": "Login with Passcode",
411
413
  "mail_btn_open_title": "Open Mail",
412
414
  "marital_status": "Marital status",
413
415
  "masking_symbols": "•••",
@@ -456,7 +458,7 @@
456
458
  "other": "other",
457
459
  "otp_authentication": "Authentication",
458
460
  "otp_authentication_description": "Verify with OTP for a Hassle-Free Experience",
459
- "otp_email_sent_title": "A One Time Passcode (OTP) has been be sent to your email ",
461
+ "otp_email_sent_title": "A One Time Passcode (OTP) has been sent to your email ",
460
462
  "otp_min_length": "Please enter the 6 digit OTP",
461
463
  "otp_provider": "Absher",
462
464
  "otp_required": "Please enter the required OTP",
@@ -475,6 +477,8 @@
475
477
  "paci_verify_loading": "Fetching Details",
476
478
  "paci_verify_loading_desc": "Please be patient until verify details",
477
479
  "paci_waiting_title": "Please wait we are verifying",
480
+ "passcode_required": "Please enter the required Passcode",
481
+ "passcode_title": "Please enter your passcode",
478
482
  "password_flow_completed": "Reset my password",
479
483
  "password_flow_pending": "Setup my password",
480
484
  "password_flow_title": "Setup your password",
@@ -557,7 +561,7 @@
557
561
  "share_value_hint": "0000",
558
562
  "share_value_input_label": "Share Value",
559
563
  "share_value_label": "Share Value ({{currency}})",
560
- "share_value_input_label": "Share Value",
564
+ "sign_in_with_otp": "Sign in with OTP",
561
565
  "sign_up": "Sign up",
562
566
  "signed_up": "Signed up",
563
567
  "signin_email_label": "Email address",
@@ -589,6 +593,7 @@
589
593
  "signup_welcoming": "Hello {{username}},",
590
594
  "signup_welcoming_hi": "Hello,",
591
595
  "social_media_label": "Social Media",
596
+ "something_went_wrong": "Something went wrong. Please try again later",
592
597
  "start_with_number": "May you please verify the entered mobile. (Note - mobile numbers start with 5 or 05",
593
598
  "step_required_by_rayah": "This step is required in order to initiate a verification with Yaqeen service from Elm.",
594
599
  "subtitle_drop": "choose file",
@@ -687,6 +692,10 @@
687
692
  "upload_bank_statement": "Please upload the bank statement",
688
693
  "upload_file": "Select a file from your computer",
689
694
  "uploaded_file": "file",
695
+ "v1_add_unified_number": "Add a Unified Number",
696
+ "v1_company_unified_number_description": "You can find your Company Unified Number in the top-left corner of your Company Registration Certificate.",
697
+ "v1_company_unified_number_hint": "700xxxxxxx",
698
+ "v1_company_unified_number_label": "Company unified number",
690
699
  "vat_id": "Tax Identification Number (TIN)",
691
700
  "vat_id_placeholder": "000000000",
692
701
  "verification_brand_name": "Brand name",
@@ -703,9 +712,5 @@
703
712
  "website_label": "Website",
704
713
  "year": "Year",
705
714
  "yes": "Yes",
706
- "your_brand_details": "Your brand details",
707
- "passcode_title": "Please enter your passcode",
708
- "sign_in_with_otp": "Sign in with OTP",
709
- "passcode_required": "Please enter the required Passcode",
710
- "login_with_passcode": "Login with Passcode"
715
+ "your_brand_details": "Your brand details"
711
716
  }
@@ -12,7 +12,8 @@ export interface DeviceCardProps extends CardProps {
12
12
  loading?: boolean;
13
13
  arrow?: boolean;
14
14
  endAdornment?: React.ReactNode;
15
+ titleSx?: React.CSSProperties;
15
16
  }
16
- export declare const DeviceCard: ({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, ...rest }: DeviceCardProps) => JSX.Element;
17
- declare const _default: React.MemoExoticComponent<({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, ...rest }: DeviceCardProps) => JSX.Element>;
17
+ export declare const DeviceCard: ({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, titleSx, ...rest }: DeviceCardProps) => JSX.Element;
18
+ declare const _default: React.MemoExoticComponent<({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, titleSx, ...rest }: DeviceCardProps) => JSX.Element>;
18
19
  export default _default;