ggez-banking-sdk 0.1.50 → 0.1.52
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.
@@ -24,6 +24,7 @@ exports.user_access_control_list = {
|
|
24
24
|
{ resource: "home", name: "accounts", is_allowed: true },
|
25
25
|
{ resource: "home", name: "next_step", is_allowed: true },
|
26
26
|
{ resource: "home", name: "increase_security", is_allowed: true },
|
27
|
+
{ resource: "account", name: "e-wallet", is_allowed: true },
|
27
28
|
{ resource: "account", name: "chain", is_allowed: true },
|
28
29
|
{ resource: "activity", name: "e-wallet", is_allowed: true },
|
29
30
|
{ resource: "activity", name: "chain", is_allowed: true },
|
@@ -125,20 +125,23 @@ const Data = () => {
|
|
125
125
|
};
|
126
126
|
const dataSignUpApi = (values) => {
|
127
127
|
const client = new clientjs_1.ClientJS();
|
128
|
-
|
128
|
+
const customField = {
|
129
|
+
user_access_control: acl_1.user_access_control_list,
|
130
|
+
};
|
129
131
|
if (values.referralCode && values.referralCodeType) {
|
130
|
-
if (!customField) {
|
131
|
-
customField = {
|
132
|
+
if (!customField.promotion_data) {
|
133
|
+
customField.promotion_data = {};
|
132
134
|
}
|
133
|
-
customField.promotion_data
|
134
|
-
|
135
|
-
|
135
|
+
customField.promotion_data = {
|
136
|
+
referral_data: {
|
137
|
+
code: values.referralCode,
|
138
|
+
type: +values.referralCodeType,
|
139
|
+
},
|
136
140
|
};
|
137
141
|
}
|
138
|
-
customField.user_access_control = acl_1.user_access_control_list;
|
139
142
|
if (values.giftData) {
|
140
|
-
if (!customField) {
|
141
|
-
customField = {
|
143
|
+
if (!customField.promotion_data) {
|
144
|
+
customField.promotion_data = {};
|
142
145
|
}
|
143
146
|
customField.promotion_data.gift_data = [values.giftData];
|
144
147
|
customField.user_access_control.action =
|
@@ -260,21 +263,32 @@ const Data = () => {
|
|
260
263
|
};
|
261
264
|
const dataSignUpWithGoogle = (values) => {
|
262
265
|
const client = new clientjs_1.ClientJS();
|
263
|
-
|
266
|
+
const customField = {
|
267
|
+
user_access_control: acl_1.user_access_control_list,
|
268
|
+
};
|
264
269
|
if (values.referralCode && values.referralCodeType) {
|
265
|
-
if (!customField) {
|
266
|
-
customField = {
|
270
|
+
if (!customField.promotion_data) {
|
271
|
+
customField.promotion_data = {};
|
267
272
|
}
|
268
|
-
customField.promotion_data
|
269
|
-
|
270
|
-
|
273
|
+
customField.promotion_data = {
|
274
|
+
referral_data: {
|
275
|
+
code: values.referralCode,
|
276
|
+
type: +values.referralCodeType,
|
277
|
+
},
|
271
278
|
};
|
272
279
|
}
|
273
280
|
if (values.giftData) {
|
274
|
-
if (!customField) {
|
275
|
-
customField = {
|
281
|
+
if (!customField.promotion_data) {
|
282
|
+
customField.promotion_data = {};
|
276
283
|
}
|
277
284
|
customField.promotion_data.gift_data = [values.giftData];
|
285
|
+
customField.user_access_control.action =
|
286
|
+
acl_1.user_access_control_list.action.map((e) => {
|
287
|
+
if (e.name == "send") {
|
288
|
+
e.is_allowed = true;
|
289
|
+
}
|
290
|
+
return e;
|
291
|
+
});
|
278
292
|
}
|
279
293
|
let authentication = [];
|
280
294
|
if (values.mobileAuthenticationCode &&
|
@@ -97,7 +97,7 @@ export interface LimitedTokenInterface {
|
|
97
97
|
geoCoordinates?: IGeoCoordinates | null;
|
98
98
|
}
|
99
99
|
export interface CustomField {
|
100
|
-
promotion_data
|
100
|
+
promotion_data?: PromotionData;
|
101
101
|
user_access_control: AccessControlPolicy;
|
102
102
|
}
|
103
103
|
export interface PromotionData {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ggez-banking-sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.52",
|
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",
|