@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
@@ -1,22 +1,23 @@
1
1
  import { SCCategoryType, SCCategoryAudienceType, SCUserType, SCFeedUnitType, SCCategoryFollowedStatusType } from '@selfcommunity/types';
2
2
  import { BaseGetParams, CategoryParams, SCPaginatedResponse } from '../../types';
3
+ import { AxiosRequestConfig } from 'axios';
3
4
  export interface CategoryApiClientInterface {
4
- getAllCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
5
- searchCategory(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
6
- createCategory(data: SCCategoryType): Promise<SCCategoryType>;
7
- getSpecificCategory(id: number): Promise<SCCategoryType>;
8
- updateASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
9
- patchASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
10
- deleteASpecificCategory(id: number): Promise<any>;
11
- getCategoryAudience(id: number): Promise<SCCategoryAudienceType>;
12
- getCategoryFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
13
- getCategoryFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
14
- getCategoryTrendingFeed(id: number, params?: BaseGetParams): Promise<SCPaginatedResponse<SCFeedUnitType>>;
15
- getCategoryTrendingFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
16
- followCategory(id: number): Promise<any>;
17
- checkCategoryIsFollowed(id: number): Promise<SCCategoryFollowedStatusType>;
18
- getFollowedCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
19
- getPopularCategories(params?: BaseGetParams): Promise<SCPaginatedResponse<SCCategoryType>>;
5
+ getAllCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
6
+ searchCategory(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
7
+ createCategory(data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
8
+ getSpecificCategory(id: number, config?: AxiosRequestConfig): Promise<SCCategoryType>;
9
+ updateASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
10
+ patchASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
11
+ deleteASpecificCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
12
+ getCategoryAudience(id: number, config?: AxiosRequestConfig): Promise<SCCategoryAudienceType>;
13
+ getCategoryFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
14
+ getCategoryFeed(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
15
+ getCategoryTrendingFeed(id: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
16
+ getCategoryTrendingFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
17
+ followCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
18
+ checkCategoryIsFollowed(id: number, config?: AxiosRequestConfig): Promise<SCCategoryFollowedStatusType>;
19
+ getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
20
+ getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
20
21
  }
21
22
  /**
22
23
  * Contains all the endpoints needed to manage categories.
@@ -25,90 +26,106 @@ export declare class CategoryApiClient {
25
26
  /**
26
27
  * This endpoint retrieves all categories.
27
28
  * @param params
29
+ * @param config
28
30
  */
29
- static getAllCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
31
+ static getAllCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
30
32
  /**
31
33
  * This endpoint performs category search.
32
34
  * @param params
35
+ * @param config
33
36
  */
34
- static searchCategory(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
37
+ static searchCategory(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
35
38
  /**
36
39
  * This endpoint creates a category.
37
40
  * @param data
41
+ * @param config
38
42
  */
39
- static createCategory(data: SCCategoryType): Promise<SCCategoryType>;
43
+ static createCategory(data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
40
44
  /**
41
45
  * This endpoint retrieves a specific category.
42
46
  * @param id
47
+ * @param config
43
48
  */
44
- static getSpecificCategory(id: number): Promise<SCCategoryType>;
49
+ static getSpecificCategory(id: number, config?: AxiosRequestConfig): Promise<SCCategoryType>;
45
50
  /**
46
51
  * This endpoint updates a specific category.
47
52
  * @param id
48
53
  * @param data
54
+ * @param config
49
55
  */
50
- static updateASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
56
+ static updateASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
51
57
  /**
52
58
  * This endpoint patches a specific category.
53
59
  * @param id
54
60
  * @param data
61
+ * @param config
55
62
  */
56
- static patchASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
63
+ static patchASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
57
64
  /**
58
65
  * This endpoint deletes a specific category identified by {id}.
59
66
  * @param id
67
+ * @param config
60
68
  */
61
- static deleteASpecificCategory(id: number): Promise<any>;
69
+ static deleteASpecificCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
62
70
  /**
63
71
  * This endpoint returns the audience of a specific category.
64
72
  * @param id
73
+ * @param config
65
74
  */
66
- static getCategoryAudience(id: number): Promise<SCCategoryAudienceType>;
75
+ static getCategoryAudience(id: number, config?: AxiosRequestConfig): Promise<SCCategoryAudienceType>;
67
76
  /**
68
77
  * This endpoint returns all followers of a specific category.
69
78
  * @param id
79
+ * @param config
70
80
  */
71
- static getCategoryFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
81
+ static getCategoryFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
72
82
  /**
73
83
  * This endpoint retrieves the category feed.
74
84
  * @param id
85
+ * @param config
75
86
  */
76
- static getCategoryFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
87
+ static getCategoryFeed(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
77
88
  /**
78
89
  * This endpoint retrieves the category trending feed.
79
90
  * @param id
80
91
  * @param params
92
+ * @param config
81
93
  */
82
- static getCategoryTrendingFeed(id: number, params?: BaseGetParams): Promise<SCPaginatedResponse<SCFeedUnitType>>;
94
+ static getCategoryTrendingFeed(id: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
83
95
  /**
84
96
  * This endpoint returns all trending followers of a specific category during last n days (default 90) .
85
97
  * @param id
98
+ * @param config
86
99
  */
87
- static getCategoryTrendingFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
100
+ static getCategoryTrendingFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
88
101
  /**
89
102
  * This endpoint follows a category.
90
103
  * @param id
104
+ * @param config
91
105
  */
92
- static followCategory(id: number): Promise<any>;
106
+ static followCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
93
107
  /**
94
108
  * This endpoint returns is_followed = true if the category (identified in path) is followed by the authenticated user.
95
109
  * @param id
110
+ * @param config
96
111
  */
97
- static checkCategoryIsFollowed(id: number): Promise<SCCategoryFollowedStatusType>;
112
+ static checkCategoryIsFollowed(id: number, config?: AxiosRequestConfig): Promise<SCCategoryFollowedStatusType>;
98
113
  /**
99
114
  * This endpoint retrieves all followed categories by the user.
100
115
  * @param params
116
+ * @param config
101
117
  */
102
- static getFollowedCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
118
+ static getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
103
119
  /**
104
120
  * This endpoint retrieves all categories ordered by the number of followers (in descending order).
105
121
  * @param params
122
+ * @param config
106
123
  */
107
- static getPopularCategories(params?: BaseGetParams): Promise<SCPaginatedResponse<SCCategoryType>>;
124
+ static getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
108
125
  }
109
126
  /**
110
127
  *
111
- :::tipCategory service can be used in the following ways:
128
+ :::tipCategory service can be used in the following way:
112
129
  ```jsx
113
130
  1. Import the service from our library:
114
131
 
@@ -124,28 +141,38 @@ export declare class CategoryApiClient {
124
141
  ```
125
142
  ```jsx
126
143
  In case of required `params`, just add them inside the brackets.
144
+
127
145
  async getSpecificCategory(categoryId) {
128
146
  return await CategoryService.getSpecificCategory(categoryId);
129
147
  }
130
148
  ```
149
+ ```jsx
150
+ If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
151
+
152
+ 1. Declare it(or declare them, it is possible to add multiple params)
153
+
154
+ const headers = headers: {Authorization: `Bearer ${yourToken}`}
155
+
156
+ 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
157
+ ```
131
158
  :::
132
159
  */
133
160
  export default class CategoryService {
134
- static getAllCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
135
- static searchCategory(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
136
- static createCategory(data: SCCategoryType): Promise<SCCategoryType>;
137
- static getSpecificCategory(id: number): Promise<SCCategoryType>;
138
- static updateASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
139
- static patchASpecificCategory(id: number, data: SCCategoryType): Promise<SCCategoryType>;
140
- static deleteASpecificCategory(id: number): Promise<any>;
141
- static getCategoryAudience(id: number): Promise<SCCategoryAudienceType>;
142
- static getCategoryFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
143
- static getCategoryFeed(id: number): Promise<SCPaginatedResponse<SCFeedUnitType>>;
144
- static getCategoryTrendingFeed(id: number, params?: BaseGetParams): Promise<SCPaginatedResponse<SCFeedUnitType>>;
145
- static getCategoryTrendingFollowers(id: number): Promise<SCPaginatedResponse<SCUserType>>;
146
- static followCategory(id: number): Promise<any>;
147
- static checkCategoryIsFollowed(id: number): Promise<SCCategoryFollowedStatusType>;
148
- static getFollowedCategories(params?: CategoryParams): Promise<SCPaginatedResponse<SCCategoryType>>;
149
- static getPopularCategories(params?: BaseGetParams): Promise<SCPaginatedResponse<SCCategoryType>>;
161
+ static getAllCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
162
+ static searchCategory(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
163
+ static createCategory(data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
164
+ static getSpecificCategory(id: number, config?: AxiosRequestConfig): Promise<SCCategoryType>;
165
+ static updateASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
166
+ static patchASpecificCategory(id: number, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;
167
+ static deleteASpecificCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
168
+ static getCategoryAudience(id: number, config?: AxiosRequestConfig): Promise<SCCategoryAudienceType>;
169
+ static getCategoryFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
170
+ static getCategoryFeed(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
171
+ static getCategoryTrendingFeed(id: number, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;
172
+ static getCategoryTrendingFollowers(id: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;
173
+ static followCategory(id: number, config?: AxiosRequestConfig): Promise<any>;
174
+ static checkCategoryIsFollowed(id: number, config?: AxiosRequestConfig): Promise<SCCategoryFollowedStatusType>;
175
+ static getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
176
+ static getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;
150
177
  }
151
178
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/category/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAE,sBAAsB,EAAE,UAAU,EAAE,cAAc,EAAE,4BAA4B,EAAC,MAAM,sBAAsB,CAAC;AACtI,OAAO,EAAC,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAG/E,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC,CAAC;IACxF,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC,CAAC;IACtF,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9D,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACzD,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACnF,sBAAsB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAClF,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAClD,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACjE,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,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,mBAAmB,CAAC,cAAc,CAAC,CAAC;WAItG,uBAAuB,CAClC,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,aAAa,EACtB,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;WAIlC,4BAA4B,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;WAI/G,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC;WAIrE,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,4BAA4B,CAAC;WAIvG,qBAAqB,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;WAIzH,oBAAoB,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC;CAGrI"}
@@ -22,128 +22,144 @@ class CategoryApiClient {
22
22
  /**
23
23
  * This endpoint retrieves all categories.
24
24
  * @param params
25
+ * @param config
25
26
  */
26
- static getAllCategories(params) {
27
+ static getAllCategories(params, config) {
27
28
  const p = new URLSearchParams(params);
28
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.CategoryList.url({})}?${p.toString()}`, Endpoints_1.default.CategoryList.method);
29
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.CategoryList.url({})}?${p.toString()}`, method: Endpoints_1.default.CategoryList.method }));
29
30
  }
30
31
  /**
31
32
  * This endpoint performs category search.
32
33
  * @param params
34
+ * @param config
33
35
  */
34
- static searchCategory(params) {
36
+ static searchCategory(params, config) {
35
37
  const p = new URLSearchParams(params);
36
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.SearchCategory.url({})}?${p.toString()}`, Endpoints_1.default.SearchCategory.method);
38
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.SearchCategory.url({})}?${p.toString()}`, method: Endpoints_1.default.SearchCategory.method }));
37
39
  }
38
40
  /**
39
41
  * This endpoint creates a category.
40
42
  * @param data
43
+ * @param config
41
44
  */
42
- static createCategory(data) {
43
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CreateCategory.url({}), Endpoints_1.default.CreateCategory.method, data);
45
+ static createCategory(data, config) {
46
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CreateCategory.url({}), method: Endpoints_1.default.CreateCategory.method, data: data }));
44
47
  }
45
48
  /**
46
49
  * This endpoint retrieves a specific category.
47
50
  * @param id
51
+ * @param config
48
52
  */
49
- static getSpecificCategory(id) {
50
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.Category.url({ id }), Endpoints_1.default.Category.method);
53
+ static getSpecificCategory(id, config) {
54
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.Category.url({ id }), method: Endpoints_1.default.Category.method }));
51
55
  }
52
56
  /**
53
57
  * This endpoint updates a specific category.
54
58
  * @param id
55
59
  * @param data
60
+ * @param config
56
61
  */
57
- static updateASpecificCategory(id, data) {
58
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.UpdateCategory.url({ id }), Endpoints_1.default.UpdateCategory.method, data);
62
+ static updateASpecificCategory(id, data, config) {
63
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.UpdateCategory.url({ id }), method: Endpoints_1.default.UpdateCategory.method, data: data }));
59
64
  }
60
65
  /**
61
66
  * This endpoint patches a specific category.
62
67
  * @param id
63
68
  * @param data
69
+ * @param config
64
70
  */
65
- static patchASpecificCategory(id, data) {
66
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.PatchCategory.url({ id }), Endpoints_1.default.PatchCategory.method, data);
71
+ static patchASpecificCategory(id, data, config) {
72
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.PatchCategory.url({ id }), method: Endpoints_1.default.PatchCategory.method, data: data }));
67
73
  }
