@ccw-api/api 0.7.0 → 0.9.0

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 (437) hide show
  1. package/dist/index.cjs +1544 -0
  2. package/dist/index.d.cts +3409 -0
  3. package/dist/index.d.ts +3409 -0
  4. package/dist/index.js +1502 -0
  5. package/package.json +10 -9
  6. package/dist/esm/bfs-web/extensions/{eid}/donate.js +0 -14
  7. package/dist/esm/bfs-web/index.js +0 -6
  8. package/dist/esm/bfs-web/users/{oid}/extensions.js +0 -21
  9. package/dist/esm/community-web/api/v1/short_code/encode.js +0 -25
  10. package/dist/esm/community-web/approval/list.js +0 -16
  11. package/dist/esm/community-web/base/dateTime.js +0 -10
  12. package/dist/esm/community-web/campaign_resource/detail.js +0 -12
  13. package/dist/esm/community-web/ccw-main/status.js +0 -12
  14. package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.js +0 -34
  15. package/dist/esm/community-web/check_in_record/detail.js +0 -11
  16. package/dist/esm/community-web/check_in_record/insert.js +0 -12
  17. package/dist/esm/community-web/cloud_asset/search.js +0 -25
  18. package/dist/esm/community-web/cloud_asset/user/privacy.js +0 -11
  19. package/dist/esm/community-web/comment/create.js +0 -16
  20. package/dist/esm/community-web/comment/like_record/create.js +0 -13
  21. package/dist/esm/community-web/comment/page.js +0 -24
  22. package/dist/esm/community-web/comment/page_by_topic.js +0 -28
  23. package/dist/esm/community-web/comment/reply.js +0 -17
  24. package/dist/esm/community-web/config/detail.js +0 -13
  25. package/dist/esm/community-web/creation/detail.js +0 -14
  26. package/dist/esm/community-web/creation/excellent/list.js +0 -13
  27. package/dist/esm/community-web/creation/introduction/detail.js +0 -13
  28. package/dist/esm/community-web/creation/like/detail.js +0 -13
  29. package/dist/esm/community-web/creation/loading/tips.js +0 -11
  30. package/dist/esm/community-web/creation/own/page.js +0 -26
  31. package/dist/esm/community-web/creation/page.js +0 -24
  32. package/dist/esm/community-web/creation/page_by_student.js +0 -24
  33. package/dist/esm/community-web/creation/potential/list.js +0 -13
  34. package/dist/esm/community-web/creation/recommend.js +0 -23
  35. package/dist/esm/community-web/creation/search/page.js +0 -24
  36. package/dist/esm/community-web/creation/smart_contract/split_rule/create.js +0 -14
  37. package/dist/esm/community-web/creation/smart_contract/split_rule/detail.js +0 -13
  38. package/dist/esm/community-web/creation/student/detail.js +0 -13
  39. package/dist/esm/community-web/creation/submit.js +0 -12
  40. package/dist/esm/community-web/creation/tag/list.js +0 -12
  41. package/dist/esm/community-web/creation/team_member/list.js +0 -14
  42. package/dist/esm/community-web/creation/team_member/produce_ticket.js +0 -13
  43. package/dist/esm/community-web/creation/teamwork_log/page.js +0 -38
  44. package/dist/esm/community-web/creation/update.js +0 -22
  45. package/dist/esm/community-web/creation_activity_stats/list.js +0 -13
  46. package/dist/esm/community-web/creation_attribute/detail.js +0 -24
  47. package/dist/esm/community-web/creation_donated_record/ranking_list.js +0 -22
  48. package/dist/esm/community-web/creation_favorite/detail.js +0 -13
  49. package/dist/esm/community-web/creation_recommend_position/list.js +0 -14
  50. package/dist/esm/community-web/creation_release/code_profiling/detail.js +0 -14
  51. package/dist/esm/community-web/creation_release/page.js +0 -24
  52. package/dist/esm/community-web/creation_screenshot/page.js +0 -20
  53. package/dist/esm/community-web/creation_stats/view.js +0 -14
  54. package/dist/esm/community-web/currency/account/personal.js +0 -11
  55. package/dist/esm/community-web/emoji/all.js +0 -11
  56. package/dist/esm/community-web/emoji/category/list.js +0 -11
  57. package/dist/esm/community-web/emoji/page.js +0 -23
  58. package/dist/esm/community-web/event.js +0 -13
  59. package/dist/esm/community-web/extensions/creation-like/detail.js +0 -14
  60. package/dist/esm/community-web/extensions/following/status.js +0 -14
  61. package/dist/esm/community-web/great_creation/update.js +0 -13
  62. package/dist/esm/community-web/hash_tag/detail.js +0 -13
  63. package/dist/esm/community-web/hash_tag/managed/list.js +0 -29
  64. package/dist/esm/community-web/hash_tag/recommend/list.js +0 -11
  65. package/dist/esm/community-web/hash_tag_creation/list_relation.js +0 -13
  66. package/dist/esm/community-web/hash_tag_creation/mine.js +0 -29
  67. package/dist/esm/community-web/hash_tag_favorite/detail.js +0 -13
  68. package/dist/esm/community-web/health/check.js +0 -12
  69. package/dist/esm/community-web/historical_team_member/page.js +0 -27
  70. package/dist/esm/community-web/index.js +0 -214
  71. package/dist/esm/community-web/leaflets/item/list.js +0 -13
  72. package/dist/esm/community-web/locked_user/detail.js +0 -13
  73. package/dist/esm/community-web/muted_user/detail.js +0 -13
  74. package/dist/esm/community-web/notification/page.js +0 -23
  75. package/dist/esm/community-web/notification/stats/v2.js +0 -13
  76. package/dist/esm/community-web/notify_message/show.js +0 -12
  77. package/dist/esm/community-web/post/detail.js +0 -13
  78. package/dist/esm/community-web/search/hot_words.js +0 -13
  79. package/dist/esm/community-web/short_url/create.js +0 -15
  80. package/dist/esm/community-web/short_url/decompress.js +0 -13
  81. package/dist/esm/community-web/smart_contract/account.js +0 -13
  82. package/dist/esm/community-web/smart_contract/detail.js +0 -13
  83. package/dist/esm/community-web/smart_contract/execute.js +0 -17
  84. package/dist/esm/community-web/smart_contract/list.js +0 -14
  85. package/dist/esm/community-web/student/block_record/detail.js +0 -13
  86. package/dist/esm/community-web/student/block_record/list.js +0 -21
  87. package/dist/esm/community-web/student/block_record/status.js +0 -13
  88. package/dist/esm/community-web/student/following/page.js +0 -24
  89. package/dist/esm/community-web/students/creator_score.js +0 -12
  90. package/dist/esm/community-web/students/last_active_at.js +0 -13
  91. package/dist/esm/community-web/students/list.js +0 -13
  92. package/dist/esm/community-web/students/list_sessions.js +0 -21
  93. package/dist/esm/community-web/students/profile.js +0 -13
  94. package/dist/esm/community-web/students/reputation_score_log/page.js +0 -21
  95. package/dist/esm/community-web/students/self/detail.js +0 -15
  96. package/dist/esm/community-web/students/stats.js +0 -13
  97. package/dist/esm/community-web/students/update.js +0 -31
  98. package/dist/esm/community-web/study-community/cloud_variable/create.js +0 -15
  99. package/dist/esm/community-web/study-community/comment/delete.js +0 -13
  100. package/dist/esm/community-web/study-community/comment/fold.js +0 -13
  101. package/dist/esm/community-web/study-community/comment/reset_weight.js +0 -13
  102. package/dist/esm/community-web/study-community/comment/top.js +0 -13
  103. package/dist/esm/community-web/study-community/following/follow.js +0 -13
  104. package/dist/esm/community-web/study-community/member/detail.js +0 -12
  105. package/dist/esm/community-web/study-community/spread_feed/unread/count.js +0 -13
  106. package/dist/esm/community-web/study-trade/trade/donate.js +0 -15
  107. package/dist/esm/community-web/subject_area/page.js +0 -22
  108. package/dist/esm/community-web/subject_area/page_by_channel.js +0 -22
  109. package/dist/esm/community-web/task/award.js +0 -13
  110. package/dist/esm/community-web/task/mine.js +0 -12
  111. package/dist/esm/community-web/typical_project/page.js +0 -25
  112. package/dist/esm/community-web/typical_project/student/unread_count.js +0 -14
  113. package/dist/esm/community-web/user-card/detail.js +0 -13
  114. package/dist/esm/community-web/user_label/list.js +0 -12
  115. package/dist/esm/community-web/user_package/status.js +0 -14
  116. package/dist/esm/community-web/user_package/user_product.js +0 -29
  117. package/dist/esm/community-web-cloud-database/cloud_variable/detail/v2.js +0 -16
  118. package/dist/esm/community-web-cloud-database/cloud_variable/save.js +0 -29
  119. package/dist/esm/community-web-cloud-database/index.js +0 -7
  120. package/dist/esm/gandi-main/bulletins/detail.js +0 -12
  121. package/dist/esm/gandi-main/bulletins/page.js +0 -24
  122. package/dist/esm/gandi-main/creation/leaderboards/{oid}/records.js +0 -28
  123. package/dist/esm/gandi-main/index.js +0 -11
  124. package/dist/esm/gandi-main/timestamp/current.js +0 -9
  125. package/dist/esm/index.js +0 -16
  126. package/dist/esm/op-parent-api/captcha/check.js +0 -15
  127. package/dist/esm/op-parent-api/captcha/create.js +0 -13
  128. package/dist/esm/op-parent-api/index.js +0 -6
  129. package/dist/esm/queryPages.js +0 -22
  130. package/dist/esm/sso/index.js +0 -12
  131. package/dist/esm/sso/web/auth/assistant/captcha/v2/create.js +0 -17
  132. package/dist/esm/sso/web/auth/login-by-password.js +0 -28
  133. package/dist/esm/sso/web/auth/logout.js +0 -11
  134. package/dist/esm/sso/web/auth/logout_by_session.js +0 -12
  135. package/dist/esm/sso/web/auth/v3/login/by-phone.js +0 -33
  136. package/dist/esm/types/account.js +0 -1
  137. package/dist/esm/types/api.js +0 -1
  138. package/dist/esm/types/approval.js +0 -1
  139. package/dist/esm/types/comment.js +0 -1
  140. package/dist/esm/types/creation.js +0 -1
  141. package/dist/esm/types/extensions.js +0 -1
  142. package/dist/esm/types/hashTag.js +0 -1
  143. package/dist/esm/types/index.js +0 -1
  144. package/dist/esm/types/notification.js +0 -7
  145. package/dist/esm/types/notificationContent.js +0 -1
  146. package/dist/esm/types/pages.js +0 -1
  147. package/dist/esm/types/session.js +0 -1
  148. package/dist/esm/types/teamwork.js +0 -1
  149. package/dist/esm/types/userData.js +0 -1
  150. package/dist/node/bfs-web/extensions/{eid}/donate.js +0 -18
  151. package/dist/node/bfs-web/index.js +0 -9
  152. package/dist/node/bfs-web/users/{oid}/extensions.js +0 -25
  153. package/dist/node/community-web/api/v1/short_code/encode.js +0 -29
  154. package/dist/node/community-web/approval/list.js +0 -23
  155. package/dist/node/community-web/base/dateTime.js +0 -17
  156. package/dist/node/community-web/campaign_resource/detail.js +0 -16
  157. package/dist/node/community-web/ccw-main/status.js +0 -16
  158. package/dist/node/community-web/ccw-mall/ccw/product/fe/query.js +0 -38
  159. package/dist/node/community-web/check_in_record/detail.js +0 -15
  160. package/dist/node/community-web/check_in_record/insert.js +0 -16
  161. package/dist/node/community-web/cloud_asset/search.js +0 -29
  162. package/dist/node/community-web/cloud_asset/user/privacy.js +0 -15
  163. package/dist/node/community-web/comment/create.js +0 -20
  164. package/dist/node/community-web/comment/like_record/create.js +0 -17
  165. package/dist/node/community-web/comment/page.js +0 -28
  166. package/dist/node/community-web/comment/page_by_topic.js +0 -32
  167. package/dist/node/community-web/comment/reply.js +0 -21
  168. package/dist/node/community-web/config/detail.js +0 -17
  169. package/dist/node/community-web/creation/detail.js +0 -18
  170. package/dist/node/community-web/creation/excellent/list.js +0 -17
  171. package/dist/node/community-web/creation/introduction/detail.js +0 -17
  172. package/dist/node/community-web/creation/like/detail.js +0 -17
  173. package/dist/node/community-web/creation/loading/tips.js +0 -15
  174. package/dist/node/community-web/creation/own/page.js +0 -30
  175. package/dist/node/community-web/creation/page.js +0 -28
  176. package/dist/node/community-web/creation/page_by_student.js +0 -28
  177. package/dist/node/community-web/creation/potential/list.js +0 -17
  178. package/dist/node/community-web/creation/recommend.js +0 -27
  179. package/dist/node/community-web/creation/search/page.js +0 -28
  180. package/dist/node/community-web/creation/smart_contract/split_rule/create.js +0 -18
  181. package/dist/node/community-web/creation/smart_contract/split_rule/detail.js +0 -17
  182. package/dist/node/community-web/creation/student/detail.js +0 -17
  183. package/dist/node/community-web/creation/submit.js +0 -16
  184. package/dist/node/community-web/creation/tag/list.js +0 -16
  185. package/dist/node/community-web/creation/team_member/list.js +0 -18
  186. package/dist/node/community-web/creation/team_member/produce_ticket.js +0 -17
  187. package/dist/node/community-web/creation/teamwork_log/page.js +0 -42
  188. package/dist/node/community-web/creation/update.js +0 -26
  189. package/dist/node/community-web/creation_activity_stats/list.js +0 -17
  190. package/dist/node/community-web/creation_attribute/detail.js +0 -28
  191. package/dist/node/community-web/creation_donated_record/ranking_list.js +0 -26
  192. package/dist/node/community-web/creation_favorite/detail.js +0 -17
  193. package/dist/node/community-web/creation_recommend_position/list.js +0 -18
  194. package/dist/node/community-web/creation_release/code_profiling/detail.js +0 -18
  195. package/dist/node/community-web/creation_release/page.js +0 -28
  196. package/dist/node/community-web/creation_screenshot/page.js +0 -24
  197. package/dist/node/community-web/creation_stats/view.js +0 -18
  198. package/dist/node/community-web/currency/account/personal.js +0 -15
  199. package/dist/node/community-web/emoji/all.js +0 -15
  200. package/dist/node/community-web/emoji/category/list.js +0 -15
  201. package/dist/node/community-web/emoji/page.js +0 -27
  202. package/dist/node/community-web/event.js +0 -17
  203. package/dist/node/community-web/extensions/creation-like/detail.js +0 -18
  204. package/dist/node/community-web/extensions/following/status.js +0 -18
  205. package/dist/node/community-web/great_creation/update.js +0 -17
  206. package/dist/node/community-web/hash_tag/detail.js +0 -17
  207. package/dist/node/community-web/hash_tag/managed/list.js +0 -33
  208. package/dist/node/community-web/hash_tag/recommend/list.js +0 -15
  209. package/dist/node/community-web/hash_tag_creation/list_relation.js +0 -17
  210. package/dist/node/community-web/hash_tag_creation/mine.js +0 -33
  211. package/dist/node/community-web/hash_tag_favorite/detail.js +0 -17
  212. package/dist/node/community-web/health/check.js +0 -16
  213. package/dist/node/community-web/historical_team_member/page.js +0 -31
  214. package/dist/node/community-web/index.js +0 -217
  215. package/dist/node/community-web/leaflets/item/list.js +0 -17
  216. package/dist/node/community-web/locked_user/detail.js +0 -17
  217. package/dist/node/community-web/muted_user/detail.js +0 -17
  218. package/dist/node/community-web/notification/page.js +0 -27
  219. package/dist/node/community-web/notification/stats/v2.js +0 -17
  220. package/dist/node/community-web/notify_message/show.js +0 -16
  221. package/dist/node/community-web/post/detail.js +0 -17
  222. package/dist/node/community-web/search/hot_words.js +0 -17
  223. package/dist/node/community-web/short_url/create.js +0 -19
  224. package/dist/node/community-web/short_url/decompress.js +0 -17
  225. package/dist/node/community-web/smart_contract/account.js +0 -17
  226. package/dist/node/community-web/smart_contract/detail.js +0 -17
  227. package/dist/node/community-web/smart_contract/execute.js +0 -21
  228. package/dist/node/community-web/smart_contract/list.js +0 -18
  229. package/dist/node/community-web/student/block_record/detail.js +0 -17
  230. package/dist/node/community-web/student/block_record/list.js +0 -25
  231. package/dist/node/community-web/student/block_record/status.js +0 -17
  232. package/dist/node/community-web/student/following/page.js +0 -28
  233. package/dist/node/community-web/students/creator_score.js +0 -16
  234. package/dist/node/community-web/students/last_active_at.js +0 -17
  235. package/dist/node/community-web/students/list.js +0 -17
  236. package/dist/node/community-web/students/list_sessions.js +0 -25
  237. package/dist/node/community-web/students/profile.js +0 -17
  238. package/dist/node/community-web/students/reputation_score_log/page.js +0 -25
  239. package/dist/node/community-web/students/self/detail.js +0 -19
  240. package/dist/node/community-web/students/stats.js +0 -17
  241. package/dist/node/community-web/students/update.js +0 -35
  242. package/dist/node/community-web/study-community/cloud_variable/create.js +0 -19
  243. package/dist/node/community-web/study-community/comment/delete.js +0 -17
  244. package/dist/node/community-web/study-community/comment/fold.js +0 -17
  245. package/dist/node/community-web/study-community/comment/reset_weight.js +0 -17
  246. package/dist/node/community-web/study-community/comment/top.js +0 -17
  247. package/dist/node/community-web/study-community/following/follow.js +0 -17
  248. package/dist/node/community-web/study-community/member/detail.js +0 -16
  249. package/dist/node/community-web/study-community/spread_feed/unread/count.js +0 -17
  250. package/dist/node/community-web/study-trade/trade/donate.js +0 -19
  251. package/dist/node/community-web/subject_area/page.js +0 -26
  252. package/dist/node/community-web/subject_area/page_by_channel.js +0 -26
  253. package/dist/node/community-web/task/award.js +0 -17
  254. package/dist/node/community-web/task/mine.js +0 -16
  255. package/dist/node/community-web/typical_project/page.js +0 -29
  256. package/dist/node/community-web/typical_project/student/unread_count.js +0 -18
  257. package/dist/node/community-web/user-card/detail.js +0 -17
  258. package/dist/node/community-web/user_label/list.js +0 -16
  259. package/dist/node/community-web/user_package/status.js +0 -18
  260. package/dist/node/community-web/user_package/user_product.js +0 -33
  261. package/dist/node/community-web-cloud-database/cloud_variable/detail/v2.js +0 -20
  262. package/dist/node/community-web-cloud-database/cloud_variable/save.js +0 -34
  263. package/dist/node/community-web-cloud-database/index.js +0 -10
  264. package/dist/node/gandi-main/bulletins/detail.js +0 -16
  265. package/dist/node/gandi-main/bulletins/page.js +0 -28
  266. package/dist/node/gandi-main/creation/leaderboards/{oid}/records.js +0 -33
  267. package/dist/node/gandi-main/index.js +0 -14
  268. package/dist/node/gandi-main/timestamp/current.js +0 -13
  269. package/dist/node/index.js +0 -25
  270. package/dist/node/op-parent-api/captcha/check.js +0 -19
  271. package/dist/node/op-parent-api/captcha/create.js +0 -17
  272. package/dist/node/op-parent-api/index.js +0 -9
  273. package/dist/node/queryPages.js +0 -26
  274. package/dist/node/sso/index.js +0 -15
  275. package/dist/node/sso/web/auth/assistant/captcha/v2/create.js +0 -21
  276. package/dist/node/sso/web/auth/login-by-password.js +0 -32
  277. package/dist/node/sso/web/auth/logout.js +0 -15
  278. package/dist/node/sso/web/auth/logout_by_session.js +0 -16
  279. package/dist/node/sso/web/auth/v3/login/by-phone.js +0 -37
  280. package/dist/node/types/account.js +0 -2
  281. package/dist/node/types/api.js +0 -2
  282. package/dist/node/types/approval.js +0 -2
  283. package/dist/node/types/comment.js +0 -2
  284. package/dist/node/types/creation.js +0 -2
  285. package/dist/node/types/extensions.js +0 -2
  286. package/dist/node/types/hashTag.js +0 -2
  287. package/dist/node/types/index.js +0 -2
  288. package/dist/node/types/notification.js +0 -10
  289. package/dist/node/types/notificationContent.js +0 -2
  290. package/dist/node/types/pages.js +0 -2
  291. package/dist/node/types/session.js +0 -2
  292. package/dist/node/types/teamwork.js +0 -2
  293. package/dist/node/types/userData.js +0 -2
  294. package/dist/types/bfs-web/extensions/{eid}/donate.d.ts +0 -13
  295. package/dist/types/bfs-web/index.d.ts +0 -6
  296. package/dist/types/bfs-web/users/{oid}/extensions.d.ts +0 -12
  297. package/dist/types/community-web/api/v1/short_code/encode.d.ts +0 -42
  298. package/dist/types/community-web/approval/list.d.ts +0 -27
  299. package/dist/types/community-web/base/dateTime.d.ts +0 -5
  300. package/dist/types/community-web/campaign_resource/detail.d.ts +0 -17
  301. package/dist/types/community-web/ccw-main/status.d.ts +0 -11
  302. package/dist/types/community-web/ccw-mall/ccw/product/fe/query.d.ts +0 -54
  303. package/dist/types/community-web/check_in_record/detail.d.ts +0 -17
  304. package/dist/types/community-web/check_in_record/insert.d.ts +0 -10
  305. package/dist/types/community-web/cloud_asset/search.d.ts +0 -44
  306. package/dist/types/community-web/cloud_asset/user/privacy.d.ts +0 -14
  307. package/dist/types/community-web/comment/create.d.ts +0 -40
  308. package/dist/types/community-web/comment/like_record/create.d.ts +0 -11
  309. package/dist/types/community-web/comment/page.d.ts +0 -19
  310. package/dist/types/community-web/comment/page_by_topic.d.ts +0 -19
  311. package/dist/types/community-web/comment/reply.d.ts +0 -27
  312. package/dist/types/community-web/config/detail.d.ts +0 -11
  313. package/dist/types/community-web/creation/detail.d.ts +0 -15
  314. package/dist/types/community-web/creation/excellent/list.d.ts +0 -12
  315. package/dist/types/community-web/creation/introduction/detail.d.ts +0 -13
  316. package/dist/types/community-web/creation/like/detail.d.ts +0 -13
  317. package/dist/types/community-web/creation/loading/tips.d.ts +0 -9
  318. package/dist/types/community-web/creation/own/page.d.ts +0 -17
  319. package/dist/types/community-web/creation/page.d.ts +0 -16
  320. package/dist/types/community-web/creation/page_by_student.d.ts +0 -16
  321. package/dist/types/community-web/creation/potential/list.d.ts +0 -12
  322. package/dist/types/community-web/creation/recommend.d.ts +0 -15
  323. package/dist/types/community-web/creation/search/page.d.ts +0 -17
  324. package/dist/types/community-web/creation/smart_contract/split_rule/create.d.ts +0 -25
  325. package/dist/types/community-web/creation/smart_contract/split_rule/detail.d.ts +0 -31
  326. package/dist/types/community-web/creation/student/detail.d.ts +0 -13
  327. package/dist/types/community-web/creation/submit.d.ts +0 -39
  328. package/dist/types/community-web/creation/tag/list.d.ts +0 -11
  329. package/dist/types/community-web/creation/team_member/list.d.ts +0 -15
  330. package/dist/types/community-web/creation/team_member/produce_ticket.d.ts +0 -12
  331. package/dist/types/community-web/creation/teamwork_log/page.d.ts +0 -42
  332. package/dist/types/community-web/creation/update.d.ts +0 -19
  333. package/dist/types/community-web/creation_activity_stats/list.d.ts +0 -20
  334. package/dist/types/community-web/creation_attribute/detail.d.ts +0 -34
  335. package/dist/types/community-web/creation_donated_record/ranking_list.d.ts +0 -19
  336. package/dist/types/community-web/creation_favorite/detail.d.ts +0 -13
  337. package/dist/types/community-web/creation_recommend_position/list.d.ts +0 -13
  338. package/dist/types/community-web/creation_release/code_profiling/detail.d.ts +0 -60
  339. package/dist/types/community-web/creation_release/page.d.ts +0 -16
  340. package/dist/types/community-web/creation_screenshot/page.d.ts +0 -15
  341. package/dist/types/community-web/creation_stats/view.d.ts +0 -14
  342. package/dist/types/community-web/currency/account/personal.d.ts +0 -12
  343. package/dist/types/community-web/emoji/all.d.ts +0 -27
  344. package/dist/types/community-web/emoji/category/list.d.ts +0 -16
  345. package/dist/types/community-web/emoji/page.d.ts +0 -17
  346. package/dist/types/community-web/event.d.ts +0 -11
  347. package/dist/types/community-web/extensions/creation-like/detail.d.ts +0 -18
  348. package/dist/types/community-web/extensions/following/status.d.ts +0 -19
  349. package/dist/types/community-web/great_creation/update.d.ts +0 -12
  350. package/dist/types/community-web/hash_tag/detail.d.ts +0 -12
  351. package/dist/types/community-web/hash_tag/managed/list.d.ts +0 -18
  352. package/dist/types/community-web/hash_tag/recommend/list.d.ts +0 -8
  353. package/dist/types/community-web/hash_tag_creation/list_relation.d.ts +0 -13
  354. package/dist/types/community-web/hash_tag_creation/mine.d.ts +0 -18
  355. package/dist/types/community-web/hash_tag_favorite/detail.d.ts +0 -12
  356. package/dist/types/community-web/health/check.d.ts +0 -14
  357. package/dist/types/community-web/historical_team_member/page.d.ts +0 -17
  358. package/dist/types/community-web/index.d.ts +0 -214
  359. package/dist/types/community-web/leaflets/item/list.d.ts +0 -25
  360. package/dist/types/community-web/locked_user/detail.d.ts +0 -24
  361. package/dist/types/community-web/muted_user/detail.d.ts +0 -11
  362. package/dist/types/community-web/notification/page.d.ts +0 -15
  363. package/dist/types/community-web/notification/stats/v2.d.ts +0 -12
  364. package/dist/types/community-web/notify_message/show.d.ts +0 -17
  365. package/dist/types/community-web/post/detail.d.ts +0 -50
  366. package/dist/types/community-web/search/hot_words.d.ts +0 -11
  367. package/dist/types/community-web/short_url/create.d.ts +0 -11
  368. package/dist/types/community-web/short_url/decompress.d.ts +0 -11
  369. package/dist/types/community-web/smart_contract/account.d.ts +0 -13
  370. package/dist/types/community-web/smart_contract/detail.d.ts +0 -24
  371. package/dist/types/community-web/smart_contract/execute.d.ts +0 -25
  372. package/dist/types/community-web/smart_contract/list.d.ts +0 -49
  373. package/dist/types/community-web/student/block_record/detail.d.ts +0 -35
  374. package/dist/types/community-web/student/block_record/list.d.ts +0 -18
  375. package/dist/types/community-web/student/block_record/status.d.ts +0 -16
  376. package/dist/types/community-web/student/following/page.d.ts +0 -17
  377. package/dist/types/community-web/students/creator_score.d.ts +0 -9
  378. package/dist/types/community-web/students/last_active_at.d.ts +0 -14
  379. package/dist/types/community-web/students/list.d.ts +0 -13
  380. package/dist/types/community-web/students/list_sessions.d.ts +0 -12
  381. package/dist/types/community-web/students/profile.d.ts +0 -13
  382. package/dist/types/community-web/students/reputation_score_log/page.d.ts +0 -11
  383. package/dist/types/community-web/students/self/detail.d.ts +0 -18
  384. package/dist/types/community-web/students/stats.d.ts +0 -13
  385. package/dist/types/community-web/students/update.d.ts +0 -18
  386. package/dist/types/community-web/study-community/cloud_variable/create.d.ts +0 -15
  387. package/dist/types/community-web/study-community/comment/delete.d.ts +0 -11
  388. package/dist/types/community-web/study-community/comment/fold.d.ts +0 -11
  389. package/dist/types/community-web/study-community/comment/reset_weight.d.ts +0 -11
  390. package/dist/types/community-web/study-community/comment/top.d.ts +0 -14
  391. package/dist/types/community-web/study-community/following/follow.d.ts +0 -12
  392. package/dist/types/community-web/study-community/member/detail.d.ts +0 -25
  393. package/dist/types/community-web/study-community/spread_feed/unread/count.d.ts +0 -12
  394. package/dist/types/community-web/study-trade/trade/donate.d.ts +0 -17
  395. package/dist/types/community-web/subject_area/page.d.ts +0 -71
  396. package/dist/types/community-web/subject_area/page_by_channel.d.ts +0 -73
  397. package/dist/types/community-web/task/award.d.ts +0 -19
  398. package/dist/types/community-web/task/mine.d.ts +0 -29
  399. package/dist/types/community-web/typical_project/page.d.ts +0 -29
  400. package/dist/types/community-web/typical_project/student/unread_count.d.ts +0 -13
  401. package/dist/types/community-web/user-card/detail.d.ts +0 -43
  402. package/dist/types/community-web/user_label/list.d.ts +0 -11
  403. package/dist/types/community-web/user_package/status.d.ts +0 -13
  404. package/dist/types/community-web/user_package/user_product.d.ts +0 -40
  405. package/dist/types/community-web-cloud-database/cloud_variable/detail/v2.d.ts +0 -17
  406. package/dist/types/community-web-cloud-database/cloud_variable/save.d.ts +0 -26
  407. package/dist/types/community-web-cloud-database/index.d.ts +0 -7
  408. package/dist/types/gandi-main/bulletins/detail.d.ts +0 -16
  409. package/dist/types/gandi-main/bulletins/page.d.ts +0 -19
  410. package/dist/types/gandi-main/creation/leaderboards/{oid}/records.d.ts +0 -62
  411. package/dist/types/gandi-main/index.d.ts +0 -11
  412. package/dist/types/gandi-main/timestamp/current.d.ts +0 -7
  413. package/dist/types/index.d.ts +0 -147
  414. package/dist/types/op-parent-api/captcha/check.d.ts +0 -21
  415. package/dist/types/op-parent-api/captcha/create.d.ts +0 -24
  416. package/dist/types/op-parent-api/index.d.ts +0 -6
  417. package/dist/types/queryPages.d.ts +0 -9
  418. package/dist/types/sso/index.d.ts +0 -12
  419. package/dist/types/sso/web/auth/assistant/captcha/v2/create.d.ts +0 -34
  420. package/dist/types/sso/web/auth/login-by-password.d.ts +0 -34
  421. package/dist/types/sso/web/auth/logout.d.ts +0 -6
  422. package/dist/types/sso/web/auth/logout_by_session.d.ts +0 -7
  423. package/dist/types/sso/web/auth/v3/login/by-phone.d.ts +0 -38
  424. package/dist/types/types/account.d.ts +0 -1
  425. package/dist/types/types/api.d.ts +0 -27
  426. package/dist/types/types/approval.d.ts +0 -18
  427. package/dist/types/types/comment.d.ts +0 -60
  428. package/dist/types/types/creation.d.ts +0 -171
  429. package/dist/types/types/extensions.d.ts +0 -60
  430. package/dist/types/types/hashTag.d.ts +0 -71
  431. package/dist/types/types/index.d.ts +0 -11
  432. package/dist/types/types/notification.d.ts +0 -66
  433. package/dist/types/types/notificationContent.d.ts +0 -126
  434. package/dist/types/types/pages.d.ts +0 -37
  435. package/dist/types/types/session.d.ts +0 -38
  436. package/dist/types/types/teamwork.d.ts +0 -15
  437. package/dist/types/types/userData.d.ts +0 -363
