@selfcommunity/api-services 0.1.28-alpha.3 → 0.1.28

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 (211) hide show
  1. package/lib/cjs/services/category/index.d.ts +76 -49
  2. package/lib/cjs/services/category/index.d.ts.map +1 -1
  3. package/lib/cjs/services/category/index.js +91 -65
  4. package/lib/cjs/services/category/index.js.map +1 -1
  5. package/lib/cjs/services/comment/index.d.ts +55 -34
  6. package/lib/cjs/services/comment/index.d.ts.map +1 -1
  7. package/lib/cjs/services/comment/index.js +65 -45
  8. package/lib/cjs/services/comment/index.js.map +1 -1
  9. package/lib/cjs/services/custom_adv/index.d.ts +23 -10
  10. package/lib/cjs/services/custom_adv/index.d.ts.map +1 -1
  11. package/lib/cjs/services/custom_adv/index.js +25 -13
  12. package/lib/cjs/services/custom_adv/index.js.map +1 -1
  13. package/lib/cjs/services/custom_page/index.d.ts +23 -10
  14. package/lib/cjs/services/custom_page/index.d.ts.map +1 -1
  15. package/lib/cjs/services/custom_page/index.js +25 -13
  16. package/lib/cjs/services/custom_page/index.js.map +1 -1
  17. package/lib/cjs/services/data_portability/index.d.ts +22 -9
  18. package/lib/cjs/services/data_portability/index.d.ts.map +1 -1
  19. package/lib/cjs/services/data_portability/index.js +24 -12
  20. package/lib/cjs/services/data_portability/index.js.map +1 -1
  21. package/lib/cjs/services/embed/index.d.ts +43 -25
  22. package/lib/cjs/services/embed/index.d.ts.map +1 -1
  23. package/lib/cjs/services/embed/index.js +50 -33
  24. package/lib/cjs/services/embed/index.js.map +1 -1
  25. package/lib/cjs/services/feature/index.d.ts +14 -3
  26. package/lib/cjs/services/feature/index.d.ts.map +1 -1
  27. package/lib/cjs/services/feature/index.js +14 -4
  28. package/lib/cjs/services/feature/index.js.map +1 -1
  29. package/lib/cjs/services/feed/index.d.ts +32 -17
  30. package/lib/cjs/services/feed/index.d.ts.map +1 -1
  31. package/lib/cjs/services/feed/index.js +36 -22
  32. package/lib/cjs/services/feed/index.js.map +1 -1
  33. package/lib/cjs/services/feed_object/index.d.ts +118 -81
  34. package/lib/cjs/services/feed_object/index.d.ts.map +1 -1
  35. package/lib/cjs/services/feed_object/index.js +143 -107
  36. package/lib/cjs/services/feed_object/index.js.map +1 -1
  37. package/lib/cjs/services/incubator/index.d.ts +39 -22
  38. package/lib/cjs/services/incubator/index.d.ts.map +1 -1
  39. package/lib/cjs/services/incubator/index.js +45 -29
  40. package/lib/cjs/services/incubator/index.js.map +1 -1
  41. package/lib/cjs/services/insight/index.d.ts +35 -19
  42. package/lib/cjs/services/insight/index.d.ts.map +1 -1
  43. package/lib/cjs/services/insight/index.js +40 -25
  44. package/lib/cjs/services/insight/index.js.map +1 -1
  45. package/lib/cjs/services/legal_page/index.d.ts +35 -19
  46. package/lib/cjs/services/legal_page/index.d.ts.map +1 -1
  47. package/lib/cjs/services/legal_page/index.js +40 -25
  48. package/lib/cjs/services/legal_page/index.js.map +1 -1
  49. package/lib/cjs/services/locality/index.d.ts +18 -6
  50. package/lib/cjs/services/locality/index.d.ts.map +1 -1
  51. package/lib/cjs/services/locality/index.js +19 -8
  52. package/lib/cjs/services/locality/index.js.map +1 -1
  53. package/lib/cjs/services/loyalty/index.d.ts +48 -29
  54. package/lib/cjs/services/loyalty/index.d.ts.map +1 -1
  55. package/lib/cjs/services/loyalty/index.js +56 -38
  56. package/lib/cjs/services/loyalty/index.js.map +1 -1
  57. package/lib/cjs/services/media/index.d.ts +42 -22
  58. package/lib/cjs/services/media/index.d.ts.map +1 -1
  59. package/lib/cjs/services/media/index.js +48 -29
  60. package/lib/cjs/services/media/index.js.map +1 -1
  61. package/lib/cjs/services/moderation/index.d.ts +33 -19
  62. package/lib/cjs/services/moderation/index.d.ts.map +1 -1
  63. package/lib/cjs/services/moderation/index.js +40 -27
  64. package/lib/cjs/services/moderation/index.js.map +1 -1
  65. package/lib/cjs/services/notification/index.d.ts +47 -28
  66. package/lib/cjs/services/notification/index.d.ts.map +1 -1
  67. package/lib/cjs/services/notification/index.js +55 -37
  68. package/lib/cjs/services/notification/index.js.map +1 -1
  69. package/lib/cjs/services/preference/index.d.ts +23 -10
  70. package/lib/cjs/services/preference/index.d.ts.map +1 -1
  71. package/lib/cjs/services/preference/index.js +25 -13
  72. package/lib/cjs/services/preference/index.js.map +1 -1
  73. package/lib/cjs/services/private_message/index.d.ts +51 -31
  74. package/lib/cjs/services/private_message/index.d.ts.map +1 -1
  75. package/lib/cjs/services/private_message/index.js +60 -41
  76. package/lib/cjs/services/private_message/index.js.map +1 -1
  77. package/lib/cjs/services/score/index.d.ts +22 -9
  78. package/lib/cjs/services/score/index.d.ts.map +1 -1
  79. package/lib/cjs/services/score/index.js +24 -12
  80. package/lib/cjs/services/score/index.js.map +1 -1
  81. package/lib/cjs/services/sso/index.d.ts +18 -6
  82. package/lib/cjs/services/sso/index.d.ts.map +1 -1
  83. package/lib/cjs/services/sso/index.js +19 -8
  84. package/lib/cjs/services/sso/index.js.map +1 -1
  85. package/lib/cjs/services/suggestion/index.d.ts +26 -12
  86. package/lib/cjs/services/suggestion/index.d.ts.map +1 -1
  87. package/lib/cjs/services/suggestion/index.js +29 -16
  88. package/lib/cjs/services/suggestion/index.js.map +1 -1
  89. package/lib/cjs/services/tag/index.d.ts +39 -22
  90. package/lib/cjs/services/tag/index.d.ts.map +1 -1
  91. package/lib/cjs/services/tag/index.js +45 -29
  92. package/lib/cjs/services/tag/index.js.map +1 -1
  93. package/lib/cjs/services/user/index.d.ts +204 -145
  94. package/lib/cjs/services/user/index.d.ts.map +1 -1
  95. package/lib/cjs/services/user/index.js +259 -201
  96. package/lib/cjs/services/user/index.js.map +1 -1
  97. package/lib/cjs/services/webhook/index.d.ts +59 -37
  98. package/lib/cjs/services/webhook/index.d.ts.map +1 -1
  99. package/lib/cjs/services/webhook/index.js +70 -49
  100. package/lib/cjs/services/webhook/index.js.map +1 -1
  101. package/lib/cjs/utils/apiRequest.d.ts +2 -1
  102. package/lib/cjs/utils/apiRequest.d.ts.map +1 -1
  103. package/lib/cjs/utils/apiRequest.js +4 -8
  104. package/lib/cjs/utils/apiRequest.js.map +1 -1
  105. package/lib/esm/services/category/index.d.ts +76 -49
  106. package/lib/esm/services/category/index.d.ts.map +1 -1
  107. package/lib/esm/services/category/index.js +91 -65
  108. package/lib/esm/services/category/index.js.map +1 -1
  109. package/lib/esm/services/comment/index.d.ts +55 -34
  110. package/lib/esm/services/comment/index.d.ts.map +1 -1
  111. package/lib/esm/services/comment/index.js +65 -45
  112. package/lib/esm/services/comment/index.js.map +1 -1
  113. package/lib/esm/services/custom_adv/index.d.ts +23 -10
  114. package/lib/esm/services/custom_adv/index.d.ts.map +1 -1
  115. package/lib/esm/services/custom_adv/index.js +25 -13
  116. package/lib/esm/services/custom_adv/index.js.map +1 -1
  117. package/lib/esm/services/custom_page/index.d.ts +23 -10
  118. package/lib/esm/services/custom_page/index.d.ts.map +1 -1
  119. package/lib/esm/services/custom_page/index.js +25 -13
  120. package/lib/esm/services/custom_page/index.js.map +1 -1
  121. package/lib/esm/services/data_portability/index.d.ts +22 -9
  122. package/lib/esm/services/data_portability/index.d.ts.map +1 -1
  123. package/lib/esm/services/data_portability/index.js +24 -12
  124. package/lib/esm/services/data_portability/index.js.map +1 -1
  125. package/lib/esm/services/embed/index.d.ts +43 -25
  126. package/lib/esm/services/embed/index.d.ts.map +1 -1
  127. package/lib/esm/services/embed/index.js +50 -33
  128. package/lib/esm/services/embed/index.js.map +1 -1
  129. package/lib/esm/services/feature/index.d.ts +14 -3
  130. package/lib/esm/services/feature/index.d.ts.map +1 -1
  131. package/lib/esm/services/feature/index.js +14 -4
  132. package/lib/esm/services/feature/index.js.map +1 -1
  133. package/lib/esm/services/feed/index.d.ts +32 -17
  134. package/lib/esm/services/feed/index.d.ts.map +1 -1
  135. package/lib/esm/services/feed/index.js +36 -22
  136. package/lib/esm/services/feed/index.js.map +1 -1
  137. package/lib/esm/services/feed_object/index.d.ts +118 -81
  138. package/lib/esm/services/feed_object/index.d.ts.map +1 -1
  139. package/lib/esm/services/feed_object/index.js +143 -107
  140. package/lib/esm/services/feed_object/index.js.map +1 -1
  141. package/lib/esm/services/incubator/index.d.ts +39 -22
  142. package/lib/esm/services/incubator/index.d.ts.map +1 -1
  143. package/lib/esm/services/incubator/index.js +45 -29
  144. package/lib/esm/services/incubator/index.js.map +1 -1
  145. package/lib/esm/services/insight/index.d.ts +35 -19
  146. package/lib/esm/services/insight/index.d.ts.map +1 -1
  147. package/lib/esm/services/insight/index.js +40 -25
  148. package/lib/esm/services/insight/index.js.map +1 -1
  149. package/lib/esm/services/legal_page/index.d.ts +35 -19
  150. package/lib/esm/services/legal_page/index.d.ts.map +1 -1
  151. package/lib/esm/services/legal_page/index.js +40 -25
  152. package/lib/esm/services/legal_page/index.js.map +1 -1
  153. package/lib/esm/services/locality/index.d.ts +18 -6
  154. package/lib/esm/services/locality/index.d.ts.map +1 -1
  155. package/lib/esm/services/locality/index.js +19 -8
  156. package/lib/esm/services/locality/index.js.map +1 -1
  157. package/lib/esm/services/loyalty/index.d.ts +48 -29
  158. package/lib/esm/services/loyalty/index.d.ts.map +1 -1
  159. package/lib/esm/services/loyalty/index.js +56 -38
  160. package/lib/esm/services/loyalty/index.js.map +1 -1
  161. package/lib/esm/services/media/index.d.ts +42 -22
  162. package/lib/esm/services/media/index.d.ts.map +1 -1
  163. package/lib/esm/services/media/index.js +48 -29
  164. package/lib/esm/services/media/index.js.map +1 -1
  165. package/lib/esm/services/moderation/index.d.ts +33 -19
  166. package/lib/esm/services/moderation/index.d.ts.map +1 -1
  167. package/lib/esm/services/moderation/index.js +40 -27
  168. package/lib/esm/services/moderation/index.js.map +1 -1
  169. package/lib/esm/services/notification/index.d.ts +47 -28
  170. package/lib/esm/services/notification/index.d.ts.map +1 -1
  171. package/lib/esm/services/notification/index.js +55 -37
  172. package/lib/esm/services/notification/index.js.map +1 -1
  173. package/lib/esm/services/preference/index.d.ts +23 -10
  174. package/lib/esm/services/preference/index.d.ts.map +1 -1
  175. package/lib/esm/services/preference/index.js +25 -13
  176. package/lib/esm/services/preference/index.js.map +1 -1
  177. package/lib/esm/services/private_message/index.d.ts +51 -31
  178. package/lib/esm/services/private_message/index.d.ts.map +1 -1
  179. package/lib/esm/services/private_message/index.js +60 -41
  180. package/lib/esm/services/private_message/index.js.map +1 -1
  181. package/lib/esm/services/score/index.d.ts +22 -9
  182. package/lib/esm/services/score/index.d.ts.map +1 -1
  183. package/lib/esm/services/score/index.js +24 -12
  184. package/lib/esm/services/score/index.js.map +1 -1
  185. package/lib/esm/services/sso/index.d.ts +18 -6
  186. package/lib/esm/services/sso/index.d.ts.map +1 -1
  187. package/lib/esm/services/sso/index.js +19 -8
  188. package/lib/esm/services/sso/index.js.map +1 -1
  189. package/lib/esm/services/suggestion/index.d.ts +26 -12
  190. package/lib/esm/services/suggestion/index.d.ts.map +1 -1
  191. package/lib/esm/services/suggestion/index.js +29 -16
  192. package/lib/esm/services/suggestion/index.js.map +1 -1
  193. package/lib/esm/services/tag/index.d.ts +39 -22
  194. package/lib/esm/services/tag/index.d.ts.map +1 -1
  195. package/lib/esm/services/tag/index.js +45 -29
  196. package/lib/esm/services/tag/index.js.map +1 -1
  197. package/lib/esm/services/user/index.d.ts +204 -145
  198. package/lib/esm/services/user/index.d.ts.map +1 -1
  199. package/lib/esm/services/user/index.js +259 -201
  200. package/lib/esm/services/user/index.js.map +1 -1
  201. package/lib/esm/services/webhook/index.d.ts +59 -37
  202. package/lib/esm/services/webhook/index.d.ts.map +1 -1
  203. package/lib/esm/services/webhook/index.js +70 -49
  204. package/lib/esm/services/webhook/index.js.map +1 -1
  205. package/lib/esm/utils/apiRequest.d.ts +2 -1
  206. package/lib/esm/utils/apiRequest.d.ts.map +1 -1
  207. package/lib/esm/utils/apiRequest.js +4 -8
  208. package/lib/esm/utils/apiRequest.js.map +1 -1
  209. package/lib/umd/api-services.js +1 -1
  210. package/lib/umd/api-services.js.map +1 -1
  211. package/package.json +4 -4
