@tap-payments/auth-jsconnect 2.12.3 → 2.12.4

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.
package/README.md CHANGED
@@ -20,12 +20,17 @@ yarn add @tap-payments/auth-jsconnect
20
20
 
21
21
  ## Features
22
22
 
23
- - [Connect](#Connect)
24
- - [Business](#Business)
25
- - [Password](#Password)
26
- - [Individual](#Individual)
27
- - [Bank](#Bank)
28
- - [Tax](#Tax)
23
+ - [Connect](#Connect) - Create a new account with Tap Payments
24
+ - [ConnectExpress](#ConnectExpress) - Simplified connect flow
25
+ - [Business](#Business) - Business entity onboarding and verification
26
+ - [Individual](#Individual) - Individual entity onboarding and verification
27
+ - [Entity](#Entity) - Entity management and verification
28
+ - [Password](#Password) - Password management and recovery
29
+ - [Bank](#Bank) - Bank account management
30
+ - [Tax](#Tax) - Tax information management
31
+ - [Terminal](#Terminal) - Terminal kit for point-of-sale operations
32
+ - [Auth](#Auth) - Authentication module
33
+ - [KYC](#KYC) - Know Your Customer verification
29
34
 
30
35
  ## Examples
31
36
 
@@ -135,17 +140,48 @@ const App = () => {
135
140
  ```
136
141
 
137
142
  ## Connect
138
- - Help our merchants to create a account with Tap Payments
143
+ - Help merchants create an account with Tap Payments
139
144
 
140
- ## Business
145
+ ## ConnectExpress
146
+ - Streamlined onboarding flow with simplified user experience
141
147
 
142
- ## Password
148
+ ## Business
149
+ - Business entity registration and verification
150
+ - License number validation
151
+ - Support for creating new sessions after expiry
143
152
 
144
153
  ## Individual
154
+ - Individual entity registration and verification
155
+ - Arabic name validation (English names only accepted)
156
+ - Support for creating new sessions after expiry
157
+
158
+ ## Entity
159
+ - Entity information management
160
+ - Frontend-editable fields even when non-editable from backend
161
+ - Entity verification workflows
162
+
163
+ ## Password
164
+ - Password management and recovery
165
+ - Session expiry handling with new session creation support
145
166
 
146
167
  ## Bank
168
+ - Bank account information management and verification
147
169
 
148
170
  ## Tax
171
+ - Tax identification and information management
172
+ - Support for creating new sessions after expiry
173
+ - UNN Collection logic improvements
174
+
175
+ ## Terminal
176
+ - Point-of-sale terminal operations
177
+ - Session expiry management with new session creation support
178
+ - Hotfix for improved session handling
179
+
180
+ ## Auth
181
+ - Core authentication module for the library
182
+
183
+ ## KYC
184
+ - Know Your Customer verification processes
149
185
 
150
186
  ```
151
187
 
@@ -164,4 +200,18 @@ const App = () => {
164
200
  | onFlowCompleted `required` - `function` | callback function will called after completing the flow |
165
201
  | onReady `required` - `function` | callback function will call after loading library configuration |
166
202
  | onStepError `required` - `function` | callback function will call in case if any error happened in the screen |
167
- | onStepStarted `required` - `function` | callback function will call in the begging of each step |
203
+ | onStepCompleted `optional` - `function` | callback function will call after completing each step |
204
+ | onStepStarted `required` - `function` | callback function will call in the beginning of each step |
205
+
206
+ ## Branch Information
207
+
208
+ This repository maintains multiple branches for different environments and stages:
209
+
210
+ | Branch | Purpose | Environment |
211
+ | ------------- | ------------------------------ | ----------- |
212
+ | `main` | Production releases | Production |
213
+ | `beta` | Beta features and testing | Beta |
214
+ | `sandbox` | Sandbox environment testing | Sandbox |
215
+ | `development` | Development features and fixes | Development |
216
+
217
+ **Workflow**: `development` → `sandbox` → `beta` → `main` (production)
@@ -14,8 +14,8 @@ export declare type CheckIBanBody = {
14
14
  encryption_contract?: Array<string>;
15
15
  };
16
16
  declare const availabilityServices: {
17
- checkEmail: (data: CheckEmailBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
18
- checkBrand: (data: CheckBrandBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
19
- checkIbanBank: (data: CheckIBanBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
17
+ checkEmail: (data: CheckEmailBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
18
+ checkBrand: (data: CheckBrandBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
19
+ checkIbanBank: (data: CheckIBanBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
20
20
  };
21
21
  export default availabilityServices;
@@ -20,6 +20,6 @@ export interface DocumentBody {
20
20
  declare const documentService: {
21
21
  updateDocumentInfo: (data: DocumentUpdateBody) => Promise<any>;
22
22
  addFilesToExistingDocument: ({ id, ...data }: DocumentBody) => Promise<any>;
23
- removeFilesFromDocument: ({ id, ...data }: DocumentBody) => Promise<import("axios").AxiosResponse<any, any>>;
23
+ removeFilesFromDocument: ({ id, ...data }: DocumentBody) => Promise<import("axios").AxiosResponse<any, any, {}>>;
24
24
  };
25
25
  export { documentService };
@@ -142,11 +142,11 @@ export declare type CreateEntityBody = {
142
142
  };
143
143
  };
144
144
  declare const entityService: {
145
- createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
145
+ createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
146
146
  updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
147
147
  createBankAccount: (data: EntityBankUpdateBody) => Promise<any>;
148
148
  retrieveBankAccount: (id: string) => Promise<any>;
149
- retrieveEntityInfo: (entity_id: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
149
+ retrieveEntityInfo: (entity_id: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
150
150
  updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
151
151
  retrieveEntity: (entity_id: string) => Promise<any>;
152
152
  updateEntity: ({ id, ...data }: UpdateEntityBody) => Promise<any>;
@@ -7,8 +7,8 @@ export declare type UploadFileBody = {
7
7
  type?: string;
8
8
  };
9
9
  declare const fileService: {
10
- uploadFile: (data: UploadFileBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
10
+ uploadFile: (data: UploadFileBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
11
11
  uploadFileInfo: (data: UploadFileBody, config?: AxiosRequestConfig) => Promise<any>;
12
- downloadFile: (id: string, name: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
12
+ downloadFile: (id: string, name: string, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
13
13
  };
14
14
  export { fileService };
@@ -47,26 +47,26 @@ declare const API: {
47
47
  generateConfigToken: (body: ConfigBody) => Promise<any>;
48
48
  };
49
49
  leadService: {
50
- createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
50
+ createLead: (data: CreateLeadBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
51
51
  updateLead: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
52
- retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
52
+ retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any, {}>>;
53
53
  getLeadById: (leadId: string) => Promise<any>;
54
- verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
54
+ verifyLeadToken: (data: LeadVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
55
55
  verifyToken: (data: LeadVerifyBody) => Promise<any>;
56
- verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
56
+ verifyLeadOTP: (data: LeadOTPVerifyBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
57
57
  verifyTokenOTP: (data: LeadOTPVerifyBody) => Promise<any>;
58
- retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
58
+ retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any, {}>>;
59
59
  retrieveLeadIdentity: (leadId: string) => Promise<any>;
60
60
  updateLeadExpress: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
61
61
  verifyExpressLeadToken: (data: ExpressLeadVerifyBody) => Promise<any>;
62
62
  createVerifyTokenByBoardId: (data: import("./lead").CreateVerifyTokenBody) => Promise<any>;
63
63
  };
64
64
  entityService: {
65
- createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
65
+ createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
66
66
  updateEntityInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
67
67
  createBankAccount: (data: EntityBankUpdateBody) => Promise<any>;
68
68
  retrieveBankAccount: (id: string) => Promise<any>;
69
- retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
69
+ retrieveEntityInfo: (entity_id: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
70
70
  updateIndividualInfo: ({ id, ...data }: EntityInfoBody) => Promise<any>;
71
71
  retrieveEntity: (entity_id: string) => Promise<any>;
72
72
  updateEntity: ({ id, ...data }: UpdateEntityBody) => Promise<any>;
@@ -82,9 +82,9 @@ declare const API: {
82
82
  createEntity: (data: CreateEntityBody) => Promise<any>;
83
83
  };
84
84
  availabilityServices: {
85
- checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
86
- checkBrand: (data: CheckBrandBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
87
- checkIbanBank: (data: import("./availabilityServices").CheckIBanBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
85
+ checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
86
+ checkBrand: (data: CheckBrandBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
87
+ checkIbanBank: (data: import("./availabilityServices").CheckIBanBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
88
88
  };
89
89
  firebaseService: {
90
90
  getLocale: (disableLocale?: boolean | undefined) => Promise<any>;
@@ -154,14 +154,14 @@ declare const API: {
154
154
  removeBrandActivity: ({ id, ...data }: RemoveBrandActivity) => Promise<any>;
155
155
  };
156
156
  fileService: {
157
- uploadFile: (data: UploadFileBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
157
+ uploadFile: (data: UploadFileBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
158
158
  uploadFileInfo: (data: UploadFileBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
159
- downloadFile: (id: string, name: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
159
+ downloadFile: (id: string, name: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any, {}>>;
160
160
  };
161
161
  documentService: {
162
162
  updateDocumentInfo: (data: DocumentUpdateBody) => Promise<any>;
163
163
  addFilesToExistingDocument: ({ id, ...data }: DocumentBody) => Promise<any>;
164
- removeFilesFromDocument: ({ id, ...data }: DocumentBody) => Promise<import("axios").AxiosResponse<any, any>>;
164
+ removeFilesFromDocument: ({ id, ...data }: DocumentBody) => Promise<import("axios").AxiosResponse<any, any, {}>>;
165
165
  };
166
166
  initService: {
167
167
  getInitialData: (body: InitBody) => Promise<any>;
@@ -117,15 +117,15 @@ export declare type LeadIdentityUpdateBody = {
117
117
  encryption_contract: Array<string>;
118
118
  };
119
119
  declare const leadService: {
120
- createLead: (data: CreateLeadBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
120
+ createLead: (data: CreateLeadBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
121
121
  updateLead: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
122
- retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
122
+ retrieveLead: (leadId: string) => Promise<import("axios").AxiosResponse<any, any, {}>>;
123
123
  getLeadById: (leadId: string) => Promise<any>;
124
- verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
124
+ verifyLeadToken: (data: LeadVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
125
125
  verifyToken: (data: LeadVerifyBody) => Promise<any>;
126
- verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
126
+ verifyLeadOTP: (data: LeadOTPVerifyBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any, {}>>;
127
127
  verifyTokenOTP: (data: LeadOTPVerifyBody) => Promise<any>;
128
- retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any>>;
128
+ retrieveEntityList: (leadId: string) => Promise<import("axios").AxiosResponse<any, any, {}>>;
129
129
  retrieveLeadIdentity: (leadId: string) => Promise<any>;
130
130
  updateLeadExpress: ({ id, ...data }: UpdateLeadBody) => Promise<any>;
131
131
  verifyExpressLeadToken: (data: ExpressLeadVerifyBody) => Promise<any>;
@@ -1,7 +1,7 @@
1
1
  var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
2
2
  var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
3
3
  var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
4
- var PRODUCTION_BASE_URL_SA_DR = 'https://connect-mw.tap.com.sa/middleware';
4
+ var PRODUCTION_BASE_URL_SA_DR = 'https://connect-mw-tmp.tap.com.sa/middleware';
5
5
  var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
6
6
  var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
7
7
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.12.3",
3
+ "version": "2.12.4",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",