68
74
  /**
69
75
  * This endpoint deletes a specific category identified by {id}.
70
76
  * @param id
77
+ * @param config
71
78
  */
72
- static deleteASpecificCategory(id) {
73
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.DeleteCategory.url({ id }), Endpoints_1.default.DeleteCategory.method);
79
+ static deleteASpecificCategory(id, config) {
80
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.DeleteCategory.url({ id }), method: Endpoints_1.default.DeleteCategory.method }));
74
81
  }
75
82
  /**
76
83
  * This endpoint returns the audience of a specific category.
77
84
  * @param id
85
+ * @param config
78
86
  */
79
- static getCategoryAudience(id) {
80
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoryAudience.url({ id }), Endpoints_1.default.CategoryAudience.method);
87
+ static getCategoryAudience(id, config) {
88
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CategoryAudience.url({ id }), method: Endpoints_1.default.CategoryAudience.method }));
81
89
  }
82
90
  /**
83
91
  * This endpoint returns all followers of a specific category.
84
92
  * @param id
93
+ * @param config
85
94
  */
86
- static getCategoryFollowers(id) {
87
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoryFollowers.url({ id }), Endpoints_1.default.CategoryFollowers.method);
95
+ static getCategoryFollowers(id, config) {
96
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CategoryFollowers.url({ id }), method: Endpoints_1.default.CategoryFollowers.method }));
88
97
  }
