@ccw-api/api 0.6.0 → 0.7.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 (434) hide show
  1. package/dist/esm/bfs-web/index.js +2 -2
  2. package/dist/esm/bfs-web/users/{oid}/extensions.js +1 -1
  3. package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.js +1 -1
  4. package/dist/esm/community-web/cloud_asset/search.js +1 -1
  5. package/dist/esm/community-web/comment/page.js +1 -1
  6. package/dist/esm/community-web/comment/page_by_topic.js +1 -1
  7. package/dist/esm/community-web/creation/own/page.js +1 -1
  8. package/dist/esm/community-web/creation/page.js +1 -1
  9. package/dist/esm/community-web/creation/page_by_student.js +1 -1
  10. package/dist/esm/community-web/creation/recommend.js +1 -1
  11. package/dist/esm/community-web/creation/search/page.js +1 -1
  12. package/dist/esm/community-web/creation/teamwork_log/page.js +1 -1
  13. package/dist/esm/community-web/creation_donated_record/ranking_list.js +1 -1
  14. package/dist/esm/community-web/creation_release/page.js +1 -1
  15. package/dist/esm/community-web/creation_screenshot/page.js +1 -1
  16. package/dist/esm/community-web/emoji/page.js +1 -1
  17. package/dist/esm/community-web/hash_tag/managed/list.js +1 -1
  18. package/dist/esm/community-web/hash_tag_creation/mine.js +1 -1
  19. package/dist/esm/community-web/historical_team_member/page.js +1 -1
  20. package/dist/esm/community-web/index.js +106 -106
  21. package/dist/esm/community-web/notification/page.js +2 -2
  22. package/dist/esm/community-web/student/block_record/list.js +1 -1
  23. package/dist/esm/community-web/student/following/page.js +1 -1
  24. package/dist/esm/community-web/students/list_sessions.js +1 -1
  25. package/dist/esm/community-web/students/reputation_score_log/page.js +1 -1
  26. package/dist/esm/community-web/subject_area/page.js +1 -1
  27. package/dist/esm/community-web/subject_area/page_by_channel.js +1 -1
  28. package/dist/esm/community-web/typical_project/page.js +1 -1
  29. package/dist/esm/community-web/user_package/user_product.js +1 -1
  30. package/dist/esm/community-web-cloud-database/index.js +2 -2
  31. package/dist/esm/gandi-main/bulletins/page.js +1 -1
  32. package/dist/esm/gandi-main/index.js +4 -4
  33. package/dist/esm/index.js +6 -6
  34. package/dist/esm/op-parent-api/index.js +2 -2
  35. package/dist/esm/sso/index.js +5 -5
  36. package/dist/esm/types/account.js +1 -0
  37. package/dist/esm/types/api.js +1 -0
  38. package/dist/esm/types/approval.js +1 -0
  39. package/dist/esm/types/comment.js +1 -0
  40. package/dist/esm/types/creation.js +1 -0
  41. package/dist/esm/types/extensions.js +1 -0
  42. package/dist/esm/types/hashTag.js +1 -0
  43. package/dist/esm/types/index.js +1 -0
  44. package/dist/esm/types/pages.js +1 -0
  45. package/dist/esm/types/session.js +1 -0
  46. package/dist/esm/types/teamwork.js +1 -0
  47. package/dist/esm/types/userData.js +1 -0
  48. package/dist/node/bfs-web/users/{oid}/extensions.js +1 -1
  49. package/dist/node/community-web/ccw-mall/ccw/product/fe/query.js +1 -1
  50. package/dist/node/community-web/cloud_asset/search.js +1 -1
  51. package/dist/node/community-web/comment/page.js +1 -1
  52. package/dist/node/community-web/comment/page_by_topic.js +1 -1
  53. package/dist/node/community-web/creation/own/page.js +1 -1
  54. package/dist/node/community-web/creation/page.js +1 -1
  55. package/dist/node/community-web/creation/page_by_student.js +1 -1
  56. package/dist/node/community-web/creation/recommend.js +1 -1
  57. package/dist/node/community-web/creation/search/page.js +1 -1
  58. package/dist/node/community-web/creation/teamwork_log/page.js +1 -1
  59. package/dist/node/community-web/creation_donated_record/ranking_list.js +1 -1
  60. package/dist/node/community-web/creation_release/page.js +1 -1
  61. package/dist/node/community-web/creation_screenshot/page.js +1 -1
  62. package/dist/node/community-web/emoji/page.js +1 -1
  63. package/dist/node/community-web/hash_tag/managed/list.js +1 -1
  64. package/dist/node/community-web/hash_tag_creation/mine.js +1 -1
  65. package/dist/node/community-web/historical_team_member/page.js +1 -1
  66. package/dist/node/community-web/notification/page.js +2 -2
  67. package/dist/node/community-web/student/block_record/list.js +1 -1
  68. package/dist/node/community-web/student/following/page.js +1 -1
  69. package/dist/node/community-web/students/list_sessions.js +1 -1
  70. package/dist/node/community-web/students/reputation_score_log/page.js +1 -1
  71. package/dist/node/community-web/subject_area/page.js +1 -1
  72. package/dist/node/community-web/subject_area/page_by_channel.js +1 -1
  73. package/dist/node/community-web/typical_project/page.js +1 -1
  74. package/dist/node/community-web/user_package/user_product.js +1 -1
  75. package/dist/node/gandi-main/bulletins/page.js +1 -1
  76. package/dist/node/types/account.js +2 -0
  77. package/dist/node/types/api.js +2 -0
  78. package/dist/node/types/approval.js +2 -0
  79. package/dist/node/types/comment.js +2 -0
  80. package/dist/node/types/creation.js +2 -0
  81. package/dist/node/types/extensions.js +2 -0
  82. package/dist/node/types/hashTag.js +2 -0
  83. package/dist/node/types/index.js +2 -0
  84. package/dist/node/types/pages.js +2 -0
  85. package/dist/node/types/session.js +2 -0
  86. package/dist/node/types/teamwork.js +2 -0
  87. package/dist/node/types/userData.js +2 -0
  88. package/dist/types/bfs-web/users/{oid}/extensions.d.ts +3 -3
  89. package/dist/types/community-web/api/v1/short_code/encode.d.ts +2 -2
  90. package/dist/types/community-web/approval/list.d.ts +3 -3
  91. package/dist/types/community-web/ccw-mall/ccw/product/fe/query.d.ts +2 -2
  92. package/dist/types/community-web/cloud_asset/search.d.ts +2 -2
  93. package/dist/types/community-web/comment/create.d.ts +3 -3
  94. package/dist/types/community-web/comment/page.d.ts +2 -2
  95. package/dist/types/community-web/comment/page_by_topic.d.ts +2 -2
  96. package/dist/types/community-web/creation/detail.d.ts +2 -2
  97. package/dist/types/community-web/creation/excellent/list.d.ts +1 -1
  98. package/dist/types/community-web/creation/introduction/detail.d.ts +2 -2
  99. package/dist/types/community-web/creation/like/detail.d.ts +2 -2
  100. package/dist/types/community-web/creation/loading/tips.d.ts +1 -1
  101. package/dist/types/community-web/creation/own/page.d.ts +2 -2
  102. package/dist/types/community-web/creation/page.d.ts +3 -3
  103. package/dist/types/community-web/creation/page_by_student.d.ts +3 -3
  104. package/dist/types/community-web/creation/potential/list.d.ts +1 -1
  105. package/dist/types/community-web/creation/recommend.d.ts +2 -2
  106. package/dist/types/community-web/creation/search/page.d.ts +2 -2
  107. package/dist/types/community-web/creation/smart_contract/split_rule/create.d.ts +1 -1
  108. package/dist/types/community-web/creation/smart_contract/split_rule/detail.d.ts +2 -2
  109. package/dist/types/community-web/creation/student/detail.d.ts +2 -2
  110. package/dist/types/community-web/creation/submit.d.ts +2 -2
  111. package/dist/types/community-web/creation/tag/list.d.ts +1 -1
  112. package/dist/types/community-web/creation/team_member/list.d.ts +2 -2
  113. package/dist/types/community-web/creation/team_member/produce_ticket.d.ts +1 -1
  114. package/dist/types/community-web/creation/teamwork_log/page.d.ts +2 -2
  115. package/dist/types/community-web/creation/update.d.ts +2 -2
  116. package/dist/types/community-web/creation_activity_stats/list.d.ts +1 -1
  117. package/dist/types/community-web/creation_attribute/detail.d.ts +1 -1
  118. package/dist/types/community-web/creation_donated_record/ranking_list.d.ts +3 -3
  119. package/dist/types/community-web/creation_favorite/detail.d.ts +2 -2
  120. package/dist/types/community-web/creation_recommend_position/list.d.ts +1 -1
  121. package/dist/types/community-web/creation_release/code_profiling/detail.d.ts +1 -1
  122. package/dist/types/community-web/creation_release/page.d.ts +3 -3
  123. package/dist/types/community-web/creation_screenshot/page.d.ts +3 -3
  124. package/dist/types/community-web/creation_stats/view.d.ts +1 -1
  125. package/dist/types/community-web/emoji/all.d.ts +1 -1
  126. package/dist/types/community-web/emoji/category/list.d.ts +1 -1
  127. package/dist/types/community-web/emoji/page.d.ts +1 -1
  128. package/dist/types/community-web/extensions/creation-like/detail.d.ts +1 -1
  129. package/dist/types/community-web/extensions/following/status.d.ts +1 -1
  130. package/dist/types/community-web/great_creation/update.d.ts +1 -1
  131. package/dist/types/community-web/hash_tag/detail.d.ts +1 -1
  132. package/dist/types/community-web/hash_tag/managed/list.d.ts +3 -3
  133. package/dist/types/community-web/hash_tag/recommend/list.d.ts +1 -1
  134. package/dist/types/community-web/hash_tag_creation/list_relation.d.ts +2 -2
  135. package/dist/types/community-web/hash_tag_creation/mine.d.ts +2 -2
  136. package/dist/types/community-web/hash_tag_favorite/detail.d.ts +1 -1
  137. package/dist/types/community-web/historical_team_member/page.d.ts +2 -2
  138. package/dist/types/community-web/leaflets/item/list.d.ts +1 -1
  139. package/dist/types/community-web/locked_user/detail.d.ts +2 -2
  140. package/dist/types/community-web/notification/page.d.ts +2 -2
  141. package/dist/types/community-web/notification/stats/v2.d.ts +1 -1
  142. package/dist/types/community-web/post/detail.d.ts +1 -1
  143. package/dist/types/community-web/smart_contract/detail.d.ts +1 -1
  144. package/dist/types/community-web/smart_contract/execute.d.ts +1 -1
  145. package/dist/types/community-web/smart_contract/list.d.ts +1 -1
  146. package/dist/types/community-web/student/block_record/detail.d.ts +2 -2
  147. package/dist/types/community-web/student/block_record/list.d.ts +2 -2
  148. package/dist/types/community-web/student/block_record/status.d.ts +1 -1
  149. package/dist/types/community-web/student/following/page.d.ts +3 -3
  150. package/dist/types/community-web/students/creator_score.d.ts +1 -1
  151. package/dist/types/community-web/students/last_active_at.d.ts +1 -1
  152. package/dist/types/community-web/students/list.d.ts +2 -2
  153. package/dist/types/community-web/students/list_sessions.d.ts +2 -2
  154. package/dist/types/community-web/students/profile.d.ts +2 -2
  155. package/dist/types/community-web/students/reputation_score_log/page.d.ts +2 -2
  156. package/dist/types/community-web/students/self/detail.d.ts +1 -1
  157. package/dist/types/community-web/students/stats.d.ts +2 -2
  158. package/dist/types/community-web/students/update.d.ts +1 -1
  159. package/dist/types/community-web/study-community/cloud_variable/create.d.ts +1 -1
  160. package/dist/types/community-web/study-community/following/follow.d.ts +1 -1
  161. package/dist/types/community-web/study-community/member/detail.d.ts +2 -2
  162. package/dist/types/community-web/study-community/spread_feed/unread/count.d.ts +1 -1
  163. package/dist/types/community-web/study-trade/trade/donate.d.ts +1 -1
  164. package/dist/types/community-web/subject_area/page.d.ts +2 -2
  165. package/dist/types/community-web/subject_area/page_by_channel.d.ts +2 -2
  166. package/dist/types/community-web/task/award.d.ts +1 -1
  167. package/dist/types/community-web/task/mine.d.ts +1 -1
  168. package/dist/types/community-web/typical_project/page.d.ts +2 -2
  169. package/dist/types/community-web/typical_project/student/unread_count.d.ts +1 -1
  170. package/dist/types/community-web/user-card/detail.d.ts +2 -2
  171. package/dist/types/community-web/user_label/list.d.ts +1 -1
  172. package/dist/types/community-web/user_package/user_product.d.ts +3 -3
  173. package/dist/types/community-web-cloud-database/cloud_variable/save.d.ts +1 -1
  174. package/dist/types/gandi-main/bulletins/page.d.ts +1 -1
  175. package/dist/types/gandi-main/creation/leaderboards/{oid}/records.d.ts +2 -2
  176. package/dist/types/queryPages.d.ts +1 -1
  177. package/dist/types/sso/web/auth/login-by-password.d.ts +2 -2
  178. package/dist/types/sso/web/auth/v3/login/by-phone.d.ts +2 -2
  179. package/dist/types/types/account.d.ts +1 -0
  180. package/dist/types/types/api.d.ts +27 -0
  181. package/dist/types/types/approval.d.ts +18 -0
  182. package/dist/types/types/comment.d.ts +60 -0
  183. package/dist/types/types/creation.d.ts +171 -0
  184. package/dist/types/types/extensions.d.ts +60 -0
  185. package/dist/types/types/hashTag.d.ts +71 -0
  186. package/dist/types/types/index.d.ts +11 -0
  187. package/dist/types/types/notification.d.ts +3 -3
  188. package/dist/types/types/pages.d.ts +37 -0
  189. package/dist/types/types/session.d.ts +38 -0
  190. package/dist/types/types/teamwork.d.ts +15 -0
  191. package/dist/types/types/userData.d.ts +363 -0
  192. package/package.json +3 -2
  193. package/dist/esm/bfs-web/extensions/{eid}/donate.test.js +0 -4
  194. package/dist/esm/bfs-web/users/{oid}/extensions.test.js +0 -4
  195. package/dist/esm/community-web/api/v1/short_code/shortcode.test.js +0 -5
  196. package/dist/esm/community-web/approval/approval.test.js +0 -5
  197. package/dist/esm/community-web/base/dateTime.test.js +0 -6
  198. package/dist/esm/community-web/campaign_resource/detail.test.js +0 -10
  199. package/dist/esm/community-web/ccw-main/status.test.js +0 -4
  200. package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.test.js +0 -8
  201. package/dist/esm/community-web/check_in_record/check_in_record.test.js +0 -8
  202. package/dist/esm/community-web/cloud_asset/search.test.js +0 -6
  203. package/dist/esm/community-web/cloud_asset/user/privacy.test.js +0 -4
  204. package/dist/esm/community-web/comment/create.test.js +0 -13
  205. package/dist/esm/community-web/comment/like_record/create.test.js +0 -4
  206. package/dist/esm/community-web/comment/page.test.js +0 -15
  207. package/dist/esm/community-web/comment/page_by_topic.test.js +0 -13
  208. package/dist/esm/community-web/comment/reply.test.js +0 -4
  209. package/dist/esm/community-web/config/detail.test.js +0 -9
  210. package/dist/esm/community-web/creation/detail.test.js +0 -18
  211. package/dist/esm/community-web/creation/excellent/list.test.js +0 -10
  212. package/dist/esm/community-web/creation/introduction/detail.test.js +0 -17
  213. package/dist/esm/community-web/creation/like/detail.test.js +0 -19
  214. package/dist/esm/community-web/creation/loading/tips.test.js +0 -8
  215. package/dist/esm/community-web/creation/own/page.test.js +0 -4
  216. package/dist/esm/community-web/creation/page.test.js +0 -16
  217. package/dist/esm/community-web/creation/page_by_student.test.js +0 -20
  218. package/dist/esm/community-web/creation/potential/list.test.js +0 -10
  219. package/dist/esm/community-web/creation/recommend.test.js +0 -10
  220. package/dist/esm/community-web/creation/search/page.test.js +0 -5
  221. package/dist/esm/community-web/creation/smart_contract/split_rule/create.test.js +0 -4
  222. package/dist/esm/community-web/creation/smart_contract/split_rule/detail.test.js +0 -4
  223. package/dist/esm/community-web/creation/student/detail.test.js +0 -17
  224. package/dist/esm/community-web/creation/submit.test.js +0 -32
  225. package/dist/esm/community-web/creation/tag/list.test.js +0 -10
  226. package/dist/esm/community-web/creation/team_member/list.test.js +0 -4
  227. package/dist/esm/community-web/creation/team_member/produce_ticket.test.js +0 -4
  228. package/dist/esm/community-web/creation/teamwork_log/page.test.js +0 -4
  229. package/dist/esm/community-web/creation/update.test.js +0 -4
  230. package/dist/esm/community-web/creation_activity_stats/list.test.js +0 -5
  231. package/dist/esm/community-web/creation_attribute/detail.test.js +0 -10
  232. package/dist/esm/community-web/creation_donated_record/ranking_list.test.js +0 -12
  233. package/dist/esm/community-web/creation_favorite/detail.test.js +0 -5
  234. package/dist/esm/community-web/creation_recommend_position/list.test.js +0 -5
  235. package/dist/esm/community-web/creation_release/code_profiling/detail.test.js +0 -5
  236. package/dist/esm/community-web/creation_release/page.test.js +0 -12
  237. package/dist/esm/community-web/creation_screenshot/page.test.js +0 -11
  238. package/dist/esm/community-web/creation_stats/view.test.js +0 -6
  239. package/dist/esm/community-web/currency/account/personal.test.js +0 -4
  240. package/dist/esm/community-web/emoji/all.test.js +0 -11
  241. package/dist/esm/community-web/emoji/category/list.test.js +0 -9
  242. package/dist/esm/community-web/emoji/page.test.js +0 -12
  243. package/dist/esm/community-web/event.test.js +0 -5
  244. package/dist/esm/community-web/extensions/creation-like/detail.test.js +0 -4
  245. package/dist/esm/community-web/extensions/following/status.test.js +0 -4
  246. package/dist/esm/community-web/great_creation/update.test.js +0 -4
  247. package/dist/esm/community-web/hash_tag/hash_tag_detail.test.js +0 -9
  248. package/dist/esm/community-web/hash_tag/managed/managed_list.test.js +0 -10
  249. package/dist/esm/community-web/hash_tag/recommend/list.test.js +0 -4
  250. package/dist/esm/community-web/hash_tag_creation/hash_tag_creation_list_relation.test.js +0 -4
  251. package/dist/esm/community-web/hash_tag_creation/hash_tag_creation_mine.test.js +0 -4
  252. package/dist/esm/community-web/hash_tag_creation/list_relation.test.js +0 -5
  253. package/dist/esm/community-web/hash_tag_favorite/hash_tag_favorite_detail.test.js +0 -4
  254. package/dist/esm/community-web/health/check.test.js +0 -10
  255. package/dist/esm/community-web/historical_team_member/page.test.js +0 -12
  256. package/dist/esm/community-web/leaflets/item/list.test.js +0 -5
  257. package/dist/esm/community-web/locked_user/detail.test.js +0 -6
  258. package/dist/esm/community-web/muted_user/detail.test.js +0 -6
  259. package/dist/esm/community-web/notification/page.test.js +0 -4
  260. package/dist/esm/community-web/notification/stats/v2.test.js +0 -4
  261. package/dist/esm/community-web/notify_message/notify_message.test.js +0 -5
  262. package/dist/esm/community-web/post/post.test.js +0 -8
  263. package/dist/esm/community-web/search/search.test.js +0 -6
  264. package/dist/esm/community-web/short_url/decompress.test.js +0 -4
  265. package/dist/esm/community-web/short_url/shortUrl.test.js +0 -4
  266. package/dist/esm/community-web/smart_contract/account.test.js +0 -4
  267. package/dist/esm/community-web/smart_contract/detail.test.js +0 -4
  268. package/dist/esm/community-web/smart_contract/execute.test.js +0 -4
  269. package/dist/esm/community-web/smart_contract/list.test.js +0 -4
  270. package/dist/esm/community-web/student/block_record/block_record_list.test.js +0 -4
  271. package/dist/esm/community-web/student/block_record/block_record_status.test.js +0 -8
  272. package/dist/esm/community-web/student/block_record/detail.test.js +0 -4
  273. package/dist/esm/community-web/student/following/page.test.js +0 -6
  274. package/dist/esm/community-web/students/creator_score.test.js +0 -4
  275. package/dist/esm/community-web/students/last_active_at.test.js +0 -6
  276. package/dist/esm/community-web/students/list.test.js +0 -7
  277. package/dist/esm/community-web/students/list_sessions.test.js +0 -4
  278. package/dist/esm/community-web/students/profile.test.js +0 -6
  279. package/dist/esm/community-web/students/reputation_score_log/reputation_score_log.test.js +0 -4
  280. package/dist/esm/community-web/students/self/self_detail.test.js +0 -4
  281. package/dist/esm/community-web/students/stats.test.js +0 -7
  282. package/dist/esm/community-web/students/update.test.js +0 -4
  283. package/dist/esm/community-web/study-community/cloud_variable/create.test.js +0 -4
  284. package/dist/esm/community-web/study-community/comment/delete.test.js +0 -4
  285. package/dist/esm/community-web/study-community/comment/fold.test.js +0 -4
  286. package/dist/esm/community-web/study-community/comment/reset_weight.test.js +0 -4
  287. package/dist/esm/community-web/study-community/comment/top.test.js +0 -4
  288. package/dist/esm/community-web/study-community/following/follow.test.js +0 -4
  289. package/dist/esm/community-web/study-community/member/member_detail.test.js +0 -4
  290. package/dist/esm/community-web/study-community/spread_feed/unread/spread_feed_unread_count.test.js +0 -5
  291. package/dist/esm/community-web/study-trade/trade/donate.test.js +0 -4
  292. package/dist/esm/community-web/subject_area/subject_area_page.test.js +0 -5
  293. package/dist/esm/community-web/subject_area/subject_area_page_by_channel.test.js +0 -5
  294. package/dist/esm/community-web/task/task_award.test.js +0 -5
  295. package/dist/esm/community-web/task/task_mine.test.js +0 -4
  296. package/dist/esm/community-web/typical_project/page.test.js +0 -12
  297. package/dist/esm/community-web/typical_project/student/unread_count.test.js +0 -4
  298. package/dist/esm/community-web/user-card/user_card_detail.test.js +0 -6
  299. package/dist/esm/community-web/user_label/user_label_list.test.js +0 -5
  300. package/dist/esm/community-web/user_package/status.test.js +0 -4
  301. package/dist/esm/community-web/user_package/user_product.test.js +0 -9
  302. package/dist/esm/community-web-cloud-database/cloud_variable/detail/v2.test.js +0 -4
  303. package/dist/esm/community-web-cloud-database/cloud_variable/save.test.js +0 -13
  304. package/dist/esm/coverage.test.js +0 -5
  305. package/dist/esm/gandi-main/bulletins/detail.test.js +0 -17
  306. package/dist/esm/gandi-main/bulletins/page.test.js +0 -6
  307. package/dist/esm/gandi-main/creation/leaderboards/{oid}/records.test.js +0 -11
  308. package/dist/esm/gandi-main/timestamp/current.test.js +0 -6
  309. package/dist/esm/op-parent-api/captcha/check.test.js +0 -12
  310. package/dist/esm/op-parent-api/captcha/create.test.js +0 -13
  311. package/dist/esm/sso/web/auth/assistant/captcha/v2/create.test.js +0 -8
  312. package/dist/esm/sso/web/auth/auth.test.js +0 -15
  313. package/dist/esm/sso/web/auth/v3/login/by-phone.test.js +0 -7
  314. package/dist/node/bfs-web/extensions/{eid}/donate.test.js +0 -6
  315. package/dist/node/bfs-web/users/{oid}/extensions.test.js +0 -6
  316. package/dist/node/community-web/api/v1/short_code/shortcode.test.js +0 -7
  317. package/dist/node/community-web/approval/approval.test.js +0 -7
  318. package/dist/node/community-web/base/dateTime.test.js +0 -8
  319. package/dist/node/community-web/campaign_resource/detail.test.js +0 -12
  320. package/dist/node/community-web/ccw-main/status.test.js +0 -6
  321. package/dist/node/community-web/ccw-mall/ccw/product/fe/query.test.js +0 -10
  322. package/dist/node/community-web/check_in_record/check_in_record.test.js +0 -10
  323. package/dist/node/community-web/cloud_asset/search.test.js +0 -8
  324. package/dist/node/community-web/cloud_asset/user/privacy.test.js +0 -6
  325. package/dist/node/community-web/comment/create.test.js +0 -15
  326. package/dist/node/community-web/comment/like_record/create.test.js +0 -6
  327. package/dist/node/community-web/comment/page.test.js +0 -17
  328. package/dist/node/community-web/comment/page_by_topic.test.js +0 -15
  329. package/dist/node/community-web/comment/reply.test.js +0 -6
  330. package/dist/node/community-web/config/detail.test.js +0 -11
  331. package/dist/node/community-web/creation/detail.test.js +0 -20
  332. package/dist/node/community-web/creation/excellent/list.test.js +0 -12
  333. package/dist/node/community-web/creation/introduction/detail.test.js +0 -19
  334. package/dist/node/community-web/creation/like/detail.test.js +0 -21
  335. package/dist/node/community-web/creation/loading/tips.test.js +0 -10
  336. package/dist/node/community-web/creation/own/page.test.js +0 -6
  337. package/dist/node/community-web/creation/page.test.js +0 -18
  338. package/dist/node/community-web/creation/page_by_student.test.js +0 -22
  339. package/dist/node/community-web/creation/potential/list.test.js +0 -12
  340. package/dist/node/community-web/creation/recommend.test.js +0 -12
  341. package/dist/node/community-web/creation/search/page.test.js +0 -7
  342. package/dist/node/community-web/creation/smart_contract/split_rule/create.test.js +0 -6
  343. package/dist/node/community-web/creation/smart_contract/split_rule/detail.test.js +0 -6
  344. package/dist/node/community-web/creation/student/detail.test.js +0 -19
  345. package/dist/node/community-web/creation/submit.test.js +0 -34
  346. package/dist/node/community-web/creation/tag/list.test.js +0 -12
  347. package/dist/node/community-web/creation/team_member/list.test.js +0 -6
  348. package/dist/node/community-web/creation/team_member/produce_ticket.test.js +0 -6
  349. package/dist/node/community-web/creation/teamwork_log/page.test.js +0 -6
  350. package/dist/node/community-web/creation/update.test.js +0 -6
  351. package/dist/node/community-web/creation_activity_stats/list.test.js +0 -7
  352. package/dist/node/community-web/creation_attribute/detail.test.js +0 -12
  353. package/dist/node/community-web/creation_donated_record/ranking_list.test.js +0 -14
  354. package/dist/node/community-web/creation_favorite/detail.test.js +0 -7
  355. package/dist/node/community-web/creation_recommend_position/list.test.js +0 -7
  356. package/dist/node/community-web/creation_release/code_profiling/detail.test.js +0 -7
  357. package/dist/node/community-web/creation_release/page.test.js +0 -14
  358. package/dist/node/community-web/creation_screenshot/page.test.js +0 -13
  359. package/dist/node/community-web/creation_stats/view.test.js +0 -8
  360. package/dist/node/community-web/currency/account/personal.test.js +0 -6
  361. package/dist/node/community-web/emoji/all.test.js +0 -13
  362. package/dist/node/community-web/emoji/category/list.test.js +0 -11
  363. package/dist/node/community-web/emoji/page.test.js +0 -14
  364. package/dist/node/community-web/event.test.js +0 -7
  365. package/dist/node/community-web/extensions/creation-like/detail.test.js +0 -6
  366. package/dist/node/community-web/extensions/following/status.test.js +0 -6
  367. package/dist/node/community-web/great_creation/update.test.js +0 -6
  368. package/dist/node/community-web/hash_tag/hash_tag_detail.test.js +0 -11
  369. package/dist/node/community-web/hash_tag/managed/managed_list.test.js +0 -12
  370. package/dist/node/community-web/hash_tag/recommend/list.test.js +0 -6
  371. package/dist/node/community-web/hash_tag_creation/hash_tag_creation_list_relation.test.js +0 -6
  372. package/dist/node/community-web/hash_tag_creation/hash_tag_creation_mine.test.js +0 -6
  373. package/dist/node/community-web/hash_tag_creation/list_relation.test.js +0 -7
  374. package/dist/node/community-web/hash_tag_favorite/hash_tag_favorite_detail.test.js +0 -6
  375. package/dist/node/community-web/health/check.test.js +0 -12
  376. package/dist/node/community-web/historical_team_member/page.test.js +0 -14
  377. package/dist/node/community-web/leaflets/item/list.test.js +0 -7
  378. package/dist/node/community-web/locked_user/detail.test.js +0 -8
  379. package/dist/node/community-web/muted_user/detail.test.js +0 -8
  380. package/dist/node/community-web/notification/page.test.js +0 -6
  381. package/dist/node/community-web/notification/stats/v2.test.js +0 -6
  382. package/dist/node/community-web/notify_message/notify_message.test.js +0 -7
  383. package/dist/node/community-web/post/post.test.js +0 -10
  384. package/dist/node/community-web/search/search.test.js +0 -8
  385. package/dist/node/community-web/short_url/decompress.test.js +0 -6
  386. package/dist/node/community-web/short_url/shortUrl.test.js +0 -6
  387. package/dist/node/community-web/smart_contract/account.test.js +0 -6
  388. package/dist/node/community-web/smart_contract/detail.test.js +0 -6
  389. package/dist/node/community-web/smart_contract/execute.test.js +0 -6
  390. package/dist/node/community-web/smart_contract/list.test.js +0 -6
  391. package/dist/node/community-web/student/block_record/block_record_list.test.js +0 -6
  392. package/dist/node/community-web/student/block_record/block_record_status.test.js +0 -10
  393. package/dist/node/community-web/student/block_record/detail.test.js +0 -6
  394. package/dist/node/community-web/student/following/page.test.js +0 -8
  395. package/dist/node/community-web/students/creator_score.test.js +0 -6
  396. package/dist/node/community-web/students/last_active_at.test.js +0 -8
  397. package/dist/node/community-web/students/list.test.js +0 -9
  398. package/dist/node/community-web/students/list_sessions.test.js +0 -6
  399. package/dist/node/community-web/students/profile.test.js +0 -8
  400. package/dist/node/community-web/students/reputation_score_log/reputation_score_log.test.js +0 -6
  401. package/dist/node/community-web/students/self/self_detail.test.js +0 -6
  402. package/dist/node/community-web/students/stats.test.js +0 -9
  403. package/dist/node/community-web/students/update.test.js +0 -6
  404. package/dist/node/community-web/study-community/cloud_variable/create.test.js +0 -6
  405. package/dist/node/community-web/study-community/comment/delete.test.js +0 -6
  406. package/dist/node/community-web/study-community/comment/fold.test.js +0 -6
  407. package/dist/node/community-web/study-community/comment/reset_weight.test.js +0 -6
  408. package/dist/node/community-web/study-community/comment/top.test.js +0 -6
  409. package/dist/node/community-web/study-community/following/follow.test.js +0 -6
  410. package/dist/node/community-web/study-community/member/member_detail.test.js +0 -6
  411. package/dist/node/community-web/study-community/spread_feed/unread/spread_feed_unread_count.test.js +0 -7
  412. package/dist/node/community-web/study-trade/trade/donate.test.js +0 -6
  413. package/dist/node/community-web/subject_area/subject_area_page.test.js +0 -7
  414. package/dist/node/community-web/subject_area/subject_area_page_by_channel.test.js +0 -7
  415. package/dist/node/community-web/task/task_award.test.js +0 -7
  416. package/dist/node/community-web/task/task_mine.test.js +0 -6
  417. package/dist/node/community-web/typical_project/page.test.js +0 -14
  418. package/dist/node/community-web/typical_project/student/unread_count.test.js +0 -6
  419. package/dist/node/community-web/user-card/user_card_detail.test.js +0 -8
  420. package/dist/node/community-web/user_label/user_label_list.test.js +0 -7
  421. package/dist/node/community-web/user_package/status.test.js +0 -6
  422. package/dist/node/community-web/user_package/user_product.test.js +0 -11
  423. package/dist/node/community-web-cloud-database/cloud_variable/detail/v2.test.js +0 -6
  424. package/dist/node/community-web-cloud-database/cloud_variable/save.test.js +0 -15
  425. package/dist/node/coverage.test.js +0 -7
  426. package/dist/node/gandi-main/bulletins/detail.test.js +0 -19
  427. package/dist/node/gandi-main/bulletins/page.test.js +0 -8
  428. package/dist/node/gandi-main/creation/leaderboards/{oid}/records.test.js +0 -13
  429. package/dist/node/gandi-main/timestamp/current.test.js +0 -8
  430. package/dist/node/op-parent-api/captcha/check.test.js +0 -14
  431. package/dist/node/op-parent-api/captcha/create.test.js +0 -15
  432. package/dist/node/sso/web/auth/assistant/captcha/v2/create.test.js +0 -10
  433. package/dist/node/sso/web/auth/auth.test.js +0 -17
  434. package/dist/node/sso/web/auth/v3/login/by-phone.test.js +0 -9