package/dist/index.cjs ADDED
@@ -0,0 +1,1544 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/index.ts
30
+ var index_exports = {};
31
+ __export(index_exports, {
32
+ bfsWeb: () => bfsWeb,
33
+ communityWeb: () => communityWeb,
34
+ communityWebCloudDatabase: () => communityWebCloudDatabase,
35
+ default: () => index_default,
36
+ gandiMain: () => gandiMain,
37
+ opParentApi: () => opParentApi,
38
+ setToken: () => import_axios124.setToken,
39
+ sso: () => sso
40
+ });
41
+ module.exports = __toCommonJS(index_exports);
42
+
43
+ // src/sso/web/auth/login-by-password.ts
44
+ var import_axios = require("@ccw-api/axios");
45
+ var url = "https://sso.ccw.site/web/auth/login-by-password";
46
+ async function loginByPassword(loginKey, password, reqExtra = {
47
+ device: "Node",
48
+ browser: "Node.js"
49
+ }) {
50
+ const req = {
51
+ loginKey,
52
+ password,
53
+ clientCode: "STUDY_COMMUNITY",
54
+ extra: JSON.stringify({ ...reqExtra, scene: null })
55
+ };
56
+ const { extra, ...restBody } = await import_axios.ccwAxios.post(url, req).then((res) => res.data.body);
57
+ const resExtra = JSON.parse(extra);
58
+ return {
59
+ ...restBody,
60
+ extra: resExtra
61
+ };
62
+ }
63
+
64
+ // src/sso/web/auth/logout.ts
65
+ var import_axios2 = require("@ccw-api/axios");
66
+ var url2 = "https://sso.ccw.site/web/auth/logout";
67
+ async function logout() {
68
+ return await import_axios2.ccwAxios.post(url2, {}).then((res) => res.data.body);
69
+ }
70
+
71
+ // src/sso/web/auth/logout_by_session.ts
72
+ var import_axios3 = require("@ccw-api/axios");
73
+ var url3 = "https://sso.ccw.site/web/auth/logout_by_session";
74
+ async function logoutBySession(sessionId) {
75
+ return await import_axios3.ccwAxios.post(url3, { id: sessionId }).then((res) => res.data.body);
76
+ }
77
+
78
+ // src/sso/web/auth/assistant/captcha/v2/create.ts
79
+ var import_axios4 = require("@ccw-api/axios");
80
+ var url4 = "https://sso.ccw.site/web/auth/assistant/captcha/v2/create";
81
+ async function createSmsCaptcha(recipient, scene = "loginbyPhone", countryCode = "86", ruleCode = "ccw_sms", captcha) {
82
+ const req = { recipient, countryCode, scene, ruleCode, captcha };
83
+ return await import_axios4.ccwAxios.post(url4, req).then((res) => res.data.body);
84
+ }
85
+
86
+ // src/sso/web/auth/v3/login/by-phone.ts
87
+ var import_axios5 = require("@ccw-api/axios");
88
+ var url5 = "https://sso.ccw.site/web/auth/v3/login/by_phone";
89
+ async function loginByPhone(phone, code, reqExtra = {
90
+ device: "Node",
91
+ browser: "Node.js"
92
+ }, countryCode = "86", ruleCode = "ccw_sms", scene = "loginbyPhone") {
93
+ const { extra, ...restBody } = await import_axios5.ccwAxios.post(url5, {
94
+ phone,
95
+ code,
96
+ countryCode,
97
+ ruleCode,
98
+ scene,
99
+ clientCode: "STUDY_COMMUNITY",
100
+ extra: JSON.stringify({ ...reqExtra, scene: null })
101
+ }).then((res) => res.data.body);
102
+ const resExtra = JSON.parse(extra);
103
+ return {
104
+ ...restBody,
105
+ extra: resExtra
106
+ };
107
+ }
108
+
109
+ // src/sso/index.ts
110
+ var sso = {
111
+ loginByPassword,
112
+ logout,
113
+ logoutBySession,
114
+ createSmsCaptcha,
115
+ loginByPhone
116
+ };
117
+
118
+ // src/community-web/api/v1/short_code/encode.ts
119
+ var import_axios6 = require("@ccw-api/axios");
120
+ var url6 = "https://community-web.ccw.site/api/v1/short_code/encode";
121
+ async function encodeShortCode(inviterId, inviterAvatar, inviterName, creationOid) {
122
+ const req = {
123
+ origin: {
124
+ inviterAvatar,
125
+ inviterName,
126
+ inviterId,
127
+ inviterType: "STUDENT",
128
+ entrance: "create_detail",
129
+ creationOid
130
+ }
131
+ };
132
+ return await import_axios6.ccwAxios.post(url6, req).then((res) => res.data.body);
133
+ }
134
+
135
+ // src/community-web/approval/list.ts
136
+ var import_axios7 = __toESM(require("@ccw-api/axios"), 1);
137
+ var url7 = "https://community-web.ccw.site/approval/list";
138
+ async function getApprovalTags(studentOid) {
139
+ const req = {
140
+ objectId: studentOid,
141
+ objectType: "STUDENT"
142
+ };
143
+ return await import_axios7.default.post(url7, req).then((res) => res.data.body);
144
+ }
145
+
146
+ // src/community-web/base/dateTime.ts
147
+ var import_axios8 = __toESM(require("@ccw-api/axios"), 1);
148
+ var url8 = "https://community-web.ccw.site/base/dateTime";
149
+ async function getTime() {
150
+ return import_axios8.default.post(url8, void 0).then((res) => res.data.body);
151
+ }
152
+
153
+ // src/community-web/campaign_resource/detail.ts
154
+ var import_axios9 = require("@ccw-api/axios");
155
+ var url9 = "https://community-web.ccw.site/campaign_resource/detail";
156
+ async function getCampaignResources(keyword) {
157
+ return await import_axios9.ccwAxios.post(url9, { keyword }).then((res) => res.data.body);
158
+ }
159
+
160
+ // src/community-web/check_in_record/detail.ts
161
+ var import_axios10 = require("@ccw-api/axios");
162
+ var url10 = "https://community-web.ccw.site/check_in_record/detail";
163
+ async function getCheckInRecords() {
164
+ const req = { scene: "HOMEPAGE" };
165
+ return await import_axios10.ccwAxios.post(url10, req).then((res) => res.data.body);
166
+ }
167
+
168
+ // src/community-web/check_in_record/insert.ts
169
+ var import_axios11 = require("@ccw-api/axios");
170
+ var url11 = "https://community-web.ccw.site/check_in_record/insert";
171
+ async function insertCheckInRecord() {
172
+ const req = { scene: "HOMEPAGE" };
173
+ return await import_axios11.ccwAxios.post(url11, req).then((res) => res.data.body);
174
+ }
175
+
176
+ // src/community-web/cloud_asset/user/privacy.ts
177
+ var import_axios12 = require("@ccw-api/axios");
178
+ var url12 = "https://community-web.ccw.site/cloud_asset/user/privacy";
179
+ async function getUserAssetStorageSize() {
180
+ return await import_axios12.ccwAxios.post(url12, {}).then((res) => res.data.body);
181
+ }
182
+
183
+ // src/community-web/cloud_asset/search.ts
184
+ var import_axios13 = require("@ccw-api/axios");
185
+
186
+ // src/queryPages.ts
187
+ function queryPage(url_, pageArgs) {
188
+ const url124 = new URL(url_);
189
+ Object.entries(pageArgs).forEach(([k, v]) => {
190
+ if (v == null) {
191
+ return;
192
+ }
193
+ url124.searchParams.set(k, v);
194
+ });
195
+ return url124.toString();
196
+ }
197
+ var DEFAULT_PAGE_ARGS = {
198
+ page: 1,
199
+ perPage: 20,
200
+ sortType: "DESC",
201
+ sortField: ""
202
+ };
203
+
204
+ // src/community-web/cloud_asset/search.ts
205
+ var url13 = "https://community-web.ccw.site/cloud_asset/search";
206
+ var dpa = {
207
+ ...DEFAULT_PAGE_ARGS,
208
+ sortField: "createdAt"
209
+ };
210
+ async function searchCloudAssets(creatorOid, path = "/", pageArgs_ = {}) {
211
+ const pageArgs = {
212
+ ...dpa,
213
+ ...pageArgs_
214
+ };
215
+ const queryUrl = queryPage(url13, pageArgs);
216
+ const req = { creatorOid, path };
217
+ return await import_axios13.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
218
+ }
219
+
220
+ // src/community-web/comment/page.ts
221
+ var import_axios14 = require("@ccw-api/axios");
222
+ var url14 = "https://community-web.ccw.site/comment/page";
223
+ async function getCommentReplies(topicId, parentId, statuses = ["PUBLISHED", "FOLDED"], pageArgs_ = {
224
+ sortField: "createdAt"
225
+ }) {
226
+ const pageArgs = {
227
+ ...DEFAULT_PAGE_ARGS,
228
+ ...pageArgs_
229
+ };
230
+ const queryUrl = queryPage(url14, pageArgs);
231
+ const req = { topicId, parentId, statuses };
232
+ return await import_axios14.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
233
+ }
234
+
235
+ // src/community-web/comment/page_by_topic.ts
236
+ var import_axios15 = require("@ccw-api/axios");
237
+ var url15 = "https://community-web.ccw.site/comment/page_by_topic";
238
+ var dpa2 = {
239
+ ...DEFAULT_PAGE_ARGS,
240
+ sortField: "createdAt"
241
+ };
242
+ async function getCommentsByTopic(subjectOid, subjectType, sectionType, pageArgs_ = {
243
+ sortField: "createdAt"
244
+ }) {
245
+ const pageArgs = {
246
+ ...dpa2,
247
+ ...pageArgs_
248
+ };
249
+ const queryUrl = queryPage(url15, pageArgs);
250
+ const req = { subjectOid, subjectType, sectionType };
251
+ return await import_axios15.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
252
+ }
253
+
254
+ // src/community-web/config/detail.ts
255
+ var import_axios16 = require("@ccw-api/axios");
256
+ var url16 = "https://community-web.ccw.site/config/detail";
257
+ async function getConfigDetail(key) {
258
+ const req = { key };
259
+ return await import_axios16.ccwAxios.post(url16, req).then((res) => res.data.body);
260
+ }
261
+
262
+ // src/community-web/ccw-mall/ccw/product/fe/query.ts
263
+ var import_axios17 = require("@ccw-api/axios");
264
+ var url17 = "https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";
265
+ async function queryMallProducts(productCategory, pageArgs_ = {
266
+ sortField: "createdAt"
267
+ }) {
268
+ const pageArgs = {
269
+ ...DEFAULT_PAGE_ARGS,
270
+ ...pageArgs_
271
+ };
272
+ const queryUrl = queryPage(url17, pageArgs);
273
+ const req = {
274
+ page: pageArgs.page,
275
+ perPage: pageArgs.perPage,
276
+ sortType: pageArgs.sortType,
277
+ productCategory,
278
+ source: "CCW_OFFICIAL"
279
+ };
280
+ return await import_axios17.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
281
+ }
282
+
283
+ // src/community-web/creation/detail.ts
284
+ var import_axios18 = require("@ccw-api/axios");
285
+ var url18 = "https://community-web.ccw.site/creation/detail";
286
+ async function getCreationDetail(oid, accessKey) {
287
+ const req = { oid, accessKey };
288
+ return await import_axios18.ccwAxios.post(url18, req).then((res) => res.data.body);
289
+ }
290
+
291
+ // src/community-web/creation/excellent/list.ts
292
+ var import_axios19 = require("@ccw-api/axios");
293
+ var url19 = "https://community-web.ccw.site/creation/excellent/list";
294
+ async function getExcellentCreations(num) {
295
+ const req = { num };
296
+ return await import_axios19.ccwAxios.post(url19, req).then((res) => res.data.body);
297
+ }
298
+
299
+ // src/community-web/creation/introduction/detail.ts
300
+ var import_axios20 = require("@ccw-api/axios");
301
+ var url20 = "https://community-web.ccw.site/creation/introduction/detail";
302
+ async function getCreationIntroduction(studentOid) {
303
+ const req = { studentOid };
304
+ return await import_axios20.ccwAxios.post(url20, req).then((res) => res.data.body);
305
+ }
306
+
307
+ // src/community-web/creation/like/detail.ts
308
+ var import_axios21 = require("@ccw-api/axios");
309
+ var url21 = "https://community-web.ccw.site/creation/like/detail";
310
+ async function getLikeDetail(creationOid) {
311
+ const req = { creationOid };
312
+ return await import_axios21.ccwAxios.post(url21, req).then((res) => res.data.body);
313
+ }
314
+
315
+ // src/community-web/creation/loading/tips.ts
316
+ var import_axios22 = require("@ccw-api/axios");
317
+ var url22 = "https://community-web.ccw.site/creation/loading/tips";
318
+ async function getLoadingTips() {
319
+ return await import_axios22.ccwAxios.post(url22, {}).then((res) => res.data.body);
320
+ }
321
+
322
+ // src/community-web/creation/page.ts
323
+ var import_axios23 = require("@ccw-api/axios");
324
+ var url23 = "https://community-web.ccw.site/creation/page";
325
+ var dpa3 = {
326
+ ...DEFAULT_PAGE_ARGS,
327
+ sortField: "createdAt"
328
+ };
329
+ async function getRemixedCreationPage(originCreationOids, pageArgs_ = {}) {
330
+ const pageArgs = {
331
+ ...dpa3,
332
+ ...pageArgs_
333
+ };
334
+ const queryUrl = queryPage(url23, pageArgs);
335
+ const req = { remixCreationOids: originCreationOids };
336
+ return await import_axios23.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
337
+ }
338
+
339
+ // src/community-web/creation/page_by_student.ts
340
+ var import_axios24 = require("@ccw-api/axios");
341
+ var url24 = "https://community-web.ccw.site/creation/page_by_student";
342
+ var dpa4 = {
343
+ ...DEFAULT_PAGE_ARGS,
344
+ sortField: "createdAt"
345
+ };
346
+ async function getCreationsByStudent(studentOids, pageArgs_ = {}) {
347
+ const pageArgs = {
348
+ ...dpa4,
349
+ ...pageArgs_
350
+ };
351
+ const queryUrl = queryPage(url24, pageArgs);
352
+ const req = { studentOids };
353
+ return await import_axios24.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
354
+ }
355
+
356
+ // src/community-web/creation/potential/list.ts
357
+ var import_axios25 = require("@ccw-api/axios");
358
+ var url25 = "https://community-web.ccw.site/creation/potential/list";
359
+ async function getPotentialCreations(num) {
360
+ const req = { num };
361
+ return await import_axios25.ccwAxios.post(url25, req).then((res) => res.data.body);
362
+ }
363
+
364
+ // src/community-web/creation/recommend.ts
365
+ var import_axios26 = require("@ccw-api/axios");
366
+ var url26 = "https://community-web.ccw.site/creation/recommend";
367
+ var dpa5 = {
368
+ ...DEFAULT_PAGE_ARGS,
369
+ sortField: "createdAt"
370
+ };
371
+ async function getRecommendCreations(num, pageArgs_ = {}) {
372
+ const pageArgs = {
373
+ ...dpa5,
374
+ ...pageArgs_
375
+ };
376
+ const queryUrl = queryPage(url26, pageArgs);
377
+ const req = { num, subjectType: "POTENTIAL" };
378
+ return await import_axios26.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
379
+ }
380
+
381
+ // src/community-web/recommend_creator/list.ts
382
+ var import_axios27 = require("@ccw-api/axios");
383
+ var url27 = "https://community-web.ccw.site/recommend_creator/list";
384
+ async function getRecommendCreators(excellentCount = 4, potentialCount = 8) {
385
+ const req = { excellentCount, potentialCount };
386
+ return await import_axios27.ccwAxios.post(url27, req).then((res) => res.data.body);
387
+ }
388
+
389
+ // src/community-web/creation/search/page.ts
390
+ var import_axios28 = require("@ccw-api/axios");
391
+ var url28 = "https://community-web.ccw.site/creation/search/page";
392
+ var dpa6 = {
393
+ ...DEFAULT_PAGE_ARGS,
394
+ sortField: "createdAt"
395
+ };
396
+ async function searchCreationsByTag(req, pageArgs_ = {}) {
397
+ const pageArgs = {
398
+ ...dpa6,
399
+ ...pageArgs_
400
+ };
401
+ const queryUrl = queryPage(url28, pageArgs);
402
+ return await import_axios28.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
403
+ }
404
+
405
+ // src/community-web/creation/student/detail.ts
406
+ var import_axios29 = require("@ccw-api/axios");
407
+ var url29 = "https://community-web.ccw.site/creation/student/detail";
408
+ async function getCreationStudentDetail(studentOid) {
409
+ const req = { studentOid };
410
+ return await import_axios29.ccwAxios.post(url29, req).then((res) => res.data.body);
411
+ }
412
+
413
+ // src/community-web/creation/tag/list.ts
414
+ var import_axios30 = require("@ccw-api/axios");
415
+ var url30 = "https://community-web.ccw.site/creation/tag/list";
416
+ async function getCreationTags() {
417
+ const req = { visibility: "PUBLIC" };
418
+ return await import_axios30.ccwAxios.post(url30, req).then((res) => res.data.body);
419
+ }
420
+
421
+ // src/community-web/short_url/create.ts
422
+ var import_axios31 = require("@ccw-api/axios");
423
+ var url31 = "https://community-web.ccw.site/short_url/create";
424
+ async function createShortUrl(originUrl) {
425
+ const req = {
426
+ originUrl
427
+ };
428
+ return await import_axios31.ccwAxios.post(url31, req).then((res) => res.data.body);
429
+ }
430
+
431
+ // src/community-web/hash_tag_creation/list_relation.ts
432
+ var import_axios32 = require("@ccw-api/axios");
433
+ var url32 = "https://community-web.ccw.site/hash_tag_creation/list_relation";
434
+ async function getPlanetsOfCreation(creationOid) {
435
+ const req = { creationOid };
436
+ return await import_axios32.ccwAxios.post(url32, req).then((res) => res.data.body);
437
+ }
438
+
439
+ // src/community-web/hash_tag_creation/mine.ts
440
+ var import_axios33 = require("@ccw-api/axios");
441
+ var url33 = "https://community-web.ccw.site/hash_tag_creation/mine";
442
+ var dpa7 = {
443
+ ...DEFAULT_PAGE_ARGS,
444
+ sortField: "lastPassedAt"
445
+ };
446
+ async function getMyHashTagCreations(excludeHashTag, statuses, pageArgs_ = {}) {
447
+ const pageArgs = {
448
+ ...dpa7,
449
+ ...pageArgs_
450
+ };
451
+ const queryUrl = queryPage(url33, pageArgs);
452
+ const req = {
453
+ ...pageArgs,
454
+ excludeHashTag,
455
+ statuses
456
+ };
457
+ return await import_axios33.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
458
+ }
459
+
460
+ // src/community-web/hash_tag/detail.ts
461
+ var import_axios34 = require("@ccw-api/axios");
462
+ var url34 = "https://community-web.ccw.site/hash_tag/detail";
463
+ async function getHashTagDetail(identifier) {
464
+ const req = { identifier };
465
+ return await import_axios34.ccwAxios.post(url34, req).then((res) => res.data.body);
466
+ }
467
+
468
+ // src/community-web/hash_tag/managed/list.ts
469
+ var import_axios35 = require("@ccw-api/axios");
470
+ var url35 = "https://community-web.ccw.site/hash_tag/managed/list";
471
+ var dpa8 = {
472
+ ...DEFAULT_PAGE_ARGS,
473
+ sortField: "createdAt"
474
+ };
475
+ async function getManagedHashTags(studentOid, excludeHashTagIds = [], pageArgs_ = {}) {
476
+ const pageArgs = {
477
+ ...dpa8,
478
+ ...pageArgs_
479
+ };
480
+ const queryUrl = queryPage(url35, pageArgs);
481
+ const req = {
482
+ ...pageArgs,
483
+ studentOid,
484
+ excludeHashTagIds
485
+ };
486
+ return await import_axios35.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
487
+ }
488
+
489
+ // src/community-web/hash_tag_favorite/detail.ts
490
+ var import_axios36 = require("@ccw-api/axios");
491
+ var url36 = "https://community-web.ccw.site/hash_tag_favorite/detail";
492
+ async function getHashTagFavoriteDetail(hashTagId) {
493
+ const req = { hashTagId };
494
+ return await import_axios36.ccwAxios.post(url36, req).then((res) => res.data.body);
495
+ }
496
+
497
+ // src/community-web/creation_donated_record/ranking_list.ts
498
+ var import_axios37 = require("@ccw-api/axios");
499
+ var url37 = "https://community-web.ccw.site/creation_donated_record/ranking_list";
500
+ async function getDonatedRecordRanking(creationOid, pageArgs_ = {
501
+ sortField: "createdAt"
502
+ }) {
503
+ const pageArgs = {
504
+ ...DEFAULT_PAGE_ARGS,
505
+ ...pageArgs_
506
+ };
507
+ const queryUrl = queryPage(url37, pageArgs);
508
+ const req = { creationOid };
509
+ return await import_axios37.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
510
+ }
511
+
512
+ // src/community-web/creation_favorite/detail.ts
513
+ var import_axios38 = require("@ccw-api/axios");
514
+ var url38 = "https://community-web.ccw.site/creation_favorite/detail";
515
+ async function getCreationFavoriteDetail(creationOid) {
516
+ const req = { creationOid };
517
+ return await import_axios38.ccwAxios.post(url38, req).then((res) => res.data.body);
518
+ }
519
+
520
+ // src/community-web/creation_recommend_position/list.ts
521
+ var import_axios39 = require("@ccw-api/axios");
522
+ var url39 = "https://community-web.ccw.site/creation_recommend_position/list";
523
+ async function getCreationRecommendPositionList(creationOid) {
524
+ const req = { creationOid };
525
+ return await import_axios39.ccwAxios.post(url39, req).then((res) => res.data.body);
526
+ }
527
+
528
+ // src/community-web/creation_screenshot/page.ts
529
+ var import_axios40 = require("@ccw-api/axios");
530
+ var url40 = "https://community-web.ccw.site/creation_screenshot/page";
531
+ async function getCreationScreenshotPage(subjectOid, pageArgs_ = {}) {
532
+ const pageArgs = {
533
+ ...DEFAULT_PAGE_ARGS,
534
+ ...pageArgs_
535
+ };
536
+ const queryUrl = queryPage(url40, pageArgs);
537
+ const req = { subjectOid };
538
+ return await import_axios40.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
539
+ }
540
+
541
+ // src/community-web/creation_stats/view.ts
542
+ var import_axios41 = require("@ccw-api/axios");
543
+ var url41 = "https://community-web.ccw.site/creation_stats/view";
544
+ async function viewCreationStats(oid, inviteCode = "") {
545
+ const req = { oid, inviteCode };
546
+ return await import_axios41.ccwAxios.post(url41, req).then((res) => res.data.body);
547
+ }
548
+
549
+ // src/community-web/notify_message/show.ts
550
+ var import_axios42 = require("@ccw-api/axios");
551
+ var url42 = "https://community-web.ccw.site/notify_message/show";
552
+ async function getNotifyDeleteReasons() {
553
+ const req = { type: "COMMENT_AUDIT" };
554
+ return await import_axios42.ccwAxios.post(url42, req).then((res) => res.data.body);
555
+ }
556
+
557
+ // src/community-web/post/detail.ts
558
+ var import_axios43 = require("@ccw-api/axios");
559
+ var url43 = "https://community-web.ccw.site/post/detail";
560
+ async function getPostDetail(slug) {
561
+ const req = { slug };
562
+ return await import_axios43.ccwAxios.post(url43, req).then((res) => res.data.body);
563
+ }
564
+
565
+ // src/community-web/search/hot_words.ts
566
+ var import_axios44 = require("@ccw-api/axios");
567
+ var url44 = "https://community-web.ccw.site/search/hot_words";
568
+ async function getSearchHotWords(length) {
569
+ const req = { length };
570
+ return await import_axios44.ccwAxios.post(url44, req).then((res) => res.data.body);
571
+ }
572
+
573
+ // src/community-web/student/block_record/detail.ts
574
+ var import_axios45 = require("@ccw-api/axios");
575
+ var url45 = "https://community-web.ccw.site/student/block_record/detail";
576
+ async function getStudentBlockRecordDetail(studentOid) {
577
+ const req = { studentOid };
578
+ return await import_axios45.ccwAxios.post(url45, req).then((res) => res.data.body);
579
+ }
580
+
581
+ // src/community-web/student/block_record/list.ts
582
+ var import_axios46 = require("@ccw-api/axios");
583
+ var url46 = "https://community-web.ccw.site/student/block_record/list";
584
+ async function getStudentBlockRecordList(pageArgs_ = {
585
+ sortField: "createdAt"
586
+ }) {
587
+ const pageArgs = {
588
+ ...DEFAULT_PAGE_ARGS,
589
+ ...pageArgs_
590
+ };
591
+ const queryUrl = queryPage(url46, pageArgs);
592
+ const req = {};
593
+ return await import_axios46.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
594
+ }
595
+
596
+ // src/community-web/student/block_record/status.ts
597
+ var import_axios47 = require("@ccw-api/axios");
598
+ var url47 = "https://community-web.ccw.site/student/block_record/status";
599
+ async function getStudentBlockStatus(studentOid) {
600
+ const req = { studentOid };
601
+ return await import_axios47.ccwAxios.post(url47, req).then((res) => res.data.body);
602
+ }
603
+
604
+ // src/community-web/students/creator_score.ts
605
+ var import_axios48 = require("@ccw-api/axios");
606
+ var url48 = "https://community-web.ccw.site/students/creator_score";
607
+ async function getCreatorScore() {
608
+ const req = void 0;
609
+ return await import_axios48.ccwAxios.post(url48, req).then((res) => res.data.body);
610
+ }
611
+
612
+ // src/community-web/students/last_active_at.ts
613
+ var import_axios49 = require("@ccw-api/axios");
614
+ var url49 = "https://community-web.ccw.site/students/last_active_at";
615
+ async function getStudentLastActiveAt(studentOid) {
616
+ const req = { studentOid };
617
+ return await import_axios49.ccwAxios.post(url49, req).then((res) => res.data.body);
618
+ }
619
+
620
+ // src/community-web/students/list.ts
621
+ var import_axios50 = require("@ccw-api/axios");
622
+ var url50 = "https://community-web.ccw.site/students/list";
623
+ async function getStudentsList(studentOids) {
624
+ const req = { studentOids };
625
+ return await import_axios50.ccwAxios.post(url50, req).then((res) => res.data.body);
626
+ }
627
+
628
+ // src/community-web/students/list_sessions.ts
629
+ var import_axios51 = require("@ccw-api/axios");
630
+ var url51 = "https://community-web.ccw.site/students/list_sessions";
631
+ async function getStudentSessions(pageArgs_ = {
632
+ sortField: "createdAt"
633
+ }) {
634
+ const pageArgs = {
635
+ ...DEFAULT_PAGE_ARGS,
636
+ ...pageArgs_
637
+ };
638
+ const queryUrl = queryPage(url51, pageArgs);
639
+ const req = {};
640
+ return await import_axios51.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
641
+ }
642
+
643
+ // src/community-web/students/profile.ts
644
+ var import_axios52 = require("@ccw-api/axios");
645
+ var url52 = "https://community-web.ccw.site/students/profile";
646
+ async function getStudentProfile(studentOid) {
647
+ const req = { studentOid };
648
+ return await import_axios52.ccwAxios.post(url52, req).then((res) => res.data.body);
649
+ }
650
+
651
+ // src/community-web/students/reputation_score_log/page.ts
652
+ var import_axios53 = require("@ccw-api/axios");
653
+ var url53 = "https://community-web.ccw.site/students/reputation_score_log/page";
654
+ async function getReputationScoreLog(pageArgs_ = {
655
+ sortField: "createdAt"
656
+ }) {
657
+ const pageArgs = {
658
+ ...DEFAULT_PAGE_ARGS,
659
+ ...pageArgs_
660
+ };
661
+ const queryUrl = queryPage(url53, pageArgs);
662
+ const req = {};
663
+ return await import_axios53.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
664
+ }
665
+
666
+ // src/community-web/students/self/detail.ts
667
+ var import_axios54 = require("@ccw-api/axios");
668
+ var url54 = "https://community-web.ccw.site/students/self/detail";
669
+ async function getStudentSelfDetail(needGrade, needExtraInfo, fields) {
670
+ const req = { needGrade, needExtraInfo, fields };
671
+ return await import_axios54.ccwAxios.post(url54, req).then((res) => res.data.body);
672
+ }
673
+
674
+ // src/community-web/students/stats.ts
675
+ var import_axios55 = require("@ccw-api/axios");
676
+ var url55 = "https://community-web.ccw.site/students/stats";
677
+ async function getStudentStats(studentOid) {
678
+ const req = { studentOid };
679
+ return await import_axios55.ccwAxios.post(url55, req).then((res) => res.data.body);
680
+ }
681
+
682
+ // src/community-web/students/update.ts
683
+ var import_axios56 = require("@ccw-api/axios");
684
+ var url56 = "https://community-web.ccw.site/students/update";
685
+ async function updateStudent(gender, hideGender, fullName, birthday, programmingCapability, school, qq, hobbies, learnedProgrammingLanguages) {
686
+ const req = {
687
+ gender,
688
+ hideGender,
689
+ fullName,
690
+ birthday,
691
+ programmingCapability,
692
+ school,
693
+ qq,
694
+ hobbies,
695
+ learnedProgrammingLanguages
696
+ };
697
+ return await import_axios56.ccwAxios.post(url56, req).then((res) => res.data.body);
698
+ }
699
+
700
+ // src/community-web/study-community/member/detail.ts
701
+ var import_axios57 = require("@ccw-api/axios");
702
+ var url57 = "https://community-web.ccw.site/study-community/member/detail";
703
+ async function getStudyCommunityMemberDetail() {
704
+ const req = {};
705
+ return await import_axios57.ccwAxios.post(url57, req).then((res) => res.data.body);
706
+ }
707
+
708
+ // src/community-web/study-community/spread_feed/unread/count.ts
709
+ var import_axios58 = require("@ccw-api/axios");
710
+ var url58 = "https://community-web.ccw.site/study-community/spread_feed/unread/count";
711
+ async function getSpreadFeedUnreadCount(studentOid) {
712
+ const req = { studentOid };
713
+ return await import_axios58.ccwAxios.post(url58, req).then((res) => res.data.body);
714
+ }
715
+
716
+ // src/community-web/subject_area/page.ts
717
+ var import_axios59 = require("@ccw-api/axios");
718
+ var url59 = "https://community-web.ccw.site/subject_area/page";
719
+ async function getSubjectAreaPage(scene, pageArgs_ = {
720
+ sortField: "createdAt"
721
+ }) {
722
+ const pageArgs = {
723
+ ...DEFAULT_PAGE_ARGS,
724
+ ...pageArgs_
725
+ };
726
+ const queryUrl = queryPage(url59, pageArgs);
727
+ const req = { scene };
728
+ return await import_axios59.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
729
+ }
730
+
731
+ // src/community-web/subject_area/page_by_channel.ts
732
+ var import_axios60 = require("@ccw-api/axios");
733
+ var url60 = "https://community-web.ccw.site/subject_area/page_by_channel";
734
+ async function getSubjectAreaPageByChannel(channel, pageArgs_ = {
735
+ sortField: "campaignResourceId"
736
+ }) {
737
+ const pageArgs = {
738
+ ...DEFAULT_PAGE_ARGS,
739
+ ...pageArgs_
740
+ };
741
+ const queryUrl = queryPage(url60, pageArgs);
742
+ const req = { channel, scene: "CUSTOM_PAGE" };
743
+ return await import_axios60.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
744
+ }
745
+
746
+ // src/community-web/task/award.ts
747
+ var import_axios61 = require("@ccw-api/axios");
748
+ var url61 = "https://community-web.ccw.site/task/award";
749
+ async function acceptAward(taskOid) {
750
+ const req = { taskOid };
751
+ return await import_axios61.ccwAxios.post(url61, req).then((res) => res.data.body);
752
+ }
753
+
754
+ // src/community-web/task/mine.ts
755
+ var import_axios62 = require("@ccw-api/axios");
756
+ var url62 = "https://community-web.ccw.site/task/mine";
757
+ async function getMyTasks() {
758
+ const req = { scene: "checkIn" };
759
+ return await import_axios62.ccwAxios.post(url62, req).then((res) => res.data.body);
760
+ }
761
+
762
+ // src/community-web/user-card/detail.ts
763
+ var import_axios63 = require("@ccw-api/axios");
764
+ var url63 = "https://community-web.ccw.site/user-card/detail";
765
+ async function getUserCardDetail(oid) {
766
+ const req = { oid };
767
+ return await import_axios63.ccwAxios.post(url63, req).then((res) => res.data.body);
768
+ }
769
+
770
+ // src/community-web/user_label/list.ts
771
+ var import_axios64 = require("@ccw-api/axios");
772
+ var url64 = "https://community-web.ccw.site/user_label/list";
773
+ async function getUserLabelList() {
774
+ const req = {};
775
+ return await import_axios64.ccwAxios.post(url64, req).then((res) => res.data.body);
776
+ }
777
+
778
+ // src/community-web/currency/account/personal.ts
779
+ var import_axios65 = require("@ccw-api/axios");
780
+ var url65 = "https://community-web.ccw.site/currency/account/personal";
781
+ async function getPersonalCurrencyAccount() {
782
+ return await import_axios65.ccwAxios.post(url65).then((res) => res.data.body);
783
+ }
784
+
785
+ // src/community-web/emoji/all.ts
786
+ var import_axios66 = require("@ccw-api/axios");
787
+ var url66 = "https://community-web.ccw.site/emoji/all";
788
+ async function getAllEmojis() {
789
+ return await import_axios66.ccwAxios.post(url66, {}).then((res) => res.data.body);
790
+ }
791
+
792
+ // src/community-web/emoji/category/list.ts
793
+ var import_axios67 = require("@ccw-api/axios");
794
+ var url67 = "https://community-web.ccw.site/emoji/category/list";
795
+ async function getEmojiCategoryList() {
796
+ return await import_axios67.ccwAxios.post(url67, {}).then((res) => res.data.body);
797
+ }
798
+
799
+ // src/community-web/emoji/page.ts
800
+ var import_axios68 = require("@ccw-api/axios");
801
+ var url68 = "https://community-web.ccw.site/emoji/page";
802
+ async function getEmojiPage(status = "ENABLED", pageArgs_ = {
803
+ sortField: "createdAt"
804
+ }) {
805
+ const pageArgs = { ...DEFAULT_PAGE_ARGS, ...pageArgs_ };
806
+ const queryUrl = queryPage(url68, pageArgs);
807
+ const req = {
808
+ page: pageArgs.page,
809
+ perPage: pageArgs.perPage,
810
+ status
811
+ };
812
+ return await import_axios68.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
813
+ }
814
+
815
+ // src/community-web/event.ts
816
+ var import_axios69 = require("@ccw-api/axios");
817
+ var url69 = "https://community-web.ccw.site/event";
818
+ async function sendEvent(actionId) {
819
+ const req = { actionId };
820
+ return await import_axios69.ccwAxios.post(url69, req).then((res) => res.data.body);
821
+ }
822
+
823
+ // src/community-web/health/check.ts
824
+ var import_axios70 = require("@ccw-api/axios");
825
+ var url70 = "https://community-web.ccw.site/health/check";
826
+ async function healthCheck() {
827
+ return await import_axios70.ccwAxios.post(url70).then((res) => res.data.body);
828
+ }
829
+
830
+ // src/community-web/leaflets/item/list.ts
831
+ var import_axios71 = require("@ccw-api/axios");
832
+ var url71 = "https://community-web.ccw.site/leaflets/item/list";
833
+ async function getLeafletsItemList(advertisementId) {
834
+ const req = { advertisementId };
835
+ return await import_axios71.ccwAxios.post(url71, req).then((res) => res.data.body);
836
+ }
837
+
838
+ // src/community-web/locked_user/detail.ts
839
+ var import_axios72 = require("@ccw-api/axios");
840
+ var url72 = "https://community-web.ccw.site/locked_user/detail";
841
+ async function getLockedUserDetail(accountOid) {
842
+ const req = { accountOid };
843
+ return await import_axios72.ccwAxios.post(url72, req).then((res) => res.data.body);
844
+ }
845
+
846
+ // src/community-web/muted_user/detail.ts
847
+ var import_axios73 = require("@ccw-api/axios");
848
+ var url73 = "https://community-web.ccw.site/muted_user/detail";
849
+ async function getMutedUserDetail(studentNumber) {
850
+ const req = { studentNumber };
851
+ return await import_axios73.ccwAxios.post(url73, req).then((res) => res.data.body);
852
+ }
853
+
854
+ // src/community-web/notification/page.ts
855
+ var import_axios74 = require("@ccw-api/axios");
856
+ var url74 = "https://community-web.ccw.site/notification/page";
857
+ async function getNotificationPage(notifyGroup = "COMMENT_TO_ME" /* CommentToMe */, pageArgs_ = {
858
+ sortField: "createdAt"
859
+ }) {
860
+ const pageArgs = { ...DEFAULT_PAGE_ARGS, ...pageArgs_ };
861
+ const queryUrl = queryPage(url74, pageArgs);
862
+ const req = {
863
+ notifyGroup,
864
+ page: pageArgs.page
865
+ };
866
+ return await import_axios74.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
867
+ }
868
+
869
+ // src/community-web/notification/stats/v2.ts
870
+ var import_axios75 = require("@ccw-api/axios");
871
+ var url75 = "https://community-web.ccw.site/notification/stats/v2";
872
+ async function getNotificationStats(countAll = true) {
873
+ const req = { countAll };
874
+ return await import_axios75.ccwAxios.post(url75, req).then((res) => res.data.body);
875
+ }
876
+
877
+ // src/community-web/typical_project/page.ts
878
+ var import_axios76 = require("@ccw-api/axios");
879
+ var url76 = "https://community-web.ccw.site/typical_project/page";
880
+ async function getTypicalProjectPage(studentOid, pageArgs_ = {
881
+ sortField: "createdAt"
882
+ }) {
883
+ const pageArgs = {
884
+ ...DEFAULT_PAGE_ARGS,
885
+ ...pageArgs_
886
+ };
887
+ const queryUrl = queryPage(url76, pageArgs);
888
+ const req = {
889
+ studentOid,
890
+ templateType: "APPLICATION"
891
+ };
892
+ return await import_axios76.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
893
+ }
894
+
895
+ // src/community-web/typical_project/student/unread_count.ts
896
+ var import_axios77 = require("@ccw-api/axios");
897
+ var url77 = "https://community-web.ccw.site/typical_project/student/unread_count";
898
+ async function getTypicalProjectUnreadCount(studentOid) {
899
+ const req = { studentOid };
900
+ return await import_axios77.ccwAxios.post(url77, req).then((res) => res.data.body);
901
+ }
902
+
903
+ // src/community-web/creation/own/page.ts
904
+ var import_axios78 = require("@ccw-api/axios");
905
+ var url78 = "https://community-web.ccw.site/creation/own/page";
906
+ async function getOwnCreationPage(pageArgs_ = {
907
+ sortField: "updatedAt"
908
+ }, statuses = ["BANNED", "PUBLISHED", "REJECTED", "SUBMITTED"], ignoreTypicalProject = false) {
909
+ const pageArgs = {
910
+ ...DEFAULT_PAGE_ARGS,
911
+ ...pageArgs_
912
+ };
913
+ const queryUrl = queryPage(url78, pageArgs);
914
+ const req = {
915
+ statuses,
916
+ ignoreTypicalProject
917
+ };
918
+ return await import_axios78.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
919
+ }
920
+
921
+ // src/community-web/creation/team_member/produce_ticket.ts
922
+ var import_axios79 = require("@ccw-api/axios");
923
+ var url79 = "https://community-web.ccw.site/creation/team_member/produce_ticket";
924
+ async function produceTeamMemberTicket(creationOid) {
925
+ const req = { creationOid };
926
+ return await import_axios79.ccwAxios.post(url79, req).then((res) => res.data.body);
927
+ }
928
+
929
+ // src/community-web/creation/team_member/list.ts
930
+ var import_axios80 = require("@ccw-api/axios");
931
+ var url80 = "https://community-web.ccw.site/creation/team_member/list";
932
+ async function getTeamMemberList(creationOid, authorities) {
933
+ const req = { creationOid, authorities };
934
+ return await import_axios80.ccwAxios.post(url80, req).then((res) => res.data.body);
935
+ }
936
+
937
+ // src/community-web/creation/teamwork_log/page.ts
938
+ var import_axios81 = require("@ccw-api/axios");
939
+ var url81 = "https://community-web.ccw.site/creation/teamwork_log/page";
940
+ async function getTeamworkLogPage(creationId, operateTargets, pageArgs_ = {
941
+ sortField: "createdAt"
942
+ }) {
943
+ const pageArgs = {
944
+ ...DEFAULT_PAGE_ARGS,
945
+ ...pageArgs_
946
+ };
947
+ const queryUrl = queryPage(url81, pageArgs);
948
+ const req = {
949
+ creationId,
950
+ operateTargets
951
+ };
952
+ const res = await import_axios81.ccwAxios.post(queryUrl, req).then((res2) => res2.data.body);
953
+ const { data: logs } = res;
954
+ const parsedLogs = logs.map((l) => {
955
+ const { content } = l;
956
+ return {
957
+ ...l,
958
+ content: JSON.parse(content)
959
+ };
960
+ });
961
+ return {
962
+ ...res,
963
+ data: parsedLogs
964
+ };
965
+ }
966
+
967
+ // src/community-web/creation/update.ts
968
+ var import_axios82 = require("@ccw-api/axios");
969
+ var url82 = "https://community-web.ccw.site/creation/update";
970
+ async function updateCreation(oid, latestProjectLink_, screenMode = "LANDSCAPE", latestCoverLink) {
971
+ if (!latestProjectLink_.includes("t=")) {
972
+ const url124 = new URL(latestProjectLink_);
973
+ url124.searchParams.set("t", Date.now().toString());
974
+ latestProjectLink_ = url124.toString();
975
+ }
976
+ const latestProjectLink = latestProjectLink_;
977
+ const req = { oid, latestProjectLink, screenMode, latestCoverLink };
978
+ return await import_axios82.ccwAxios.post(url82, req).then((res) => res.data.body);
979
+ }
980
+
981
+ // src/community-web/creation/submit.ts
982
+ var import_axios83 = require("@ccw-api/axios");
983
+ var url83 = "https://community-web.ccw.site/creation/submit";
984
+ async function submitCreation(req) {
985
+ return await import_axios83.ccwAxios.post(url83, req).then((res) => res.data.body);
986
+ }
987
+
988
+ // src/community-web/creation/smart_contract/split_rule/detail.ts
989
+ var import_axios84 = require("@ccw-api/axios");
990
+ var url84 = "https://community-web.ccw.site/creation/smart_contract/split_rule/detail";
991
+ async function getSplitRuleDetail(creationOid) {
992
+ const req = { creationOid };
993
+ return await import_axios84.ccwAxios.post(url84, req).then((res) => res.data.body);
994
+ }
995
+
996
+ // src/community-web/creation/smart_contract/split_rule/create.ts
997
+ var import_axios85 = require("@ccw-api/axios");
998
+ var url85 = "https://community-web.ccw.site/creation/smart_contract/split_rule/create";
999
+ async function createSplitRule(creationOid, memberSplitDetails) {
1000
+ const req = { creationOid, memberSplitDetails };
1001
+ return await import_axios85.ccwAxios.post(url85, req).then((res) => res.data.body);
1002
+ }
1003
+
1004
+ // src/community-web/creation_attribute/detail.ts
1005
+ var import_axios86 = require("@ccw-api/axios");
1006
+ var url86 = "https://community-web.ccw.site/creation_attribute/detail";
1007
+ async function getCreationAttributeDetail(creationOid) {
1008
+ const req = { creationOid };
1009
+ const dat = await import_axios86.ccwAxios.post(url86, req).then((res) => res.data.body);
1010
+ if (dat === null) {
1011
+ return null;
1012
+ }
1013
+ const {
1014
+ ext: { KEYPAD_CONFIG: kc }
1015
+ } = dat;
1016
+ const parsedKC = JSON.parse(kc);
1017
+ return {
1018
+ ...dat,
1019
+ ext: {
1020
+ KEYPAD_CONFIG: parsedKC
1021
+ }
1022
+ };
1023
+ }
1024
+
1025
+ // src/community-web/creation_activity_stats/list.ts
1026
+ var import_axios87 = require("@ccw-api/axios");
1027
+ var url87 = "https://community-web.ccw.site/creation_activity_stats/list";
1028
+ async function getCreationActivityStatsList(creationOid) {
1029
+ const req = { creationOid, type: "DAY" };
1030
+ return await import_axios87.ccwAxios.post(url87, req).then((res) => res.data.body);
1031
+ }
1032
+
1033
+ // src/community-web/creation_release/page.ts
1034
+ var import_axios88 = require("@ccw-api/axios");
1035
+ var url88 = "https://community-web.ccw.site/creation_release/page";
1036
+ async function getCreationReleasePage(creationOid, pageArgs_ = {
1037
+ sortField: "submittedAt"
1038
+ }) {
1039
+ const pageArgs = {
1040
+ ...DEFAULT_PAGE_ARGS,
1041
+ ...pageArgs_
1042
+ };
1043
+ const queryUrl = queryPage(url88, pageArgs);
1044
+ const req = {
1045
+ creationOid
1046
+ };
1047
+ return await import_axios88.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
1048
+ }
1049
+
1050
+ // src/community-web/creation_release/code_profiling/detail.ts
1051
+ var import_axios89 = require("@ccw-api/axios");
1052
+ var url89 = "https://community-web.ccw.site/creation_release/code_profiling/detail";
1053
+ async function getCodeProfilingDetail(creationOid, creationReleaseOid) {
1054
+ const req = { creationOid, creationReleaseOid };
1055
+ return await import_axios89.ccwAxios.post(url89, req).then((res) => res.data.body);
1056
+ }
1057
+
1058
+ // src/community-web/historical_team_member/page.ts
1059
+ var import_axios90 = require("@ccw-api/axios");
1060
+ var url90 = "https://community-web.ccw.site/historical_team_member/page";
1061
+ async function getHistoricalTeamMemberPage(creationOid, pageArgs_ = {
1062
+ sortField: "createdAt"
1063
+ }) {
1064
+ const pageArgs = {
1065
+ ...DEFAULT_PAGE_ARGS,
1066
+ ...pageArgs_
1067
+ };
1068
+ const queryUrl = queryPage(url90, pageArgs);
1069
+ const req = {
1070
+ creationOid,
1071
+ page: pageArgs.page,
1072
+ perPage: pageArgs.perPage
1073
+ };
1074
+ return await import_axios90.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
1075
+ }
1076
+
1077
+ // src/community-web/short_url/decompress.ts
1078
+ var import_axios91 = require("@ccw-api/axios");
1079
+ var url91 = "https://community-web.ccw.site/short_url/decompress";
1080
+ async function decompressShortUrl(shortUrlCode) {
1081
+ const req = { shortUrlCode };
1082
+ return await import_axios91.ccwAxios.post(url91, req).then((res) => res.data.body);
1083
+ }
1084
+
1085
+ // src/community-web/hash_tag/recommend/list.ts
1086
+ var import_axios92 = require("@ccw-api/axios");
1087
+ var url92 = "https://community-web.ccw.site/hash_tag/recommend/list";
1088
+ async function getRecommendHashTags() {
1089
+ return await import_axios92.ccwAxios.post(url92).then((res) => res.data.body);
1090
+ }
1091
+
1092
+ // src/community-web/ccw-main/status.ts
1093
+ var import_axios93 = require("@ccw-api/axios");
1094
+ var url93 = "https://community-web.ccw.site/ccw-main/status";
1095
+ async function getCCWMainStatus() {
1096
+ const req = {};
1097
+ return await import_axios93.ccwAxios.post(url93, req).then((res) => res.data.body);
1098
+ }
1099
+
1100
+ // src/community-web/study-community/cloud_variable/create.ts
1101
+ var import_axios94 = require("@ccw-api/axios");
1102
+ var url94 = "https://community-web.ccw.site/study-community/cloud_variable/create";
1103
+ async function createCloudVariable(projectId, variables) {
1104
+ const req = { projectId, variables };
1105
+ return await import_axios94.ccwAxios.post(url94, req).then((res) => res.data.body);
1106
+ }
1107
+
1108
+ // src/community-web/study-community/comment/top.ts
1109
+ var import_axios95 = require("@ccw-api/axios");
1110
+ var url95 = "https://community-web.ccw.site/study-community/comment/top";
1111
+ async function topComment(id) {
1112
+ const req = { id };
1113
+ return await import_axios95.ccwAxios.post(url95, req).then((res) => res.data.body);
1114
+ }
1115
+
1116
+ // src/community-web/study-community/comment/fold.ts
1117
+ var import_axios96 = require("@ccw-api/axios");
1118
+ var url96 = "https://community-web.ccw.site/study-community/comment/fold";
1119
+ async function foldComment(id) {
1120
+ const req = { id };
1121
+ return await import_axios96.ccwAxios.post(url96, req).then((res) => res.data.body);
1122
+ }
1123
+
1124
+ // src/community-web/study-community/comment/reset_weight.ts
1125
+ var import_axios97 = require("@ccw-api/axios");
1126
+ var url97 = "https://community-web.ccw.site/study-community/comment/reset_weight";
1127
+ async function resetCommentWeight(id) {
1128
+ const req = { id };
1129
+ return await import_axios97.ccwAxios.post(url97, req).then((res) => res.data.body);
1130
+ }
1131
+
1132
+ // src/community-web/study-community/comment/delete.ts
1133
+ var import_axios98 = require("@ccw-api/axios");
1134
+ var url98 = "https://community-web.ccw.site/study-community/comment/delete";
1135
+ async function deleteComment(id) {
1136
+ const req = { id };
1137
+ return await import_axios98.ccwAxios.post(url98, req).then((res) => res.data.body);
1138
+ }
1139
+
1140
+ // src/community-web/comment/create.ts
1141
+ var import_axios99 = require("@ccw-api/axios");
1142
+ var url99 = "https://community-web.ccw.site/comment/create";
1143
+ async function createComment(content, topic, sectionType) {
1144
+ topic.outline ??= "foo";
1145
+ const req = { content, topic, sectionType };
1146
+ return await import_axios99.ccwAxios.post(url99, req).then((res) => res.data.body);
1147
+ }
1148
+
1149
+ // src/community-web/comment/like_record/create.ts
1150
+ var import_axios100 = require("@ccw-api/axios");
1151
+ var url100 = "https://community-web.ccw.site/comment/like_record/create";
1152
+ async function likeComment(commentId) {
1153
+ const req = { commentId };
1154
+ return await import_axios100.ccwAxios.post(url100, req).then((res) => res.data.body);
1155
+ }
1156
+
1157
+ // src/community-web/student/following/page.ts
1158
+ var import_axios101 = require("@ccw-api/axios");
1159
+ var url101 = "https://community-web.ccw.site/student/following/page";
1160
+ async function getStudentFollowingPage(studentOid, pageArgs_ = {
1161
+ sortField: "createdAt"
1162
+ }) {
1163
+ const pageArgs = {
1164
+ ...DEFAULT_PAGE_ARGS,
1165
+ ...pageArgs_
1166
+ };
1167
+ const queryUrl = queryPage(url101, pageArgs);
1168
+ const req = {
1169
+ studentOid
1170
+ };
1171
+ return await import_axios101.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
1172
+ }
1173
+
1174
+ // src/community-web/study-trade/trade/donate.ts
1175
+ var import_axios102 = require("@ccw-api/axios");
1176
+ var url102 = "https://community-web.ccw.site/study-trade/trade/donate";
1177
+ async function donateTrade(bucks, objectId, objectType = "CREATION") {
1178
+ const req = { bucks, objectId, objectType };
1179
+ return await import_axios102.ccwAxios.post(url102, req).then((res) => res.data.body);
1180
+ }
1181
+
1182
+ // src/community-web/user_package/user_product.ts
1183
+ var import_axios103 = require("@ccw-api/axios");
1184
+ var url103 = "https://community-web.ccw.site/user_package/user_product";
1185
+ async function getUserProductsPage(productCategory = 5 /* AVATAR_FRAME */, pageArgs_ = {}) {
1186
+ const pageArgs = {
1187
+ ...DEFAULT_PAGE_ARGS,
1188
+ ...pageArgs_
1189
+ };
1190
+ const queryUrl = queryPage(url103, pageArgs);
1191
+ const req = {
1192
+ page: pageArgs.page,
1193
+ perPage: pageArgs.perPage,
1194
+ sortType: pageArgs.sortType,
1195
+ productCategory
1196
+ };
1197
+ return await import_axios103.ccwAxios.post(queryUrl, req).then((res) => res.data.body);
1198
+ }
1199
+
1200
+ // src/community-web/user_package/status.ts
1201
+ var import_axios104 = require("@ccw-api/axios");
1202
+ var url104 = "https://community-web.ccw.site/user_package/status";
1203
+ async function setUserProductStatus(id, status) {
1204
+ const req = { status, id };
1205
+ return await import_axios104.ccwAxios.post(url104, req).then((res) => res.data.body);
1206
+ }
1207
+
1208
+ // src/community-web/great_creation/update.ts
1209
+ var import_axios105 = require("@ccw-api/axios");
1210
+ var url105 = "https://community-web.ccw.site/great_creation/update";
1211
+ async function updateGreatCreation(creationOid) {
1212
+ const req = { creationOid };
1213
+ return await import_axios105.ccwAxios.post(url105, req).then((res) => res.data.body);
1214
+ }
1215
+
1216
+ // src/community-web/smart_contract/execute.ts
1217
+ var import_axios106 = require("@ccw-api/axios");
1218
+ var url106 = "https://community-web.ccw.site/smart_contract/execute";
1219
+ async function executeSmartContract(bizId, id, ruleId, bucks, bizType = "CREATION") {
1220
+ const req = { bizId, bizType, id, ruleId, params: { bucks } };
1221
+ return await import_axios106.ccwAxios.post(url106, req).then((res) => res.data.body);
1222
+ }
1223
+
1224
+ // src/community-web/smart_contract/account.ts
1225
+ var import_axios107 = require("@ccw-api/axios");
1226
+ var url107 = "https://community-web.ccw.site/smart_contract/account";
1227
+ async function getSmartContractAccount(id) {
1228
+ const req = { id };
1229
+ return await import_axios107.ccwAxios.post(url107, req).then((res) => res.data.body);
1230
+ }
1231
+
1232
+ // src/community-web/smart_contract/detail.ts
1233
+ var import_axios108 = require("@ccw-api/axios");
1234
+ var url108 = "https://community-web.ccw.site/smart_contract/detail";
1235
+ async function getSmartContractDetail(id) {
1236
+ const req = { id };
1237
+ return await import_axios108.ccwAxios.post(url108, req).then((res) => res.data.body);
1238
+ }
1239
+
1240
+ // src/community-web/smart_contract/list.ts
1241
+ var import_axios109 = require("@ccw-api/axios");
1242
+ var url109 = "https://community-web.ccw.site/smart_contract/list";
1243
+ async function getSmartContractList(bizId, bizType = "CREATION") {
1244
+ const req = { bizId, bizType };
1245
+ return await import_axios109.ccwAxios.post(url109, req).then((res) => res.data.body);
1246
+ }
1247
+
1248
+ // src/community-web/extensions/following/status.ts
1249
+ var import_axios110 = require("@ccw-api/axios");
1250
+ var url110 = "https://community-web.ccw.site/extensions/following/status";
1251
+ async function getConnectCommunityFollowingStatus(playingCreationOid, userOid) {
1252
+ const req = { playingCreationOid, userOid };
1253
+ return await import_axios110.ccwAxios.post(url110, req).then((res) => res.data.body);
1254
+ }
1255
+
1256
+ // src/community-web/extensions/creation-like/detail.ts
1257
+ var import_axios111 = require("@ccw-api/axios");
1258
+ var url111 = "https://community-web.ccw.site/extensions/creation-like/detail";
1259
+ async function getConnectCommunityCreationLikeStatus(playingCreationOid, creationOid) {
1260
+ const req = { playingCreationOid, creationOid };
1261
+ return await import_axios111.ccwAxios.post(url111, req).then((res) => res.data.body);
1262
+ }
1263
+
1264
+ // src/community-web/study-community/following/follow.ts
1265
+ var import_axios112 = require("@ccw-api/axios");
1266
+ var url112 = "https://community-web.ccw.site/study-community/following/follow";
1267
+ async function followCreator(followingOid) {
1268
+ const req = { followingOid };
1269
+ return await import_axios112.ccwAxios.post(url112, req).then((res) => res.data.body);
1270
+ }
1271
+
1272
+ // src/community-web/study-community/following/unfollow.ts
1273
+ var import_axios113 = require("@ccw-api/axios");
1274
+ var url113 = "https://community-web.ccw.site/study-community/following/unfollow";
1275
+ async function unfollowCreator(followingOid) {
1276
+ const req = { followingOid };
1277
+ return await import_axios113.ccwAxios.post(url113, req).then((res) => res.data.body);
1278
+ }
1279
+
1280
+ // src/community-web/index.ts
1281
+ var communityWeb = {
1282
+ acceptAward,
1283
+ donateTrade,
1284
+ encodeShortCode,
1285
+ executeSmartContract,
1286
+ createCloudVariable,
1287
+ createComment,
1288
+ createShortUrl,
1289
+ createSplitRule,
1290
+ decompressShortUrl,
1291
+ deleteComment,
1292
+ foldComment,
1293
+ followCreator,
1294
+ unfollowCreator,
1295
+ getApprovalTags,
1296
+ getCampaignResources,
1297
+ getCcwMainStatus: getCCWMainStatus,
1298
+ getCheckInRecords,
1299
+ getCodeProfilingDetail,
1300
+ getCommentReplies,
1301
+ getCommentsByTopic,
1302
+ getConfigDetail,
1303
+ getCreationActivityStatsList,
1304
+ getCreationAttributeDetail,
1305
+ getCreationDetail,
1306
+ getCreationFavoriteDetail,
1307
+ getCreationIntroduction,
1308
+ getConnectCommunityCreationLikeStatus,
1309
+ getCreationRecommendPositionList,
1310
+ getCreationReleasePage,
1311
+ getCreationScreenshotPage,
1312
+ getCreationStudentDetail,
1313
+ getCreationTags,
1314
+ getCreatorScore,
1315
+ getDonatedRecordRanking,
1316
+ getExcellentCreations,
1317
+ getConnectCommunityFollowingStatus,
1318
+ getEmojiCategoryList,
1319
+ getEmojiPage,
1320
+ getAllEmojis,
1321
+ getHashTagDetail,
1322
+ getHashTagFavoriteDetail,
1323
+ getHistoricalTeamMemberPage,
1324
+ getManagedHashTags,
1325
+ getHealthCheck: healthCheck,
1326
+ getLeafletsItemList,
1327
+ getLikeDetail,
1328
+ getLoadingTips,
1329
+ getLockedUserDetail,
1330
+ getMutedUserDetail,
1331
+ getMyHashTagCreations,
1332
+ getMyTasks,
1333
+ getNotifyDeleteReasons,
1334
+ getNotificationPage,
1335
+ getNotificationStats,
1336
+ getOwnCreationPage,
1337
+ getPersonalCurrencyAccount,
1338
+ getPlanetsOfCreation,
1339
+ getPostDetail,
1340
+ getPotentialCreations,
1341
+ getRecommendCreations,
1342
+ getRecommendCreators,
1343
+ getRecommendHashTags,
1344
+ getRemixedCreationPage,
1345
+ getReputationScoreLogPage: getReputationScoreLog,
1346
+ getSearchHotWords,
1347
+ getSmartContractAccount,
1348
+ getSmartContractDetail,
1349
+ getSmartContractList,
1350
+ getSplitRuleDetail,
1351
+ getSpreadFeedUnreadCount,
1352
+ getStudentBlockRecordDetail,
1353
+ getStudentBlockRecordList,
1354
+ getStudentBlockStatus,
1355
+ getStudentFollowingPage,
1356
+ getStudentLastActiveAt,
1357
+ getStudentProfile,
1358
+ getStudentSelfDetail,
1359
+ getStudentSessions,
1360
+ getStudentsList,
1361
+ getStudentStats,
1362
+ getStudyCommunityMemberDetail,
1363
+ getSubjectAreaPage,
1364
+ getSubjectAreaPageByChannel,
1365
+ getTeamMemberList,
1366
+ getTeamworkLogPage,
1367
+ getTime,
1368
+ getTypicalProjectPage,
1369
+ getTypicalProjectUnreadCount,
1370
+ getUserAssetStorageSize,
1371
+ getUserCardDetail,
1372
+ getUserLabelList,
1373
+ getUserProductsPage,
1374
+ queryMallProducts,
1375
+ getCreationsByStudent,
1376
+ insertCheckInRecord,
1377
+ likeComment,
1378
+ produceTeamMemberTicket,
1379
+ resetCommentWeight,
1380
+ searchCloudAssets,
1381
+ searchCreationsByTag,
1382
+ sendEvent,
1383
+ setUserProductStatus,
1384
+ submitCreation,
1385
+ topComment,
1386
+ updateCreation,
1387
+ updateGreatCreation,
1388
+ updateStudent,
1389
+ viewCreationStats
1390
+ };
1391
+
1392
+ // src/gandi-main/timestamp/current.ts
1393
+ var import_axios114 = require("@ccw-api/axios");
1394
+ var url114 = "https://gandi-main.ccw.site/timestamp/current";
1395
+ async function getCurrentTimestamp() {
1396
+ return await import_axios114.ccwAxios.get(url114).then((res) => res.data.body);
1397
+ }
1398
+
1399
+ // src/gandi-main/bulletins/page.ts
1400
+ var import_axios115 = require("@ccw-api/axios");
1401
+ var url115 = "https://gandi-main.ccw.site/bulletins";
1402
+ async function getBulletinsPage(status = "PUBLISHED", pageArgs_ = {
1403
+ sortField: "publishedAt"
1404
+ }) {
1405
+ const pageArgs = {
1406
+ ...DEFAULT_PAGE_ARGS,
1407
+ ...pageArgs_
1408
+ };
1409
+ const queryUrl = queryPage(url115, {
1410
+ ...pageArgs,
1411
+ status
1412
+ });
1413
+ return await import_axios115.ccwAxios.get(queryUrl).then((res) => res.data.body);
1414
+ }
1415
+
1416
+ // src/gandi-main/bulletins/detail.ts
1417
+ var import_axios116 = require("@ccw-api/axios");
1418
+ var url116 = "https://gandi-main.ccw.site/bulletins";
1419
+ async function getBulletinDetail(id) {
1420
+ return await import_axios116.ccwAxios.get(`${url116}/${id}`).then((res) => res.data.body);
1421
+ }
1422
+
1423
+ // src/gandi-main/creation/leaderboards/{oid}/records.ts
1424
+ var import_axios117 = require("@ccw-api/axios");
1425
+ var url117 = "https://gandi-main.ccw.site/creation/leaderboards";
1426
+ async function submitLeaderboardRecord(leaderboardOid, score, userOid, ext = "") {
1427
+ const req = { score, oid: userOid, ext };
1428
+ const requestUrl = `${url117}/${leaderboardOid}/records`;
1429
+ return await import_axios117.ccwAxios.post(requestUrl, req).then((res) => res.data.body);
1430
+ }
1431
+ async function getLeaderboardRecords(leaderboardOid) {
1432
+ const requestUrl = `${url117}/${leaderboardOid}/records`;
1433
+ return await import_axios117.ccwAxios.get(requestUrl).then((res) => res.data.body);
1434
+ }
1435
+
1436
+ // src/gandi-main/index.ts
1437
+ var gandiMain = {
1438
+ getCurrentTimestamp,
1439
+ getBulletinsPage,
1440
+ getBulletinDetail,
1441
+ submitLeaderboardRecord,
1442
+ getLeaderboardRecords
1443
+ };
1444
+
1445
+ // src/bfs-web/users/{oid}/extensions.ts
1446
+ var import_axios118 = require("@ccw-api/axios");
1447
+ var url118 = "https://bfs-web.ccw.site/users";
1448
+ async function getUserExtensions(userOid, pageArgs_ = {
1449
+ sortField: "updatedAt"
1450
+ }) {
1451
+ const pageArgs = {
1452
+ ...DEFAULT_PAGE_ARGS,
1453
+ ...pageArgs_
1454
+ };
1455
+ const queryUrl = queryPage(`${url118}/${userOid}/extensions`, pageArgs);
1456
+ return await import_axios118.ccwAxios.get(queryUrl).then((res) => res.data.body);
1457
+ }
1458
+
1459
+ // src/bfs-web/extensions/{eid}/donate.ts
1460
+ var import_axios119 = require("@ccw-api/axios");
1461
+ var url119 = "https://bfs-web.ccw.site/extensions";
1462
+ async function donateExtension(eid, bucks) {
1463
+ const req = { eid, bucks };
1464
+ return await import_axios119.ccwAxios.post(`${url119}/${eid}/donate`, req).then((res) => res.data.body);
1465
+ }
1466
+
1467
+ // src/bfs-web/index.ts
1468
+ var bfsWeb = {
1469
+ donateExtension,
1470
+ getUserExtensions
1471
+ };
1472
+
1473
+ // src/community-web-cloud-database/cloud_variable/save.ts
1474
+ var import_axios120 = require("@ccw-api/axios");
1475
+ var url120 = "https://community-web-cloud-database.ccw.site/cloud_variable/save";
1476
+ async function saveCloudVariableBase(primaryKey, secondaryKey, value) {
1477
+ const req = { primaryKey, secondaryKey, value };
1478
+ return await import_axios120.ccwAxios.post(url120, req).then((res) => res.data.body);
1479
+ }
1480
+ async function saveProjectCloudVariable(projectId, secondaryKey, value) {
1481
+ return await saveCloudVariableBase(projectId, secondaryKey, { v: value });
1482
+ }
1483
+ async function saveUserCloudVariable(projectId, studentNum, value) {
1484
+ const primaryKey = `${projectId}-u`;
1485
+ return await saveCloudVariableBase(primaryKey, `${studentNum}`, value);
1486
+ }
1487
+
1488
+ // src/community-web-cloud-database/cloud_variable/detail/v2.ts
1489
+ var import_axios121 = require("@ccw-api/axios");
1490
+ var url121 = "https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";
1491
+ async function getCloudVariableDetailV2(accessKey, primaryKey, secondaryKey, filterKeys) {
1492
+ const req = { accessKey, primaryKey, secondaryKey, filterKeys };
1493
+ return await import_axios121.ccwAxios.post(url121, req).then((res) => res.data.body);
1494
+ }
1495
+
1496
+ // src/community-web-cloud-database/index.ts
1497
+ var communityWebCloudDatabase = {
1498
+ saveProjectCloudVariable,
1499
+ saveUserCloudVariable,
1500
+ getCloudVariableDetailV2
1501
+ };
1502
+
1503
+ // src/op-parent-api/captcha/create.ts
1504
+ var import_axios122 = require("@ccw-api/axios");
1505
+ var url122 = "https://op-parent-api.xiguacity.cn/captcha/create";
1506
+ async function createCaptcha(type = "BLOCK_PUZZLE") {
1507
+ const req = { type };
1508
+ return await import_axios122.ccwAxios.post(url122, req).then((res) => res.data.body);
1509
+ }
1510
+
1511
+ // src/op-parent-api/captcha/check.ts
1512
+ var import_axios123 = require("@ccw-api/axios");
1513
+ var url123 = "https://op-parent-api.xiguacity.cn/captcha/check";
1514
+ async function checkCaptcha(token, x, y = 5) {
1515
+ const req = { data: { x, y }, token };
1516
+ return await import_axios123.ccwAxios.post(url123, req).then((res) => res.data.body);
1517
+ }
1518
+
1519
+ // src/op-parent-api/index.ts
1520
+ var opParentApi = {
1521
+ createCaptcha,
1522
+ checkCaptcha
1523
+ };
1524
+
1525
+ // src/index.ts
1526
+ var import_axios124 = require("@ccw-api/axios");
1527
+ var index_default = {
1528
+ sso,
1529
+ communityWeb,
1530
+ gandiMain,
1531
+ bfsWeb,
1532
+ communityWebCloudDatabase,
1533
+ opParentApi
1534
+ };
1535
+ // Annotate the CommonJS export names for ESM import in node:
1536
+ 0 && (module.exports = {
1537
+ bfsWeb,
1538
+ communityWeb,
1539
+ communityWebCloudDatabase,
1540
+ gandiMain,
1541
+ opParentApi,
1542
+ setToken,
1543
+ sso
1544
+ });