89
98
  /**
90
99
  * This endpoint retrieves the category feed.
91
100
  * @param id
101
+ * @param config
92
102
  */
93
- static getCategoryFeed(id) {
94
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoryFeed.url({ id }), Endpoints_1.default.CategoryFeed.method);
103
+ static getCategoryFeed(id, config) {
104
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CategoryFeed.url({ id }), method: Endpoints_1.default.CategoryFeed.method }));
95
105
  }
96
106
  /**
97
107
  * This endpoint retrieves the category trending feed.
98
108
  * @param id
99
109
  * @param params
110
+ * @param config
100
111
  */
101
- static getCategoryTrendingFeed(id, params) {
112
+ static getCategoryTrendingFeed(id, params, config) {
102
113
  const p = new URLSearchParams(params);
103
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.CategoryTrendingFeed.url({ id })}?${p.toString()}`, Endpoints_1.default.CategoryTrendingFeed.method);
114
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.CategoryTrendingFeed.url({ id })}?${p.toString()}`, method: Endpoints_1.default.CategoryTrendingFeed.method }));
104
115
  }
105
116
  /**
106
117
  * This endpoint returns all trending followers of a specific category during last n days (default 90) .
107
118
  * @param id
119
+ * @param config
108
120
  */
109
- static getCategoryTrendingFollowers(id) {
110
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CategoryTrendingPeople.url({ id }), Endpoints_1.default.CategoryTrendingPeople.method);
121
+ static getCategoryTrendingFollowers(id, config) {
122
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CategoryTrendingPeople.url({ id }), method: Endpoints_1.default.CategoryTrendingPeople.method }));
111
123
  }
