@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.
- package/dist/esm/bfs-web/index.js +2 -2
- package/dist/esm/bfs-web/users/{oid}/extensions.js +1 -1
- package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.js +1 -1
- package/dist/esm/community-web/cloud_asset/search.js +1 -1
- package/dist/esm/community-web/comment/page.js +1 -1
- package/dist/esm/community-web/comment/page_by_topic.js +1 -1
- package/dist/esm/community-web/creation/own/page.js +1 -1
- package/dist/esm/community-web/creation/page.js +1 -1
- package/dist/esm/community-web/creation/page_by_student.js +1 -1
- package/dist/esm/community-web/creation/recommend.js +1 -1
- package/dist/esm/community-web/creation/search/page.js +1 -1
- package/dist/esm/community-web/creation/teamwork_log/page.js +1 -1
- package/dist/esm/community-web/creation_donated_record/ranking_list.js +1 -1
- package/dist/esm/community-web/creation_release/page.js +1 -1
- package/dist/esm/community-web/creation_screenshot/page.js +1 -1
- package/dist/esm/community-web/emoji/page.js +1 -1
- package/dist/esm/community-web/hash_tag/managed/list.js +1 -1
- package/dist/esm/community-web/hash_tag_creation/mine.js +1 -1
- package/dist/esm/community-web/historical_team_member/page.js +1 -1
- package/dist/esm/community-web/index.js +106 -106
- package/dist/esm/community-web/notification/page.js +2 -2
- package/dist/esm/community-web/student/block_record/list.js +1 -1
- package/dist/esm/community-web/student/following/page.js +1 -1
- package/dist/esm/community-web/students/list_sessions.js +1 -1
- package/dist/esm/community-web/students/reputation_score_log/page.js +1 -1
- package/dist/esm/community-web/subject_area/page.js +1 -1
- package/dist/esm/community-web/subject_area/page_by_channel.js +1 -1
- package/dist/esm/community-web/typical_project/page.js +1 -1
- package/dist/esm/community-web/user_package/user_product.js +1 -1
- package/dist/esm/community-web-cloud-database/index.js +2 -2
- package/dist/esm/gandi-main/bulletins/page.js +1 -1
- package/dist/esm/gandi-main/index.js +4 -4
- package/dist/esm/index.js +6 -6
- package/dist/esm/op-parent-api/index.js +2 -2
- package/dist/esm/sso/index.js +5 -5
- package/dist/esm/types/account.js +1 -0
- package/dist/esm/types/api.js +1 -0
- package/dist/esm/types/approval.js +1 -0
- package/dist/esm/types/comment.js +1 -0
- package/dist/esm/types/creation.js +1 -0
- package/dist/esm/types/extensions.js +1 -0
- package/dist/esm/types/hashTag.js +1 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/pages.js +1 -0
- package/dist/esm/types/session.js +1 -0
- package/dist/esm/types/teamwork.js +1 -0
- package/dist/esm/types/userData.js +1 -0
- package/dist/node/bfs-web/users/{oid}/extensions.js +1 -1
- package/dist/node/community-web/ccw-mall/ccw/product/fe/query.js +1 -1
- package/dist/node/community-web/cloud_asset/search.js +1 -1
- package/dist/node/community-web/comment/page.js +1 -1
- package/dist/node/community-web/comment/page_by_topic.js +1 -1
- package/dist/node/community-web/creation/own/page.js +1 -1
- package/dist/node/community-web/creation/page.js +1 -1
- package/dist/node/community-web/creation/page_by_student.js +1 -1
- package/dist/node/community-web/creation/recommend.js +1 -1
- package/dist/node/community-web/creation/search/page.js +1 -1
- package/dist/node/community-web/creation/teamwork_log/page.js +1 -1
- package/dist/node/community-web/creation_donated_record/ranking_list.js +1 -1
- package/dist/node/community-web/creation_release/page.js +1 -1
- package/dist/node/community-web/creation_screenshot/page.js +1 -1
- package/dist/node/community-web/emoji/page.js +1 -1
- package/dist/node/community-web/hash_tag/managed/list.js +1 -1
- package/dist/node/community-web/hash_tag_creation/mine.js +1 -1
- package/dist/node/community-web/historical_team_member/page.js +1 -1
- package/dist/node/community-web/notification/page.js +2 -2
- package/dist/node/community-web/student/block_record/list.js +1 -1
- package/dist/node/community-web/student/following/page.js +1 -1
- package/dist/node/community-web/students/list_sessions.js +1 -1
- package/dist/node/community-web/students/reputation_score_log/page.js +1 -1
- package/dist/node/community-web/subject_area/page.js +1 -1
- package/dist/node/community-web/subject_area/page_by_channel.js +1 -1
- package/dist/node/community-web/typical_project/page.js +1 -1
- package/dist/node/community-web/user_package/user_product.js +1 -1
- package/dist/node/gandi-main/bulletins/page.js +1 -1
- package/dist/node/types/account.js +2 -0
- package/dist/node/types/api.js +2 -0
- package/dist/node/types/approval.js +2 -0
- package/dist/node/types/comment.js +2 -0
- package/dist/node/types/creation.js +2 -0
- package/dist/node/types/extensions.js +2 -0
- package/dist/node/types/hashTag.js +2 -0
- package/dist/node/types/index.js +2 -0
- package/dist/node/types/pages.js +2 -0
- package/dist/node/types/session.js +2 -0
- package/dist/node/types/teamwork.js +2 -0
- package/dist/node/types/userData.js +2 -0
- package/dist/types/bfs-web/users/{oid}/extensions.d.ts +3 -3
- package/dist/types/community-web/api/v1/short_code/encode.d.ts +2 -2
- package/dist/types/community-web/approval/list.d.ts +3 -3
- package/dist/types/community-web/ccw-mall/ccw/product/fe/query.d.ts +2 -2
- package/dist/types/community-web/cloud_asset/search.d.ts +2 -2
- package/dist/types/community-web/comment/create.d.ts +3 -3
- package/dist/types/community-web/comment/page.d.ts +2 -2
- package/dist/types/community-web/comment/page_by_topic.d.ts +2 -2
- package/dist/types/community-web/creation/detail.d.ts +2 -2
- package/dist/types/community-web/creation/excellent/list.d.ts +1 -1
- package/dist/types/community-web/creation/introduction/detail.d.ts +2 -2
- package/dist/types/community-web/creation/like/detail.d.ts +2 -2
- package/dist/types/community-web/creation/loading/tips.d.ts +1 -1
- package/dist/types/community-web/creation/own/page.d.ts +2 -2
- package/dist/types/community-web/creation/page.d.ts +3 -3
- package/dist/types/community-web/creation/page_by_student.d.ts +3 -3
- package/dist/types/community-web/creation/potential/list.d.ts +1 -1
- package/dist/types/community-web/creation/recommend.d.ts +2 -2
- package/dist/types/community-web/creation/search/page.d.ts +2 -2
- package/dist/types/community-web/creation/smart_contract/split_rule/create.d.ts +1 -1
- package/dist/types/community-web/creation/smart_contract/split_rule/detail.d.ts +2 -2
- package/dist/types/community-web/creation/student/detail.d.ts +2 -2
- package/dist/types/community-web/creation/submit.d.ts +2 -2
- package/dist/types/community-web/creation/tag/list.d.ts +1 -1
- package/dist/types/community-web/creation/team_member/list.d.ts +2 -2
- package/dist/types/community-web/creation/team_member/produce_ticket.d.ts +1 -1
- package/dist/types/community-web/creation/teamwork_log/page.d.ts +2 -2
- package/dist/types/community-web/creation/update.d.ts +2 -2
- package/dist/types/community-web/creation_activity_stats/list.d.ts +1 -1
- package/dist/types/community-web/creation_attribute/detail.d.ts +1 -1
- package/dist/types/community-web/creation_donated_record/ranking_list.d.ts +3 -3
- package/dist/types/community-web/creation_favorite/detail.d.ts +2 -2
- package/dist/types/community-web/creation_recommend_position/list.d.ts +1 -1
- package/dist/types/community-web/creation_release/code_profiling/detail.d.ts +1 -1
- package/dist/types/community-web/creation_release/page.d.ts +3 -3
- package/dist/types/community-web/creation_screenshot/page.d.ts +3 -3
- package/dist/types/community-web/creation_stats/view.d.ts +1 -1
- package/dist/types/community-web/emoji/all.d.ts +1 -1
- package/dist/types/community-web/emoji/category/list.d.ts +1 -1
- package/dist/types/community-web/emoji/page.d.ts +1 -1
- package/dist/types/community-web/extensions/creation-like/detail.d.ts +1 -1
- package/dist/types/community-web/extensions/following/status.d.ts +1 -1
- package/dist/types/community-web/great_creation/update.d.ts +1 -1
- package/dist/types/community-web/hash_tag/detail.d.ts +1 -1
- package/dist/types/community-web/hash_tag/managed/list.d.ts +3 -3
- package/dist/types/community-web/hash_tag/recommend/list.d.ts +1 -1
- package/dist/types/community-web/hash_tag_creation/list_relation.d.ts +2 -2
- package/dist/types/community-web/hash_tag_creation/mine.d.ts +2 -2
- package/dist/types/community-web/hash_tag_favorite/detail.d.ts +1 -1
- package/dist/types/community-web/historical_team_member/page.d.ts +2 -2
- package/dist/types/community-web/leaflets/item/list.d.ts +1 -1
- package/dist/types/community-web/locked_user/detail.d.ts +2 -2
- package/dist/types/community-web/notification/page.d.ts +2 -2
- package/dist/types/community-web/notification/stats/v2.d.ts +1 -1
- package/dist/types/community-web/post/detail.d.ts +1 -1
- package/dist/types/community-web/smart_contract/detail.d.ts +1 -1
- package/dist/types/community-web/smart_contract/execute.d.ts +1 -1
- package/dist/types/community-web/smart_contract/list.d.ts +1 -1
- package/dist/types/community-web/student/block_record/detail.d.ts +2 -2
- package/dist/types/community-web/student/block_record/list.d.ts +2 -2
- package/dist/types/community-web/student/block_record/status.d.ts +1 -1
- package/dist/types/community-web/student/following/page.d.ts +3 -3
- package/dist/types/community-web/students/creator_score.d.ts +1 -1
- package/dist/types/community-web/students/last_active_at.d.ts +1 -1
- package/dist/types/community-web/students/list.d.ts +2 -2
- package/dist/types/community-web/students/list_sessions.d.ts +2 -2
- package/dist/types/community-web/students/profile.d.ts +2 -2
- package/dist/types/community-web/students/reputation_score_log/page.d.ts +2 -2
- package/dist/types/community-web/students/self/detail.d.ts +1 -1
- package/dist/types/community-web/students/stats.d.ts +2 -2
- package/dist/types/community-web/students/update.d.ts +1 -1
- package/dist/types/community-web/study-community/cloud_variable/create.d.ts +1 -1
- package/dist/types/community-web/study-community/following/follow.d.ts +1 -1
- package/dist/types/community-web/study-community/member/detail.d.ts +2 -2
- package/dist/types/community-web/study-community/spread_feed/unread/count.d.ts +1 -1
- package/dist/types/community-web/study-trade/trade/donate.d.ts +1 -1
- package/dist/types/community-web/subject_area/page.d.ts +2 -2
- package/dist/types/community-web/subject_area/page_by_channel.d.ts +2 -2
- package/dist/types/community-web/task/award.d.ts +1 -1
- package/dist/types/community-web/task/mine.d.ts +1 -1
- package/dist/types/community-web/typical_project/page.d.ts +2 -2
- package/dist/types/community-web/typical_project/student/unread_count.d.ts +1 -1
- package/dist/types/community-web/user-card/detail.d.ts +2 -2
- package/dist/types/community-web/user_label/list.d.ts +1 -1
- package/dist/types/community-web/user_package/user_product.d.ts +3 -3
- package/dist/types/community-web-cloud-database/cloud_variable/save.d.ts +1 -1
- package/dist/types/gandi-main/bulletins/page.d.ts +1 -1
- package/dist/types/gandi-main/creation/leaderboards/{oid}/records.d.ts +2 -2
- package/dist/types/queryPages.d.ts +1 -1
- package/dist/types/sso/web/auth/login-by-password.d.ts +2 -2
- package/dist/types/sso/web/auth/v3/login/by-phone.d.ts +2 -2
- package/dist/types/types/account.d.ts +1 -0
- package/dist/types/types/api.d.ts +27 -0
- package/dist/types/types/approval.d.ts +18 -0
- package/dist/types/types/comment.d.ts +60 -0
- package/dist/types/types/creation.d.ts +171 -0
- package/dist/types/types/extensions.d.ts +60 -0
- package/dist/types/types/hashTag.d.ts +71 -0
- package/dist/types/types/index.d.ts +11 -0
- package/dist/types/types/notification.d.ts +3 -3
- package/dist/types/types/pages.d.ts +37 -0
- package/dist/types/types/session.d.ts +38 -0
- package/dist/types/types/teamwork.d.ts +15 -0
- package/dist/types/types/userData.d.ts +363 -0
- package/package.json +3 -2
- package/dist/esm/bfs-web/extensions/{eid}/donate.test.js +0 -4
- package/dist/esm/bfs-web/users/{oid}/extensions.test.js +0 -4
- package/dist/esm/community-web/api/v1/short_code/shortcode.test.js +0 -5
- package/dist/esm/community-web/approval/approval.test.js +0 -5
- package/dist/esm/community-web/base/dateTime.test.js +0 -6
- package/dist/esm/community-web/campaign_resource/detail.test.js +0 -10
- package/dist/esm/community-web/ccw-main/status.test.js +0 -4
- package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.test.js +0 -8
- package/dist/esm/community-web/check_in_record/check_in_record.test.js +0 -8
- package/dist/esm/community-web/cloud_asset/search.test.js +0 -6
- package/dist/esm/community-web/cloud_asset/user/privacy.test.js +0 -4
- package/dist/esm/community-web/comment/create.test.js +0 -13
- package/dist/esm/community-web/comment/like_record/create.test.js +0 -4
- package/dist/esm/community-web/comment/page.test.js +0 -15
- package/dist/esm/community-web/comment/page_by_topic.test.js +0 -13
- package/dist/esm/community-web/comment/reply.test.js +0 -4
- package/dist/esm/community-web/config/detail.test.js +0 -9
- package/dist/esm/community-web/creation/detail.test.js +0 -18
- package/dist/esm/community-web/creation/excellent/list.test.js +0 -10
- package/dist/esm/community-web/creation/introduction/detail.test.js +0 -17
- package/dist/esm/community-web/creation/like/detail.test.js +0 -19
- package/dist/esm/community-web/creation/loading/tips.test.js +0 -8
- package/dist/esm/community-web/creation/own/page.test.js +0 -4
- package/dist/esm/community-web/creation/page.test.js +0 -16
- package/dist/esm/community-web/creation/page_by_student.test.js +0 -20
- package/dist/esm/community-web/creation/potential/list.test.js +0 -10
- package/dist/esm/community-web/creation/recommend.test.js +0 -10
- package/dist/esm/community-web/creation/search/page.test.js +0 -5
- package/dist/esm/community-web/creation/smart_contract/split_rule/create.test.js +0 -4
- package/dist/esm/community-web/creation/smart_contract/split_rule/detail.test.js +0 -4
- package/dist/esm/community-web/creation/student/detail.test.js +0 -17
- package/dist/esm/community-web/creation/submit.test.js +0 -32
- package/dist/esm/community-web/creation/tag/list.test.js +0 -10
- package/dist/esm/community-web/creation/team_member/list.test.js +0 -4
- package/dist/esm/community-web/creation/team_member/produce_ticket.test.js +0 -4
- package/dist/esm/community-web/creation/teamwork_log/page.test.js +0 -4
- package/dist/esm/community-web/creation/update.test.js +0 -4
- package/dist/esm/community-web/creation_activity_stats/list.test.js +0 -5
- package/dist/esm/community-web/creation_attribute/detail.test.js +0 -10
- package/dist/esm/community-web/creation_donated_record/ranking_list.test.js +0 -12
- package/dist/esm/community-web/creation_favorite/detail.test.js +0 -5
- package/dist/esm/community-web/creation_recommend_position/list.test.js +0 -5
- package/dist/esm/community-web/creation_release/code_profiling/detail.test.js +0 -5
- package/dist/esm/community-web/creation_release/page.test.js +0 -12
- package/dist/esm/community-web/creation_screenshot/page.test.js +0 -11
- package/dist/esm/community-web/creation_stats/view.test.js +0 -6
- package/dist/esm/community-web/currency/account/personal.test.js +0 -4
- package/dist/esm/community-web/emoji/all.test.js +0 -11
- package/dist/esm/community-web/emoji/category/list.test.js +0 -9
- package/dist/esm/community-web/emoji/page.test.js +0 -12
- package/dist/esm/community-web/event.test.js +0 -5
- package/dist/esm/community-web/extensions/creation-like/detail.test.js +0 -4
- package/dist/esm/community-web/extensions/following/status.test.js +0 -4
- package/dist/esm/community-web/great_creation/update.test.js +0 -4
- package/dist/esm/community-web/hash_tag/hash_tag_detail.test.js +0 -9
- package/dist/esm/community-web/hash_tag/managed/managed_list.test.js +0 -10
- package/dist/esm/community-web/hash_tag/recommend/list.test.js +0 -4
- package/dist/esm/community-web/hash_tag_creation/hash_tag_creation_list_relation.test.js +0 -4
- package/dist/esm/community-web/hash_tag_creation/hash_tag_creation_mine.test.js +0 -4
- package/dist/esm/community-web/hash_tag_creation/list_relation.test.js +0 -5
- package/dist/esm/community-web/hash_tag_favorite/hash_tag_favorite_detail.test.js +0 -4
- package/dist/esm/community-web/health/check.test.js +0 -10
- package/dist/esm/community-web/historical_team_member/page.test.js +0 -12
- package/dist/esm/community-web/leaflets/item/list.test.js +0 -5
- package/dist/esm/community-web/locked_user/detail.test.js +0 -6
- package/dist/esm/community-web/muted_user/detail.test.js +0 -6
- package/dist/esm/community-web/notification/page.test.js +0 -4
- package/dist/esm/community-web/notification/stats/v2.test.js +0 -4
- package/dist/esm/community-web/notify_message/notify_message.test.js +0 -5
- package/dist/esm/community-web/post/post.test.js +0 -8
- package/dist/esm/community-web/search/search.test.js +0 -6
- package/dist/esm/community-web/short_url/decompress.test.js +0 -4
- package/dist/esm/community-web/short_url/shortUrl.test.js +0 -4
- package/dist/esm/community-web/smart_contract/account.test.js +0 -4
- package/dist/esm/community-web/smart_contract/detail.test.js +0 -4
- package/dist/esm/community-web/smart_contract/execute.test.js +0 -4
- package/dist/esm/community-web/smart_contract/list.test.js +0 -4
- package/dist/esm/community-web/student/block_record/block_record_list.test.js +0 -4
- package/dist/esm/community-web/student/block_record/block_record_status.test.js +0 -8
- package/dist/esm/community-web/student/block_record/detail.test.js +0 -4
- package/dist/esm/community-web/student/following/page.test.js +0 -6
- package/dist/esm/community-web/students/creator_score.test.js +0 -4
- package/dist/esm/community-web/students/last_active_at.test.js +0 -6
- package/dist/esm/community-web/students/list.test.js +0 -7
- package/dist/esm/community-web/students/list_sessions.test.js +0 -4
- package/dist/esm/community-web/students/profile.test.js +0 -6
- package/dist/esm/community-web/students/reputation_score_log/reputation_score_log.test.js +0 -4
- package/dist/esm/community-web/students/self/self_detail.test.js +0 -4
- package/dist/esm/community-web/students/stats.test.js +0 -7
- package/dist/esm/community-web/students/update.test.js +0 -4
- package/dist/esm/community-web/study-community/cloud_variable/create.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/delete.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/fold.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/reset_weight.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/top.test.js +0 -4
- package/dist/esm/community-web/study-community/following/follow.test.js +0 -4
- package/dist/esm/community-web/study-community/member/member_detail.test.js +0 -4
- package/dist/esm/community-web/study-community/spread_feed/unread/spread_feed_unread_count.test.js +0 -5
- package/dist/esm/community-web/study-trade/trade/donate.test.js +0 -4
- package/dist/esm/community-web/subject_area/subject_area_page.test.js +0 -5
- package/dist/esm/community-web/subject_area/subject_area_page_by_channel.test.js +0 -5
- package/dist/esm/community-web/task/task_award.test.js +0 -5
- package/dist/esm/community-web/task/task_mine.test.js +0 -4
- package/dist/esm/community-web/typical_project/page.test.js +0 -12
- package/dist/esm/community-web/typical_project/student/unread_count.test.js +0 -4
- package/dist/esm/community-web/user-card/user_card_detail.test.js +0 -6
- package/dist/esm/community-web/user_label/user_label_list.test.js +0 -5
- package/dist/esm/community-web/user_package/status.test.js +0 -4
- package/dist/esm/community-web/user_package/user_product.test.js +0 -9
- package/dist/esm/community-web-cloud-database/cloud_variable/detail/v2.test.js +0 -4
- package/dist/esm/community-web-cloud-database/cloud_variable/save.test.js +0 -13
- package/dist/esm/coverage.test.js +0 -5
- package/dist/esm/gandi-main/bulletins/detail.test.js +0 -17
- package/dist/esm/gandi-main/bulletins/page.test.js +0 -6
- package/dist/esm/gandi-main/creation/leaderboards/{oid}/records.test.js +0 -11
- package/dist/esm/gandi-main/timestamp/current.test.js +0 -6
- package/dist/esm/op-parent-api/captcha/check.test.js +0 -12
- package/dist/esm/op-parent-api/captcha/create.test.js +0 -13
- package/dist/esm/sso/web/auth/assistant/captcha/v2/create.test.js +0 -8
- package/dist/esm/sso/web/auth/auth.test.js +0 -15
- package/dist/esm/sso/web/auth/v3/login/by-phone.test.js +0 -7
- package/dist/node/bfs-web/extensions/{eid}/donate.test.js +0 -6
- package/dist/node/bfs-web/users/{oid}/extensions.test.js +0 -6
- package/dist/node/community-web/api/v1/short_code/shortcode.test.js +0 -7
- package/dist/node/community-web/approval/approval.test.js +0 -7
- package/dist/node/community-web/base/dateTime.test.js +0 -8
- package/dist/node/community-web/campaign_resource/detail.test.js +0 -12
- package/dist/node/community-web/ccw-main/status.test.js +0 -6
- package/dist/node/community-web/ccw-mall/ccw/product/fe/query.test.js +0 -10
- package/dist/node/community-web/check_in_record/check_in_record.test.js +0 -10
- package/dist/node/community-web/cloud_asset/search.test.js +0 -8
- package/dist/node/community-web/cloud_asset/user/privacy.test.js +0 -6
- package/dist/node/community-web/comment/create.test.js +0 -15
- package/dist/node/community-web/comment/like_record/create.test.js +0 -6
- package/dist/node/community-web/comment/page.test.js +0 -17
- package/dist/node/community-web/comment/page_by_topic.test.js +0 -15
- package/dist/node/community-web/comment/reply.test.js +0 -6
- package/dist/node/community-web/config/detail.test.js +0 -11
- package/dist/node/community-web/creation/detail.test.js +0 -20
- package/dist/node/community-web/creation/excellent/list.test.js +0 -12
- package/dist/node/community-web/creation/introduction/detail.test.js +0 -19
- package/dist/node/community-web/creation/like/detail.test.js +0 -21
- package/dist/node/community-web/creation/loading/tips.test.js +0 -10
- package/dist/node/community-web/creation/own/page.test.js +0 -6
- package/dist/node/community-web/creation/page.test.js +0 -18
- package/dist/node/community-web/creation/page_by_student.test.js +0 -22
- package/dist/node/community-web/creation/potential/list.test.js +0 -12
- package/dist/node/community-web/creation/recommend.test.js +0 -12
- package/dist/node/community-web/creation/search/page.test.js +0 -7
- package/dist/node/community-web/creation/smart_contract/split_rule/create.test.js +0 -6
- package/dist/node/community-web/creation/smart_contract/split_rule/detail.test.js +0 -6
- package/dist/node/community-web/creation/student/detail.test.js +0 -19
- package/dist/node/community-web/creation/submit.test.js +0 -34
- package/dist/node/community-web/creation/tag/list.test.js +0 -12
- package/dist/node/community-web/creation/team_member/list.test.js +0 -6
- package/dist/node/community-web/creation/team_member/produce_ticket.test.js +0 -6
- package/dist/node/community-web/creation/teamwork_log/page.test.js +0 -6
- package/dist/node/community-web/creation/update.test.js +0 -6
- package/dist/node/community-web/creation_activity_stats/list.test.js +0 -7
- package/dist/node/community-web/creation_attribute/detail.test.js +0 -12
- package/dist/node/community-web/creation_donated_record/ranking_list.test.js +0 -14
- package/dist/node/community-web/creation_favorite/detail.test.js +0 -7
- package/dist/node/community-web/creation_recommend_position/list.test.js +0 -7
- package/dist/node/community-web/creation_release/code_profiling/detail.test.js +0 -7
- package/dist/node/community-web/creation_release/page.test.js +0 -14
- package/dist/node/community-web/creation_screenshot/page.test.js +0 -13
- package/dist/node/community-web/creation_stats/view.test.js +0 -8
- package/dist/node/community-web/currency/account/personal.test.js +0 -6
- package/dist/node/community-web/emoji/all.test.js +0 -13
- package/dist/node/community-web/emoji/category/list.test.js +0 -11
- package/dist/node/community-web/emoji/page.test.js +0 -14
- package/dist/node/community-web/event.test.js +0 -7
- package/dist/node/community-web/extensions/creation-like/detail.test.js +0 -6
- package/dist/node/community-web/extensions/following/status.test.js +0 -6
- package/dist/node/community-web/great_creation/update.test.js +0 -6
- package/dist/node/community-web/hash_tag/hash_tag_detail.test.js +0 -11
- package/dist/node/community-web/hash_tag/managed/managed_list.test.js +0 -12
- package/dist/node/community-web/hash_tag/recommend/list.test.js +0 -6
- package/dist/node/community-web/hash_tag_creation/hash_tag_creation_list_relation.test.js +0 -6
- package/dist/node/community-web/hash_tag_creation/hash_tag_creation_mine.test.js +0 -6
- package/dist/node/community-web/hash_tag_creation/list_relation.test.js +0 -7
- package/dist/node/community-web/hash_tag_favorite/hash_tag_favorite_detail.test.js +0 -6
- package/dist/node/community-web/health/check.test.js +0 -12
- package/dist/node/community-web/historical_team_member/page.test.js +0 -14
- package/dist/node/community-web/leaflets/item/list.test.js +0 -7
- package/dist/node/community-web/locked_user/detail.test.js +0 -8
- package/dist/node/community-web/muted_user/detail.test.js +0 -8
- package/dist/node/community-web/notification/page.test.js +0 -6
- package/dist/node/community-web/notification/stats/v2.test.js +0 -6
- package/dist/node/community-web/notify_message/notify_message.test.js +0 -7
- package/dist/node/community-web/post/post.test.js +0 -10
- package/dist/node/community-web/search/search.test.js +0 -8
- package/dist/node/community-web/short_url/decompress.test.js +0 -6
- package/dist/node/community-web/short_url/shortUrl.test.js +0 -6
- package/dist/node/community-web/smart_contract/account.test.js +0 -6
- package/dist/node/community-web/smart_contract/detail.test.js +0 -6
- package/dist/node/community-web/smart_contract/execute.test.js +0 -6
- package/dist/node/community-web/smart_contract/list.test.js +0 -6
- package/dist/node/community-web/student/block_record/block_record_list.test.js +0 -6
- package/dist/node/community-web/student/block_record/block_record_status.test.js +0 -10
- package/dist/node/community-web/student/block_record/detail.test.js +0 -6
- package/dist/node/community-web/student/following/page.test.js +0 -8
- package/dist/node/community-web/students/creator_score.test.js +0 -6
- package/dist/node/community-web/students/last_active_at.test.js +0 -8
- package/dist/node/community-web/students/list.test.js +0 -9
- package/dist/node/community-web/students/list_sessions.test.js +0 -6
- package/dist/node/community-web/students/profile.test.js +0 -8
- package/dist/node/community-web/students/reputation_score_log/reputation_score_log.test.js +0 -6
- package/dist/node/community-web/students/self/self_detail.test.js +0 -6
- package/dist/node/community-web/students/stats.test.js +0 -9
- package/dist/node/community-web/students/update.test.js +0 -6
- package/dist/node/community-web/study-community/cloud_variable/create.test.js +0 -6
- package/dist/node/community-web/study-community/comment/delete.test.js +0 -6
- package/dist/node/community-web/study-community/comment/fold.test.js +0 -6
- package/dist/node/community-web/study-community/comment/reset_weight.test.js +0 -6
- package/dist/node/community-web/study-community/comment/top.test.js +0 -6
- package/dist/node/community-web/study-community/following/follow.test.js +0 -6
- package/dist/node/community-web/study-community/member/member_detail.test.js +0 -6
- package/dist/node/community-web/study-community/spread_feed/unread/spread_feed_unread_count.test.js +0 -7
- package/dist/node/community-web/study-trade/trade/donate.test.js +0 -6
- package/dist/node/community-web/subject_area/subject_area_page.test.js +0 -7
- package/dist/node/community-web/subject_area/subject_area_page_by_channel.test.js +0 -7
- package/dist/node/community-web/task/task_award.test.js +0 -7
- package/dist/node/community-web/task/task_mine.test.js +0 -6
- package/dist/node/community-web/typical_project/page.test.js +0 -14
- package/dist/node/community-web/typical_project/student/unread_count.test.js +0 -6
- package/dist/node/community-web/user-card/user_card_detail.test.js +0 -8
- package/dist/node/community-web/user_label/user_label_list.test.js +0 -7
- package/dist/node/community-web/user_package/status.test.js +0 -6
- package/dist/node/community-web/user_package/user_product.test.js +0 -11
- package/dist/node/community-web-cloud-database/cloud_variable/detail/v2.test.js +0 -6
- package/dist/node/community-web-cloud-database/cloud_variable/save.test.js +0 -15
- package/dist/node/coverage.test.js +0 -7
- package/dist/node/gandi-main/bulletins/detail.test.js +0 -19
- package/dist/node/gandi-main/bulletins/page.test.js +0 -8
- package/dist/node/gandi-main/creation/leaderboards/{oid}/records.test.js +0 -13
- package/dist/node/gandi-main/timestamp/current.test.js +0 -8
- package/dist/node/op-parent-api/captcha/check.test.js +0 -14
- package/dist/node/op-parent-api/captcha/create.test.js +0 -15
- package/dist/node/sso/web/auth/assistant/captcha/v2/create.test.js +0 -10
- package/dist/node/sso/web/auth/auth.test.js +0 -17
- package/dist/node/sso/web/auth/v3/login/by-phone.test.js +0 -9
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { getTypicalProjectPage } from "./page";
|
|
2
|
-
test("get typical project page returns PagesRes without token", async () => {
|
|
3
|
-
const result = await getTypicalProjectPage("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,9 +0,0 @@
|
|
|
1
|
-
import { getUserProductsPage, ProductCategory } from "./user_product";
|
|
2
|
-
test("should fail without token for avatar frame products", async () => {
|
|
3
|
-
await expect(getUserProductsPage(ProductCategory.AVATAR_FRAME, {
|
|
4
|
-
page: 1,
|
|
5
|
-
perPage: 8,
|
|
6
|
-
sortType: "DESC",
|
|
7
|
-
sortField: "",
|
|
8
|
-
})).rejects.toThrow();
|
|
9
|
-
});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { getCloudVariableDetailV2 } from "./v2";
|
|
2
|
-
test("get cloud variable detail v2 should reject with invalid params", async () => {
|
|
3
|
-
await expect(getCloudVariableDetailV2("6a3fa1ed159ed52f170c34d2", "6a3fa1ed159ed52f170c34d2-u", "244373873", ["4576y!!2"])).rejects.toThrow();
|
|
4
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { saveProjectCloudVariable, saveUserCloudVariable } from "./save";
|
|
2
|
-
test("save project cloud variable should return saved value", async () => {
|
|
3
|
-
const testValue = "2025-07-05T17:40:53.057+0800";
|
|
4
|
-
const res = await saveProjectCloudVariable("68dddc63d28b025cb53fae25", "test", testValue);
|
|
5
|
-
expect(res).toBeDefined();
|
|
6
|
-
expect(res.v).toBe(testValue);
|
|
7
|
-
});
|
|
8
|
-
test("save user cloud variable should ok", async () => {
|
|
9
|
-
const res = await saveUserCloudVariable("68dddc63d28b025cb53fae25", 0, {
|
|
10
|
-
key2: "0",
|
|
11
|
-
});
|
|
12
|
-
expect(res.key2).toEqual("0");
|
|
13
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getBulletinsPage } from "./page";
|
|
2
|
-
import { getBulletinDetail } from "./detail";
|
|
3
|
-
let sampleBulletinId;
|
|
4
|
-
beforeAll(async () => {
|
|
5
|
-
const bulletins = await getBulletinsPage();
|
|
6
|
-
if (bulletins.data.length > 0) {
|
|
7
|
-
sampleBulletinId = bulletins.data[0].id;
|
|
8
|
-
}
|
|
9
|
-
}, 30000);
|
|
10
|
-
test("get bulletin detail should return data", async () => {
|
|
11
|
-
if (!sampleBulletinId) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const res = await getBulletinDetail(sampleBulletinId);
|
|
15
|
-
expect(res.id).toBe(sampleBulletinId);
|
|
16
|
-
expect(res.title).toBeDefined();
|
|
17
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { getLeaderboardRecords, submitLeaderboardRecord } from "./records";
|
|
2
|
-
test("submit leaderboard record should fail without token", async () => {
|
|
3
|
-
await expect(submitLeaderboardRecord("65a2314daa96bd09b5beae5a", 0, "65a2314daa96bd09b5beae5a", "")).rejects.toThrow();
|
|
4
|
-
});
|
|
5
|
-
test("get leaderboard records should return data", async () => {
|
|
6
|
-
const res = await getLeaderboardRecords("65a2314daa96bd09b5beae5a");
|
|
7
|
-
expect(res.oid).toBe("65a2314daa96bd09b5beae5a");
|
|
8
|
-
expect(res.title).toBeDefined();
|
|
9
|
-
expect(res.leaderboardRecordTotalNum).toBeDefined();
|
|
10
|
-
expect(Array.isArray(res.leaderboardRecords)).toBe(true);
|
|
11
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { checkCaptcha } from "./check";
|
|
2
|
-
import { createCaptcha } from "./create";
|
|
3
|
-
test("checkCaptcha returns structured result with token and coords without auth", async () => {
|
|
4
|
-
const created = await createCaptcha("BLOCK_PUZZLE");
|
|
5
|
-
const res = await checkCaptcha(created.token, 0, -1);
|
|
6
|
-
expect(res).toHaveProperty("captchaExpired");
|
|
7
|
-
expect(res).toHaveProperty("errorMsg");
|
|
8
|
-
expect(res).toHaveProperty("success");
|
|
9
|
-
expect(res.captchaExpired).toBeFalsy();
|
|
10
|
-
expect(res.success).toBeFalsy();
|
|
11
|
-
expect(res.errorMsg).toEqual("验证失败");
|
|
12
|
-
}, 30000);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createCaptcha } from "./create";
|
|
2
|
-
test("create BLOCK_PUZZLE captcha returns bgImg, jigsawImg and token without token", async () => {
|
|
3
|
-
const res = await createCaptcha("BLOCK_PUZZLE");
|
|
4
|
-
expect(res).toHaveProperty("data");
|
|
5
|
-
expect(res.data).toHaveProperty("bgImg");
|
|
6
|
-
expect(res.data).toHaveProperty("jigsawImg");
|
|
7
|
-
expect(res).toHaveProperty("token");
|
|
8
|
-
expect(typeof res.token).toBe("string");
|
|
9
|
-
expect(typeof res.data.bgImg).toBe("string");
|
|
10
|
-
expect(typeof res.data.jigsawImg).toBe("string");
|
|
11
|
-
expect(res.data.bgImg.startsWith("data:image/png;base64,")).toBeTruthy();
|
|
12
|
-
expect(res.data.jigsawImg.startsWith("data:image/png;base64,")).toBeTruthy();
|
|
13
|
-
}, 30000);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createSmsCaptcha } from "./create";
|
|
2
|
-
test("createSmsCaptchaV2 returns batchId and sendResult fields without token", async () => {
|
|
3
|
-
const res = await createSmsCaptcha("12345671145", "loginbyPhone", "86", "ccw_sms");
|
|
4
|
-
expect(res).toHaveProperty("batchId");
|
|
5
|
-
expect(res).toHaveProperty("sendResult");
|
|
6
|
-
expect(res.batchId).toBeNull();
|
|
7
|
-
expect(res.sendResult).toBe(2);
|
|
8
|
-
}, 30000);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { loginByPassword } from "./login-by-password";
|
|
2
|
-
import { logout } from "./logout";
|
|
3
|
-
import { logoutBySession } from "./logout_by_session";
|
|
4
|
-
test("expect wrong password to be error", async () => {
|
|
5
|
-
await expect(async () => await loginByPassword("abc", "foo", {
|
|
6
|
-
device: "test",
|
|
7
|
-
browser: "test",
|
|
8
|
-
})).rejects.toThrow("ccw axios Request failed: 账号或密码错误(4001092401)");
|
|
9
|
-
});
|
|
10
|
-
test("expect logout to be error when no token", async () => {
|
|
11
|
-
await expect(logout).rejects.toThrow("ccw axios Request failed: token不能为空(4001092X01)");
|
|
12
|
-
});
|
|
13
|
-
test("expect logout-by-session to be error when not logged in", async () => {
|
|
14
|
-
await expect(async () => await logoutBySession(1145)).rejects.toThrow("ccw axios Request failed: 用户未登录(4001092401)");
|
|
15
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const donate_1 = require("./donate");
|
|
4
|
-
test("donate extension should fail without token", async () => {
|
|
5
|
-
await expect((0, donate_1.donateExtension)("spineAnimation", 1)).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const extensions_1 = require("./extensions");
|
|
4
|
-
test("get user extensions should fail without token", async () => {
|
|
5
|
-
await expect((0, extensions_1.getUserExtensions)("63c2807d669fa967f17f5559")).resolves.toHaveProperty("data");
|
|
6
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const encode_1 = require("./encode");
|
|
4
|
-
test("test shortcode", async () => {
|
|
5
|
-
const res = await (0, encode_1.encodeShortCode)("63c2807d669fa967f17f5559", "https://m.ccw.site/user_projects_assets/244373873/3fc7886d05aed9f369d2c0bb2d677fc0.jpeg", "孟夫子驾到", "6386e11cfc1ed14684de07f8");
|
|
6
|
-
expect(res.code).toHaveLength("yZdXmD3PvwVPA30W".length);
|
|
7
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("test approval list", async () => {
|
|
5
|
-
const tags = await (0, list_1.getApprovalTags)("63c2807d669fa967f17f5559");
|
|
6
|
-
expect(tags.find((v) => v.approvalTagId == 235).approvalTagName).toEqual("Gandi 开发者");
|
|
7
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const dateTime_1 = require("../base/dateTime");
|
|
4
|
-
test("get time should return a number", async () => {
|
|
5
|
-
const time = await (0, dateTime_1.getTime)();
|
|
6
|
-
expect(typeof time).toBe("number");
|
|
7
|
-
expect(time).toBeGreaterThan(0);
|
|
8
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get campaign resources with tags keyword", async () => {
|
|
5
|
-
const res = await (0, detail_1.getCampaignResources)("tags");
|
|
6
|
-
expect(res.keyword).toBe("tags");
|
|
7
|
-
expect(res.resourceType).toBe("SUBJECT_AREA");
|
|
8
|
-
});
|
|
9
|
-
test("get campaign resources with mmo keyword", async () => {
|
|
10
|
-
const res = await (0, detail_1.getCampaignResources)("mmo");
|
|
11
|
-
expect(res.keyword).toBe("mmo");
|
|
12
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const status_1 = require("./status");
|
|
4
|
-
test("get ccw main status should fail without token", async () => {
|
|
5
|
-
await expect((0, status_1.getCCWMainStatus)()).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const query_1 = require("./query");
|
|
4
|
-
test("query mall product page should fail without token", async () => {
|
|
5
|
-
await expect((0, query_1.queryMallProducts)(7, {
|
|
6
|
-
page: 1,
|
|
7
|
-
perPage: 30,
|
|
8
|
-
sortType: "DESC",
|
|
9
|
-
})).rejects.toThrow();
|
|
10
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
const insert_1 = require("./insert");
|
|
5
|
-
test("get check in records should fail without channel", async () => {
|
|
6
|
-
await expect(detail_1.getCheckInRecords).rejects.toThrow("ccw axios Request failed: token为空(4001082401)");
|
|
7
|
-
});
|
|
8
|
-
test("insert check in record should fail without token", async () => {
|
|
9
|
-
await expect(insert_1.insertCheckInRecord).rejects.toThrow("ccw axios Request failed: token为空(4001082401)");
|
|
10
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const search_1 = require("./search");
|
|
4
|
-
test("search cloud assets should fail without token", async () => {
|
|
5
|
-
const userId = "63c2807d669fa967f17f5559";
|
|
6
|
-
const path = "/23azZqHBnqj/";
|
|
7
|
-
await expect((0, search_1.searchCloudAssets)(userId, path)).rejects.toThrow("ccw axios Request failed: token为空(4001082401)");
|
|
8
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const privacy_1 = require("./privacy");
|
|
4
|
-
test("get user asset storage size should fail without token", async () => {
|
|
5
|
-
await expect((0, privacy_1.getUserAssetStorageSize)()).rejects.toThrow("ccw axios Request failed: token为空");
|
|
6
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const create_1 = require("./create");
|
|
4
|
-
const detail_1 = require("../post/detail");
|
|
5
|
-
let samplePost;
|
|
6
|
-
beforeAll(async () => {
|
|
7
|
-
samplePost = await (0, detail_1.getPostDetail)("0173b23d-139d-4c48-ad98-0aa17b5d3b60");
|
|
8
|
-
}, 30000);
|
|
9
|
-
test("create comment should fail without token", async () => {
|
|
10
|
-
await expect((0, create_1.createComment)("test", {
|
|
11
|
-
outline: "a",
|
|
12
|
-
subjectOid: samplePost.oid,
|
|
13
|
-
subjectType: "POST",
|
|
14
|
-
}, "COMMENT")).rejects.toThrow("token为空");
|
|
15
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
test("get comment replies should return data", async () => {
|
|
5
|
-
const topicId = 819086;
|
|
6
|
-
const parentId = 9611280;
|
|
7
|
-
const statuses = ["PUBLISHED", "FOLDED"];
|
|
8
|
-
const res = await (0, page_1.getCommentReplies)(topicId, parentId, statuses);
|
|
9
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
10
|
-
res.data.forEach((comment) => {
|
|
11
|
-
expect(comment.id).toBeDefined();
|
|
12
|
-
expect(comment.topicId).toBe(topicId);
|
|
13
|
-
expect(comment.parentId).toBe(parentId);
|
|
14
|
-
expect(comment.content).toBeDefined();
|
|
15
|
-
expect(["PUBLISHED", "FOLDED"]).toContain(comment.status);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_by_topic_1 = require("./page_by_topic");
|
|
4
|
-
test("get comments by topic should return data", async () => {
|
|
5
|
-
const subjectOid = "6a3c73a3b6c84711978d92f2";
|
|
6
|
-
const subjectType = "POST";
|
|
7
|
-
const sectionType = "COMMENT";
|
|
8
|
-
const res = await (0, page_by_topic_1.getCommentsByTopic)(subjectOid, subjectType, sectionType);
|
|
9
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
10
|
-
res.data.forEach((comment) => {
|
|
11
|
-
expect(comment.id).toBeDefined();
|
|
12
|
-
expect(comment.content).toBeDefined();
|
|
13
|
-
expect(["PUBLISHED", "FOLDED"]).toContain(comment.status);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const reply_1 = require("./reply");
|
|
4
|
-
test("reply comment should fail without token", async () => {
|
|
5
|
-
await expect((0, reply_1.replyComment)("test reply", 1)).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get config detail returns value without token", async () => {
|
|
5
|
-
const result = await (0, detail_1.getConfigDetail)("foo");
|
|
6
|
-
expect(result === null ||
|
|
7
|
-
typeof result === "string" ||
|
|
8
|
-
typeof result === "number" ||
|
|
9
|
-
typeof result === "boolean" ||
|
|
10
|
-
typeof result === "object").toBe(true);
|
|
11
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
const list_1 = require("./excellent/list");
|
|
5
|
-
let sampleCreationOid;
|
|
6
|
-
beforeAll(async () => {
|
|
7
|
-
const creations = await (0, list_1.getExcellentCreations)(1);
|
|
8
|
-
if (creations.length > 0) {
|
|
9
|
-
sampleCreationOid = creations[0].oid;
|
|
10
|
-
}
|
|
11
|
-
}, 30000);
|
|
12
|
-
test("get creation detail should return data", async () => {
|
|
13
|
-
if (!sampleCreationOid) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const res = await (0, detail_1.getCreationDetail)(sampleCreationOid, "");
|
|
17
|
-
expect(res.oid).toBe(sampleCreationOid);
|
|
18
|
-
expect(res.title).toBeDefined();
|
|
19
|
-
expect(res.student).toBeDefined();
|
|
20
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get excellent creations should return data", async () => {
|
|
5
|
-
const res = await (0, list_1.getExcellentCreations)(15);
|
|
6
|
-
expect(Array.isArray(res)).toBe(true);
|
|
7
|
-
res.forEach((c) => {
|
|
8
|
-
expect(c.oid).toBeDefined();
|
|
9
|
-
expect(c.title).toBeDefined();
|
|
10
|
-
});
|
|
11
|
-
expect(res).toHaveLength(15);
|
|
12
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
const list_1 = require("../excellent/list");
|
|
5
|
-
let sampleStudentOid;
|
|
6
|
-
beforeAll(async () => {
|
|
7
|
-
const creations = await (0, list_1.getExcellentCreations)(1);
|
|
8
|
-
if (creations.length > 0) {
|
|
9
|
-
sampleStudentOid = creations[0].studentOid;
|
|
10
|
-
}
|
|
11
|
-
}, 30000);
|
|
12
|
-
test("get creation introduction should return data", async () => {
|
|
13
|
-
if (!sampleStudentOid) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const res = await (0, detail_1.getCreationIntroduction)(sampleStudentOid);
|
|
17
|
-
expect(res.oid).toBeDefined();
|
|
18
|
-
expect(res.title).toBeDefined();
|
|
19
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
const list_1 = require("../excellent/list");
|
|
5
|
-
let sampleCreationOid;
|
|
6
|
-
beforeAll(async () => {
|
|
7
|
-
const creations = await (0, list_1.getExcellentCreations)(1);
|
|
8
|
-
if (creations.length > 0) {
|
|
9
|
-
sampleCreationOid = creations[0].oid;
|
|
10
|
-
}
|
|
11
|
-
}, 30000);
|
|
12
|
-
test("get like detail should return data", async () => {
|
|
13
|
-
if (!sampleCreationOid) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const res = await (0, detail_1.getLikeDetail)(sampleCreationOid);
|
|
17
|
-
if (res) {
|
|
18
|
-
expect(res.creationOid).toBe(sampleCreationOid);
|
|
19
|
-
expect(res.action).toBeDefined();
|
|
20
|
-
}
|
|
21
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tips_1 = require("./tips");
|
|
4
|
-
test("get loading tips should return data", async () => {
|
|
5
|
-
const res = await (0, tips_1.getLoadingTips)();
|
|
6
|
-
expect(res["小八"]).toBeDefined();
|
|
7
|
-
expect(res["胖达"]).toBeDefined();
|
|
8
|
-
expect(res["妮可"]).toBeDefined();
|
|
9
|
-
expect(res["孙小弟"]).toBeDefined();
|
|
10
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
const list_1 = require("./excellent/list");
|
|
5
|
-
let sampleCreationOid;
|
|
6
|
-
beforeAll(async () => {
|
|
7
|
-
const creations = await (0, list_1.getExcellentCreations)(1);
|
|
8
|
-
if (creations.length > 0) {
|
|
9
|
-
sampleCreationOid = creations[0].oid;
|
|
10
|
-
}
|
|
11
|
-
}, 30000);
|
|
12
|
-
test("get creation page should return data", async () => {
|
|
13
|
-
if (!sampleCreationOid) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const res = await (0, page_1.getRemixedCreationPage)([sampleCreationOid]);
|
|
17
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
18
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_by_student_1 = require("./page_by_student");
|
|
4
|
-
const list_1 = require("./excellent/list");
|
|
5
|
-
let sampleStudentOid;
|
|
6
|
-
beforeAll(async () => {
|
|
7
|
-
const creations = await (0, list_1.getExcellentCreations)(1);
|
|
8
|
-
if (creations.length > 0) {
|
|
9
|
-
sampleStudentOid = creations[0].studentOid;
|
|
10
|
-
}
|
|
11
|
-
}, 30000);
|
|
12
|
-
test("get creations by student should return data", async () => {
|
|
13
|
-
if (!sampleStudentOid) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const res = await (0, page_by_student_1.getCreationsByStudent)([sampleStudentOid]);
|
|
17
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
18
|
-
res.data.forEach((c) => {
|
|
19
|
-
expect(c.oid).toBeDefined();
|
|
20
|
-
expect(c.studentOid).toBeDefined();
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get potential creations should return data", async () => {
|
|
5
|
-
const res = await (0, list_1.getPotentialCreations)(10);
|
|
6
|
-
expect(Array.isArray(res)).toBe(true);
|
|
7
|
-
res.forEach((c) => {
|
|
8
|
-
expect(c.oid).toBeDefined();
|
|
9
|
-
expect(c.title).toBeDefined();
|
|
10
|
-
});
|
|
11
|
-
expect(res).toHaveLength(10);
|
|
12
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const recommend_1 = require("./recommend");
|
|
4
|
-
test("get recommend creations should return data", async () => {
|
|
5
|
-
const res = await (0, recommend_1.getRecommendCreations)(5);
|
|
6
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
7
|
-
res.data.forEach((c) => {
|
|
8
|
-
expect(c.oid).toBeDefined();
|
|
9
|
-
expect(c.title).toBeDefined();
|
|
10
|
-
});
|
|
11
|
-
expect(res.data.length).toBeGreaterThanOrEqual(0);
|
|
12
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
test("search creations by tag should return data", async () => {
|
|
5
|
-
const res = await (0, page_1.searchCreationsByTag)({ tag: "史莱姆之森" });
|
|
6
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
7
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const create_1 = require("./create");
|
|
4
|
-
test("create split rule should fail without token", async () => {
|
|
5
|
-
await expect((0, create_1.createSplitRule)("63c2807d669fa967f17f5559", [])).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get split rule detail should fail without token", async () => {
|
|
5
|
-
await expect((0, detail_1.getSplitRuleDetail)("63c2807d669fa967f17f5559")).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
const list_1 = require("../excellent/list");
|
|
5
|
-
let sampleStudentOid;
|
|
6
|
-
beforeAll(async () => {
|
|
7
|
-
const creations = await (0, list_1.getExcellentCreations)(1);
|
|
8
|
-
if (creations.length > 0) {
|
|
9
|
-
sampleStudentOid = creations[0].studentOid;
|
|
10
|
-
}
|
|
11
|
-
}, 30000);
|
|
12
|
-
test("get creation student detail should return data", async () => {
|
|
13
|
-
if (!sampleStudentOid) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const res = await (0, detail_1.getCreationStudentDetail)(sampleStudentOid);
|
|
17
|
-
expect(res.oid).toBe(sampleStudentOid);
|
|
18
|
-
expect(res.name).toBeDefined();
|
|
19
|
-
});
|