ggez-banking-sdk 0.0.87 → 0.0.89

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.
@@ -111,14 +111,14 @@ const Data = () => {
111
111
  country_code: values.mobileNumberCountry,
112
112
  number: values.mobileNumber,
113
113
  is_primary: 1,
114
- verification_status: 1,
114
+ verification_status: 0, // 1
115
115
  },
116
116
  ],
117
117
  authentication: [
118
- {
119
- type: 10,
120
- code: values.mobileAuthenticationCode,
121
- },
118
+ // {
119
+ // type: 10,
120
+ // code: values.mobileAuthenticationCode,
121
+ // },
122
122
  {
123
123
  type: 9,
124
124
  code: values.emailAuthenticationCode,
@@ -81,4 +81,10 @@ export declare const useAuth: (baseUrl: string, nodeUrl: string, userInfo: UserI
81
81
  message: any;
82
82
  status: string;
83
83
  }>;
84
+ getTwitterSpotlightPostIds: () => Promise<{
85
+ response: any;
86
+ newUser: any;
87
+ message: any;
88
+ status: string;
89
+ }>;
84
90
  };
@@ -282,6 +282,31 @@ const useAuth = (baseUrl, nodeUrl, userInfo, tokenData, programId, geoCoordinate
282
282
  };
283
283
  }
284
284
  };
285
+ const getTwitterSpotlightPostIds = async () => {
286
+ try {
287
+ let headersData = {
288
+ isUrlEncoded: false,
289
+ token: "",
290
+ header: false,
291
+ };
292
+ let headers = headerConfig(headersData);
293
+ const response = await restApi_1.default.restApi(nodeUrl, "get", "api/promotion/spotlight/twitter", headers);
294
+ return {
295
+ response: response,
296
+ newUser: null,
297
+ message: response?.data?.result?.friendly_message,
298
+ status: "success",
299
+ };
300
+ }
301
+ catch (error) {
302
+ return {
303
+ response: error.response,
304
+ newUser: null,
305
+ message: error.message,
306
+ status: "failed",
307
+ };
308
+ }
309
+ };
285
310
  return {
286
311
  GetUser,
287
312
  SignUpApi,
@@ -291,6 +316,7 @@ const useAuth = (baseUrl, nodeUrl, userInfo, tokenData, programId, geoCoordinate
291
316
  LoginWithGoogle,
292
317
  incrementPromotionParticipants,
293
318
  getPromotionDataByCode,
319
+ getTwitterSpotlightPostIds,
294
320
  };
295
321
  };
296
322
  exports.useAuth = useAuth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.87",
3
+ "version": "0.0.89",
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",