112
124
  /**
113
125
  * This endpoint follows a category.
114
126
  * @param id
127
+ * @param config
115
128
  */
116
- static followCategory(id) {
117
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.FollowCategory.url({ id }), Endpoints_1.default.FollowCategory.method);
129
+ static followCategory(id, config) {
130
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.FollowCategory.url({ id }), method: Endpoints_1.default.FollowCategory.method }));
118
131
  }
119
132
  /**
120
133
  * This endpoint returns is_followed = true if the category (identified in path) is followed by the authenticated user.
121
134
  * @param id
135
+ * @param config
122
136
  */
123
- static checkCategoryIsFollowed(id) {
124
- return (0, apiRequest_1.apiRequest)(Endpoints_1.default.CheckCategoryIsFollowed.url({ id }), Endpoints_1.default.CheckCategoryIsFollowed.method);
137
+ static checkCategoryIsFollowed(id, config) {
138
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: Endpoints_1.default.CheckCategoryIsFollowed.url({ id }), method: Endpoints_1.default.CheckCategoryIsFollowed.method }));
125
139
  }
126
140
  /**
127
141
  * This endpoint retrieves all followed categories by the user.
128
142
  * @param params
143
+ * @param config
129
144
  */
130
- static getFollowedCategories(params) {
145
+ static getFollowedCategories(params, config) {
131
146
  const p = new URLSearchParams(params);
132
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.CategoriesFollowed.url({})}?${p.toString()}`, Endpoints_1.default.CategoriesFollowed.method);
147
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.CategoriesFollowed.url({})}?${p.toString()}`, method: Endpoints_1.default.CategoriesFollowed.method }));
133
148
  }
