ggez-banking-sdk 0.0.86 → 0.0.88

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.
@@ -5,7 +5,7 @@ export type Amount = {
5
5
  };
6
6
  export type LotteryPrize = {
7
7
  prize_name: string;
8
- prize_locale: string;
8
+ prize_name_locale: string;
9
9
  prize_desc: string;
10
10
  prize_desc_locale: string;
11
11
  number_of_prizes: number;
@@ -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.86",
3
+ "version": "0.0.88",
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",