ggez-banking-sdk 0.1.191 → 0.1.193

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.
@@ -1,21 +1,21 @@
1
- import type { IConfirmEmailData, IConfirmPhoneData, IValidateEmailData, IValidatePhoneData, IVerifyEmailData, IVerifyPhoneData, LimitedClientData, IValidateForgetPasswordData, IConfirmForgetPasswordData, ErrorHandler, ICheckForgetSecurityData } from "../../types";
1
+ import type { IConfirmEmailData, IConfirmPhoneData, IValidateEmailData, IValidatePhoneData, IVerifyEmailData, IVerifyPhoneData, LimitedClientData, IValidateForgetPasswordData, IConfirmForgetPasswordData, ErrorHandler, ICheckForgetPasswordData } from "../../types";
2
2
  import { BaseClient } from "./base";
3
3
  declare class LimitedClient extends BaseClient {
4
4
  private limitedService;
5
5
  constructor(clientData: LimitedClientData, errorHandler: ErrorHandler);
6
- ValidateForgetPassword: (data: IValidateForgetPasswordData) => Promise<{
6
+ CheckForgetPassword: (data: ICheckForgetPasswordData) => Promise<{
7
7
  data: import("../../types").ForgetSecurityData;
8
8
  success: boolean;
9
9
  message: string;
10
10
  error: any;
11
11
  }>;
12
- ConfirmForgetPassword: (data: IConfirmForgetPasswordData) => Promise<{
12
+ ValidateForgetPassword: (data: IValidateForgetPasswordData) => Promise<{
13
13
  data: import("../../types").ForgetSecurityData;
14
14
  success: boolean;
15
15
  message: string;
16
16
  error: any;
17
17
  }>;
18
- CheckForgetSecurity: (data: ICheckForgetSecurityData) => Promise<{
18
+ ConfirmForgetPassword: (data: IConfirmForgetPasswordData) => Promise<{
19
19
  data: import("../../types").ForgetSecurityData;
20
20
  success: boolean;
21
21
  message: string;
@@ -1,5 +1,5 @@
1
1
  import { AxiosHelper } from "../../helper";
2
- import { FillCheckForgetSecurityData, FillConfirmEmailData, FillConfirmForgetPasswordData, FillConfirmPhoneData, FillConfirmUserSecurityData, FillForgetSecurityData, FillResultByError, FillValidateEmailData, FillValidateForgetPasswordData, FillValidateLimitedSecurityData, FillValidatePhoneData, FillVerifyEmailData, FillVerifyPhoneData, FillVerifyUserSecurityData, } from "../data";
2
+ import { FillCheckForgetPasswordData, FillConfirmEmailData, FillConfirmForgetPasswordData, FillConfirmPhoneData, FillConfirmUserSecurityData, FillForgetSecurityData, FillResultByError, FillValidateEmailData, FillValidateForgetPasswordData, FillValidateLimitedSecurityData, FillValidatePhoneData, FillVerifyEmailData, FillVerifyPhoneData, FillVerifyUserSecurityData, } from "../data";
3
3
  import { LimitedService } from "../services";
4
4
  import { BaseClient } from "./base";
5
5
  class LimitedClient extends BaseClient {
@@ -15,40 +15,40 @@ class LimitedClient extends BaseClient {
15
15
  }, this.errorHandler);
16
16
  }
17
17
  // #region "POST"
18
- ValidateForgetPassword = async (data) => {
18
+ CheckForgetPassword = async (data) => {
19
19
  try {
20
- const forgetSecurityData = FillValidateForgetPasswordData(data);
21
- const response = await this.limitedService.validateForgetSecurityData(forgetSecurityData);
20
+ const forgetSecurityData = FillCheckForgetPasswordData(data);
21
+ const response = await this.limitedService.checkForgetSecurityData(forgetSecurityData);
22
22
  return this.responseHelper.GetResponse(response.data);
23
23
  }
24
24
  catch (error) {
25
25
  const result = FillResultByError(error);
26
26
  const forgetSecurityData = FillForgetSecurityData("result", result);
27
- return this.responseHelper.GetErrorResponse(forgetSecurityData, "ValidateForgetPassword");
27
+ return this.responseHelper.GetErrorResponse(forgetSecurityData, "CheckForgetPassword");
28
28
  }
29
29
  };
30
- ConfirmForgetPassword = async (data) => {
30
+ ValidateForgetPassword = async (data) => {
31
31
  try {
32
- const forgetSecurityData = FillConfirmForgetPasswordData(data);
33
- const response = await this.limitedService.confirmForgetSecurityData(forgetSecurityData);
32
+ const forgetSecurityData = FillValidateForgetPasswordData(data);
33
+ const response = await this.limitedService.validateForgetSecurityData(forgetSecurityData);
34
34
  return this.responseHelper.GetResponse(response.data);
35
35
  }
36
36
  catch (error) {
37
37
  const result = FillResultByError(error);
38
38
  const forgetSecurityData = FillForgetSecurityData("result", result);
39
- return this.responseHelper.GetErrorResponse(forgetSecurityData, "ConfirmForgetPassword");
39
+ return this.responseHelper.GetErrorResponse(forgetSecurityData, "ValidateForgetPassword");
40
40
  }
41
41
  };
42
- CheckForgetSecurity = async (data) => {
42
+ ConfirmForgetPassword = async (data) => {
43
43
  try {
44
- const forgetSecurityData = FillCheckForgetSecurityData(data);
45
- const response = await this.limitedService.checkForgetSecurityData(forgetSecurityData);
44
+ const forgetSecurityData = FillConfirmForgetPasswordData(data);
45
+ const response = await this.limitedService.confirmForgetSecurityData(forgetSecurityData);
46
46
  return this.responseHelper.GetResponse(response.data);
47
47
  }
48
48
  catch (error) {
49
49
  const result = FillResultByError(error);
50
50
  const forgetSecurityData = FillForgetSecurityData("result", result);
51
- return this.responseHelper.GetErrorResponse(forgetSecurityData, "CheckForgetSecurity");
51
+ return this.responseHelper.GetErrorResponse(forgetSecurityData, "ConfirmForgetPassword");
52
52
  }
53
53
  };
54
54
  ValidateEmail = async (data) => {
@@ -19,10 +19,10 @@ class UserClient extends BaseClient {
19
19
  if (data.token && data.id) {
20
20
  const config = AxiosHelper.GetAxiosConfig(data.token, this.clientData.baseUrl, this.clientData.lang);
21
21
  const userService = new UserService({ config, userId: data.id }, this.errorHandler);
22
- response = await userService.getUser(data.id || this.clientData.userId);
22
+ response = await userService.getUser();
23
23
  }
24
24
  else {
25
- response = await this.userService.getUser(data.id || this.clientData.userId);
25
+ response = await this.userService.getUser();
26
26
  }
27
27
  return this.responseHelper.GetResponse(response.data);
28
28
  }
@@ -34,7 +34,7 @@ class UserClient extends BaseClient {
34
34
  };
35
35
  GetTermsAndConditions = async () => {
36
36
  try {
37
- const response = await this.userService.getTermsAndConditions(this.clientData.userId);
37
+ const response = await this.userService.getTermsAndConditions();
38
38
  return this.responseHelper.GetResponse(response.data);
39
39
  }
40
40
  catch (error) {
@@ -45,7 +45,7 @@ class UserClient extends BaseClient {
45
45
  };
46
46
  GetSecurity = async () => {
47
47
  try {
48
- const response = await this.userService.getSecurity(this.clientData.userId);
48
+ const response = await this.userService.getSecurity();
49
49
  return this.responseHelper.GetResponse(response.data);
50
50
  }
51
51
  catch (error) {
@@ -56,7 +56,7 @@ class UserClient extends BaseClient {
56
56
  };
57
57
  GetPhone = async () => {
58
58
  try {
59
- const response = await this.userService.getPhone(this.clientData.userId);
59
+ const response = await this.userService.getPhone();
60
60
  return this.responseHelper.GetResponse(response.data);
61
61
  }
62
62
  catch (error) {
@@ -67,7 +67,7 @@ class UserClient extends BaseClient {
67
67
  };
68
68
  GetPreferences = async () => {
69
69
  try {
70
- const response = await this.userService.getPreferences(this.clientData.userId);
70
+ const response = await this.userService.getPreferences();
71
71
  return this.responseHelper.GetResponse(response.data);
72
72
  }
73
73
  catch (error) {
@@ -78,7 +78,7 @@ class UserClient extends BaseClient {
78
78
  };
79
79
  GetPersonalInfo = async () => {
80
80
  try {
81
- const response = await this.userService.getPersonalInfo(this.clientData.userId);
81
+ const response = await this.userService.getPersonalInfo();
82
82
  return this.responseHelper.GetResponse(response.data);
83
83
  }
84
84
  catch (error) {
@@ -89,7 +89,7 @@ class UserClient extends BaseClient {
89
89
  };
90
90
  GetLatestHistory = async () => {
91
91
  try {
92
- const response = await this.userService.getLatestHistory(this.clientData.userId);
92
+ const response = await this.userService.getLatestHistory();
93
93
  return this.responseHelper.GetResponse(response.data);
94
94
  }
95
95
  catch (error) {
@@ -100,7 +100,7 @@ class UserClient extends BaseClient {
100
100
  };
101
101
  GetIdentification = async () => {
102
102
  try {
103
- const response = await this.userService.getIdentification(this.clientData.userId);
103
+ const response = await this.userService.getIdentification();
104
104
  return this.responseHelper.GetResponse(response.data);
105
105
  }
106
106
  catch (error) {
@@ -111,7 +111,7 @@ class UserClient extends BaseClient {
111
111
  };
112
112
  GetHistory = async () => {
113
113
  try {
114
- const response = await this.userService.getHistory(this.clientData.userId);
114
+ const response = await this.userService.getHistory();
115
115
  return this.responseHelper.GetResponse(response.data);
116
116
  }
117
117
  catch (error) {
@@ -122,7 +122,7 @@ class UserClient extends BaseClient {
122
122
  };
123
123
  GetGroup = async () => {
124
124
  try {
125
- const response = await this.userService.getGroup(this.clientData.userId);
125
+ const response = await this.userService.getGroup();
126
126
  return this.responseHelper.GetResponse(response.data);
127
127
  }
128
128
  catch (error) {
@@ -133,7 +133,7 @@ class UserClient extends BaseClient {
133
133
  };
134
134
  GetExternalAuth = async () => {
135
135
  try {
136
- const response = await this.userService.getExternalAuth(this.clientData.userId);
136
+ const response = await this.userService.getExternalAuth();
137
137
  return this.responseHelper.GetResponse(response.data);
138
138
  }
139
139
  catch (error) {
@@ -144,7 +144,7 @@ class UserClient extends BaseClient {
144
144
  };
145
145
  GetEmail = async () => {
146
146
  try {
147
- const response = await this.userService.getEmail(this.clientData.userId);
147
+ const response = await this.userService.getEmail();
148
148
  return this.responseHelper.GetResponse(response.data);
149
149
  }
150
150
  catch (error) {
@@ -155,7 +155,7 @@ class UserClient extends BaseClient {
155
155
  };
156
156
  GetDocuments = async () => {
157
157
  try {
158
- const response = await this.userService.getDocuments(this.clientData.userId);
158
+ const response = await this.userService.getDocuments();
159
159
  return this.responseHelper.GetResponse(response.data);
160
160
  }
161
161
  catch (error) {
@@ -166,7 +166,7 @@ class UserClient extends BaseClient {
166
166
  };
167
167
  GetCurrency = async () => {
168
168
  try {
169
- const response = await this.userService.getCurrency(this.clientData.userId);
169
+ const response = await this.userService.getCurrency();
170
170
  return this.responseHelper.GetResponse(response.data);
171
171
  }
172
172
  catch (error) {
@@ -177,7 +177,7 @@ class UserClient extends BaseClient {
177
177
  };
178
178
  GetCreditCard = async () => {
179
179
  try {
180
- const response = await this.userService.getCreditCard(this.clientData.userId);
180
+ const response = await this.userService.getCreditCard();
181
181
  return this.responseHelper.GetResponse(response.data);
182
182
  }
183
183
  catch (error) {
@@ -188,7 +188,7 @@ class UserClient extends BaseClient {
188
188
  };
189
189
  GetBankAccount = async () => {
190
190
  try {
191
- const response = await this.userService.getBankAccount(this.clientData.userId);
191
+ const response = await this.userService.getBankAccount();
192
192
  return this.responseHelper.GetResponse(response.data);
193
193
  }
194
194
  catch (error) {
@@ -199,7 +199,7 @@ class UserClient extends BaseClient {
199
199
  };
200
200
  GetAddress = async () => {
201
201
  try {
202
- const response = await this.userService.getAddress(this.clientData.userId);
202
+ const response = await this.userService.getAddress();
203
203
  return this.responseHelper.GetResponse(response.data);
204
204
  }
205
205
  catch (error) {
@@ -210,7 +210,7 @@ class UserClient extends BaseClient {
210
210
  };
211
211
  GetAccount = async () => {
212
212
  try {
213
- const response = await this.userService.getAccount(this.clientData.userId);
213
+ const response = await this.userService.getAccount();
214
214
  return this.responseHelper.GetResponse(response.data);
215
215
  }
216
216
  catch (error) {
@@ -221,7 +221,7 @@ class UserClient extends BaseClient {
221
221
  };
222
222
  GetSecurityOperations = async () => {
223
223
  try {
224
- const response = await this.userService.getActivity(this.clientData.userId);
224
+ const response = await this.userService.getActivity();
225
225
  return this.responseHelper.GetResponse(response.data);
226
226
  }
227
227
  catch (error) {
@@ -232,7 +232,7 @@ class UserClient extends BaseClient {
232
232
  };
233
233
  GetDeviceHistory = async () => {
234
234
  try {
235
- const response = await this.userService.getDeviceHistory(this.clientData.userId);
235
+ const response = await this.userService.getDeviceHistory();
236
236
  return this.responseHelper.GetResponse(response.data);
237
237
  }
238
238
  catch (error) {
@@ -1,6 +1,6 @@
1
- import type { IValidateForgetPasswordData, IConfirmForgetPasswordData, ICheckForgetSecurityData } from "../../types";
1
+ import type { IValidateForgetPasswordData, IConfirmForgetPasswordData, ICheckForgetPasswordData } from "../../types";
2
2
  import type { ForgetSecurityData } from "../../types";
3
+ declare const FillCheckForgetPasswordData: (data: ICheckForgetPasswordData) => ForgetSecurityData;
3
4
  declare const FillValidateForgetPasswordData: (data: IValidateForgetPasswordData) => ForgetSecurityData;
4
5
  declare const FillConfirmForgetPasswordData: (data: IConfirmForgetPasswordData) => ForgetSecurityData;
5
- declare const FillCheckForgetSecurityData: (data: ICheckForgetSecurityData) => ForgetSecurityData;
6
- export { FillValidateForgetPasswordData, FillConfirmForgetPasswordData, FillCheckForgetSecurityData, };
6
+ export { FillValidateForgetPasswordData, FillConfirmForgetPasswordData, FillCheckForgetPasswordData, };
@@ -1,3 +1,12 @@
1
+ const FillCheckForgetPasswordData = (data) => {
2
+ const forgetSecurityData = {
3
+ check_data: {
4
+ email: data.email,
5
+ phone: data.phone,
6
+ },
7
+ };
8
+ return forgetSecurityData;
9
+ };
1
10
  const FillValidateForgetPasswordData = (data) => {
2
11
  const forgetSecurityData = {
3
12
  info: {
@@ -27,13 +36,4 @@ const FillConfirmForgetPasswordData = (data) => {
27
36
  };
28
37
  return forgetSecurityData;
29
38
  };
30
- const FillCheckForgetSecurityData = (data) => {
31
- const forgetSecurityData = {
32
- check_data: {
33
- email: data.email,
34
- phone: data.phone,
35
- },
36
- };
37
- return forgetSecurityData;
38
- };
39
- export { FillValidateForgetPasswordData, FillConfirmForgetPasswordData, FillCheckForgetSecurityData, };
39
+ export { FillValidateForgetPasswordData, FillConfirmForgetPasswordData, FillCheckForgetPasswordData, };
@@ -6,26 +6,26 @@ declare class UserService extends BaseService {
6
6
  userId: number;
7
7
  endpoint: string;
8
8
  constructor(data: UserServiceParameters, errorHandler: ErrorHandler);
9
- getUser(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
10
- getTermsAndConditions(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
11
- getSecurity(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
12
- getPhone(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
13
- getPreferences(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
14
- getPersonalInfo(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
15
- getLatestHistory(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
16
- getIdentification(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
17
- getHistory(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
18
- getGroup(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
19
- getExternalAuth(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
20
- getEmail(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
21
- getDocuments(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
22
- getCurrency(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
23
- getCreditCard(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
24
- getBankAccount(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
25
- getAddress(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
26
- getAccount(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
27
- getDeviceHistory(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
28
- getActivity(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
9
+ getUser(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
10
+ getTermsAndConditions(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
11
+ getSecurity(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
12
+ getPhone(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
13
+ getPreferences(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
14
+ getPersonalInfo(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
15
+ getLatestHistory(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
16
+ getIdentification(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
17
+ getHistory(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
18
+ getGroup(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
19
+ getExternalAuth(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
20
+ getEmail(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
21
+ getDocuments(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
22
+ getCurrency(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
23
+ getCreditCard(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
24
+ getBankAccount(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
25
+ getAddress(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
26
+ getAccount(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
27
+ getDeviceHistory(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
28
+ getActivity(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
29
29
  createUser(payload: UserData, config: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
30
30
  createPhone(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
31
31
  createDevice(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
@@ -61,14 +61,14 @@ declare class UserService extends BaseService {
61
61
  updateBankAccount(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
62
62
  updateAddress(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
63
63
  updateUserType(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
64
- deleteUser(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
65
- deleteCreditCard(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
64
+ deleteUser(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
65
+ deleteCreditCard(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
66
66
  deleteAddress(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
67
67
  deleteDevice(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
68
68
  deleteBankAccount(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
69
69
  deleteIdentification(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
70
70
  deleteEmail(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
71
71
  deletePhone(payload: UserData): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
72
- deleteExternalAuth(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
72
+ deleteExternalAuth(): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
73
73
  }
74
74
  export { UserService };
@@ -20,83 +20,83 @@ class UserService extends BaseService {
20
20
  });
21
21
  }
22
22
  // #region "GET"
23
- getUser(userId) {
23
+ getUser() {
24
24
  const url = this.resolveURL(`/${this.userId}`);
25
25
  return this.GET(url);
26
26
  }
27
- getTermsAndConditions(userId) {
27
+ getTermsAndConditions() {
28
28
  const url = this.resolveURL(`${UserEndpoints.TermsAndConditions}/${this.userId}`);
29
29
  return this.GET(url);
30
30
  }
31
- getSecurity(userId) {
31
+ getSecurity() {
32
32
  const url = this.resolveURL(`${UserEndpoints.Security}/${this.userId}`);
33
33
  return this.GET(url);
34
34
  }
35
- getPhone(userId) {
35
+ getPhone() {
36
36
  const url = this.resolveURL(`${UserEndpoints.Phone}/${this.userId}`);
37
37
  return this.GET(url);
38
38
  }
39
- getPreferences(userId) {
39
+ getPreferences() {
40
40
  const url = this.resolveURL(`${UserEndpoints.Preferences}/${this.userId}`);
41
41
  return this.GET(url);
42
42
  }
43
- getPersonalInfo(userId) {
43
+ getPersonalInfo() {
44
44
  const url = this.resolveURL(`${UserEndpoints.PersonalInfo}/${this.userId}`);
45
45
  return this.GET(url);
46
46
  }
47
- getLatestHistory(userId) {
47
+ getLatestHistory() {
48
48
  const url = this.resolveURL(`${UserEndpoints.HistoryLatest}/${this.userId}`);
49
49
  return this.GET(url);
50
50
  }
51
- getIdentification(userId) {
51
+ getIdentification() {
52
52
  const url = this.resolveURL(`${UserEndpoints.Identification}/${this.userId}`);
53
53
  return this.GET(url);
54
54
  }
55
- getHistory(userId) {
55
+ getHistory() {
56
56
  const url = this.resolveURL(`${UserEndpoints.HistoryLatest}/${this.userId}`);
57
57
  return this.GET(url);
58
58
  }
59
- getGroup(userId) {
59
+ getGroup() {
60
60
  const url = this.resolveURL(`${UserEndpoints.Group}/${this.userId}`);
61
61
  return this.GET(url);
62
62
  }
63
- getExternalAuth(userId) {
63
+ getExternalAuth() {
64
64
  const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${this.userId}`);
65
65
  return this.GET(url);
66
66
  }
67
- getEmail(userId) {
67
+ getEmail() {
68
68
  const url = this.resolveURL(`${UserEndpoints.Email}/${this.userId}`);
69
69
  return this.GET(url);
70
70
  }
71
- getDocuments(userId) {
71
+ getDocuments() {
72
72
  const url = this.resolveURL(`${UserEndpoints.Documents}/${this.userId}`);
73
73
  return this.GET(url);
74
74
  }
75
- getCurrency(userId) {
75
+ getCurrency() {
76
76
  const url = this.resolveURL(`${UserEndpoints.Currency}/${this.userId}`);
77
77
  return this.GET(url);
78
78
  }
79
- getCreditCard(userId) {
79
+ getCreditCard() {
80
80
  const url = this.resolveURL(`${UserEndpoints.CreditCard}/${this.userId}`);
81
81
  return this.GET(url);
82
82
  }
83
- getBankAccount(userId) {
83
+ getBankAccount() {
84
84
  const url = this.resolveURL(`${UserEndpoints.BankAccount}/${this.userId}`);
85
85
  return this.GET(url);
86
86
  }
87
- getAddress(userId) {
87
+ getAddress() {
88
88
  const url = this.resolveURL(`${UserEndpoints.Address}/${this.userId}`);
89
89
  return this.GET(url);
90
90
  }
91
- getAccount(userId) {
91
+ getAccount() {
92
92
  const url = this.resolveURL(`${UserEndpoints.Account}/${this.userId}`);
93
93
  return this.GET(url);
94
94
  }
95
- getDeviceHistory(userId) {
95
+ getDeviceHistory() {
96
96
  const url = this.resolveURL(`${UserEndpoints.DeviceHistory}/${this.userId}`);
97
97
  return this.GET(url);
98
98
  }
99
- getActivity(userId) {
99
+ getActivity() {
100
100
  const url = this.resolveURL(`${UserEndpoints.Activity}/${this.userId}`);
101
101
  return this.GET(url);
102
102
  }
@@ -241,16 +241,16 @@ class UserService extends BaseService {
241
241
  return this.PUT(url, payload);
242
242
  }
243
243
  updateUserType(payload) {
244
- const url = this.resolveURL(`${UserEndpoints.Type}/${this.userId}}`);
244
+ const url = this.resolveURL(`${UserEndpoints.Type}/${this.userId}`);
245
245
  return this.PUT(url, payload);
246
246
  }
247
247
  // #endregion
248
248
  // #region "DELETE"
249
- deleteUser(userId) {
249
+ deleteUser() {
250
250
  const url = this.resolveURL(`/${this.userId}`);
251
251
  return this.DELETE(url);
252
252
  }
253
- deleteCreditCard(userId) {
253
+ deleteCreditCard() {
254
254
  const url = this.resolveURL(`${UserEndpoints.CreditCard}/${this.userId}`);
255
255
  return this.DELETE(url);
256
256
  }
@@ -278,7 +278,7 @@ class UserService extends BaseService {
278
278
  const url = this.resolveURL(`${UserEndpoints.Phone}/${this.userId}`);
279
279
  return this.DELETE(url, payload);
280
280
  }
281
- deleteExternalAuth(userId) {
281
+ deleteExternalAuth() {
282
282
  const url = this.resolveURL(`${UserEndpoints.ExternalAuth}/${this.userId}`);
283
283
  return this.DELETE(url);
284
284
  }
@@ -1,3 +1,7 @@
1
+ interface ICheckForgetPasswordData {
2
+ email: string;
3
+ phone: string;
4
+ }
1
5
  interface IValidateForgetPasswordData {
2
6
  additional_security_type: number;
3
7
  additional_security_value: string;
@@ -13,8 +17,4 @@ interface IConfirmForgetPasswordData {
13
17
  sub_entity: number;
14
18
  sub_entity_id: number;
15
19
  }
16
- interface ICheckForgetSecurityData {
17
- email: string;
18
- phone: string;
19
- }
20
- export { IValidateForgetPasswordData, IConfirmForgetPasswordData, ICheckForgetSecurityData, };
20
+ export { ICheckForgetPasswordData, IValidateForgetPasswordData, IConfirmForgetPasswordData, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.191",
3
+ "version": "0.1.193",
4
4
  "description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",