@@ -22,361 +22,408 @@ class UserApiClient {
22
22
  /**
23
23
  * This endpoint retrieves the list of all users
24
24
  * @param params
25
+ * @param config
25
26
  */
26
- static getAllUsers(params) {
27
+ static getAllUsers(params, config) {
27
28
  const p = new URLSearchParams(params);
28
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserList.url({})}?${p.toString()}`, Endpoints_1.default.UserList.method);
29
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.UserList.url({})}?${p.toString()}`, method: Endpoints_1.default.UserList.method }));
29
30
  }
30
31
  /**
31
32
  * This endpoint retrieves the list of all users hidden by the authenticated user
32
33
  * @param params
34
+ * @param config
33
35
  */
34
- static getHiddenUsers(params) {
36
+ static getHiddenUsers(params, config) {
35
37
  const p = new URLSearchParams(params);
36
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.ListHiddenUsers.url({})}?${p.toString()}`, Endpoints_1.default.ListHiddenUsers.method);
38
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.ListHiddenUsers.url({})}?${p.toString()}`, method: Endpoints_1.default.ListHiddenUsers.method }));
37
39
  }
38
40
  /**
39
41
  * This endpoint retrieves the list of all users that meet the search criteria. The user object returned will contain only the following attributes: id, username, real_name, ext_id and avatar.
40
42
  * This endpoint is recommended for implementing an autocomplete input field.
41
43
  * @param params
44
+ * @param config
42
45
  */
