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