ggez-banking-sdk 0.1.50 → 0.1.51

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.
@@ -125,20 +125,23 @@ const Data = () => {
125
125
  };
126
126
  const dataSignUpApi = (values) => {
127
127
  const client = new clientjs_1.ClientJS();
128
- let customField = null;
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 = { promotion_data: {} };
132
+ if (!customField.promotion_data) {
133
+ customField.promotion_data = {};
132
134
  }
133
- customField.promotion_data.referral_data = {
134
- code: values.referralCode,
135
- type: +values.referralCodeType,
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 = { promotion_data: {} };
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 =
@@ -97,7 +97,7 @@ export interface LimitedTokenInterface {
97
97
  geoCoordinates?: IGeoCoordinates | null;
98
98
  }
99
99
  export interface CustomField {
100
- promotion_data: PromotionData;
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.50",
3
+ "version": "0.1.51",
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",