134
149
  /**
135
150
  * This endpoint retrieves all categories ordered by the number of followers (in descending order).
136
151
  * @param params
152
+ * @param config
137
153
  */
138
- static getPopularCategories(params) {
154
+ static getPopularCategories(params, config) {
139
155
  const p = new URLSearchParams(params);
140
- return (0, apiRequest_1.apiRequest)(`${Endpoints_1.default.PopularCategories.url({})}?${p.toString()}`, Endpoints_1.default.PopularCategories.method);
156
+ return (0, apiRequest_1.apiRequest)(Object.assign(Object.assign({}, config), { url: `${Endpoints_1.default.PopularCategories.url({})}?${p.toString()}`, method: Endpoints_1.default.PopularCategories.method }));
141
157
  }
142
158
  }
143
159
  exports.CategoryApiClient = CategoryApiClient;
144
160
  /**
145
161
  *
146
- :::tipCategory service can be used in the following ways:
162
+ :::tipCategory service can be used in the following way:
147
163
  ```jsx
148
164
  1. Import the service from our library:
149
165
 
@@ -159,91 +175,101 @@ exports.CategoryApiClient = CategoryApiClient;
159
175
  ```
160
176
  ```jsx
161
177
  In case of required `params`, just add them inside the brackets.
178
+
162
179
  async getSpecificCategory(categoryId) {
163
180
  return await CategoryService.getSpecificCategory(categoryId);
164
181
  }
165
182
  ```
183
+ ```jsx
184
+ If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
185
+
186
+ 1. Declare it(or declare them, it is possible to add multiple params)
187
+
188
+ const headers = headers: {Authorization: `Bearer ${yourToken}`}
189
+
190
+ 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
191
+ ```
166
192
  :::
167
193
  */
