ggez-banking-sdk 0.1.131 → 0.1.132

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.
@@ -6,7 +6,7 @@ declare class UserClient {
6
6
  private userService;
7
7
  private authService;
8
8
  constructor(clientData: UserClientData);
9
- GetUser: (userId?: number, token?: string) => Promise<{
9
+ GetUser: (userId: number) => Promise<{
10
10
  data: UserData;
11
11
  success: boolean;
12
12
  message: string;
@@ -14,9 +14,9 @@ class UserClient {
14
14
  this.authService = new AuthService(config, nodeUrl);
15
15
  }
16
16
  // #region "GET"
17
- GetUser = async (userId, token) => {
17
+ GetUser = async (userId) => {
18
18
  try {
19
- const response = await this.userService.getUser(userId || this.clientData.userId, token);
19
+ const response = await this.userService.getUser(userId || this.clientData.userId);
20
20
  return ResponseHelper.GetResponse(response.data);
21
21
  }
22
22
  catch (error) {
@@ -5,7 +5,7 @@ declare class UserService extends BaseService {
5
5
  url: string;
6
6
  endpoint: string;
7
7
  constructor(config: AxiosRequestConfig);
8
- getUser(userId: number, token?: string): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
8
+ getUser(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
9
9
  getTermsAndConditions(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
10
10
  getSecurity(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
11
11
  getPhone(userId: number): Promise<import("axios").AxiosResponse<UserData, any, {}>>;
@@ -15,11 +15,9 @@ class UserService extends BaseService {
15
15
  });
16
16
  }
17
17
  // #region "GET"
18
- async getUser(userId, token) {
18
+ async getUser(userId) {
19
19
  const url = this.resolveURL(`/${userId}`);
20
- return this.GET(url, undefined, {
21
- headers: { Authorization: `Bearer ${token}` },
22
- });
20
+ return this.GET(url);
23
21
  }
24
22
  async getTermsAndConditions(userId) {
25
23
  const url = this.resolveURL(`${UserEndpoints.TermsAndConditions}/${userId}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.131",
3
+ "version": "0.1.132",
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",