43
- static userAutocomplete(params) {
46
+ static userAutocomplete(params, config) {
44
47
  const p = new URLSearchParams(params);
45
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserAutocomplete.url({})}?${p.toString()}`, Endpoints_1.default.UserAutocomplete.method);
48
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.UserAutocomplete.url({})}?${p.toString()}`, method: Endpoints_1.default.UserAutocomplete.method }));
46
49
  }
47
50
  /**
48
51
  * This endpoint performs users search.
49
52
  * @param params
53
+ * @param config
50
54
  */
51
- static userSearch(params) {
55
+ static userSearch(params, config) {
52
56
  const p = new URLSearchParams(params);
53
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserSearch.url({})}?${p.toString()}`, Endpoints_1.default.UserSearch.method);
57
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.UserSearch.url({})}?${p.toString()}`, method: Endpoints_1.default.UserSearch.method }));
54
58
  }
55
59
  /**
56
60
  * This endpoint retrieves a specific user's profile identified by ID.
57
61
  * @param id
62
+ * @param config
58
63
  */
59
- static getSpecificUser(id) {
60
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.User.url({ id }), Endpoints_1.default.User.method);
64
+ static getSpecificUser(id, config) {
65
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.User.url({ id }), method: Endpoints_1.default.User.method }));
61
66
  }
62
67
  /**
63
- * This endpoint retrieves the counters of a specific user identified by Id.
68
+ * This endpoint retrieves the counters of a specific user identified by ID.
64
69
  * @param id
70
+ * @param config
65
71
  */
66
- static getUserCounters(id) {
67
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserCounters.url({ id }), Endpoints_1.default.UserCounters.method);
72
+ static getUserCounters(id, config) {
73
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserCounters.url({ id }), method: Endpoints_1.default.UserCounters.method }));
68
74
  }
69
75
  /**
70
76
  * This endpoint updates the profile of a user identified by ID. A user can only update their personal data.
71
- * If the request will update the avatar or the cover the 'Content-Type' request header must be set as 'multipart/form-data', otherwise it can be 'application/x-www-form-urlencoded'.
77
+ * If the request is willing to update the avatar or the cover the 'Content-Type' request header must be set as 'multipart/form-data', otherwise it can be 'application/x-www-form-urlencoded'.
72
78
  * @param id
73
79
  * @param data
80
+ * @param config
74
81
  */
75
- static userUpdate(id, data) {
76
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserUpdate.url({ id }), Endpoints_1.default.UserUpdate.method, data);
82
+ static userUpdate(id, data, config) {
83
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserUpdate.url({ id }), method: Endpoints_1.default.UserUpdate.method, data: data }));
77
84
  }
78
85
  /**
79
86
  * This endpoint patches a specific user identified by {id}
80
87
  * @param id
81
88
  * @param data
89
+ * @param config
82
90
  */
83
- static userPatch(id, data) {
84
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserPatch.url({ id }), Endpoints_1.default.UserPatch.method, data);
91
+ static userPatch(id, data, config) {
92
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserPatch.url({ id }), method: Endpoints_1.default.UserPatch.method, data: data }));
85
93
  }
86
94
  /**
87
95
  * This endpoint deletes a specific user identified by {id}
88
96
  * @param id
89
97
  * @param hard
98
+ * @param config
90
99
  */
91
- static userDelete(id, hard) {
92
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserDelete.url({ id })}?${hard.toString()}`, Endpoints_1.default.UserDelete.method);
100
+ static userDelete(id, hard, config) {
101
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.UserDelete.url({ id })}?${hard.toString()}`, method: Endpoints_1.default.UserDelete.method }));
93
102
  }
94
103
  /**
95
104
  * This endpoint changes the email of the authenticated user.
96
105
  * @param id
97
106
  * @param new_email
98
107
  * @param confirm
108
+ * @param config
99
109
  */
100
- static changeUserMail(id, new_email, confirm) {
101
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.ChangeUserMail.url({ id }), Endpoints_1.default.ChangeUserMail.method, {
102
- new_email: new_email,
103
- confirm: confirm
104
- });
110
+ static changeUserMail(id, new_email, confirm, config) {
111
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.ChangeUserMail.url({ id }), method: Endpoints_1.default.ChangeUserMail.method, data: {
112
+ new_email: new_email,
113
+ confirm: confirm
114
+ } }));
105
115
  }
106
116
  /**
107
117
  * This endpoint confirms email change.
108
118
  * @param id
109
119
  * @param new_email
110
120
  * @param validation_code
121
+ * @param config
111
122
  */