@@ -1,10 +0,0 @@
1
- import { getPotentialCreations } from "./list";
2
- test("get potential creations should return data", async () => {
3
- const res = await getPotentialCreations(10);
4
- expect(Array.isArray(res)).toBe(true);
5
- res.forEach((c) => {
6
- expect(c.oid).toBeDefined();
7
- expect(c.title).toBeDefined();
8
- });
9
- expect(res).toHaveLength(10);
10
- });
@@ -1,10 +0,0 @@
1
- import { getRecommendCreations } from "./recommend";
2
- test("get recommend creations should return data", async () => {
3
- const res = await getRecommendCreations(5);
4
- expect(Array.isArray(res.data)).toBe(true);
5
- res.data.forEach((c) => {
6
- expect(c.oid).toBeDefined();
7
- expect(c.title).toBeDefined();
8
- });
9
- expect(res.data.length).toBeGreaterThanOrEqual(0);
10
- });
@@ -1,5 +0,0 @@
1
- import { searchCreationsByTag } from "./page";
2
- test("search creations by tag should return data", async () => {
3
- const res = await searchCreationsByTag({ tag: "史莱姆之森" });
4
- expect(Array.isArray(res.data)).toBe(true);
5
- });
@@ -1,4 +0,0 @@
1
- import { createSplitRule } from "./create";
2
- test("create split rule should fail without token", async () => {
3
- await expect(createSplitRule("63c2807d669fa967f17f5559", [])).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { getSplitRuleDetail } from "./detail";
2
- test("get split rule detail should fail without token", async () => {
3
- await expect(getSplitRuleDetail("63c2807d669fa967f17f5559")).rejects.toThrow("token为空");
4
- });
@@ -1,17 +0,0 @@
1
- import { getCreationStudentDetail } from "./detail";
2
- import { getExcellentCreations } from "../excellent/list";
3
- let sampleStudentOid;
4
- beforeAll(async () => {
5
- const creations = await getExcellentCreations(1);
6
- if (creations.length > 0) {
7
- sampleStudentOid = creations[0].studentOid;
8
- }
9
- }, 30000);
10
- test("get creation student detail should return data", async () => {
11
- if (!sampleStudentOid) {
12
- return;
13
- }
14
- const res = await getCreationStudentDetail(sampleStudentOid);
15
- expect(res.oid).toBe(sampleStudentOid);
16
- expect(res.name).toBeDefined();
17
- });
@@ -1,32 +0,0 @@
1
- import { submitCreation } from "./submit";
2
- test("submit creation should fail without token", async () => {
3
- await expect(submitCreation({
4
- tags: [],
5
- title: "test",
6
- isOpenSource: false,
7
- isContribute: false,
8
- type: "ORIGINAL",
9
- publishedFeedSwitch: false,
10
- keyboardLayout: "CUSTOM",
11
- hashTags: [],
12
- featuredCoverLink: "https://m.ccw.site/a",
13
- sourceOpenLevel: "PRIVATE",
14
- requireLogin: false,
15
- operatingInstruction: "",
16
- description: "",
17
- releaseDescription: "",
18
- videoLink: null,
19
- releaseTags: ["Alpha"],
20
- customVersion: "",
21
- repostedSource: "",
22
- projectLink: "https://m.ccw.site/a",
23
- remixCreationOid: null,
24
- oid: "63c2807d669fa967f17f5559",
25
- hasCloudVariables: false,
26
- extensions: [],
27
- projectSize: 0,
28
- audioSize: 0,
29
- costumeSize: 0,
30
- coverLink: "https://m.ccw.site/a",
31
- })).rejects.toThrow("token为空");
32
- });
@@ -1,10 +0,0 @@
1
- import { getCreationTags } from "./list";
2
- test("get creation tags should return data", async () => {
3
- const res = await getCreationTags();
4
- expect(Array.isArray(res)).toBe(true);
5
- res.forEach((tag) => {
6
- expect(tag.id).toBeDefined();
7
- expect(tag.title).toBeDefined();
8
- expect(tag.code).toBeDefined();
9
- });
10
- });
@@ -1,4 +0,0 @@
1
- import { getTeamMemberList } from "./list";
2
- test("get team member list should fail without token", async () => {
3
- await expect(getTeamMemberList("63c2807d669fa967f17f5559", ["MEMBER"])).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { produceTeamMemberTicket } from "./produce_ticket";
2
- test("produce team member ticket should fail without token", async () => {
3
- await expect(produceTeamMemberTicket("63c2807d669fa967f17f5559")).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { getTeamworkLogPage } from "./page";
2
- test("get teamwork log page should fail without token", async () => {
3
- await expect(getTeamworkLogPage("63c2807d669fa967f17f5559", ["BLOCK"])).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { updateCreation } from "./update";
2
- test("update creation should fail without token", async () => {
3
- await expect(updateCreation("63c2807d669fa967f17f5559", "https://m.ccw.site/a", "LANDSCAPE", "https://m.ccw.site/a")).rejects.toThrow("token为空");
4
- });
@@ -1,5 +0,0 @@
1
- import { getCreationActivityStatsList } from "./list";
2
- test("get creation activity stats list returns array without token", async () => {
3
- const result = await getCreationActivityStatsList("63c2807d669fa967f17f5559");
4
- expect(Array.isArray(result)).toBe(true);
5
- });
@@ -1,10 +0,0 @@
1
- import { getCreationAttributeDetail } from "./detail";
2
- test("get creation attribute detail returns null or object without token", async () => {
3
- const result = await getCreationAttributeDetail("63c2807d669fa967f17f5559");
4
- expect(result === null || typeof result === "object").toBe(true);
5
- if (result !== null) {
6
- expect(result).toHaveProperty("ext");
7
- expect(result.ext).toHaveProperty("KEYPAD_CONFIG");
8
- expect(Array.isArray(result.ext.KEYPAD_CONFIG)).toBe(true);
9
- }
10
- });
@@ -1,12 +0,0 @@
1
- import { getDonatedRecordRanking } from "./ranking_list";
2
- const CREATION_OID = "62bd863874c3155ff7a54308";
3
- test("get donated record ranking should return data", async () => {
4
- const res = await getDonatedRecordRanking(CREATION_OID, { perPage: 5 });
5
- expect(res.totalBucks).toBeDefined();
6
- expect(res.rankingList.data.length).toBeGreaterThan(0);
7
- res.rankingList.data.forEach((record) => {
8
- expect(record.bucks).toBeDefined();
9
- expect(record.donatorName).toBeDefined();
10
- expect(record.donatorOid).toBeDefined();
11
- });
12
- });
@@ -1,5 +0,0 @@
1
- import { getCreationFavoriteDetail } from "./detail";
2
- const CREATION_OID = "62bd863874c3155ff7a54308";
3
- test("get creation favorite detail should reject without login", async () => {
4
- await expect(getCreationFavoriteDetail(CREATION_OID)).rejects.toThrow("ccw axios Request failed: token为空(4001082401)");
5
- });
@@ -1,5 +0,0 @@
1
- import { getCreationRecommendPositionList } from "./list";
2
- test("get creation recommend position list returns array without token", async () => {
3
- const result = await getCreationRecommendPositionList("63c2807d669fa967f17f5559");
4
- expect(Array.isArray(result)).toBe(true);
5
- });
@@ -1,5 +0,0 @@
1
- import { getCodeProfilingDetail } from "./detail";
2
- test("get code profiling detail returns null or object without token", async () => {
3
- const result = await getCodeProfilingDetail("63c2807d669fa967f17f5559", "63c2807d669fa967f17f5559");
4
- expect(result === null || typeof result === "object").toBe(true);
5
- });
@@ -1,12 +0,0 @@
1
- import { getCreationReleasePage } from "./page";
2
- test("get creation release page returns PagesRes without token", async () => {
3
- const result = await getCreationReleasePage("69929185f8d6142487fd4b2e");
4
- expect(result).toHaveProperty("data");
5
- expect(result).toHaveProperty("page");
6
- expect(result).toHaveProperty("perPage");
7
- expect(result).toHaveProperty("totalNum");
8
- expect(result).toHaveProperty("totalPages");
9
- expect(Array.isArray(result.data)).toBe(true);
10
- expect(typeof result.totalNum).toBe("number");
11
- expect(typeof result.totalPages).toBe("number");
12
- });
@@ -1,11 +0,0 @@
1
- import { getCreationScreenshotPage } from "./page";
2
- const CREATION_OID = "62bd863874c3155ff7a54308";
3
- test("get creation screenshot page should return data", async () => {
4
- const res = await getCreationScreenshotPage(CREATION_OID, { perPage: 5 });
5
- expect(Array.isArray(res.data)).toBe(true);
6
- if (res.data.length > 0) {
7
- expect(res.data[0].creationScreenshot).toBeDefined();
8
- expect(res.data[0].commenter).toBeDefined();
9
- expect(res.data[0].topicId).toBeDefined();
10
- }
11
- });
@@ -1,6 +0,0 @@
1
- import { viewCreationStats } from "./view";
2
- const CREATION_OID = "62bd863874c3155ff7a54308";
3
- test("view creation stats should return boolean", async () => {
4
- const res = await viewCreationStats(CREATION_OID);
5
- expect(typeof res).toBe("boolean");
6
- });
@@ -1,4 +0,0 @@
1
- import { getPersonalCurrencyAccount } from "./personal";
2
- test("get personal currency account should reject without login", async () => {
3
- await expect(getPersonalCurrencyAccount()).rejects.toThrow();
4
- });
@@ -1,11 +0,0 @@
1
- import { getAllEmojis } from "./all";
2
- test("get all emojis should return data", async () => {
3
- const res = await getAllEmojis();
4
- expect(Array.isArray(res)).toBe(true);
5
- if (res.length > 0) {
6
- expect(res[0].id).toBeDefined();
7
- expect(res[0].name).toBeDefined();
8
- expect(res[0].imageUrl).toBeDefined();
9
- expect(res[0].category).toBeDefined();
10
- }
11
- });
@@ -1,9 +0,0 @@
1
- import { getEmojiCategoryList } from "./list";
2
- test("get emoji category list should return data", async () => {
3
- const res = await getEmojiCategoryList();
4
- expect(Array.isArray(res)).toBe(true);
5
- if (res.length > 0) {
6
- expect(res[0].id).toBeDefined();
7
- expect(res[0].name).toBeDefined();
8
- }
9
- });
@@ -1,12 +0,0 @@
1
- import { getEmojiPage } from "./page";
2
- test("get emoji page should return data", async () => {
3
- const res = await getEmojiPage("PUBLISHED", { perPage: 5 });
4
- expect(res.data).toBeDefined();
5
- expect(Array.isArray(res.data)).toBe(true);
6
- expect(res.totalNum).toBeDefined();
7
- expect(res.totalPages).toBeDefined();
8
- if (res.data.length > 0) {
9
- expect(res.data[0].id).toBeDefined();
10
- expect(res.data[0].name).toBeDefined();
11
- }
12
- });
@@ -1,5 +0,0 @@
1
- import { sendEvent } from "./event";
2
- const ACTION_ID = "test-action-id";
3
- test("send event should reject with invalid actionId", async () => {
4
- await expect(sendEvent(ACTION_ID)).rejects.toThrow();
5
- });
@@ -1,4 +0,0 @@
1
- import { getConnectCommunityCreationLikeStatus } from "./detail";
2
- test("should fail without token when getting creation like status", async () => {
3
- await expect(getConnectCommunityCreationLikeStatus("6a3fa1ed159ed52f170c34d2", "6a3fa1ed159ed52f170c34d2")).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { getConnectCommunityFollowingStatus } from "./status";
2
- test("should fail without token when getting following status", async () => {
3
- await expect(getConnectCommunityFollowingStatus("6a3fa1ed159ed52f170c34d2", "651e3f7310b0530e7f80fe7a")).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { updateGreatCreation } from "./update";
2
- test("should fail without token when updating great creation", async () => {
3
- await expect(updateGreatCreation("69740f1a61b891733d5ee2c6")).rejects.toThrow();
4
- });
@@ -1,9 +0,0 @@
1
- import { getHashTagDetail } from "./detail";
2
- test("get hash tag detail should return data", async () => {
3
- const res = await getHashTagDetail("蔚蓝档案");
4
- expect(res.identifier).toBe("蔚蓝档案");
5
- expect(res.id).toBe(29887);
6
- expect(res.status).toBe("ENABLED");
7
- expect(Array.isArray(res.managers)).toBe(true);
8
- expect(Array.isArray(res.managerIds)).toBe(true);
9
- });
@@ -1,10 +0,0 @@
1
- import { getManagedHashTags } from "./list";
2
- const STUDENT_OID = "63c2807d669fa967f17f5559";
3
- test("get managed hash tags should return data", async () => {
4
- const res = await getManagedHashTags(STUDENT_OID);
5
- expect(typeof res.totalPages).toBe("number");
6
- expect(typeof res.totalNum).toBe("number");
7
- expect(Array.isArray(res.data)).toBe(true);
8
- expect(res.page).toBeGreaterThanOrEqual(1);
9
- expect(res.perPage).toBeGreaterThanOrEqual(1);
10
- });
@@ -1,4 +0,0 @@
1
- import { getRecommendHashTags } from "./list";
2
- test("get recommend hash tags should fail without token", async () => {
3
- await expect(getRecommendHashTags()).resolves.toHaveLength(1);
4
- });
@@ -1,4 +0,0 @@
1
- import { getPlanetsOfCreation } from "./list_relation";
2
- test("get hash tag creation relation list should reject without login", async () => {
3
- await expect(getPlanetsOfCreation("6880873d2211fa69e41c9d19")).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { getMyHashTagCreations } from "./mine";
2
- test("get my hash tag creations should reject without login", async () => {
3
- await expect(getMyHashTagCreations()).rejects.toThrow("token为空");
4
- });
@@ -1,5 +0,0 @@
1
- import { getPlanetsOfCreation } from "./list_relation";
2
- const CREATION_OID = "62bd863874c3155ff7a54308";
3
- test("get hash tag creation relation list should reject without login", async () => {
4
- await expect(getPlanetsOfCreation(CREATION_OID)).rejects.toThrow();
5
- });
@@ -1,4 +0,0 @@
1
- import { getHashTagFavoriteDetail } from "./detail";
2
- test("get hash tag favorite detail should reject without login", async () => {
3
- await expect(getHashTagFavoriteDetail(29887)).rejects.toThrow("token为空");
4
- });
@@ -1,10 +0,0 @@
1
- import { healthCheck } from "./check";
2
- test("health check should return data", async () => {
3
- const res = await healthCheck();
4
- expect(Array.isArray(res)).toBe(true);
5
- if (res.length > 0) {
6
- expect(res[0].name).toBeDefined();
7
- expect(res[0].status).toBeDefined();
8
- expect(res[0].traceId).toBeDefined();
9
- }
10
- });
@@ -1,12 +0,0 @@
1
- import { getHistoricalTeamMemberPage } from "./page";
2
- test("get historical team member page returns PagesRes without token", async () => {
3
- const result = await getHistoricalTeamMemberPage("63c2807d669fa967f17f5559");
4
- expect(result).toHaveProperty("data");
5
- expect(result).toHaveProperty("page");
6
- expect(result).toHaveProperty("perPage");
7
- expect(result).toHaveProperty("totalNum");
8
- expect(result).toHaveProperty("totalPages");
9
- expect(Array.isArray(result.data)).toBe(true);
10
- expect(typeof result.totalNum).toBe("number");
11
- expect(typeof result.totalPages).toBe("number");
12
- });
@@ -1,5 +0,0 @@
1
- import { getLeafletsItemList } from "./list";
2
- test("get leaflets item list should return data", async () => {
3
- const res = await getLeafletsItemList(1);
4
- expect(Array.isArray(res)).toBe(true);
5
- });
@@ -1,6 +0,0 @@
1
- import { getLockedUserDetail } from "./detail";
2
- const ACCOUNT_OID = "63c2807d669fa967f17f5559";
3
- test("get locked user detail should return data", async () => {
4
- const res = await getLockedUserDetail(ACCOUNT_OID);
5
- expect(res.locked).toBeDefined();
6
- });
@@ -1,6 +0,0 @@
1
- import { getMutedUserDetail } from "./detail";
2
- const STUDENT_NUMBER = "test-student-number";
3
- test("get muted user detail should return null", async () => {
4
- const res = await getMutedUserDetail(STUDENT_NUMBER);
5
- expect(res).toBeNull();
6
- });
@@ -1,4 +0,0 @@
1
- import { getNotificationPage } from "./page";
2
- test("get notification page should reject without login", async () => {
3
- await expect(getNotificationPage()).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { getNotificationStats } from "./v2";
2
- test("get notification stats should reject without login", async () => {
3
- await expect(getNotificationStats()).rejects.toThrow();
4
- });
@@ -1,5 +0,0 @@
1
- import { getNotifyDeleteReasons } from "./show";
2
- test("get notify delete reasons", async () => {
3
- const result = await getNotifyDeleteReasons();
4
- expect(Array.isArray(result)).toBe(true);
5
- });
@@ -1,8 +0,0 @@
1
- import { getPostDetail } from "./detail";
2
- test("get post detail", async () => {
3
- const detail = await getPostDetail("0173b23d-139d-4c48-ad98-0aa17b5d3b60");
4
- await expect(detail.title.includes("【公告通知】")).toBeTruthy();
5
- });
6
- test("error when post detail not found", async () => {
7
- await expect(async () => await getPostDetail("foo")).rejects.toThrow("ccw axios Request failed: 没有找到文章(40010738404)");
8
- });
@@ -1,6 +0,0 @@
1
- import { getSearchHotWords } from "./hot_words";
2
- test("get search hot words", async () => {
3
- const hotWords = await getSearchHotWords(10);
4
- expect(Array.isArray(hotWords)).toBe(true);
5
- expect(hotWords).toHaveLength(10);
6
- });
@@ -1,4 +0,0 @@
1
- import { decompressShortUrl } from "./decompress";
2
- test("decompress short url should fail without token", async () => {
3
- await expect(decompressShortUrl("1Wr61k")).resolves.toEqual("https://www.ccw.site/detail/6386e11cfc1ed14684de07f8?inviteCode=yZdXmD3PvwVPA30W");
4
- });
@@ -1,4 +0,0 @@
1
- import { createShortUrl } from "./create";
2
- test("create short url", async () => {
3
- expect(await createShortUrl("https://www.ccw.site/detail/6386e11cfc1ed14684de07f8?inviteCode=yZdXmD3PvwVPA30W")).toEqual("https://ccw.site/s/1Wr61k");
4
- });
@@ -1,4 +0,0 @@
1
- import { getSmartContractAccount } from "./account";
2
- test("should fail without token when getting smart contract account", async () => {
3
- await expect(getSmartContractAccount(2022277721908162)).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { getSmartContractDetail } from "./detail";
2
- test("should fail without token when getting smart contract detail", async () => {
3
- await expect(getSmartContractDetail(2022277721908162)).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { executeSmartContract } from "./execute";
2
- test("should fail without token when executing smart contract", async () => {
3
- await expect(executeSmartContract("6a3fa1ed159ed52f170c34d2", 2022277721908162, 378074, 1)).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { getSmartContractList } from "./list";
2
- test("should fail without token when listing smart contracts", async () => {
3
- await expect(getSmartContractList("679d79862de3ec4dde55d534")).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { getStudentBlockRecordList } from "./list";
2
- test("get student block record list should reject without login", async () => {
3
- await expect(getStudentBlockRecordList()).rejects.toThrow();
4
- });
@@ -1,8 +0,0 @@
1
- import { getStudentBlockStatus } from "./status";
2
- /**
3
- * 神秘ai想要把我加进黑名单吗()
4
- */
5
- const STUDENT_OID = "63c2807d669fa967f17f5559";
6
- test("get student block status should reject without login", async () => {
7
- await expect(getStudentBlockStatus(STUDENT_OID)).rejects.toThrow("token为空");
8
- });
@@ -1,4 +0,0 @@
1
- import { getStudentBlockRecordDetail } from "./detail";
2
- test("get student block record detail should fail without token", async () => {
3
- await expect(getStudentBlockRecordDetail("63c2807d669fa967f17f5559")).rejects.toThrow("token为空");
4
- });
@@ -1,6 +0,0 @@
1
- import { getStudentFollowingPage } from "./page";
2
- test("get student following page should fail without token", async () => {
3
- const data = await getStudentFollowingPage("63c2807d669fa967f17f5559");
4
- expect(Array.isArray(data.data)).toBeTruthy();
5
- expect(data.data[0]).toBeDefined();
6
- });
@@ -1,4 +0,0 @@
1
- import { getCreatorScore } from "./creator_score";
2
- test("get creator score should reject without login", async () => {
3
- await expect(getCreatorScore()).rejects.toThrow();
4
- });
@@ -1,6 +0,0 @@
1
- import { getStudentLastActiveAt } from "./last_active_at";
2
- const STUDENT_OID = "63c2807d669fa967f17f5559";
3
- test("get student last active at", async () => {
4
- const result = await getStudentLastActiveAt(STUDENT_OID);
5
- expect(typeof result.lastActiveAt).toBe("number");
6
- });
@@ -1,7 +0,0 @@
1
- import { getStudentsList } from "./list";
2
- const STUDENT_OIDS = ["63c2807d669fa967f17f5559", "62bd863874c3155ff7a54308"];
3
- test("get students list", async () => {
4
- const result = await getStudentsList(STUDENT_OIDS);
5
- expect(Array.isArray(result)).toBe(true);
6
- expect(result[0].oid).toBe(STUDENT_OIDS[0]);
7
- });
@@ -1,4 +0,0 @@
1
- import { getStudentSessions } from "./list_sessions";
2
- test("get student sessions should reject without login", async () => {
3
- await expect(getStudentSessions()).rejects.toThrow();
4
- });
@@ -1,6 +0,0 @@
1
- import { getStudentProfile } from "./profile";
2
- const STUDENT_OID = "63c2807d669fa967f17f5559";
3
- test("get student profile", async () => {
4
- const profile = await getStudentProfile(STUDENT_OID);
5
- expect(profile.studentOid).toBe(STUDENT_OID);
6
- });
@@ -1,4 +0,0 @@
1
- import { getReputationScoreLog } from "./page";
2
- test("get reputation score log page should reject without login", async () => {
3
- await expect(getReputationScoreLog()).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { getStudentSelfDetail } from "./detail";
2
- test("get student self detail should reject without login", async () => {
3
- await expect(getStudentSelfDetail(true, true, ["name", "avatar"])).rejects.toThrow();
4
- });
@@ -1,7 +0,0 @@
1
- import { getStudentStats } from "./stats";
2
- const STUDENT_OID = "63c2807d669fa967f17f5559";
3
- test("get student stats", async () => {
4
- const stats = await getStudentStats(STUDENT_OID);
5
- expect(typeof stats.followerCount).toBe("number");
6
- expect(typeof stats.followingCount).toBe("number");
7
- });
@@ -1,4 +0,0 @@
1
- import { updateStudent } from "./update";
2
- test("update student should reject without login", async () => {
3
- await expect(updateStudent("MALE", false, "测试用户", Date.now(), "", "", "", "", "")).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { createCloudVariable } from "./create";
2
- test("create cloud variable should fail without token", async () => {
3
- await expect(createCloudVariable("63c2807d669fa967f17f5559", {})).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { deleteComment } from "./delete";
2
- test("delete comment should fail without token", async () => {
3
- await expect(deleteComment(1)).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { foldComment } from "./fold";
2
- test("fold comment should fail without token", async () => {
3
- await expect(foldComment(1)).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { resetCommentWeight } from "./reset_weight";
2
- test("reset comment weight should fail without token", async () => {
3
- await expect(resetCommentWeight(1)).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { topComment } from "./top";
2
- test("top comment should fail without token", async () => {
3
- await expect(topComment(1)).rejects.toThrow("token为空");
4
- });
@@ -1,4 +0,0 @@
1
- import { followCreator } from "./follow";
2
- test("should fail without token when following creator", async () => {
3
- await expect(followCreator("651e3f7310b0530e7f80fe7a")).rejects.toThrow();
4
- });
@@ -1,4 +0,0 @@
1
- import { getStudyCommunityMemberDetail } from "./detail";
2
- test("get study community member detail should reject without login", async () => {
3
- await expect(getStudyCommunityMemberDetail()).rejects.toThrow();
4
- });
@@ -1,5 +0,0 @@
1
- import { getSpreadFeedUnreadCount } from "./count";
2
- const STUDENT_OID = "63c2807d669fa967f17f5559";
3
- test("get spread feed unread count should reject without login", async () => {
4
- await expect(getSpreadFeedUnreadCount(STUDENT_OID)).rejects.toThrow();
5
- });