168
194
  class CategoryService {
169
- static getAllCategories(params) {
195
+ static getAllCategories(params, config) {
170
196
  return __awaiter(this, void 0, void 0, function* () {
171
- return CategoryApiClient.getAllCategories(params);
197
+ return CategoryApiClient.getAllCategories(params, config);
172
198
  });
173
199
  }
174
- static searchCategory(params) {
200
+ static searchCategory(params, config) {
175
201
  return __awaiter(this, void 0, void 0, function* () {
176
- return CategoryApiClient.searchCategory(params);
202
+ return CategoryApiClient.searchCategory(params, config);
177
203
  });
178
204
  }
179
- static createCategory(data) {
205
+ static createCategory(data, config) {
180
206
  return __awaiter(this, void 0, void 0, function* () {
181
- return CategoryApiClient.createCategory(data);
207
+ return CategoryApiClient.createCategory(data, config);
182
208
  });
183
209
  }
184
- static getSpecificCategory(id) {
210
+ static getSpecificCategory(id, config) {
185
211
  return __awaiter(this, void 0, void 0, function* () {
186
- return CategoryApiClient.getSpecificCategory(id);
212
+ return CategoryApiClient.getSpecificCategory(id, config);
187
213
  });
188
214
  }
189
- static updateASpecificCategory(id, data) {
215
+ static updateASpecificCategory(id, data, config) {
190
216
  return __awaiter(this, void 0, void 0, function* () {
191
- return CategoryApiClient.updateASpecificCategory(id, data);
217
+ return CategoryApiClient.updateASpecificCategory(id, data, config);
192
218
  });
193
219
  }
194
- static patchASpecificCategory(id, data) {
220
+ static patchASpecificCategory(id, data, config) {
195
221
  return __awaiter(this, void 0, void 0, function* () {
196
- return CategoryApiClient.patchASpecificCategory(id, data);
222
+ return CategoryApiClient.patchASpecificCategory(id, data, config);
197
223
  });
198
224
  }
199
- static deleteASpecificCategory(id) {
225
+ static deleteASpecificCategory(id, config) {
200
226
  return __awaiter(this, void 0, void 0, function* () {
201
- return CategoryApiClient.deleteASpecificCategory(id);
227
+ return CategoryApiClient.deleteASpecificCategory(id, config);
202
228
  });
203
229
  }
204
- static getCategoryAudience(id) {
230
+ static getCategoryAudience(id, config) {
205
231
  return __awaiter(this, void 0, void 0, function* () {
206
- return CategoryApiClient.getCategoryAudience(id);
232
+ return CategoryApiClient.getCategoryAudience(id, config);
207
233
  });
208
234
  }
209
- static getCategoryFollowers(id) {
235
+ static getCategoryFollowers(id, config) {
210
236
  return __awaiter(this, void 0, void 0, function* () {
211
- return CategoryApiClient.getCategoryFollowers(id);
237
+ return CategoryApiClient.getCategoryFollowers(id, config);
212
238
  });
213
239
  }
214
- static getCategoryFeed(id) {
240
+ static getCategoryFeed(id, config) {
215
241
  return __awaiter(this, void 0, void 0, function* () {
216
- return CategoryApiClient.getCategoryFeed(id);
242
+ return CategoryApiClient.getCategoryFeed(id, config);
217
243
  });
218
244
  }
219
- static getCategoryTrendingFeed(id, params) {
245
+ static getCategoryTrendingFeed(id, params, config) {
220
246
  return __awaiter(this, void 0, void 0, function* () {
221
- return CategoryApiClient.getCategoryTrendingFeed(id, params);
247
+ return CategoryApiClient.getCategoryTrendingFeed(id, params, config);
222
248
  });
223
249
  }
224
- static getCategoryTrendingFollowers(id) {
250
+ static getCategoryTrendingFollowers(id, config) {
225
251
  return __awaiter(this, void 0, void 0, function* () {
226
- return CategoryApiClient.getCategoryTrendingFollowers(id);
252
+ return CategoryApiClient.getCategoryTrendingFollowers(id, config);
227
253
  });
228
254
  }
229
- static followCategory(id) {
255
+ static followCategory(id, config) {
230
256
  return __awaiter(this, void 0, void 0, function* () {
231
- return CategoryApiClient.followCategory(id);
257
+ return CategoryApiClient.followCategory(id, config);
232
258
  });
233
259
  }
234
- static checkCategoryIsFollowed(id) {
260
+ static checkCategoryIsFollowed(id, config) {
235
261
  return __awaiter(this, void 0, void 0, function* () {
236
- return CategoryApiClient.checkCategoryIsFollowed(id);
262
+ return CategoryApiClient.checkCategoryIsFollowed(id, config);
237
263
  });
238
264
  }
239
- static getFollowedCategories(params) {
265
+ static getFollowedCategories(params, config) {
240
266
  return __awaiter(this, void 0, void 0, function* () {
241
- return CategoryApiClient.getFollowedCategories(params);
267
+ return CategoryApiClient.getFollowedCategories(params, config);
242
268
  });
243
269
  }
244
- static getPopularCategories(params) {
270
+ static getPopularCategories(params, config) {
245
271
  return __awaiter(this, void 0, void 0, function* () {
246
- return CategoryApiClient.getPopularCategories(params);
272
+ return CategoryApiClient.getPopularCategories(params, config);
247
273
  });
248
274
  }
249
275
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/category/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0EAAkD;AAGlD,uDAAkD;AAqBlD;;GAEG;AACH,MAAa,iBAAiB;IAC5B;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,MAAuB;QAC7C,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAA,uBAAU,EAAC,GAAG,mBAAS,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,mBAAS,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACxG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,MAAuB;QAC3C,MAAM,CAAC,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,O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