112
- static confirmChangeUserMail(id, new_email, validation_code) {
113
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.ConfirmUserChangeMail.url({ id }), Endpoints_1.default.ConfirmUserChangeMail.method, {
114
- new_email: new_email,
115
- validation_code: validation_code
116
- });
123
+ static confirmChangeUserMail(id, new_email, validation_code, config) {
124
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.ConfirmUserChangeMail.url({ id }), method: Endpoints_1.default.ConfirmUserChangeMail.method, data: {
125
+ new_email: new_email,
126
+ validation_code: validation_code
127
+ } }));
117
128
  }
118
129
  /**
119
130
  * This endpoint changes the password of the authenticated user.
120
131
  * @param id
121
132
  * @param password
122
133
  * @param new_password
134
+ * @param config
123
135
  */
124
- static changeUserPassword(id, password, new_password) {
125
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.ChangeUserPassword.url({ id }), Endpoints_1.default.ChangeUserPassword.method, {
126
- password: password,
127
- new_password: new_password
128
- });
136
+ static changeUserPassword(id, password, new_password, config) {
137
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.ChangeUserPassword.url({ id }), method: Endpoints_1.default.ChangeUserPassword.method, data: {
138
+ password: password,
139
+ new_password: new_password
140
+ } }));
129
141
  }
130
142
  /**
131
143
  * This endpoint retrieves all current user's settings for the authenticated user.
132
144
  * @param id
145
+ * @param config
133
146
  */
134
- static userSettings(id) {
135
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserSettings.url({ id }), Endpoints_1.default.UserSettings.method);
147
+ static userSettings(id, config) {
148
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserSettings.url({ id }), method: Endpoints_1.default.UserSettings.method }));
136
149
  }
137
150
  /**
138
151
  * This endpoint changes the user settings for the authenticated user.
139
152
  * @param id
140
153
  * @param data
154
+ * @param config
141
155
  */
142
- static userSettingsPatch(id, data) {
143
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserSettingsPatch.url({ id }), Endpoints_1.default.UserSettingsPatch.method, data !== null && data !== void 0 ? data : null);
156
+ static userSettingsPatch(id, data, config) {
157
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserSettingsPatch.url({ id }), method: Endpoints_1.default.UserSettingsPatch.method, data: data !== null && data !== void 0 ? data : null }));
144
158
  }
145
159
  /**
146
160
  * This endpoint returns the user identified by the authentication token.
161
+ * @param config
147
162
  */
148
- static getCurrentUser() {
149
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Me.url(), Endpoints_1.default.Me.method);
163
+ static getCurrentUser(config) {
164
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.Me.url(), method: Endpoints_1.default.Me.method }));
150
165
  }
151
166
  /**
152
167
  * This endpoint returns the url to the user's current avatar.
168
+ * @param config
153
169
  */
154
- static getCurrentUserAvatar() {
155
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.MyAvatar.url({}), Endpoints_1.default.MyAvatar.method);
170
+ static getCurrentUserAvatar(config) {
171
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.MyAvatar.url({}), method: Endpoints_1.default.MyAvatar.method }));
156
172
  }
157
173
  /**
158
- * This endpoint returns a list of permissions for the user identified by the authentication token. Some of the permissions in the list depend on global community settings.
174
+ * This endpoint returns a list of permissions for the user identified by the authentication token. Some permissions in the list depend on global community settings.
175
+ * @param config
159
176
  */
160
- static getCurrentUserPermission() {
161
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Permission.url({}), Endpoints_1.default.Permission.method);
177
+ static getCurrentUserPermission(config) {
178
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.Permission.url({}), method: Endpoints_1.default.Permission.method }));
162
179
  }
163
180
  /**
164
181
  * This endpoint retrieves the platform url starting from the Authorization user token. Using this url, the logged user (must be a staff member) can access the platform to manage the community.
182
+ * @param config
165
183
  */
166
- static getCurrentUserPlatform() {
167
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Platform.url({}), Endpoints_1.default.Platform.method);
184
+ static getCurrentUserPlatform(config) {
185
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.Platform.url({}), method: Endpoints_1.default.Platform.method }));
168
186
  }
169
187
  /**
170
188
  * This endpoint gets the list of categories followed by the user.
171
189
  * @param id
172
190
  * @param mutual
191
+ * @param config
173
192
  */
174
- static getUserFollowedCategories(id, mutual) {
175
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.FollowedCategories.url({ id, mutual }), Endpoints_1.default.FollowedCategories.method);
193
+ static getUserFollowedCategories(id, mutual, config) {
194
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.FollowedCategories.url({ id, mutual }), method: Endpoints_1.default.FollowedCategories.method }));
176
195
  }
177
196
  /**
178
197
  * This endpoint retrieves the list of posts of the user identified by {id}
179
198
  * @param id
199
+ * @param config
180
200
  */
181
- static getUserFeed(id) {
182
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserFeed.url({ id }), Endpoints_1.default.UserFeed.method);
201
+ static getUserFeed(id, config) {
202
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserFeed.url({ id }), method: Endpoints_1.default.UserFeed.method }));
183
203
  }
184
204
  /**
185
205
  * This endpoint retrieves the list of followers of a specific user identified by {id}
186
206
  * @param id
187
207
  * @param mutual
208
+ * @param config
188
209
  */
189
- static getUserFollowers(id, mutual) {
190
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserFollowers.url({ id, mutual }), Endpoints_1.default.UserFollowers.method);
210
+ static getUserFollowers(id, mutual, config) {
211
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserFollowers.url({ id, mutual }), method: Endpoints_1.default.UserFollowers.method }));
191
212
  }
192
213
  /**
193
214
  * This endpoint retrieves the list of following of a specific user identified by {id}.
194
215
  * @param id
195
216
  * @param mutual
217
+ * @param config
196
218
  */
197
- static getUserFollowed(id, mutual) {
198
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UsersFollowed.url({ id, mutual }), Endpoints_1.default.UsersFollowed.method);
219
+ static getUserFollowed(id, mutual, config) {
220
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UsersFollowed.url({ id, mutual }), method: Endpoints_1.default.UsersFollowed.method }));
199
221
  }
200
222
  /**
201
223
  * This endpoint allows a user to follow another user identified by {id}
202
224
  * @param id
225
+ * @param config
203
226
  */
204
- static followUser(id) {
205
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.FollowUser.url({ id }), Endpoints_1.default.FollowUser.method);
227
+ static followUser(id, config) {
228
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.FollowUser.url({ id }), method: Endpoints_1.default.FollowUser.method }));
206
229
  }
207
230
  /**
208
231
  * This endpoint returns is_followed = true if the user (identified in path) is followed by me.
209
232
  * @param id
233
+ * @param config
210
234
  */
211
- static checkUserFollowed(id) {
212
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckUserFollowed.url({ id }), Endpoints_1.default.CheckUserFollowed.method);
235
+ static checkUserFollowed(id, config) {
236
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CheckUserFollowed.url({ id }), method: Endpoints_1.default.CheckUserFollowed.method }));
213
237
  }
