ggez-banking-sdk 0.1.30 → 0.1.32
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.
@@ -39,10 +39,7 @@ declare const Data: () => {
|
|
39
39
|
is_primary: number;
|
40
40
|
verification_status: number;
|
41
41
|
}[];
|
42
|
-
authentication:
|
43
|
-
type: number;
|
44
|
-
code: string;
|
45
|
-
}[];
|
42
|
+
authentication: any[];
|
46
43
|
security: {
|
47
44
|
password: string;
|
48
45
|
security_code: number;
|
@@ -143,10 +140,7 @@ declare const Data: () => {
|
|
143
140
|
is_primary: number;
|
144
141
|
verification_status: number;
|
145
142
|
}[];
|
146
|
-
authentication:
|
147
|
-
type: number;
|
148
|
-
code: string;
|
149
|
-
}[];
|
143
|
+
authentication: any[];
|
150
144
|
security: {
|
151
145
|
password: string;
|
152
146
|
security_code: number;
|
@@ -116,6 +116,31 @@ const Data = () => {
|
|
116
116
|
}
|
117
117
|
customField.promotion_data.gift_data = [values.giftData];
|
118
118
|
}
|
119
|
+
let authentication = [];
|
120
|
+
if (values.mobileAuthenticationCode) {
|
121
|
+
authentication = [
|
122
|
+
{
|
123
|
+
type: enum_1.SecurityAuthenticationTypes.SMS_Code,
|
124
|
+
code: values.mobileAuthenticationCode,
|
125
|
+
},
|
126
|
+
{
|
127
|
+
type: enum_1.SecurityAuthenticationTypes.Email_Code,
|
128
|
+
code: values.emailAuthenticationCode,
|
129
|
+
},
|
130
|
+
];
|
131
|
+
}
|
132
|
+
else {
|
133
|
+
authentication = [
|
134
|
+
{
|
135
|
+
type: enum_1.SecurityAuthenticationTypes.Email_Code,
|
136
|
+
code: values.emailAuthenticationCode,
|
137
|
+
},
|
138
|
+
];
|
139
|
+
}
|
140
|
+
let mobileVerificationStatus = 0;
|
141
|
+
if (values?.isMobileConfirmed && values.isMobileConfirmed == true) {
|
142
|
+
mobileVerificationStatus = 1;
|
143
|
+
}
|
119
144
|
let data = {
|
120
145
|
...data_1.userData,
|
121
146
|
info: {
|
@@ -149,19 +174,10 @@ const Data = () => {
|
|
149
174
|
country_code: values.mobileNumberCountry,
|
150
175
|
number: values.mobileNumber,
|
151
176
|
is_primary: 1,
|
152
|
-
verification_status:
|
153
|
-
},
|
154
|
-
],
|
155
|
-
authentication: [
|
156
|
-
{
|
157
|
-
type: 10,
|
158
|
-
code: values.mobileAuthenticationCode,
|
159
|
-
},
|
160
|
-
{
|
161
|
-
type: 9,
|
162
|
-
code: values.emailAuthenticationCode,
|
177
|
+
verification_status: mobileVerificationStatus,
|
163
178
|
},
|
164
179
|
],
|
180
|
+
authentication: authentication,
|
165
181
|
security: {
|
166
182
|
password: values.password,
|
167
183
|
security_code: values.securityCode,
|
@@ -225,6 +241,22 @@ const Data = () => {
|
|
225
241
|
}
|
226
242
|
customField.promotion_data.gift_data = [values.giftData];
|
227
243
|
}
|
244
|
+
let authentication = [];
|
245
|
+
if (values.mobileAuthenticationCode) {
|
246
|
+
authentication = [
|
247
|
+
{
|
248
|
+
type: enum_1.SecurityAuthenticationTypes.SMS_Code,
|
249
|
+
code: values.mobileAuthenticationCode,
|
250
|
+
},
|
251
|
+
];
|
252
|
+
}
|
253
|
+
else {
|
254
|
+
authentication = null;
|
255
|
+
}
|
256
|
+
let mobileVerificationStatus = 0;
|
257
|
+
if (values?.isMobileConfirmed && values.isMobileConfirmed == true) {
|
258
|
+
mobileVerificationStatus = 1;
|
259
|
+
}
|
228
260
|
let data = {
|
229
261
|
...data_1.userData,
|
230
262
|
info: {
|
@@ -258,15 +290,10 @@ const Data = () => {
|
|
258
290
|
country_code: values.mobileNumberCountry,
|
259
291
|
number: values.mobileNumber,
|
260
292
|
is_primary: 1,
|
261
|
-
verification_status:
|
262
|
-
},
|
263
|
-
],
|
264
|
-
authentication: [
|
265
|
-
{
|
266
|
-
type: 10,
|
267
|
-
code: values.mobileAuthenticationCode,
|
293
|
+
verification_status: mobileVerificationStatus,
|
268
294
|
},
|
269
295
|
],
|
296
|
+
authentication: authentication,
|
270
297
|
security: {
|
271
298
|
password: values.password,
|
272
299
|
security_code: values.securityCode,
|
@@ -13,6 +13,7 @@ export interface SignUpInterface {
|
|
13
13
|
mobileNumber: string;
|
14
14
|
password: string;
|
15
15
|
currency: string;
|
16
|
+
isMobileConfirmed?: boolean;
|
16
17
|
mobileAuthenticationCode: string;
|
17
18
|
emailAuthenticationCode: string;
|
18
19
|
installationID: string;
|
@@ -51,6 +52,7 @@ export interface SignUpWithGoogleInterface {
|
|
51
52
|
currency: string;
|
52
53
|
loginId: string;
|
53
54
|
token: string;
|
55
|
+
isMobileConfirmed?: boolean;
|
54
56
|
mobileAuthenticationCode: string;
|
55
57
|
picture: string;
|
56
58
|
installationID: 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.32",
|
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",
|