ggez-banking-sdk 0.0.77 → 0.0.79

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.
@@ -1108,8 +1108,8 @@ export declare enum PromotionType {
1108
1108
  Referral = 2
1109
1109
  }
1110
1110
  export declare enum PromotionVisibility {
1111
- Invite = 1,
1112
- Public = 2
1111
+ Public = 1,
1112
+ Invite = 2
1113
1113
  }
1114
1114
  export declare enum PromotionStatus {
1115
1115
  Active = 1,
@@ -1170,8 +1170,8 @@ var PromotionType;
1170
1170
  })(PromotionType || (exports.PromotionType = PromotionType = {}));
1171
1171
  var PromotionVisibility;
1172
1172
  (function (PromotionVisibility) {
1173
- PromotionVisibility[PromotionVisibility["Invite"] = 1] = "Invite";
1174
- PromotionVisibility[PromotionVisibility["Public"] = 2] = "Public";
1173
+ PromotionVisibility[PromotionVisibility["Public"] = 1] = "Public";
1174
+ PromotionVisibility[PromotionVisibility["Invite"] = 2] = "Invite";
1175
1175
  })(PromotionVisibility || (exports.PromotionVisibility = PromotionVisibility = {}));
1176
1176
  var PromotionStatus;
1177
1177
  (function (PromotionStatus) {
@@ -76,13 +76,7 @@ const Data = () => {
76
76
  };
77
77
  }
78
78
  if (values.giftData) {
79
- customField.referral_and_gift["gift_data"] = [
80
- {
81
- type: enum_1.GGEZGiftType.Wheel_Of_Fortune,
82
- order_status: enum_1.OrderStatus.Pending,
83
- ...values.giftData,
84
- },
85
- ];
79
+ customField.referral_and_gift["gift_data"] = [values.giftData];
86
80
  }
87
81
  let data = {
88
82
  ...data_1.userData,
@@ -173,7 +167,6 @@ const Data = () => {
173
167
  custom_field: JSON.parse(JSON.stringify(customField)),
174
168
  geo_coordinates: values.geoCoordinates,
175
169
  };
176
- console.log("dataSignUpApi ~ custom_field:", data);
177
170
  return data;
178
171
  };
179
172
  const dataSignUpWithGoogle = (values) => {
@@ -186,13 +179,7 @@ const Data = () => {
186
179
  };
187
180
  }
188
181
  if (values.giftData) {
189
- customField.referral_and_gift["gift_data"] = [
190
- {
191
- type: enum_1.GGEZGiftType.Wheel_Of_Fortune,
192
- order_status: enum_1.OrderStatus.Pending,
193
- ...values.giftData,
194
- },
195
- ];
182
+ customField.referral_and_gift["gift_data"] = [values.giftData];
196
183
  }
197
184
  let data = {
198
185
  ...data_1.userData,
@@ -17,7 +17,7 @@ export type PromotionDetails = {
17
17
  name: string;
18
18
  locale_name: string;
19
19
  type: PromotionType;
20
- referral_user_id?: string;
20
+ referral_code?: string;
21
21
  visibility: PromotionVisibility;
22
22
  status: PromotionStatus;
23
23
  start_date: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
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",