214
238
  /**
215
239
  * This endpoint returns is_follower = true if the user (identified in path) follow me
216
240
  * @param id
241
+ * @param config
217
242
  */
218
- static checkUserFollower(id) {
219
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckUserFollower.url({ id }), Endpoints_1.default.CheckUserFollower.method);
243
+ static checkUserFollower(id, config) {
244
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CheckUserFollower.url({ id }), method: Endpoints_1.default.CheckUserFollower.method }));
220
245
  }
221
246
  /**
222
247
  * This endpoint retrieves the list of connections of a specific user identified by ID.
223
248
  * @param id
224
249
  * @param mutual
250
+ * @param config
225
251
  */
226
- static getUserConnections(id, mutual) {
227
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.UserConnections.url({ id })}?${mutual.toString()}`, Endpoints_1.default.UserConnections.method);
252
+ static getUserConnections(id, mutual, config) {
253
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.UserConnections.url({ id })}?${mutual.toString()}`, method: Endpoints_1.default.UserConnections.method }));
228
254
  }
229
255
  /**
230
256
  * This endpoint returns is_connection = true if the user (identified in path) is connected with me.
231
257
  * @param id
258
+ * @param config
232
259
  */
233
- static checkUserConnections(id) {
234
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserCheckConnection.url({ id }), Endpoints_1.default.UserCheckConnection.method);
260
+ static checkUserConnections(id, config) {
261
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserCheckConnection.url({ id }), method: Endpoints_1.default.UserCheckConnection.method }));
235
262
  }
236
263
  /**
237
264
  * This endpoint retrieves the list of connection requests received by a specific user identified by ID.
238
265
  * @param id
266
+ * @param config
239
267
  */
240
- static getUserConnectionRequests(id) {
241
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserConnectionRequests.url({ id }), Endpoints_1.default.UserConnectionRequests.method);
268
+ static getUserConnectionRequests(id, config) {
269
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserConnectionRequests.url({ id }), method: Endpoints_1.default.UserConnectionRequests.method }));
242
270
  }
243
271
  /**
244
272
  * This endpoint retrieves a specific user's list of connection requests sent by user.
245
273
  * @param id
274
+ * @param config
246
275
  */
247
- static getUserRequestConnectionsSent(id) {
248
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserRequestConnectionsSent.url({ id }), Endpoints_1.default.UserRequestConnectionsSent.method);
276
+ static getUserRequestConnectionsSent(id, config) {
277
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRequestConnectionsSent.url({ id }), method: Endpoints_1.default.UserRequestConnectionsSent.method }));
249
278
  }
250
279
  /**
251
280
  * This endpoint accepts a request connection of the user identified by {id}
252
281
  * @param id
282
+ * @param config
253
283
  */
254
- static userAcceptRequestConnection(id) {
255
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserAcceptRequestConnection.url({ id }), Endpoints_1.default.UserAcceptRequestConnection.method);
284
+ static userAcceptRequestConnection(id, config) {
285
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserAcceptRequestConnection.url({ id }), method: Endpoints_1.default.UserAcceptRequestConnection.method }));
256
286
  }
257
287
  /**
258
288
  * This endpoint requests a connection to the user identified by {id}
259
289
  * @param id
290
+ * @param config
260
291
  */
261
- static userRequestConnection(id) {
262
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserRequestConnection.url({ id }), Endpoints_1.default.UserRequestConnection.method);
292
+ static userRequestConnection(id, config) {
293
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRequestConnection.url({ id }), method: Endpoints_1.default.UserRequestConnection.method }));
263
294
  }
264
295
  /**
265
296
  * This endpoint removes connection with the user identified by {id}
266
297
  * @param id
298
+ * @param config
267
299
  */
268
- static userRemoveConnection(id) {
269
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserRemoveConnection.url({ id }), Endpoints_1.default.UserRemoveConnection.method);
300
+ static userRemoveConnection(id, config) {
301
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRemoveConnection.url({ id }), method: Endpoints_1.default.UserRemoveConnection.method }));
270
302
  }
271
303
  /**
272
304
  * This endpoint cancels reject connection to a user identified by {id}
273
305
  * @param id
306
+ * @param config
274
307
  */
275
- static userCancelRejectConnectionRequest(id) {
276
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserCancelRejectConnectionRequest.url({ id }), Endpoints_1.default.UserCancelRejectConnectionRequest.method);
308
+ static userCancelRejectConnectionRequest(id, config) {
309
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserCancelRejectConnectionRequest.url({ id }), method: Endpoints_1.default.UserCancelRejectConnectionRequest.method }));
277
310
  }
278
311
  /**
279
312
  * This endpoint cancels a request connection for a user.
280
313
  * @param id
314
+ * @param config
281
315
  */
282
- static userCancelRequestConnection(id) {
283
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserCancelRequestConnection.url({ id }), Endpoints_1.default.UserCancelRequestConnection.method);
316
+ static userCancelRequestConnection(id, config) {
317
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserCancelRequestConnection.url({ id }), method: Endpoints_1.default.UserCancelRequestConnection.method }));
284
318
  }
285
319
  /**
286
320
  * This endpoint rejects a connection request sent from user identified by {id}
287
321
  * @param id
322
+ * @param config
288
323
  */
289
- static userRejectConnectionRequest(id) {
290
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserRejectConnectionRequest.url({ id }), Endpoints_1.default.UserRejectConnectionRequest.method);
324
+ static userRejectConnectionRequest(id, config) {
325
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserRejectConnectionRequest.url({ id }), method: Endpoints_1.default.UserRejectConnectionRequest.method }));
291
326
  }
292
327
  /**
293
328
  * This endpoint marks seen a connection request of user identified by {id} for the authenticated user.
294
329
  * @param id
330
+ * @param config
295
331
  */
296
- static userMarkSeenConnectionRequest(id) {
297
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserMarkSeenConnectionRequest.url({ id }), Endpoints_1.default.UserMarkSeenConnectionRequest.method);
332
+ static userMarkSeenConnectionRequest(id, config) {
333
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserMarkSeenConnectionRequest.url({ id }), method: Endpoints_1.default.UserMarkSeenConnectionRequest.method }));
298
334
  }
299
335
  /**
300
336
  * This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.
301
337
  * @param id
338
+ * @param config
302
339
  */
303
- static showHideUser(id) {
304
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserShowHide.url({ id }), Endpoints_1.default.UserShowHide.method);
340
+ static showHideUser(id, config) {
341
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserShowHide.url({ id }), method: Endpoints_1.default.UserShowHide.method }));
305
342
  }
306
343
  /**
307
344
  * This endpoint returns true if the user (identified in path) is hidden by the authenticated user.
308
345
  * @param id
346
+ * @param config
309
347
  */
310
- static checkUserHidden(id) {
311
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckUserHidden.url({ id }), Endpoints_1.default.CheckUserHidden.method);
348
+ static checkUserHidden(id, config) {
349
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CheckUserHidden.url({ id }), method: Endpoints_1.default.CheckUserHidden.method }));
312
350
  }
