ggez-banking-sdk 0.1.36 → 0.1.40

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.
@@ -75,6 +75,7 @@ const Data = () => {
75
75
  info: info,
76
76
  transaction_data: transaction_data,
77
77
  authentication: authentication,
78
+ fee: null,
78
79
  };
79
80
  return data;
80
81
  };
@@ -84,6 +85,7 @@ const Data = () => {
84
85
  info: info,
85
86
  transaction_data: transaction_data,
86
87
  authentication: authentication,
88
+ fee: null,
87
89
  };
88
90
  return data;
89
91
  };
@@ -93,6 +95,7 @@ const Data = () => {
93
95
  info: info,
94
96
  transaction_data: transaction_data,
95
97
  authentication: authentication,
98
+ fee: null,
96
99
  };
97
100
  return data;
98
101
  };
@@ -102,6 +105,7 @@ const Data = () => {
102
105
  info: info,
103
106
  transaction_data: transaction_data,
104
107
  authentication: authentication,
108
+ fee: null,
105
109
  };
106
110
  return data;
107
111
  };
@@ -365,7 +365,7 @@ const Helper = (userInfo) => {
365
365
  };
366
366
  const checkUserResponseAuth = (response, showMessageSuccess, funcName) => {
367
367
  let check = response?.data?.result?.code;
368
- if (check != constants_1.SystemResponses.Approved ||
368
+ if (check != constants_1.SystemResponses.Approved &&
369
369
  check != constants_1.SystemResponses.Create_User_Completed_Partially) {
370
370
  errorHandler(response?.data?.result?.friendly_message, funcName, response);
371
371
  }
@@ -9,14 +9,22 @@ interface IAuthentication {
9
9
  }
10
10
  interface IBase {
11
11
  info: {
12
+ user_id?: number;
12
13
  account_id: number;
14
+ program_id?: number;
15
+ chain_address?: string;
16
+ validator_address?: string;
17
+ memo?: string;
18
+ type?: number;
13
19
  chain_type: ChainType;
20
+ client_date?: string;
21
+ server_date?: string;
22
+ date_utc?: string;
23
+ source_time_zone?: string;
24
+ source_id?: string;
14
25
  };
15
26
  authentication: IAuthentication[];
16
- }
17
- interface IEntry {
18
- recipient_address: string;
19
- coin: ICoin;
27
+ fee: ICoin;
20
28
  }
21
29
  export interface ISend {
22
30
  address: string;
@@ -25,12 +33,6 @@ export interface ISend {
25
33
  export interface IMultiSend {
26
34
  recipients: ISend[];
27
35
  }
28
- export interface ITransferData extends IBase {
29
- transfer_data: {
30
- entries: IEntry[];
31
- total_coins?: ICoin[];
32
- };
33
- }
34
36
  export interface ISendData extends IBase {
35
37
  transaction_data: {
36
38
  send: ISend;
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
- // import { Amount } from "./promotion";
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.36",
3
+ "version": "0.1.40",
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
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",