ggez-banking-sdk 0.1.60 → 0.1.62

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.
@@ -12,7 +12,6 @@ const timezone_1 = __importDefault(require("dayjs/plugin/timezone"));
12
12
  const utils_1 = require("../utils");
13
13
  const structure_1 = require("../constants/structure");
14
14
  const constants_1 = require("../constants");
15
- const acl_1 = require("../constants/acl");
16
15
  dayjs_1.default.extend(utc_1.default);
17
16
  dayjs_1.default.extend(timezone_1.default);
18
17
  const Data = () => {
@@ -125,9 +124,7 @@ const Data = () => {
125
124
  };
126
125
  const dataSignUpApi = (values) => {
127
126
  const client = new clientjs_1.ClientJS();
128
- const customField = {
129
- user_access_control: acl_1.user_access_control,
130
- };
127
+ const customField = {};
131
128
  if (values.referralCode && values.referralCodeType) {
132
129
  if (!customField.promotion_data) {
133
130
  customField.promotion_data = {};
@@ -144,24 +141,6 @@ const Data = () => {
144
141
  customField.promotion_data = {};
145
142
  }
146
143
  customField.promotion_data.gift_data = [values.giftData];
147
- customField.user_access_control.page =
148
- customField.user_access_control.page.map((e) => {
149
- if (e.name == "account") {
150
- const section = e.section.map((e) => {
151
- if (e.name == "chain") {
152
- e.action = e.action.map((e) => {
153
- if (e.name == "send") {
154
- e.is_allowed = 1;
155
- }
156
- return e;
157
- });
158
- }
159
- return e;
160
- });
161
- return { ...e, section };
162
- }
163
- return e;
164
- });
165
144
  }
166
145
  let authentication = [];
167
146
  if (values.mobileAuthenticationCode &&
@@ -274,9 +253,7 @@ const Data = () => {
274
253
  };
275
254
  const dataSignUpWithGoogle = (values) => {
276
255
  const client = new clientjs_1.ClientJS();
277
- const customField = {
278
- user_access_control: acl_1.user_access_control,
279
- };
256
+ const customField = {};
280
257
  if (values.referralCode && values.referralCodeType) {
281
258
  if (!customField.promotion_data) {
282
259
  customField.promotion_data = {};
@@ -293,24 +270,6 @@ const Data = () => {
293
270
  customField.promotion_data = {};
294
271
  }
295
272
  customField.promotion_data.gift_data = [values.giftData];
296
- customField.user_access_control.page =
297
- customField.user_access_control.page.map((e) => {
298
- if (e.name == "account") {
299
- const section = e.section.map((e) => {
300
- if (e.name == "chain") {
301
- e.action = e.action.map((e) => {
302
- if (e.name == "send") {
303
- e.is_allowed = 1;
304
- }
305
- return e;
306
- });
307
- }
308
- return e;
309
- });
310
- return { ...e, section };
311
- }
312
- return e;
313
- });
314
273
  }
315
274
  let authentication = [];
316
275
  if (values.mobileAuthenticationCode &&
@@ -98,7 +98,7 @@ export interface LimitedTokenInterface {
98
98
  }
99
99
  export interface CustomField {
100
100
  promotion_data?: PromotionData;
101
- user_access_control: IUserAccessControl;
101
+ user_access_control?: IUserAccessControl;
102
102
  }
103
103
  export interface PromotionData {
104
104
  referral_data?: ReferralData;
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/bank-system/constants/acl.ts","../src/bank-system/constants/constants.ts","../src/bank-system/constants/enum.ts","../src/bank-system/constants/index.ts","../src/bank-system/constants/structure.ts","../src/bank-system/content/accountCurrencies.ts","../src/bank-system/content/countries.ts","../src/bank-system/content/currencies.ts","../src/bank-system/content/index.ts","../src/bank-system/content/state.ts","../src/bank-system/helper/data.ts","../src/bank-system/helper/dataStructure.tsx","../src/bank-system/helper/index.tsx","../src/bank-system/interfaces/accountInterface.ts","../src/bank-system/interfaces/bankingSystemInterface.ts","../src/bank-system/interfaces/blockchain.ts","../src/bank-system/interfaces/commonInterface.ts","../src/bank-system/interfaces/deviceInterface.ts","../src/bank-system/interfaces/index.ts","../src/bank-system/interfaces/interface.ts","../src/bank-system/interfaces/organizationInterface.ts","../src/bank-system/interfaces/promotion.ts","../src/bank-system/interfaces/signInterface.ts","../src/bank-system/interfaces/transactionInterface.ts","../src/bank-system/restApi/index.tsx","../src/bank-system/services/account.ts","../src/bank-system/services/addresses.ts","../src/bank-system/services/auth.ts","../src/bank-system/services/bankAccount.ts","../src/bank-system/services/blockchain.ts","../src/bank-system/services/device.ts","../src/bank-system/services/document.ts","../src/bank-system/services/email.ts","../src/bank-system/services/history.ts","../src/bank-system/services/identification.ts","../src/bank-system/services/index.ts","../src/bank-system/services/organization.ts","../src/bank-system/services/personalInfo.ts","../src/bank-system/services/phone.ts","../src/bank-system/services/security.ts","../src/bank-system/services/ticket.ts","../src/bank-system/services/token.ts","../src/bank-system/services/transaction.ts","../src/bank-system/services/verifyAndConfirm.ts","../src/bank-system/utils/blockchainHelper.ts","../src/bank-system/utils/chainAddressMasking.ts","../src/bank-system/utils/copyText.ts","../src/bank-system/utils/countryAndCurrencyData.ts","../src/bank-system/utils/enumToOption.ts","../src/bank-system/utils/fillDeviceDetails.ts","../src/bank-system/utils/generateOneLiner.ts","../src/bank-system/utils/generateSourceId.ts","../src/bank-system/utils/getCountryName.ts","../src/bank-system/utils/getEnumName.ts","../src/bank-system/utils/getStateByCountryCode.ts","../src/bank-system/utils/index.ts","../src/bank-system/utils/info.ts","../src/bank-system/utils/maskingFunction.ts","../src/bank-system/utils/regex.ts","../src/bank-system/utils/sortUserInfo.ts","../src/bank-system/utils/handleEncryption/decryptData.tsx","../src/bank-system/utils/handleEncryption/encryptData.tsx","../src/bank-system/utils/handleEncryption/index.ts","../src/bank-system/utils/handleEncryption/key.ts","../src/keplr-config/chainInfo.ts"],"version":"5.8.3"}
1
+ {"root":["../src/index.ts","../src/bank-system/constants/constants.ts","../src/bank-system/constants/enum.ts","../src/bank-system/constants/index.ts","../src/bank-system/constants/structure.ts","../src/bank-system/content/accountCurrencies.ts","../src/bank-system/content/countries.ts","../src/bank-system/content/currencies.ts","../src/bank-system/content/index.ts","../src/bank-system/content/state.ts","../src/bank-system/helper/data.ts","../src/bank-system/helper/dataStructure.tsx","../src/bank-system/helper/index.tsx","../src/bank-system/interfaces/accountInterface.ts","../src/bank-system/interfaces/bankingSystemInterface.ts","../src/bank-system/interfaces/blockchain.ts","../src/bank-system/interfaces/commonInterface.ts","../src/bank-system/interfaces/deviceInterface.ts","../src/bank-system/interfaces/index.ts","../src/bank-system/interfaces/interface.ts","../src/bank-system/interfaces/organizationInterface.ts","../src/bank-system/interfaces/promotion.ts","../src/bank-system/interfaces/signInterface.ts","../src/bank-system/interfaces/transactionInterface.ts","../src/bank-system/restApi/index.tsx","../src/bank-system/services/account.ts","../src/bank-system/services/addresses.ts","../src/bank-system/services/auth.ts","../src/bank-system/services/bankAccount.ts","../src/bank-system/services/blockchain.ts","../src/bank-system/services/device.ts","../src/bank-system/services/document.ts","../src/bank-system/services/email.ts","../src/bank-system/services/history.ts","../src/bank-system/services/identification.ts","../src/bank-system/services/index.ts","../src/bank-system/services/organization.ts","../src/bank-system/services/personalInfo.ts","../src/bank-system/services/phone.ts","../src/bank-system/services/security.ts","../src/bank-system/services/ticket.ts","../src/bank-system/services/token.ts","../src/bank-system/services/transaction.ts","../src/bank-system/services/verifyAndConfirm.ts","../src/bank-system/utils/blockchainHelper.ts","../src/bank-system/utils/chainAddressMasking.ts","../src/bank-system/utils/copyText.ts","../src/bank-system/utils/countryAndCurrencyData.ts","../src/bank-system/utils/enumToOption.ts","../src/bank-system/utils/fillDeviceDetails.ts","../src/bank-system/utils/generateOneLiner.ts","../src/bank-system/utils/generateSourceId.ts","../src/bank-system/utils/getCountryName.ts","../src/bank-system/utils/getEnumName.ts","../src/bank-system/utils/getStateByCountryCode.ts","../src/bank-system/utils/index.ts","../src/bank-system/utils/info.ts","../src/bank-system/utils/maskingFunction.ts","../src/bank-system/utils/regex.ts","../src/bank-system/utils/sortUserInfo.ts","../src/bank-system/utils/handleEncryption/decryptData.tsx","../src/bank-system/utils/handleEncryption/encryptData.tsx","../src/bank-system/utils/handleEncryption/index.ts","../src/bank-system/utils/handleEncryption/key.ts","../src/keplr-config/chainInfo.ts"],"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
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",
@@ -1,2 +0,0 @@
1
- import { IUserAccessControl } from "../interfaces";
2
- export declare const user_access_control: IUserAccessControl;
@@ -1,281 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.user_access_control = void 0;
4
- exports.user_access_control = {
5
- page: [
6
- {
7
- name: "home",
8
- is_allowed: 1,
9
- section: [
10
- { name: "accounts", is_allowed: 1, action: [] },
11
- { name: "next_step", is_allowed: 1, action: [] },
12
- { name: "increase_security", is_allowed: 1, action: [] },
13
- ],
14
- },
15
- {
16
- name: "profile",
17
- is_allowed: 1,
18
- section: [],
19
- },
20
- {
21
- name: "account",
22
- is_allowed: 1,
23
- section: [
24
- {
25
- name: "e_wallet",
26
- is_allowed: 1,
27
- action: [
28
- { name: "deposit", is_allowed: 1 },
29
- { name: "withdraw", is_allowed: 1 },
30
- ],
31
- },
32
- {
33
- name: "e_wallet/table",
34
- is_allowed: 1,
35
- action: [],
36
- },
37
- {
38
- name: "chain",
39
- is_allowed: 1,
40
- action: [
41
- { name: "send", is_allowed: 0 },
42
- { name: "receive", is_allowed: 1 },
43
- { name: "buy", is_allowed: 1 },
44
- { name: "sell", is_allowed: 1 },
45
- { name: "stake", is_allowed: 0 },
46
- { name: "unstake", is_allowed: 0 },
47
- ],
48
- },
49
- {
50
- name: "chain/address_dropdown",
51
- is_allowed: 1,
52
- action: [],
53
- },
54
- {
55
- name: "chain/spendable_tab",
56
- is_allowed: 1,
57
- action: [],
58
- },
59
- {
60
- name: "chain/staked_tab",
61
- is_allowed: 1,
62
- action: [],
63
- },
64
- {
65
- name: "chain/vested_tab",
66
- is_allowed: 1,
67
- action: [],
68
- },
69
- ],
70
- },
71
- {
72
- name: "activity",
73
- is_allowed: 1,
74
- section: [
75
- {
76
- name: "e_wallet",
77
- is_allowed: 1,
78
- action: [
79
- { name: "submit", is_allowed: 1 },
80
- { name: "reset", is_allowed: 1 },
81
- { name: "e_wallet", is_allowed: 1 },
82
- { name: "period", is_allowed: 1 },
83
- { name: "transaction_type", is_allowed: 1 },
84
- { name: "status", is_allowed: 1 },
85
- ],
86
- },
87
- {
88
- name: "chain",
89
- is_allowed: 1,
90
- action: [
91
- { name: "submit", is_allowed: 1 },
92
- { name: "reset", is_allowed: 1 },
93
- { name: "address", is_allowed: 1 },
94
- { name: "period", is_allowed: 1 },
95
- { name: "asset", is_allowed: 1 },
96
- { name: "transaction_type", is_allowed: 1 },
97
- { name: "status", is_allowed: 1 },
98
- ],
99
- },
100
- ],
101
- },
102
- {
103
- name: "referral",
104
- is_allowed: 1,
105
- section: [],
106
- },
107
- {
108
- name: "profile/home",
109
- is_allowed: 1,
110
- section: [],
111
- },
112
- {
113
- name: "profile/organization",
114
- is_allowed: 1,
115
- section: [
116
- {
117
- name: "index",
118
- is_allowed: 1,
119
- action: [
120
- { name: "create", is_allowed: 1 },
121
- { name: "show", is_allowed: 1 },
122
- { name: "edit", is_allowed: 1 },
123
- { name: "delete", is_allowed: 1 },
124
- { name: "verify", is_allowed: 1 },
125
- { name: "make_primary", is_allowed: 1 },
126
- ],
127
- },
128
- ],
129
- },
130
- {
131
- name: "profile/identification",
132
- is_allowed: 1,
133
- section: [
134
- {
135
- name: "index",
136
- is_allowed: 1,
137
- action: [
138
- { name: "create", is_allowed: 1 },
139
- { name: "show", is_allowed: 1 },
140
- { name: "edit", is_allowed: 1 },
141
- { name: "delete", is_allowed: 1 },
142
- { name: "verify", is_allowed: 1 },
143
- { name: "make_primary", is_allowed: 1 },
144
- ],
145
- },
146
- ],
147
- },
148
- {
149
- name: "profile/email",
150
- is_allowed: 1,
151
- section: [
152
- {
153
- name: "index",
154
- is_allowed: 1,
155
- action: [
156
- { name: "create", is_allowed: 1 },
157
- { name: "show", is_allowed: 1 },
158
- { name: "edit", is_allowed: 1 },
159
- { name: "delete", is_allowed: 1 },
160
- { name: "verify", is_allowed: 1 },
161
- { name: "make_primary", is_allowed: 1 },
162
- ],
163
- },
164
- ],
165
- },
166
- {
167
- name: "profile/phone",
168
- is_allowed: 1,
169
- section: [
170
- {
171
- name: "index",
172
- is_allowed: 1,
173
- action: [
174
- { name: "create", is_allowed: 1 },
175
- { name: "show", is_allowed: 1 },
176
- { name: "edit", is_allowed: 1 },
177
- { name: "delete", is_allowed: 1 },
178
- { name: "verify", is_allowed: 1 },
179
- { name: "make_primary", is_allowed: 1 },
180
- ],
181
- },
182
- ],
183
- },
184
- {
185
- name: "profile/address",
186
- is_allowed: 1,
187
- section: [
188
- {
189
- name: "index",
190
- is_allowed: 1,
191
- action: [
192
- { name: "create", is_allowed: 1 },
193
- { name: "show", is_allowed: 1 },
194
- { name: "edit", is_allowed: 1 },
195
- { name: "delete", is_allowed: 1 },
196
- { name: "verify", is_allowed: 1 },
197
- { name: "make_primary", is_allowed: 1 },
198
- ],
199
- },
200
- ],
201
- },
202
- {
203
- name: "profile/bank",
204
- is_allowed: 1,
205
- section: [
206
- {
207
- name: "index",
208
- is_allowed: 1,
209
- action: [
210
- { name: "create", is_allowed: 1 },
211
- { name: "show", is_allowed: 1 },
212
- { name: "edit", is_allowed: 1 },
213
- { name: "delete", is_allowed: 1 },
214
- { name: "verify", is_allowed: 1 },
215
- { name: "make_primary", is_allowed: 1 },
216
- ],
217
- },
218
- ],
219
- },
220
- {
221
- name: "profile/preferences",
222
- is_allowed: 1,
223
- section: [
224
- {
225
- name: "index",
226
- is_allowed: 1,
227
- action: [{ name: "edit", is_allowed: 1 }],
228
- },
229
- ],
230
- },
231
- {
232
- name: "profile/security",
233
- is_allowed: 1,
234
- section: [
235
- {
236
- name: "index",
237
- is_allowed: 1,
238
- action: [
239
- { name: "password", is_allowed: 1 },
240
- { name: "security_code", is_allowed: 1 },
241
- { name: "security_questions", is_allowed: 1 },
242
- { name: "authenticator_app", is_allowed: 1 },
243
- ],
244
- },
245
- ],
246
- },
247
- {
248
- name: "profile/device",
249
- is_allowed: 1,
250
- section: [
251
- {
252
- name: "index",
253
- is_allowed: 1,
254
- action: [
255
- { name: "trust", is_allowed: 1 },
256
- { name: "untrust", is_allowed: 1 },
257
- { name: "logout_all", is_allowed: 1 },
258
- { name: "logout", is_allowed: 1 },
259
- { name: "delete", is_allowed: 1 },
260
- ],
261
- },
262
- ],
263
- },
264
- {
265
- name: "profile/account_activity",
266
- is_allowed: 1,
267
- section: [
268
- {
269
- name: "login_history",
270
- is_allowed: 1,
271
- action: [],
272
- },
273
- {
274
- name: "security_operations",
275
- is_allowed: 1,
276
- action: [],
277
- },
278
- ],
279
- },
280
- ],
281
- };