313
351
  /**
314
352
  * This endpoint returns true if the user (identified in path) has hidden by the authenticated user.
315
353
  * @param id
354
+ * @param config
316
355
  */
317
- static checkUserHiddenBy(id) {
318
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckUserHiddenBy.url({ id }), Endpoints_1.default.CheckUserHiddenBy.method);
356
+ static checkUserHiddenBy(id, config) {
357
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CheckUserHiddenBy.url({ id }), method: Endpoints_1.default.CheckUserHiddenBy.method }));
319
358
  }
320
359
  /**
321
360
  * This endpoint returns user's loyalty points.
322
361
  * @param id
362
+ * @param config
323
363
  */
324
- static getUserLoyaltyPoints(id) {
325
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.GetUserLoyaltyPoints.url({ id }), Endpoints_1.default.GetUserLoyaltyPoints.method);
364
+ static getUserLoyaltyPoints(id, config) {
365
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetUserLoyaltyPoints.url({ id }), method: Endpoints_1.default.GetUserLoyaltyPoints.method }));
326
366
  }
327
367
  /**
328
368
  * This endpoint lists the connection/follow statuses of the logged user starting from a users array.
329
369
  * @param users
370
+ * @param config
330
371
  */
331
- static getUserConnectionStatuses(users) {
332
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserConnectionStatuses.url({}), Endpoints_1.default.UserConnectionStatuses.method, { users: users });
372
+ static getUserConnectionStatuses(users, config) {
373
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserConnectionStatuses.url({}), method: Endpoints_1.default.UserConnectionStatuses.method, data: { users: users } }));
333
374
  }
334
375
  /**
335
376
  * This endpoint returns user's tags to address a contribution.
377
+ * @param config
336
378
  */
337
- static userTagToAddressContribution() {
338
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UserTagToAddressContribution.url({}), Endpoints_1.default.UserTagToAddressContribution.method);
379
+ static userTagToAddressContribution(config) {
380
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UserTagToAddressContribution.url({}), method: Endpoints_1.default.UserTagToAddressContribution.method }));
339
381
  }
340
382
  /**
341
383
  * This endpoint checks an email token.
342
384
  * @param email_token
385
+ * @param config
343
386
  */
344
- static checkUserEmailToken(email_token) {
387
+ static checkUserEmailToken(email_token, config) {
345
388
  const p = new URLSearchParams({ email_token: email_token });
346
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.CheckEmailToken.url({})}?${p.toString()}`, Endpoints_1.default.CheckEmailToken.method);
389
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.CheckEmailToken.url({})}?${p.toString()}`, method: Endpoints_1.default.CheckEmailToken.method }));
347
390
  }
348
391
  /**
349
392
  * This endpoint adds an avatar to my avatars.
350
393
  * @param avatar
394
+ * @param config
351
395
  */
352
- static addUserAvatar(avatar) {
353
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.AddAvatar.url({}), Endpoints_1.default.AddAvatar.method, { avatar: avatar });
396
+ static addUserAvatar(avatar, config) {
397
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.AddAvatar.url({}), method: Endpoints_1.default.AddAvatar.method, data: { avatar: avatar } }));
354
398
  }
355
399
  /**
356
400
  * This endpoint retrieves all user avatars.
401
+ * @param config
357
402
  */
358
- static getUserAvatars() {
359
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.GetAvatars.url({}), Endpoints_1.default.GetAvatars.method);
403
+ static getUserAvatars(config) {
404
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.GetAvatars.url({}), method: Endpoints_1.default.GetAvatars.method }));
360
405
  }
361
406
  /**
362
407
  * This endpoint removes/deletes an avatar from the authenticated user avatars.
363
408
  * @param avatar_id
409
+ * @param config
364
410
  */
365
- static removeUserAvatar(avatar_id) {
366
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.RemoveAvatar.url({}), Endpoints_1.default.RemoveAvatar.method, { avatar_id: avatar_id });
411
+ static removeUserAvatar(avatar_id, config) {
412
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.RemoveAvatar.url({}), method: Endpoints_1.default.RemoveAvatar.method, data: { avatar_id: avatar_id } }));
367
413
  }
368
414
  /**
369
415
  * This endpoint sets the primary avatar for the authenticated user.
370
416
  * @param avatar_id
417
+ * @param config
371
418
  */
372
- static setUserPrimaryAvatar(avatar_id) {
373
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.SetPrimaryAvatar.url({}), Endpoints_1.default.SetPrimaryAvatar.method, { avatar_id: avatar_id });
419
+ static setUserPrimaryAvatar(avatar_id, config) {
420
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.SetPrimaryAvatar.url({}), method: Endpoints_1.default.SetPrimaryAvatar.method, data: { avatar_id: avatar_id } }));
374
421
  }
375
422
  }
376
423
  exports.UserApiClient = UserApiClient;
377
424
  /**
378
425
  *
379
- :::tipUser service can be used in the following ways:
426
+ :::tipUser service can be used in the following way:
380
427
 
381
428
  ```jsx
382
429
  1. Import the service from our library:
@@ -398,242 +445,253 @@ exports.UserApiClient = UserApiClient;
398
445
  return await UserService.getSpecificUser(userId);
399
446
  }
400
447
  ```
448
+
449
+ ```jsx
450
+ If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
451
+
452
+ Ex: If the async function `userUpdate` is willing to update the avatar or the cover the 'Content-Type' request header must be set as 'multipart/form-data'.
453
+
454
+ async getSpecificUser(userId, data, config) {
455
+ const headers = {headers: {'Content-Type': 'multipart/form-data'}}
456
+ return await UserService.getSpecificUser(userId, {avatar: avatar}, headers);
457
+ }
458
+ ```
401
459
  :::
402
460
  */
