ggez-banking-sdk 0.1.188 → 0.1.190
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/dist/api/clients/user.d.ts +7 -0
- package/dist/api/clients/user.js +67 -55
- package/dist/api/data/account.d.ts +1 -1
- package/dist/api/data/auth.d.ts +2 -2
- package/dist/api/data/result.d.ts +1 -1
- package/dist/api/data/user/confirmUserSecurity.d.ts +1 -1
- package/dist/api/data/user/forgetSecurityData.d.ts +1 -1
- package/dist/api/data/user/index.d.ts +1 -0
- package/dist/api/data/user/index.js +1 -0
- package/dist/api/data/user/personalInfo.d.ts +1 -1
- package/dist/api/data/user/preferences.d.ts +1 -1
- package/dist/api/data/user/resetUserSecurity.d.ts +1 -1
- package/dist/api/data/user/type.d.ts +3 -0
- package/dist/api/data/user/type.js +9 -0
- package/dist/api/data/user/user.js +1 -1
- package/dist/api/data/user/validateLimitedSecurity.d.ts +1 -1
- package/dist/api/data/user/validateSecurityData.d.ts +1 -1
- package/dist/api/data/user/verifyUserSecurity.d.ts +1 -1
- package/dist/api/services/user.d.ts +40 -39
- package/dist/api/services/user.js +105 -101
- package/dist/constants/constants.d.ts +27 -26
- package/dist/constants/constants.js +27 -26
- package/dist/helper/api/axiosHelper.d.ts +1 -1
- package/dist/helper/api/responseHelper.d.ts +1 -1
- package/dist/helper/api/resultHelper.d.ts +1 -1
- package/dist/helper/cipherHelper.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/api/data/user/index.d.ts +1 -0
- package/dist/types/api/data/user/type.d.ts +5 -0
- package/dist/types/api/data/user/type.js +1 -0
- package/package.json +1 -1
|
@@ -27,47 +27,48 @@ declare class UserService extends BaseService {
|
|
|
27
27
|
getDeviceHistory(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
28
28
|
getActivity(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
29
29
|
createUser(payload: UserData, config: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
30
|
-
createPhone(
|
|
31
|
-
createDevice(
|
|
32
|
-
createIdentification(
|
|
33
|
-
createExternalAuth(
|
|
34
|
-
createEmail(
|
|
35
|
-
createCurrency(
|
|
36
|
-
createCreditCard(
|
|
37
|
-
createBankAccount(
|
|
38
|
-
createAddress(
|
|
39
|
-
createTicket(
|
|
40
|
-
securityAccess(
|
|
41
|
-
uploadDocument(
|
|
42
|
-
confirmSecurityData(
|
|
43
|
-
validateSecurityData(
|
|
44
|
-
verifySecurityData(
|
|
45
|
-
resetSecurityData(
|
|
46
|
-
enrollGoogleAuth(
|
|
47
|
-
activateGoogleAuth(
|
|
48
|
-
deactivateGoogleAuth(
|
|
49
|
-
deleteGoogleAuth(
|
|
50
|
-
updateUser(
|
|
51
|
-
updateSecurity(
|
|
52
|
-
updatePreferences(
|
|
53
|
-
updateDevice(
|
|
54
|
-
logoutDevice(
|
|
55
|
-
updatePhone(
|
|
56
|
-
updatePersonalInfo(
|
|
57
|
-
updateIdentification(
|
|
58
|
-
updateExternalAuth(
|
|
59
|
-
updateEmail(
|
|
60
|
-
updateCreditCard(
|
|
61
|
-
updateBankAccount(
|
|
62
|
-
updateAddress(
|
|
30
|
+
createPhone(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
31
|
+
createDevice(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
32
|
+
createIdentification(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
33
|
+
createExternalAuth(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
34
|
+
createEmail(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
35
|
+
createCurrency(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
36
|
+
createCreditCard(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
37
|
+
createBankAccount(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
38
|
+
createAddress(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
39
|
+
createTicket(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
40
|
+
securityAccess(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
41
|
+
uploadDocument(payload: DocumentData): Promise<import("axios").AxiosResponse<DocumentData, any, {}>>;
|
|
42
|
+
confirmSecurityData(payload: ConfirmUserSecurity): Promise<import("axios").AxiosResponse<ConfirmUserSecurity, any, {}>>;
|
|
43
|
+
validateSecurityData(payload: ValidateUserSecurity): Promise<import("axios").AxiosResponse<ValidateUserSecurity, any, {}>>;
|
|
44
|
+
verifySecurityData(payload: VerifyUserSecurity): Promise<import("axios").AxiosResponse<VerifyUserSecurity, any, {}>>;
|
|
45
|
+
resetSecurityData(payload: ResetUserSecurity): Promise<import("axios").AxiosResponse<ResetUserSecurity, any, {}>>;
|
|
46
|
+
enrollGoogleAuth(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
47
|
+
activateGoogleAuth(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
48
|
+
deactivateGoogleAuth(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
49
|
+
deleteGoogleAuth(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
50
|
+
updateUser(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
51
|
+
updateSecurity(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
52
|
+
updatePreferences(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
53
|
+
updateDevice(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
54
|
+
logoutDevice(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
55
|
+
updatePhone(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
56
|
+
updatePersonalInfo(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
57
|
+
updateIdentification(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
58
|
+
updateExternalAuth(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
59
|
+
updateEmail(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
60
|
+
updateCreditCard(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
61
|
+
updateBankAccount(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
62
|
+
updateAddress(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
63
|
+
updateUserType(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
63
64
|
deleteUser(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
64
65
|
deleteCreditCard(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
65
|
-
deleteAddress(
|
|
66
|
-
deleteDevice(
|
|
67
|
-
deleteBankAccount(
|
|
68
|
-
deleteIdentification(
|
|
69
|
-
deleteEmail(
|
|
70
|
-
deletePhone(
|
|
66
|
+
deleteAddress(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
67
|
+
deleteDevice(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
68
|
+
deleteBankAccount(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
69
|
+
deleteIdentification(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
70
|
+
deleteEmail(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
71
|
+
deletePhone(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
71
72
|
deleteExternalAuth(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
|
|
72
73
|
}
|
|
73
74
|
export { UserService };
|
|
@@ -21,83 +21,83 @@ class UserService extends BaseService {
|
|
|
21
21
|
}
|
|
22
22
|
// #region "GET"
|
|
23
23
|
getUser(userId) {
|
|
24
|
-
const url = this.resolveURL(`/${userId}`);
|
|
24
|
+
const url = this.resolveURL(`/${this.userId}`);
|
|
25
25
|
return this.GET(url);
|
|
26
26
|
}
|
|
27
27
|
getTermsAndConditions(userId) {
|
|
28
|
-
const url = this.resolveURL(`${UserEndpoints.TermsAndConditions}/${userId}`);
|
|
28
|
+
const url = this.resolveURL(`${UserEndpoints.TermsAndConditions}/${this.userId}`);
|
|
29
29
|
return this.GET(url);
|
|
30
30
|
}
|
|
31
31
|
getSecurity(userId) {
|
|
32
|
-
const url = this.resolveURL(`${UserEndpoints.Security}/${userId}`);
|
|
32
|
+
const url = this.resolveURL(`${UserEndpoints.Security}/${this.userId}`);
|
|
33
33
|
return this.GET(url);
|
|
34
34
|
}
|
|
35
35
|
getPhone(userId) {
|
|
36
|
-
const url = this.resolveURL(`${UserEndpoints.Phone}/${userId}`);
|
|
36
|
+
const url = this.resolveURL(`${UserEndpoints.Phone}/${this.userId}`);
|
|
37
37
|
return this.GET(url);
|
|
38
38
|
}
|
|
39
39
|
getPreferences(userId) {
|
|
40
|
-
const url = this.resolveURL(`${UserEndpoints.Preferences}/${userId}`);
|
|
40
|
+
const url = this.resolveURL(`${UserEndpoints.Preferences}/${this.userId}`);
|
|
41
41
|
return this.GET(url);
|
|
42
42
|
}
|
|
43
43
|
getPersonalInfo(userId) {
|
|
44
|
-
const url = this.resolveURL(`${UserEndpoints.PersonalInfo}/${userId}`);
|
|
44
|
+
const url = this.resolveURL(`${UserEndpoints.PersonalInfo}/${this.userId}`);
|
|
45
45
|
return this.GET(url);
|
|
46
46
|
}
|
|
47
47
|
getLatestHistory(userId) {
|
|
48
|
-
const url = this.resolveURL(`${UserEndpoints.HistoryLatest}/${userId}`);
|
|
48
|
+
const url = this.resolveURL(`${UserEndpoints.HistoryLatest}/${this.userId}`);
|
|
49
49
|
return this.GET(url);
|
|
50
50
|
}
|
|
51
51
|
getIdentification(userId) {
|
|
52
|
-
const url = this.resolveURL(`${UserEndpoints.Identification}/${userId}`);
|
|
52
|
+
const url = this.resolveURL(`${UserEndpoints.Identification}/${this.userId}`);
|
|
53
53
|
return this.GET(url);
|
|
54
54
|
}
|
|
55
55
|
getHistory(userId) {
|
|
56
|
-
const url = this.resolveURL(`${UserEndpoints.HistoryLatest}/${userId}`);
|
|
56
|
+
const url = this.resolveURL(`${UserEndpoints.HistoryLatest}/${this.userId}`);
|
|
57
57
|
return this.GET(url);
|
|
58
58
|
}
|
|
59
59
|
getGroup(userId) {
|
|
60
|
-
const url = this.resolveURL(`${UserEndpoints.Group}/${userId}`);
|
|
60
|
+
const url = this.resolveURL(`${UserEndpoints.Group}/${this.userId}`);
|
|
61
61
|
return this.GET(url);
|
|
62
62
|
}
|
|
63
63
|
getExternalAuth(userId) {
|
|
64
|
-
const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${userId}`);
|
|
64
|
+
const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${this.userId}`);
|
|
65
65
|
return this.GET(url);
|
|
66
66
|
}
|
|
67
67
|
getEmail(userId) {
|
|
68
|
-
const url = this.resolveURL(`${UserEndpoints.Email}/${userId}`);
|
|
68
|
+
const url = this.resolveURL(`${UserEndpoints.Email}/${this.userId}`);
|
|
69
69
|
return this.GET(url);
|
|
70
70
|
}
|
|
71
71
|
getDocuments(userId) {
|
|
72
|
-
const url = this.resolveURL(`${UserEndpoints.Documents}/${userId}`);
|
|
72
|
+
const url = this.resolveURL(`${UserEndpoints.Documents}/${this.userId}`);
|
|
73
73
|
return this.GET(url);
|
|
74
74
|
}
|
|
75
75
|
getCurrency(userId) {
|
|
76
|
-
const url = this.resolveURL(`${UserEndpoints.Currency}/${userId}`);
|
|
76
|
+
const url = this.resolveURL(`${UserEndpoints.Currency}/${this.userId}`);
|
|
77
77
|
return this.GET(url);
|
|
78
78
|
}
|
|
79
79
|
getCreditCard(userId) {
|
|
80
|
-
const url = this.resolveURL(`${UserEndpoints.CreditCard}/${userId}`);
|
|
80
|
+
const url = this.resolveURL(`${UserEndpoints.CreditCard}/${this.userId}`);
|
|
81
81
|
return this.GET(url);
|
|
82
82
|
}
|
|
83
83
|
getBankAccount(userId) {
|
|
84
|
-
const url = this.resolveURL(`${UserEndpoints.BankAccount}/${userId}`);
|
|
84
|
+
const url = this.resolveURL(`${UserEndpoints.BankAccount}/${this.userId}`);
|
|
85
85
|
return this.GET(url);
|
|
86
86
|
}
|
|
87
87
|
getAddress(userId) {
|
|
88
|
-
const url = this.resolveURL(`${UserEndpoints.Address}/${userId}`);
|
|
88
|
+
const url = this.resolveURL(`${UserEndpoints.Address}/${this.userId}`);
|
|
89
89
|
return this.GET(url);
|
|
90
90
|
}
|
|
91
91
|
getAccount(userId) {
|
|
92
|
-
const url = this.resolveURL(`${UserEndpoints.Account}/${userId}`);
|
|
92
|
+
const url = this.resolveURL(`${UserEndpoints.Account}/${this.userId}`);
|
|
93
93
|
return this.GET(url);
|
|
94
94
|
}
|
|
95
95
|
getDeviceHistory(userId) {
|
|
96
|
-
const url = this.resolveURL(`${UserEndpoints.DeviceHistory}/${userId}`);
|
|
96
|
+
const url = this.resolveURL(`${UserEndpoints.DeviceHistory}/${this.userId}`);
|
|
97
97
|
return this.GET(url);
|
|
98
98
|
}
|
|
99
99
|
getActivity(userId) {
|
|
100
|
-
const url = this.resolveURL(`${UserEndpoints.Activity}/${userId}`);
|
|
100
|
+
const url = this.resolveURL(`${UserEndpoints.Activity}/${this.userId}`);
|
|
101
101
|
return this.GET(url);
|
|
102
102
|
}
|
|
103
103
|
// #endregion
|
|
@@ -106,176 +106,180 @@ class UserService extends BaseService {
|
|
|
106
106
|
const url = this.resolveURL();
|
|
107
107
|
return this.POST(url, payload, config);
|
|
108
108
|
}
|
|
109
|
-
createPhone(
|
|
110
|
-
const url = this.resolveURL(`${UserEndpoints.Phone}/${userId}`);
|
|
109
|
+
createPhone(payload) {
|
|
110
|
+
const url = this.resolveURL(`${UserEndpoints.Phone}/${this.userId}`);
|
|
111
111
|
return this.POST(url, payload);
|
|
112
112
|
}
|
|
113
|
-
createDevice(
|
|
114
|
-
const url = this.resolveURL(`${UserEndpoints.Device}/${userId}`);
|
|
113
|
+
createDevice(payload) {
|
|
114
|
+
const url = this.resolveURL(`${UserEndpoints.Device}/${this.userId}`);
|
|
115
115
|
return this.POST(url, payload);
|
|
116
116
|
}
|
|
117
|
-
createIdentification(
|
|
118
|
-
const url = this.resolveURL(`${UserEndpoints.Identification}/${userId}`);
|
|
117
|
+
createIdentification(payload) {
|
|
118
|
+
const url = this.resolveURL(`${UserEndpoints.Identification}/${this.userId}`);
|
|
119
119
|
return this.POST(url, payload);
|
|
120
120
|
}
|
|
121
|
-
createExternalAuth(
|
|
122
|
-
const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${userId}`);
|
|
121
|
+
createExternalAuth(payload) {
|
|
122
|
+
const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${this.userId}`);
|
|
123
123
|
return this.POST(url, payload);
|
|
124
124
|
}
|
|
125
|
-
createEmail(
|
|
126
|
-
const url = this.resolveURL(`${UserEndpoints.Email}/${userId}`);
|
|
125
|
+
createEmail(payload) {
|
|
126
|
+
const url = this.resolveURL(`${UserEndpoints.Email}/${this.userId}`);
|
|
127
127
|
return this.POST(url, payload);
|
|
128
128
|
}
|
|
129
|
-
createCurrency(
|
|
130
|
-
const url = this.resolveURL(`${UserEndpoints.Currency}/${userId}`);
|
|
129
|
+
createCurrency(payload) {
|
|
130
|
+
const url = this.resolveURL(`${UserEndpoints.Currency}/${this.userId}`);
|
|
131
131
|
return this.POST(url, payload);
|
|
132
132
|
}
|
|
133
|
-
createCreditCard(
|
|
134
|
-
const url = this.resolveURL(`${UserEndpoints.CreditCard}/${userId}`);
|
|
133
|
+
createCreditCard(payload) {
|
|
134
|
+
const url = this.resolveURL(`${UserEndpoints.CreditCard}/${this.userId}`);
|
|
135
135
|
return this.POST(url, payload);
|
|
136
136
|
}
|
|
137
|
-
createBankAccount(
|
|
138
|
-
const url = this.resolveURL(`${UserEndpoints.BankAccount}/${userId}`);
|
|
137
|
+
createBankAccount(payload) {
|
|
138
|
+
const url = this.resolveURL(`${UserEndpoints.BankAccount}/${this.userId}`);
|
|
139
139
|
return this.POST(url, payload);
|
|
140
140
|
}
|
|
141
|
-
createAddress(
|
|
142
|
-
const url = this.resolveURL(`${UserEndpoints.Address}/${userId}`);
|
|
141
|
+
createAddress(payload) {
|
|
142
|
+
const url = this.resolveURL(`${UserEndpoints.Address}/${this.userId}`);
|
|
143
143
|
return this.POST(url, payload);
|
|
144
144
|
}
|
|
145
|
-
createTicket(
|
|
146
|
-
const url = this.resolveURL(`${UserEndpoints.Ticket}/${userId}`);
|
|
145
|
+
createTicket(payload) {
|
|
146
|
+
const url = this.resolveURL(`${UserEndpoints.Ticket}/${this.userId}`);
|
|
147
147
|
return this.POST(url, payload);
|
|
148
148
|
}
|
|
149
|
-
securityAccess(
|
|
150
|
-
const url = this.resolveURL(`${UserEndpoints.SecurityAccess}/${userId}`);
|
|
149
|
+
securityAccess(payload) {
|
|
150
|
+
const url = this.resolveURL(`${UserEndpoints.SecurityAccess}/${this.userId}`);
|
|
151
151
|
return this.POST(url, payload);
|
|
152
152
|
}
|
|
153
|
-
uploadDocument(
|
|
154
|
-
const url = this.resolveURL(`${UserEndpoints.Document}/${userId}`);
|
|
153
|
+
uploadDocument(payload) {
|
|
154
|
+
const url = this.resolveURL(`${UserEndpoints.Document}/${this.userId}`);
|
|
155
155
|
return this.POST(url, payload);
|
|
156
156
|
}
|
|
157
|
-
confirmSecurityData(
|
|
158
|
-
const url = this.resolveURL(`${UserEndpoints.SecurityConfirm}/${userId}`);
|
|
157
|
+
confirmSecurityData(payload) {
|
|
158
|
+
const url = this.resolveURL(`${UserEndpoints.SecurityConfirm}/${this.userId}`);
|
|
159
159
|
return this.POST(url, payload);
|
|
160
160
|
}
|
|
161
|
-
validateSecurityData(
|
|
162
|
-
const url = this.resolveURL(`${UserEndpoints.SecurityValidate}/${userId}`);
|
|
161
|
+
validateSecurityData(payload) {
|
|
162
|
+
const url = this.resolveURL(`${UserEndpoints.SecurityValidate}/${this.userId}`);
|
|
163
163
|
return this.POST(url, payload);
|
|
164
164
|
}
|
|
165
|
-
verifySecurityData(
|
|
166
|
-
const url = this.resolveURL(`${UserEndpoints.SecurityVerify}/${userId}`);
|
|
165
|
+
verifySecurityData(payload) {
|
|
166
|
+
const url = this.resolveURL(`${UserEndpoints.SecurityVerify}/${this.userId}`);
|
|
167
167
|
return this.POST(url, payload);
|
|
168
168
|
}
|
|
169
|
-
resetSecurityData(
|
|
170
|
-
const url = this.resolveURL(`${UserEndpoints.SecurityReset}/${userId}`);
|
|
169
|
+
resetSecurityData(payload) {
|
|
170
|
+
const url = this.resolveURL(`${UserEndpoints.SecurityReset}/${this.userId}`);
|
|
171
171
|
return this.POST(url, payload);
|
|
172
172
|
}
|
|
173
|
-
enrollGoogleAuth(
|
|
174
|
-
const url = this.resolveURL(`${UserEndpoints.AuthEnroll}/${userId}`);
|
|
173
|
+
enrollGoogleAuth(payload) {
|
|
174
|
+
const url = this.resolveURL(`${UserEndpoints.AuthEnroll}/${this.userId}`);
|
|
175
175
|
return this.POST(url, payload);
|
|
176
176
|
}
|
|
177
|
-
activateGoogleAuth(
|
|
178
|
-
const url = this.resolveURL(`${UserEndpoints.AuthActivate}/${userId}`);
|
|
177
|
+
activateGoogleAuth(payload) {
|
|
178
|
+
const url = this.resolveURL(`${UserEndpoints.AuthActivate}/${this.userId}`);
|
|
179
179
|
return this.POST(url, payload);
|
|
180
180
|
}
|
|
181
|
-
deactivateGoogleAuth(
|
|
182
|
-
const url = this.resolveURL(`${UserEndpoints.AuthDeactivate}/${userId}`);
|
|
181
|
+
deactivateGoogleAuth(payload) {
|
|
182
|
+
const url = this.resolveURL(`${UserEndpoints.AuthDeactivate}/${this.userId}`);
|
|
183
183
|
return this.POST(url, payload);
|
|
184
184
|
}
|
|
185
|
-
deleteGoogleAuth(
|
|
186
|
-
const url = this.resolveURL(`${UserEndpoints.AuthDelete}/${userId}`);
|
|
185
|
+
deleteGoogleAuth(payload) {
|
|
186
|
+
const url = this.resolveURL(`${UserEndpoints.AuthDelete}/${this.userId}`);
|
|
187
187
|
return this.POST(url, payload);
|
|
188
188
|
}
|
|
189
189
|
// #endregion
|
|
190
190
|
// #region "PUT"
|
|
191
|
-
updateUser(
|
|
192
|
-
const url = this.resolveURL(`/${userId}`);
|
|
191
|
+
updateUser(payload) {
|
|
192
|
+
const url = this.resolveURL(`/${this.userId}`);
|
|
193
193
|
return this.PUT(url, payload);
|
|
194
194
|
}
|
|
195
|
-
updateSecurity(
|
|
196
|
-
const url = this.resolveURL(`${UserEndpoints.Security}/${userId}`);
|
|
195
|
+
updateSecurity(payload) {
|
|
196
|
+
const url = this.resolveURL(`${UserEndpoints.Security}/${this.userId}`);
|
|
197
197
|
return this.PUT(url, payload);
|
|
198
198
|
}
|
|
199
|
-
updatePreferences(
|
|
200
|
-
const url = this.resolveURL(`${UserEndpoints.Preferences}/${userId}`);
|
|
199
|
+
updatePreferences(payload) {
|
|
200
|
+
const url = this.resolveURL(`${UserEndpoints.Preferences}/${this.userId}`);
|
|
201
201
|
return this.PUT(url, payload);
|
|
202
202
|
}
|
|
203
|
-
updateDevice(
|
|
204
|
-
const url = this.resolveURL(`${UserEndpoints.Device}/${userId}`);
|
|
203
|
+
updateDevice(payload) {
|
|
204
|
+
const url = this.resolveURL(`${UserEndpoints.Device}/${this.userId}`);
|
|
205
205
|
return this.PUT(url, payload);
|
|
206
206
|
}
|
|
207
|
-
logoutDevice(
|
|
208
|
-
const url = this.resolveURL(`${UserEndpoints.DeviceLogout}/${userId}`);
|
|
207
|
+
logoutDevice(payload) {
|
|
208
|
+
const url = this.resolveURL(`${UserEndpoints.DeviceLogout}/${this.userId}`);
|
|
209
209
|
return this.PUT(url, payload);
|
|
210
210
|
}
|
|
211
|
-
updatePhone(
|
|
212
|
-
const url = this.resolveURL(`${UserEndpoints.Phone}/${userId}`);
|
|
211
|
+
updatePhone(payload) {
|
|
212
|
+
const url = this.resolveURL(`${UserEndpoints.Phone}/${this.userId}`);
|
|
213
213
|
return this.PUT(url, payload);
|
|
214
214
|
}
|
|
215
|
-
updatePersonalInfo(
|
|
216
|
-
const url = this.resolveURL(`${UserEndpoints.PersonalInfo}/${userId}`);
|
|
215
|
+
updatePersonalInfo(payload) {
|
|
216
|
+
const url = this.resolveURL(`${UserEndpoints.PersonalInfo}/${this.userId}`);
|
|
217
217
|
return this.PUT(url, payload);
|
|
218
218
|
}
|
|
219
|
-
updateIdentification(
|
|
220
|
-
const url = this.resolveURL(`${UserEndpoints.Identification}/${userId}`);
|
|
219
|
+
updateIdentification(payload) {
|
|
220
|
+
const url = this.resolveURL(`${UserEndpoints.Identification}/${this.userId}`);
|
|
221
221
|
return this.PUT(url, payload);
|
|
222
222
|
}
|
|
223
|
-
updateExternalAuth(
|
|
224
|
-
const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${userId}`);
|
|
223
|
+
updateExternalAuth(payload) {
|
|
224
|
+
const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${this.userId}`);
|
|
225
225
|
return this.PUT(url, payload);
|
|
226
226
|
}
|
|
227
|
-
updateEmail(
|
|
228
|
-
const url = this.resolveURL(`${UserEndpoints.Email}/${userId}`);
|
|
227
|
+
updateEmail(payload) {
|
|
228
|
+
const url = this.resolveURL(`${UserEndpoints.Email}/${this.userId}`);
|
|
229
229
|
return this.PUT(url, payload);
|
|
230
230
|
}
|
|
231
|
-
updateCreditCard(
|
|
232
|
-
const url = this.resolveURL(`${UserEndpoints.CreditCard}/${userId}`);
|
|
231
|
+
updateCreditCard(payload) {
|
|
232
|
+
const url = this.resolveURL(`${UserEndpoints.CreditCard}/${this.userId}`);
|
|
233
233
|
return this.PUT(url, payload);
|
|
234
234
|
}
|
|
235
|
-
updateBankAccount(
|
|
236
|
-
const url = this.resolveURL(`${UserEndpoints.BankAccount}/${userId}`);
|
|
235
|
+
updateBankAccount(payload) {
|
|
236
|
+
const url = this.resolveURL(`${UserEndpoints.BankAccount}/${this.userId}`);
|
|
237
237
|
return this.PUT(url, payload);
|
|
238
238
|
}
|
|
239
|
-
updateAddress(
|
|
240
|
-
const url = this.resolveURL(`${UserEndpoints.Address}/${userId}`);
|
|
239
|
+
updateAddress(payload) {
|
|
240
|
+
const url = this.resolveURL(`${UserEndpoints.Address}/${this.userId}`);
|
|
241
|
+
return this.PUT(url, payload);
|
|
242
|
+
}
|
|
243
|
+
updateUserType(payload) {
|
|
244
|
+
const url = this.resolveURL(`${UserEndpoints.Type}/${this.userId}}`);
|
|
241
245
|
return this.PUT(url, payload);
|
|
242
246
|
}
|
|
243
247
|
// #endregion
|
|
244
248
|
// #region "DELETE"
|
|
245
249
|
deleteUser(userId) {
|
|
246
|
-
const url = this.resolveURL(`/${userId}`);
|
|
250
|
+
const url = this.resolveURL(`/${this.userId}`);
|
|
247
251
|
return this.DELETE(url);
|
|
248
252
|
}
|
|
249
253
|
deleteCreditCard(userId) {
|
|
250
|
-
const url = this.resolveURL(`${UserEndpoints.CreditCard}/${userId}`);
|
|
254
|
+
const url = this.resolveURL(`${UserEndpoints.CreditCard}/${this.userId}`);
|
|
251
255
|
return this.DELETE(url);
|
|
252
256
|
}
|
|
253
|
-
deleteAddress(
|
|
254
|
-
const url = this.resolveURL(`${UserEndpoints.Address}/${userId}`);
|
|
257
|
+
deleteAddress(payload) {
|
|
258
|
+
const url = this.resolveURL(`${UserEndpoints.Address}/${this.userId}`);
|
|
255
259
|
return this.DELETE(url, payload);
|
|
256
260
|
}
|
|
257
|
-
deleteDevice(
|
|
258
|
-
const url = this.resolveURL(`${UserEndpoints.Device}/${userId}`);
|
|
261
|
+
deleteDevice(payload) {
|
|
262
|
+
const url = this.resolveURL(`${UserEndpoints.Device}/${this.userId}`);
|
|
259
263
|
return this.DELETE(url, payload);
|
|
260
264
|
}
|
|
261
|
-
deleteBankAccount(
|
|
262
|
-
const url = this.resolveURL(`${UserEndpoints.BankAccount}/${userId}`);
|
|
265
|
+
deleteBankAccount(payload) {
|
|
266
|
+
const url = this.resolveURL(`${UserEndpoints.BankAccount}/${this.userId}`);
|
|
263
267
|
return this.DELETE(url, payload);
|
|
264
268
|
}
|
|
265
|
-
deleteIdentification(
|
|
266
|
-
const url = this.resolveURL(`${UserEndpoints.Identification}/${userId}`);
|
|
269
|
+
deleteIdentification(payload) {
|
|
270
|
+
const url = this.resolveURL(`${UserEndpoints.Identification}/${this.userId}`);
|
|
267
271
|
return this.DELETE(url, payload);
|
|
268
272
|
}
|
|
269
|
-
deleteEmail(
|
|
270
|
-
const url = this.resolveURL(`${UserEndpoints.Email}/${userId}`);
|
|
273
|
+
deleteEmail(payload) {
|
|
274
|
+
const url = this.resolveURL(`${UserEndpoints.Email}/${this.userId}`);
|
|
271
275
|
return this.DELETE(url, payload);
|
|
272
276
|
}
|
|
273
|
-
deletePhone(
|
|
274
|
-
const url = this.resolveURL(`${UserEndpoints.Phone}/${userId}`);
|
|
277
|
+
deletePhone(payload) {
|
|
278
|
+
const url = this.resolveURL(`${UserEndpoints.Phone}/${this.userId}`);
|
|
275
279
|
return this.DELETE(url, payload);
|
|
276
280
|
}
|
|
277
281
|
deleteExternalAuth(userId) {
|
|
278
|
-
const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${userId}`);
|
|
282
|
+
const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${this.userId}`);
|
|
279
283
|
return this.DELETE(url);
|
|
280
284
|
}
|
|
281
285
|
}
|
|
@@ -34,39 +34,40 @@ declare const OrganizationEndpoints: {
|
|
|
34
34
|
Document: string;
|
|
35
35
|
};
|
|
36
36
|
declare const UserEndpoints: {
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
37
|
+
readonly Account: "/account";
|
|
38
|
+
readonly Activity: "/activity";
|
|
39
|
+
readonly Address: "/address";
|
|
40
|
+
readonly Auth: "/auth";
|
|
41
|
+
readonly AuthActivate: "/auth/activate";
|
|
42
|
+
readonly AuthDeactivate: "/auth/deactivate";
|
|
43
|
+
readonly AuthDelete: "/auth/delete";
|
|
44
|
+
readonly AuthEnroll: "/auth/enroll";
|
|
45
|
+
readonly BankAccount: "/bank_account";
|
|
46
|
+
readonly CreditCard: "/credit_card";
|
|
47
|
+
readonly Currency: "/currency";
|
|
48
|
+
readonly Device: "/device";
|
|
49
|
+
readonly DeviceHistory: "/device/history";
|
|
50
|
+
readonly DeviceLogout: "/device/logout";
|
|
51
|
+
readonly Document: "/document";
|
|
52
|
+
readonly Documents: "/documents";
|
|
42
53
|
readonly Email: "/email";
|
|
43
|
-
readonly
|
|
54
|
+
readonly ExternalAuth: "/external_auth";
|
|
55
|
+
readonly Group: "/group";
|
|
56
|
+
readonly History: "/history";
|
|
57
|
+
readonly HistoryLatest: "/history/latest";
|
|
44
58
|
readonly Identification: "/identification";
|
|
45
59
|
readonly PersonalInfo: "/personal_info";
|
|
60
|
+
readonly Phone: "/phone";
|
|
61
|
+
readonly Preferences: "/preferences";
|
|
46
62
|
readonly Security: "/security";
|
|
47
|
-
readonly Device: "/device";
|
|
48
|
-
readonly Ticket: "/ticket";
|
|
49
|
-
readonly Document: "/document";
|
|
50
|
-
readonly Address: "/address";
|
|
51
|
-
readonly BankAccount: "/bank_account";
|
|
52
|
-
readonly Auth: "/auth";
|
|
53
|
-
readonly Activity: "/activity";
|
|
54
|
-
readonly Account: "/account";
|
|
55
|
-
readonly Documents: "/documents";
|
|
56
|
-
readonly Currency: "/currency";
|
|
57
|
-
readonly CreditCard: "/credit_card";
|
|
58
63
|
readonly SecurityAccess: "/security/access";
|
|
59
|
-
readonly SecurityValidate: "/security/validate";
|
|
60
|
-
readonly SecurityVerify: "/security/verify";
|
|
61
64
|
readonly SecurityConfirm: "/security/confirm";
|
|
62
65
|
readonly SecurityReset: "/security/reset";
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly AuthDelete: "/auth/delete";
|
|
69
|
-
readonly HistoryLatest: "/history/latest";
|
|
66
|
+
readonly SecurityValidate: "/security/validate";
|
|
67
|
+
readonly SecurityVerify: "/security/verify";
|
|
68
|
+
readonly TermsAndConditions: "/terms_and_conditions";
|
|
69
|
+
readonly Ticket: "/ticket";
|
|
70
|
+
readonly Type: "/type";
|
|
70
71
|
};
|
|
71
72
|
declare const GrantType: {
|
|
72
73
|
readonly UserCredential: "user_credential";
|
|
@@ -35,39 +35,40 @@ const OrganizationEndpoints = {
|
|
|
35
35
|
Document: "/document",
|
|
36
36
|
};
|
|
37
37
|
const UserEndpoints = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
Account: "/account",
|
|
39
|
+
Activity: "/activity",
|
|
40
|
+
Address: "/address",
|
|
41
|
+
Auth: "/auth",
|
|
42
|
+
AuthActivate: "/auth/activate",
|
|
43
|
+
AuthDeactivate: "/auth/deactivate",
|
|
44
|
+
AuthDelete: "/auth/delete",
|
|
45
|
+
AuthEnroll: "/auth/enroll",
|
|
46
|
+
BankAccount: "/bank_account",
|
|
47
|
+
CreditCard: "/credit_card",
|
|
48
|
+
Currency: "/currency",
|
|
49
|
+
Device: "/device",
|
|
50
|
+
DeviceHistory: "/device/history",
|
|
51
|
+
DeviceLogout: "/device/logout",
|
|
52
|
+
Document: "/document",
|
|
53
|
+
Documents: "/documents",
|
|
43
54
|
Email: "/email",
|
|
44
|
-
|
|
55
|
+
ExternalAuth: "/external_auth",
|
|
56
|
+
Group: "/group",
|
|
57
|
+
History: "/history",
|
|
58
|
+
HistoryLatest: "/history/latest",
|
|
45
59
|
Identification: "/identification",
|
|
46
60
|
PersonalInfo: "/personal_info",
|
|
61
|
+
Phone: "/phone",
|
|
62
|
+
Preferences: "/preferences",
|
|
47
63
|
Security: "/security",
|
|
48
|
-
Device: "/device",
|
|
49
|
-
Ticket: "/ticket",
|
|
50
|
-
Document: "/document",
|
|
51
|
-
Address: "/address",
|
|
52
|
-
BankAccount: "/bank_account",
|
|
53
|
-
Auth: "/auth",
|
|
54
|
-
Activity: "/activity",
|
|
55
|
-
Account: "/account",
|
|
56
|
-
Documents: "/documents",
|
|
57
|
-
Currency: "/currency",
|
|
58
|
-
CreditCard: "/credit_card",
|
|
59
64
|
SecurityAccess: "/security/access",
|
|
60
|
-
SecurityValidate: "/security/validate",
|
|
61
|
-
SecurityVerify: "/security/verify",
|
|
62
65
|
SecurityConfirm: "/security/confirm",
|
|
63
66
|
SecurityReset: "/security/reset",
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
AuthDelete: "/auth/delete",
|
|
70
|
-
HistoryLatest: "/history/latest",
|
|
67
|
+
SecurityValidate: "/security/validate",
|
|
68
|
+
SecurityVerify: "/security/verify",
|
|
69
|
+
TermsAndConditions: "/terms_and_conditions",
|
|
70
|
+
Ticket: "/ticket",
|
|
71
|
+
Type: "/type",
|
|
71
72
|
};
|
|
72
73
|
// #endregion
|
|
73
74
|
// #region "API"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InjectRequiredHeaders, TAddAxiosConfigHeader, TGetAuthAxiosConfig, TGetAxiosConfig, TInjectGeoCoordinates, TInjectRequest } from "../../types";
|
|
2
|
-
import { BaseResult } from "../../types";
|
|
2
|
+
import type { BaseResult } from "../../types";
|
|
3
3
|
declare class AxiosHelper {
|
|
4
4
|
static GetAxiosConfig: TGetAxiosConfig;
|
|
5
5
|
static GetAuthAxiosConfig: TGetAuthAxiosConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CookieKeys } from "../constants";
|
|
2
|
-
import { CipherKeyIV, USR } from "../types";
|
|
2
|
+
import type { CipherKeyIV, USR } from "../types";
|
|
3
3
|
declare class CipherHelper {
|
|
4
4
|
static Encrypt: (plainText: string, key: string, iv: string) => string;
|
|
5
5
|
static EncryptAsJson: (plainText: string, cookieKey: (typeof CookieKeys)[keyof typeof CookieKeys] | "device_security_code", key: string, iv: string) => string;
|