tradly 1.1.68 → 1.1.69

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.
Files changed (2) hide show
  1. package/Roots/App.js +23 -0
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -3320,6 +3320,29 @@ class App {
3320
3320
  return error;
3321
3321
  }
3322
3322
  }
3323
+ async likeUnlikeComments(param = { id, authKey, isLike, isDowngrade }) {
3324
+ let method = param.isDowngrade ? Method.PATCH : Method.POST;
3325
+ let path = param.isLike
3326
+ ? CREATE_COMMENTS + `/${param.id}/likes`
3327
+ : CREATE_COMMENTS + `/${param.id}/unlikes`;
3328
+ try {
3329
+ const [error, responseJson] = await network.networkCall({
3330
+ path: path,
3331
+ method: method,
3332
+ authKey: param.authKey,
3333
+ currency: param.currency,
3334
+ language: param.language,
3335
+ param: param.data,
3336
+ });
3337
+ if (error) {
3338
+ return error;
3339
+ } else {
3340
+ return responseJson;
3341
+ }
3342
+ } catch (error) {
3343
+ return error;
3344
+ }
3345
+ }
3323
3346
 
3324
3347
  //MARK:-  Activites 
3325
3348
  async getActivities(param = { authKey, bodyParam }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.68",
3
+ "version": "1.1.69",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",