403
461
  class UserService {
404
- static getAllUsers(params) {
462
+ static getAllUsers(params, config) {
405
463
  return __awaiter(this, void 0, void 0, function* () {
406
- return UserApiClient.getAllUsers(params);
464
+ return UserApiClient.getAllUsers(params, config);
407
465
  });
408
466
  }
409
- static getHiddenUsers(params) {
467
+ static getHiddenUsers(params, config) {
410
468
  return __awaiter(this, void 0, void 0, function* () {
411
- return UserApiClient.getHiddenUsers(params);
469
+ return UserApiClient.getHiddenUsers(params, config);
412
470
  });
413
471
  }
414
- static userAutocomplete(params) {
472
+ static userAutocomplete(params, config) {
415
473
  return __awaiter(this, void 0, void 0, function* () {
416
- return UserApiClient.userAutocomplete(params);
474
+ return UserApiClient.userAutocomplete(params, config);
417
475
  });
418
476
  }
419
- static userSearch(params) {
477
+ static userSearch(params, config) {
420
478
  return __awaiter(this, void 0, void 0, function* () {
421
- return UserApiClient.userSearch(params);
479
+ return UserApiClient.userSearch(params, config);
422
480
  });
423
481
  }
424
- static getSpecificUser(id) {
482
+ static getSpecificUser(id, config) {
425
483
  return __awaiter(this, void 0, void 0, function* () {
426
- return UserApiClient.getSpecificUser(id);
484
+ return UserApiClient.getSpecificUser(id, config);
427
485
  });
428
486
  }
429
- static getUserCounters(id) {
487
+ static getUserCounters(id, config) {
430
488
  return __awaiter(this, void 0, void 0, function* () {
431
- return UserApiClient.getUserCounters(id);
489
+ return UserApiClient.getUserCounters(id, config);
432
490
  });
433
491
  }
434
- static userUpdate(id, data) {
492
+ static userUpdate(id, data, config) {
435
493
  return __awaiter(this, void 0, void 0, function* () {
436
- return UserApiClient.userUpdate(id, data);
494
+ return UserApiClient.userUpdate(id, data, config);
437
495
  });
438
496
  }
439
- static userPatch(id, data) {
497
+ static userPatch(id, data, config) {
440
498
  return __awaiter(this, void 0, void 0, function* () {
441
- return UserApiClient.userPatch(id, data);
499
+ return UserApiClient.userPatch(id, data, config);
442
500
  });
443
501
  }
444
- static userDelete(id, hard) {
502
+ static userDelete(id, hard, config) {
445
503
  return __awaiter(this, void 0, void 0, function* () {
446
- return UserApiClient.userDelete(id, hard);
504
+ return UserApiClient.userDelete(id, hard, config);
447
505
  });
448
506
  }
449
- static changeUserMail(id, new_email, confirm) {
507
+ static changeUserMail(id, new_email, confirm, config) {
450
508
  return __awaiter(this, void 0, void 0, function* () {
451
- return UserApiClient.changeUserMail(id, new_email, confirm);
509
+ return UserApiClient.changeUserMail(id, new_email, confirm, config);
452
510
  });
453
511
  }
454
- static confirmChangeUserMail(id, new_email, validation_code) {
512
+ static confirmChangeUserMail(id, new_email, validation_code, config) {
455
513
  return __awaiter(this, void 0, void 0, function* () {
456
- return UserApiClient.confirmChangeUserMail(id, new_email, validation_code);
514
+ return UserApiClient.confirmChangeUserMail(id, new_email, validation_code, config);
457
515
  });
458
516
  }
459
- static changeUserPassword(id, password, new_password) {
517
+ static changeUserPassword(id, password, new_password, config) {
460
518
  return __awaiter(this, void 0, void 0, function* () {
461
- return UserApiClient.changeUserPassword(id, password, new_password);
519
+ return UserApiClient.changeUserPassword(id, password, new_password, config);
462
520
  });
463
521
  }
464
- static userSettings(id) {
522
+ static userSettings(id, config) {
465
523
  return __awaiter(this, void 0, void 0, function* () {
466
- return UserApiClient.userSettings(id);
524
+ return UserApiClient.userSettings(id, config);
467
525
  });
468
526
  }
469
- static userSettingsPatch(id, data) {
527
+ static userSettingsPatch(id, data, config) {
470
528
  return __awaiter(this, void 0, void 0, function* () {
471
- return UserApiClient.userSettingsPatch(id, data);
529
+ return UserApiClient.userSettingsPatch(id, data, config);
472
530
  });
473
531
  }
474
- static getCurrentUser() {
532
+ static getCurrentUser(config) {
475
533
  return __awaiter(this, void 0, void 0, function* () {
476
- return UserApiClient.getCurrentUser();
534
+ return UserApiClient.getCurrentUser(config);
477
535
  });
478
536
  }
479
- static getCurrentUserAvatar() {
537
+ static getCurrentUserAvatar(config) {
480
538
  return __awaiter(this, void 0, void 0, function* () {
481
- return UserApiClient.getCurrentUserAvatar();
539
+ return UserApiClient.getCurrentUserAvatar(config);
482
540
  });
483
541
  }
484
- static getCurrentUserPermission() {
542
+ static getCurrentUserPermission(config) {
485
543
  return __awaiter(this, void 0, void 0, function* () {
486
- return UserApiClient.getCurrentUserPermission();
544
+ return UserApiClient.getCurrentUserPermission(config);
487
545
  });
488
546
  }
489
- static getCurrentUserPlatform() {
547
+ static getCurrentUserPlatform(config) {
490
548
  return __awaiter(this, void 0, void 0, function* () {
491
- return UserApiClient.getCurrentUserPlatform();
549
+ return UserApiClient.getCurrentUserPlatform(config);
492
550
  });
493
551
  }
494
- static getUserFollowedCategories(id, mutual) {
552
+ static getUserFollowedCategories(id, mutual, config) {
495
553
  return __awaiter(this, void 0, void 0, function* () {
496
- return UserApiClient.getUserFollowedCategories(id, mutual);
554
+ return UserApiClient.getUserFollowedCategories(id, mutual, config);
497
555
  });
498
556
  }
499
- static getUserFeed(id) {
557
+ static getUserFeed(id, config) {
500
558
  return __awaiter(this, void 0, void 0, function* () {
501
- return UserApiClient.getUserFeed(id);
559
+ return UserApiClient.getUserFeed(id, config);
502
560
  });
503
561
  }
504
- static getUserFollowers(id, mutual) {
562
+ static getUserFollowers(id, mutual, config) {
505
563
  return __awaiter(this, void 0, void 0, function* () {
506
- return UserApiClient.getUserFollowers(id, mutual);
564
+ return UserApiClient.getUserFollowers(id, mutual, config);
507
565
  });
508
566
  }
509
- static getUserFollowed(id, mutual) {
567
+ static getUserFollowed(id, mutual, config) {
510
568
  return __awaiter(this, void 0, void 0, function* () {
511
- return UserApiClient.getUserFollowed(id, mutual);
569
+ return UserApiClient.getUserFollowed(id, mutual, config);
512
570
  });
513
571
  }
514
- static followUser(id) {
572
+ static followUser(id, config) {
515
573
  return __awaiter(this, void 0, void 0, function* () {
516
- return UserApiClient.followUser(id);
574
+ return UserApiClient.followUser(id, config);
517
575
  });
518
576
  }
519
- static checkUserFollowed(id) {
577
+ static checkUserFollowed(id, config) {
520
578
  return __awaiter(this, void 0, void 0, function* () {
521
- return UserApiClient.checkUserFollowed(id);
579
+ return UserApiClient.checkUserFollowed(id, config);
522
580
  });
523
581
  }
524
- static checkUserFollower(id) {
582
+ static checkUserFollower(id, config) {
525
583
  return __awaiter(this, void 0, void 0, function* () {
526
- return UserApiClient.checkUserFollower(id);
584
+ return UserApiClient.checkUserFollower(id, config);
527
585
  });
528
586
  }
529
- static getUserConnections(id, mutual) {
587
+ static getUserConnections(id, mutual, config) {
530
588
  return __awaiter(this, void 0, void 0, function* () {
531
- return UserApiClient.getUserConnections(id, mutual);
589
+ return UserApiClient.getUserConnections(id, mutual, config);
532
590
  });
533
591
  }
534
- static checkUserConnections(id) {
592
+ static checkUserConnections(id, config) {
535
593
  return __awaiter(this, void 0, void 0, function* () {
536
- return UserApiClient.checkUserConnections(id);
594
+ return UserApiClient.checkUserConnections(id, config);
537
595
  });
538
596
  }
539
- static getUserConnectionRequests(id) {
597
+ static getUserConnectionRequests(id, config) {
540
598
  return __awaiter(this, void 0, void 0, function* () {
541
- return UserApiClient.getUserConnectionRequests(id);
599
+ return UserApiClient.getUserConnectionRequests(id, config);
542
600
  });
543
601
  }
544
- static getUserRequestConnectionsSent(id) {
602
+ static getUserRequestConnectionsSent(id, config) {
545
603
  return __awaiter(this, void 0, void 0, function* () {
546
- return UserApiClient.getUserRequestConnectionsSent(id);
604
+ return UserApiClient.getUserRequestConnectionsSent(id, config);
547
605
  });
548
606
  }
549
- static userAcceptRequestConnection(id) {
607
+ static userAcceptRequestConnection(id, config) {
550
608
  return __awaiter(this, void 0, void 0, function* () {
551
- return UserApiClient.userAcceptRequestConnection(id);
609
+ return UserApiClient.userAcceptRequestConnection(id, config);
552
610
  });
553
611
  }
554
- static userRequestConnection(id) {
612
+ static userRequestConnection(id, config) {
555
613
  return __awaiter(this, void 0, void 0, function* () {
556
- return UserApiClient.userRequestConnection(id);
614
+ return UserApiClient.userRequestConnection(id, config);
557
615
  });
558
616
  }
559
- static userRemoveConnection(id) {
617
+ static userRemoveConnection(id, config) {
560
618
  return __awaiter(this, void 0, void 0, function* () {
561
- return UserApiClient.userRemoveConnection(id);
619
+ return UserApiClient.userRemoveConnection(id, config);
562
620
  });
563
621
  }
564
- static userCancelRejectConnectionRequest(id) {
622
+ static userCancelRejectConnectionRequest(id, config) {
565
623
  return __awaiter(this, void 0, void 0, function* () {
566
- return UserApiClient.userCancelRejectConnectionRequest(id);
624
+ return UserApiClient.userCancelRejectConnectionRequest(id, config);
567
625
  });
568
626
  }
569
- static userCancelRequestConnection(id) {
627
+ static userCancelRequestConnection(id, config) {
570
628
  return __awaiter(this, void 0, void 0, function* () {
571
- return UserApiClient.userCancelRequestConnection(id);
629
+ return UserApiClient.userCancelRequestConnection(id, config);
572
630
  });
573
631
  }
574
- static userRejectConnectionRequest(id) {
632
+ static userRejectConnectionRequest(id, config) {
575
633
  return __awaiter(this, void 0, void 0, function* () {
576
- return UserApiClient.userRejectConnectionRequest(id);
634
+ return UserApiClient.userRejectConnectionRequest(id, config);
577
635
  });
578
636
  }
579
- static userMarkSeenConnectionRequest(id) {
637
+ static userMarkSeenConnectionRequest(id, config) {
580
638
  return __awaiter(this, void 0, void 0, function* () {
581
- return UserApiClient.userMarkSeenConnectionRequest(id);
639
+ return UserApiClient.userMarkSeenConnectionRequest(id, config);
582
640
  });
583
641
  }
584
- static showHideUser(id) {
642
+ static showHideUser(id, config) {
585
643
  return __awaiter(this, void 0, void 0, function* () {
586
- return UserApiClient.showHideUser(id);
644
+ return UserApiClient.showHideUser(id, config);
587
645
  });
588
646
  }
589
- static checkUserHidden(id) {
647
+ static checkUserHidden(id, config) {
590
648
  return __awaiter(this, void 0, void 0, function* () {
591
- return UserApiClient.checkUserHidden(id);
649
+ return UserApiClient.checkUserHidden(id, config);
592
650
  });
593
651
  }
594
- static checkUserHiddenBy(id) {
652
+ static checkUserHiddenBy(id, config) {
595
653
  return __awaiter(this, void 0, void 0, function* () {
596
- return UserApiClient.checkUserHiddenBy(id);
654
+ return UserApiClient.checkUserHiddenBy(id, config);
597
655
  });
598
656
  }
599
- static getUserLoyaltyPoints(id) {
657
+ static getUserLoyaltyPoints(id, config) {
600
658
  return __awaiter(this, void 0, void 0, function* () {
601
- return UserApiClient.getUserLoyaltyPoints(id);
659
+ return UserApiClient.getUserLoyaltyPoints(id, config);
602
660
  });
603
661
  }
604
- static getUserConnectionStatuses(users) {
662
+ static getUserConnectionStatuses(users, config) {
605
663
  return __awaiter(this, void 0, void 0, function* () {
606
- return UserApiClient.getUserConnectionStatuses(users);
664
+ return UserApiClient.getUserConnectionStatuses(users, config);
607
665
  });
608
666
  }
609
- static userTagToAddressContribution() {
667
+ static userTagToAddressContribution(config) {
610
668
  return __awaiter(this, void 0, void 0, function* () {
611
- return UserApiClient.userTagToAddressContribution();
669
+ return UserApiClient.userTagToAddressContribution(config);
612
670
  });
613
671
  }
614
- static checkUserEmailToken(email_token) {
672
+ static checkUserEmailToken(email_token, config) {
615
673
  return __awaiter(this, void 0, void 0, function* () {
616
- return UserApiClient.checkUserEmailToken(email_token);
674
+ return UserApiClient.checkUserEmailToken(email_token, config);
617
675
  });
618
676
  }
619
- static addUserAvatar(avatar) {
677
+ static addUserAvatar(avatar, config) {
620
678
  return __awaiter(this, void 0, void 0, function* () {
621
- return UserApiClient.addUserAvatar(avatar);
679
+ return UserApiClient.addUserAvatar(avatar, config);
622
680
  });
623
681
  }
624
- static getUserAvatars() {
682
+ static getUserAvatars(config) {
625
683
  return __awaiter(this, void 0, void 0, function* () {
626
- return UserApiClient.getUserAvatars();
684
+ return UserApiClient.getUserAvatars(config);
627
685
  });
628
686
  }
629
- static removeUserAvatar(avatar_id) {
687
+ static removeUserAvatar(avatar_id, config) {
630
688
  return __awaiter(this, void 0, void 0, function* () {
631
- return UserApiClient.removeUserAvatar(avatar_id);
689
+ return UserApiClient.removeUserAvatar(avatar_id, config);
632
690
  });
633
691
  }
634
- static setUserPrimaryAvatar(avatar_id) {
692
+ static setUserPrimaryAvatar(avatar_id, config) {
635
693
  return __awaiter(this, void 0, void 0, function* () {
636
- return UserApiClient.setUserPrimaryAvatar(avatar_id);
694
+ return UserApiClient.setUserPrimaryAvatar(avatar_id, config);
637
695
  });
638
696
  }
639
697
  }