ggez-banking-sdk 0.1.47 → 0.1.49

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.
@@ -98,6 +98,7 @@ export interface LimitedTokenInterface {
98
98
  }
99
99
  export interface CustomField {
100
100
  promotion_data: PromotionData;
101
+ user_access_control: AccessControlPolicy;
101
102
  }
102
103
  export interface PromotionData {
103
104
  referral_data?: ReferralData;
@@ -107,3 +108,20 @@ export interface ReferralData {
107
108
  code: string;
108
109
  type: number;
109
110
  }
111
+ export interface AccessControlPolicy {
112
+ resource: {
113
+ name: string;
114
+ can: boolean;
115
+ }[];
116
+ section: {
117
+ resource: string;
118
+ name: string;
119
+ can: boolean;
120
+ }[];
121
+ action: {
122
+ resource: string;
123
+ section?: string;
124
+ name: string;
125
+ can: boolean;
126
+ }[];
127
+ }
@@ -37,7 +37,7 @@ const useBlockchain = (token, userInfo, userId, baseUrl, lang) => {
37
37
  }
38
38
  catch (error) {
39
39
  return {
40
- response: error.response,
40
+ response: error.response?.data,
41
41
  newUser: null,
42
42
  message: error.message,
43
43
  status: "failed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
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",