ggez-banking-sdk 0.1.162 → 0.1.164

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.
@@ -2,7 +2,7 @@ import { USR } from "../../types";
2
2
  declare class CookiesHelper {
3
3
  private domain;
4
4
  private programId;
5
- constructor(programId: string, domain: string);
5
+ constructor(programId: string);
6
6
  GetIID(): string;
7
7
  SetIID(): string;
8
8
  ValidateIID(IID: string): string;
@@ -7,8 +7,8 @@ class CookiesHelper {
7
7
  programId = "0";
8
8
  // #endregion
9
9
  // #region "Constructor"
10
- constructor(programId, domain) {
11
- this.domain = domain;
10
+ constructor(programId) {
11
+ this.domain = window.location.hostname;
12
12
  this.programId = programId;
13
13
  }
14
14
  // #endregion
@@ -5,7 +5,7 @@ export * from "./localStorageHelper";
5
5
  declare class StorageHelper {
6
6
  localStorageHelper: LocalStorageHelper;
7
7
  cookiesHelper: CookiesHelper;
8
- constructor(programId: string, domain: string);
8
+ constructor(programId: string);
9
9
  GetCookiesHelper(): CookiesHelper;
10
10
  GetLocalStorageHelper(): LocalStorageHelper;
11
11
  }
@@ -5,9 +5,9 @@ export * from "./localStorageHelper";
5
5
  class StorageHelper {
6
6
  localStorageHelper;
7
7
  cookiesHelper;
8
- constructor(programId, domain) {
9
- this.localStorageHelper = new LocalStorageHelper(programId, domain);
10
- this.cookiesHelper = new CookiesHelper(programId, domain);
8
+ constructor(programId) {
9
+ this.localStorageHelper = new LocalStorageHelper(programId);
10
+ this.cookiesHelper = new CookiesHelper(programId);
11
11
  }
12
12
  GetCookiesHelper() {
13
13
  return this.cookiesHelper;
@@ -4,7 +4,7 @@ declare class LocalStorageHelper {
4
4
  cookiesHelper: CookiesHelper;
5
5
  programId: string;
6
6
  domain: string;
7
- constructor(programId: string, domain: string);
7
+ constructor(programId: string);
8
8
  GetUserData(): UserData;
9
9
  SetUserData(userData: UserData): void;
10
10
  GET(key: string): string;
@@ -5,8 +5,8 @@ class LocalStorageHelper {
5
5
  programId;
6
6
  domain;
7
7
  // #region "Constructor"
8
- constructor(programId, domain) {
9
- this.cookiesHelper = new CookiesHelper(programId, domain);
8
+ constructor(programId) {
9
+ this.cookiesHelper = new CookiesHelper(programId);
10
10
  }
11
11
  // #endregion
12
12
  // #region "User Data"
@@ -1,7 +1,6 @@
1
1
  type AccountClientData = {
2
2
  token: string;
3
3
  baseUrl: string;
4
- userInfo: any;
5
4
  lang?: string;
6
5
  installationId?: string;
7
6
  };
@@ -1,7 +1,6 @@
1
1
  type BlockchainClientData = {
2
2
  token: string;
3
3
  baseUrl: string;
4
- userInfo: any;
5
4
  lang?: string;
6
5
  installationId?: string;
7
6
  };
@@ -1,7 +1,6 @@
1
1
  type IPAddressAndLocationClientData = {
2
2
  token: string;
3
3
  baseUrl: string;
4
- userInfo: any;
5
4
  lang?: string;
6
5
  installationId?: string;
7
6
  };
@@ -1,7 +1,6 @@
1
1
  type OrderClientData = {
2
2
  token: string;
3
3
  baseUrl: string;
4
- userInfo: any;
5
4
  lang?: string;
6
5
  installationId?: string;
7
6
  };
@@ -2,7 +2,6 @@ type OrganizationClientData = {
2
2
  token: string;
3
3
  baseUrl: string;
4
4
  userId: number;
5
- userInfo: any;
6
5
  lang?: string;
7
6
  installationId?: string;
8
7
  };
@@ -1,7 +1,6 @@
1
1
  type TransactionClientData = {
2
2
  token: string;
3
3
  baseUrl: string;
4
- userInfo: any;
5
4
  lang?: string;
6
5
  installationId?: string;
7
6
  };
@@ -1,6 +1,5 @@
1
1
  type UserClientData = {
2
2
  token: string;
3
- userInfo: any;
4
3
  userId: number;
5
4
  baseUrl: string;
6
5
  nodeUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.162",
3
+ "version": "0.1.164",
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",