ggez-banking-sdk 0.1.28 → 0.1.30
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.
@@ -143,6 +143,10 @@ declare const Data: () => {
|
|
143
143
|
is_primary: number;
|
144
144
|
verification_status: number;
|
145
145
|
}[];
|
146
|
+
authentication: {
|
147
|
+
type: number;
|
148
|
+
code: string;
|
149
|
+
}[];
|
146
150
|
security: {
|
147
151
|
password: string;
|
148
152
|
security_code: number;
|
@@ -214,7 +218,6 @@ declare const Data: () => {
|
|
214
218
|
activity: any;
|
215
219
|
notes: any;
|
216
220
|
last_activity: any;
|
217
|
-
authentication: any;
|
218
221
|
validate: any;
|
219
222
|
function_code: any;
|
220
223
|
response_time: any;
|
@@ -70,18 +70,20 @@ const Data = () => {
|
|
70
70
|
};
|
71
71
|
const GetBlockchainRequestData = (values, blockchainRequestType) => {
|
72
72
|
const GetTransferRequestData = (values) => {
|
73
|
-
const { transfer_data, info } = values;
|
73
|
+
const { transfer_data, info, authentication } = values;
|
74
74
|
const data = {
|
75
75
|
info: info,
|
76
76
|
transfer_data: transfer_data,
|
77
|
+
authentication: authentication,
|
77
78
|
};
|
78
79
|
return data;
|
79
80
|
};
|
80
81
|
const GetDelegationRequestData = (values) => {
|
81
|
-
const { delegation_data, info } = values;
|
82
|
+
const { delegation_data, info, authentication } = values;
|
82
83
|
const data = {
|
83
84
|
info: info,
|
84
85
|
delegation_data: delegation_data,
|
86
|
+
authentication: authentication,
|
85
87
|
};
|
86
88
|
return data;
|
87
89
|
};
|
@@ -151,10 +153,10 @@ const Data = () => {
|
|
151
153
|
},
|
152
154
|
],
|
153
155
|
authentication: [
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
156
|
+
{
|
157
|
+
type: 10,
|
158
|
+
code: values.mobileAuthenticationCode,
|
159
|
+
},
|
158
160
|
{
|
159
161
|
type: 9,
|
160
162
|
code: values.emailAuthenticationCode,
|
@@ -259,12 +261,12 @@ const Data = () => {
|
|
259
261
|
verification_status: 1,
|
260
262
|
},
|
261
263
|
],
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
264
|
+
authentication: [
|
265
|
+
{
|
266
|
+
type: 10,
|
267
|
+
code: values.mobileAuthenticationCode,
|
268
|
+
},
|
269
|
+
],
|
268
270
|
security: {
|
269
271
|
password: values.password,
|
270
272
|
security_code: values.securityCode,
|
@@ -2,10 +2,15 @@ interface ICoin {
|
|
2
2
|
amount: string;
|
3
3
|
denom: string;
|
4
4
|
}
|
5
|
+
interface IAuthentication {
|
6
|
+
type: number;
|
7
|
+
code: string;
|
8
|
+
}
|
5
9
|
interface IBase {
|
6
10
|
info: {
|
7
11
|
account_id: number;
|
8
12
|
};
|
13
|
+
authentication: IAuthentication[];
|
9
14
|
}
|
10
15
|
interface IEntry {
|
11
16
|
recipient_address: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ggez-banking-sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.30",
|
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",
|