@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,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const submit_1 = require("./submit");
|
|
4
|
-
test("submit creation should fail without token", async () => {
|
|
5
|
-
await expect((0, submit_1.submitCreation)({
|
|
6
|
-
tags: [],
|
|
7
|
-
title: "test",
|
|
8
|
-
isOpenSource: false,
|
|
9
|
-
isContribute: false,
|
|
10
|
-
type: "ORIGINAL",
|
|
11
|
-
publishedFeedSwitch: false,
|
|
12
|
-
keyboardLayout: "CUSTOM",
|
|
13
|
-
hashTags: [],
|
|
14
|
-
featuredCoverLink: "https://m.ccw.site/a",
|
|
15
|
-
sourceOpenLevel: "PRIVATE",
|
|
16
|
-
requireLogin: false,
|
|
17
|
-
operatingInstruction: "",
|
|
18
|
-
description: "",
|
|
19
|
-
releaseDescription: "",
|
|
20
|
-
videoLink: null,
|
|
21
|
-
releaseTags: ["Alpha"],
|
|
22
|
-
customVersion: "",
|
|
23
|
-
repostedSource: "",
|
|
24
|
-
projectLink: "https://m.ccw.site/a",
|
|
25
|
-
remixCreationOid: null,
|
|
26
|
-
oid: "63c2807d669fa967f17f5559",
|
|
27
|
-
hasCloudVariables: false,
|
|
28
|
-
extensions: [],
|
|
29
|
-
projectSize: 0,
|
|
30
|
-
audioSize: 0,
|
|
31
|
-
costumeSize: 0,
|
|
32
|
-
coverLink: "https://m.ccw.site/a",
|
|
33
|
-
})).rejects.toThrow("token为空");
|
|
34
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get creation tags should return data", async () => {
|
|
5
|
-
const res = await (0, list_1.getCreationTags)();
|
|
6
|
-
expect(Array.isArray(res)).toBe(true);
|
|
7
|
-
res.forEach((tag) => {
|
|
8
|
-
expect(tag.id).toBeDefined();
|
|
9
|
-
expect(tag.title).toBeDefined();
|
|
10
|
-
expect(tag.code).toBeDefined();
|
|
11
|
-
});
|
|
12
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get team member list should fail without token", async () => {
|
|
5
|
-
await expect((0, list_1.getTeamMemberList)("63c2807d669fa967f17f5559", ["MEMBER"])).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const produce_ticket_1 = require("./produce_ticket");
|
|
4
|
-
test("produce team member ticket should fail without token", async () => {
|
|
5
|
-
await expect((0, produce_ticket_1.produceTeamMemberTicket)("63c2807d669fa967f17f5559")).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
test("get teamwork log page should fail without token", async () => {
|
|
5
|
-
await expect((0, page_1.getTeamworkLogPage)("63c2807d669fa967f17f5559", ["BLOCK"])).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const update_1 = require("./update");
|
|
4
|
-
test("update creation should fail without token", async () => {
|
|
5
|
-
await expect((0, update_1.updateCreation)("63c2807d669fa967f17f5559", "https://m.ccw.site/a", "LANDSCAPE", "https://m.ccw.site/a")).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get creation activity stats list returns array without token", async () => {
|
|
5
|
-
const result = await (0, list_1.getCreationActivityStatsList)("63c2807d669fa967f17f5559");
|
|
6
|
-
expect(Array.isArray(result)).toBe(true);
|
|
7
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get creation attribute detail returns null or object without token", async () => {
|
|
5
|
-
const result = await (0, detail_1.getCreationAttributeDetail)("63c2807d669fa967f17f5559");
|
|
6
|
-
expect(result === null || typeof result === "object").toBe(true);
|
|
7
|
-
if (result !== null) {
|
|
8
|
-
expect(result).toHaveProperty("ext");
|
|
9
|
-
expect(result.ext).toHaveProperty("KEYPAD_CONFIG");
|
|
10
|
-
expect(Array.isArray(result.ext.KEYPAD_CONFIG)).toBe(true);
|
|
11
|
-
}
|
|
12
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ranking_list_1 = require("./ranking_list");
|
|
4
|
-
const CREATION_OID = "62bd863874c3155ff7a54308";
|
|
5
|
-
test("get donated record ranking should return data", async () => {
|
|
6
|
-
const res = await (0, ranking_list_1.getDonatedRecordRanking)(CREATION_OID, { perPage: 5 });
|
|
7
|
-
expect(res.totalBucks).toBeDefined();
|
|
8
|
-
expect(res.rankingList.data.length).toBeGreaterThan(0);
|
|
9
|
-
res.rankingList.data.forEach((record) => {
|
|
10
|
-
expect(record.bucks).toBeDefined();
|
|
11
|
-
expect(record.donatorName).toBeDefined();
|
|
12
|
-
expect(record.donatorOid).toBeDefined();
|
|
13
|
-
});
|
|
14
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
const CREATION_OID = "62bd863874c3155ff7a54308";
|
|
5
|
-
test("get creation favorite detail should reject without login", async () => {
|
|
6
|
-
await expect((0, detail_1.getCreationFavoriteDetail)(CREATION_OID)).rejects.toThrow("ccw axios Request failed: token为空(4001082401)");
|
|
7
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get creation recommend position list returns array without token", async () => {
|
|
5
|
-
const result = await (0, list_1.getCreationRecommendPositionList)("63c2807d669fa967f17f5559");
|
|
6
|
-
expect(Array.isArray(result)).toBe(true);
|
|
7
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get code profiling detail returns null or object without token", async () => {
|
|
5
|
-
const result = await (0, detail_1.getCodeProfilingDetail)("63c2807d669fa967f17f5559", "63c2807d669fa967f17f5559");
|
|
6
|
-
expect(result === null || typeof result === "object").toBe(true);
|
|
7
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
test("get creation release page returns PagesRes without token", async () => {
|
|
5
|
-
const result = await (0, page_1.getCreationReleasePage)("69929185f8d6142487fd4b2e");
|
|
6
|
-
expect(result).toHaveProperty("data");
|
|
7
|
-
expect(result).toHaveProperty("page");
|
|
8
|
-
expect(result).toHaveProperty("perPage");
|
|
9
|
-
expect(result).toHaveProperty("totalNum");
|
|
10
|
-
expect(result).toHaveProperty("totalPages");
|
|
11
|
-
expect(Array.isArray(result.data)).toBe(true);
|
|
12
|
-
expect(typeof result.totalNum).toBe("number");
|
|
13
|
-
expect(typeof result.totalPages).toBe("number");
|
|
14
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
const CREATION_OID = "62bd863874c3155ff7a54308";
|
|
5
|
-
test("get creation screenshot page should return data", async () => {
|
|
6
|
-
const res = await (0, page_1.getCreationScreenshotPage)(CREATION_OID, { perPage: 5 });
|
|
7
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
8
|
-
if (res.data.length > 0) {
|
|
9
|
-
expect(res.data[0].creationScreenshot).toBeDefined();
|
|
10
|
-
expect(res.data[0].commenter).toBeDefined();
|
|
11
|
-
expect(res.data[0].topicId).toBeDefined();
|
|
12
|
-
}
|
|
13
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const view_1 = require("./view");
|
|
4
|
-
const CREATION_OID = "62bd863874c3155ff7a54308";
|
|
5
|
-
test("view creation stats should return boolean", async () => {
|
|
6
|
-
const res = await (0, view_1.viewCreationStats)(CREATION_OID);
|
|
7
|
-
expect(typeof res).toBe("boolean");
|
|
8
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const personal_1 = require("./personal");
|
|
4
|
-
test("get personal currency account should reject without login", async () => {
|
|
5
|
-
await expect((0, personal_1.getPersonalCurrencyAccount)()).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const all_1 = require("./all");
|
|
4
|
-
test("get all emojis should return data", async () => {
|
|
5
|
-
const res = await (0, all_1.getAllEmojis)();
|
|
6
|
-
expect(Array.isArray(res)).toBe(true);
|
|
7
|
-
if (res.length > 0) {
|
|
8
|
-
expect(res[0].id).toBeDefined();
|
|
9
|
-
expect(res[0].name).toBeDefined();
|
|
10
|
-
expect(res[0].imageUrl).toBeDefined();
|
|
11
|
-
expect(res[0].category).toBeDefined();
|
|
12
|
-
}
|
|
13
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get emoji category list should return data", async () => {
|
|
5
|
-
const res = await (0, list_1.getEmojiCategoryList)();
|
|
6
|
-
expect(Array.isArray(res)).toBe(true);
|
|
7
|
-
if (res.length > 0) {
|
|
8
|
-
expect(res[0].id).toBeDefined();
|
|
9
|
-
expect(res[0].name).toBeDefined();
|
|
10
|
-
}
|
|
11
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
test("get emoji page should return data", async () => {
|
|
5
|
-
const res = await (0, page_1.getEmojiPage)("PUBLISHED", { perPage: 5 });
|
|
6
|
-
expect(res.data).toBeDefined();
|
|
7
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
8
|
-
expect(res.totalNum).toBeDefined();
|
|
9
|
-
expect(res.totalPages).toBeDefined();
|
|
10
|
-
if (res.data.length > 0) {
|
|
11
|
-
expect(res.data[0].id).toBeDefined();
|
|
12
|
-
expect(res.data[0].name).toBeDefined();
|
|
13
|
-
}
|
|
14
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const event_1 = require("./event");
|
|
4
|
-
const ACTION_ID = "test-action-id";
|
|
5
|
-
test("send event should reject with invalid actionId", async () => {
|
|
6
|
-
await expect((0, event_1.sendEvent)(ACTION_ID)).rejects.toThrow();
|
|
7
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("should fail without token when getting creation like status", async () => {
|
|
5
|
-
await expect((0, detail_1.getConnectCommunityCreationLikeStatus)("6a3fa1ed159ed52f170c34d2", "6a3fa1ed159ed52f170c34d2")).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const status_1 = require("./status");
|
|
4
|
-
test("should fail without token when getting following status", async () => {
|
|
5
|
-
await expect((0, status_1.getConnectCommunityFollowingStatus)("6a3fa1ed159ed52f170c34d2", "651e3f7310b0530e7f80fe7a")).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const update_1 = require("./update");
|
|
4
|
-
test("should fail without token when updating great creation", async () => {
|
|
5
|
-
await expect((0, update_1.updateGreatCreation)("69740f1a61b891733d5ee2c6")).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get hash tag detail should return data", async () => {
|
|
5
|
-
const res = await (0, detail_1.getHashTagDetail)("蔚蓝档案");
|
|
6
|
-
expect(res.identifier).toBe("蔚蓝档案");
|
|
7
|
-
expect(res.id).toBe(29887);
|
|
8
|
-
expect(res.status).toBe("ENABLED");
|
|
9
|
-
expect(Array.isArray(res.managers)).toBe(true);
|
|
10
|
-
expect(Array.isArray(res.managerIds)).toBe(true);
|
|
11
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
const STUDENT_OID = "63c2807d669fa967f17f5559";
|
|
5
|
-
test("get managed hash tags should return data", async () => {
|
|
6
|
-
const res = await (0, list_1.getManagedHashTags)(STUDENT_OID);
|
|
7
|
-
expect(typeof res.totalPages).toBe("number");
|
|
8
|
-
expect(typeof res.totalNum).toBe("number");
|
|
9
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
10
|
-
expect(res.page).toBeGreaterThanOrEqual(1);
|
|
11
|
-
expect(res.perPage).toBeGreaterThanOrEqual(1);
|
|
12
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get recommend hash tags should fail without token", async () => {
|
|
5
|
-
await expect((0, list_1.getRecommendHashTags)()).resolves.toHaveLength(1);
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_relation_1 = require("./list_relation");
|
|
4
|
-
test("get hash tag creation relation list should reject without login", async () => {
|
|
5
|
-
await expect((0, list_relation_1.getPlanetsOfCreation)("6880873d2211fa69e41c9d19")).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mine_1 = require("./mine");
|
|
4
|
-
test("get my hash tag creations should reject without login", async () => {
|
|
5
|
-
await expect((0, mine_1.getMyHashTagCreations)()).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_relation_1 = require("./list_relation");
|
|
4
|
-
const CREATION_OID = "62bd863874c3155ff7a54308";
|
|
5
|
-
test("get hash tag creation relation list should reject without login", async () => {
|
|
6
|
-
await expect((0, list_relation_1.getPlanetsOfCreation)(CREATION_OID)).rejects.toThrow();
|
|
7
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get hash tag favorite detail should reject without login", async () => {
|
|
5
|
-
await expect((0, detail_1.getHashTagFavoriteDetail)(29887)).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const check_1 = require("./check");
|
|
4
|
-
test("health check should return data", async () => {
|
|
5
|
-
const res = await (0, check_1.healthCheck)();
|
|
6
|
-
expect(Array.isArray(res)).toBe(true);
|
|
7
|
-
if (res.length > 0) {
|
|
8
|
-
expect(res[0].name).toBeDefined();
|
|
9
|
-
expect(res[0].status).toBeDefined();
|
|
10
|
-
expect(res[0].traceId).toBeDefined();
|
|
11
|
-
}
|
|
12
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
test("get historical team member page returns PagesRes without token", async () => {
|
|
5
|
-
const result = await (0, page_1.getHistoricalTeamMemberPage)("63c2807d669fa967f17f5559");
|
|
6
|
-
expect(result).toHaveProperty("data");
|
|
7
|
-
expect(result).toHaveProperty("page");
|
|
8
|
-
expect(result).toHaveProperty("perPage");
|
|
9
|
-
expect(result).toHaveProperty("totalNum");
|
|
10
|
-
expect(result).toHaveProperty("totalPages");
|
|
11
|
-
expect(Array.isArray(result.data)).toBe(true);
|
|
12
|
-
expect(typeof result.totalNum).toBe("number");
|
|
13
|
-
expect(typeof result.totalPages).toBe("number");
|
|
14
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get leaflets item list should return data", async () => {
|
|
5
|
-
const res = await (0, list_1.getLeafletsItemList)(1);
|
|
6
|
-
expect(Array.isArray(res)).toBe(true);
|
|
7
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
const ACCOUNT_OID = "63c2807d669fa967f17f5559";
|
|
5
|
-
test("get locked user detail should return data", async () => {
|
|
6
|
-
const res = await (0, detail_1.getLockedUserDetail)(ACCOUNT_OID);
|
|
7
|
-
expect(res.locked).toBeDefined();
|
|
8
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
const STUDENT_NUMBER = "test-student-number";
|
|
5
|
-
test("get muted user detail should return null", async () => {
|
|
6
|
-
const res = await (0, detail_1.getMutedUserDetail)(STUDENT_NUMBER);
|
|
7
|
-
expect(res).toBeNull();
|
|
8
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const show_1 = require("./show");
|
|
4
|
-
test("get notify delete reasons", async () => {
|
|
5
|
-
const result = await (0, show_1.getNotifyDeleteReasons)();
|
|
6
|
-
expect(Array.isArray(result)).toBe(true);
|
|
7
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get post detail", async () => {
|
|
5
|
-
const detail = await (0, detail_1.getPostDetail)("0173b23d-139d-4c48-ad98-0aa17b5d3b60");
|
|
6
|
-
await expect(detail.title.includes("【公告通知】")).toBeTruthy();
|
|
7
|
-
});
|
|
8
|
-
test("error when post detail not found", async () => {
|
|
9
|
-
await expect(async () => await (0, detail_1.getPostDetail)("foo")).rejects.toThrow("ccw axios Request failed: 没有找到文章(40010738404)");
|
|
10
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const hot_words_1 = require("./hot_words");
|
|
4
|
-
test("get search hot words", async () => {
|
|
5
|
-
const hotWords = await (0, hot_words_1.getSearchHotWords)(10);
|
|
6
|
-
expect(Array.isArray(hotWords)).toBe(true);
|
|
7
|
-
expect(hotWords).toHaveLength(10);
|
|
8
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const decompress_1 = require("./decompress");
|
|
4
|
-
test("decompress short url should fail without token", async () => {
|
|
5
|
-
await expect((0, decompress_1.decompressShortUrl)("1Wr61k")).resolves.toEqual("https://www.ccw.site/detail/6386e11cfc1ed14684de07f8?inviteCode=yZdXmD3PvwVPA30W");
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const create_1 = require("./create");
|
|
4
|
-
test("create short url", async () => {
|
|
5
|
-
expect(await (0, create_1.createShortUrl)("https://www.ccw.site/detail/6386e11cfc1ed14684de07f8?inviteCode=yZdXmD3PvwVPA30W")).toEqual("https://ccw.site/s/1Wr61k");
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const account_1 = require("./account");
|
|
4
|
-
test("should fail without token when getting smart contract account", async () => {
|
|
5
|
-
await expect((0, account_1.getSmartContractAccount)(2022277721908162)).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("should fail without token when getting smart contract detail", async () => {
|
|
5
|
-
await expect((0, detail_1.getSmartContractDetail)(2022277721908162)).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const execute_1 = require("./execute");
|
|
4
|
-
test("should fail without token when executing smart contract", async () => {
|
|
5
|
-
await expect((0, execute_1.executeSmartContract)("6a3fa1ed159ed52f170c34d2", 2022277721908162, 378074, 1)).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("should fail without token when listing smart contracts", async () => {
|
|
5
|
-
await expect((0, list_1.getSmartContractList)("679d79862de3ec4dde55d534")).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
test("get student block record list should reject without login", async () => {
|
|
5
|
-
await expect((0, list_1.getStudentBlockRecordList)()).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const status_1 = require("./status");
|
|
4
|
-
/**
|
|
5
|
-
* 神秘ai想要把我加进黑名单吗()
|
|
6
|
-
*/
|
|
7
|
-
const STUDENT_OID = "63c2807d669fa967f17f5559";
|
|
8
|
-
test("get student block status should reject without login", async () => {
|
|
9
|
-
await expect((0, status_1.getStudentBlockStatus)(STUDENT_OID)).rejects.toThrow("token为空");
|
|
10
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get student block record detail should fail without token", async () => {
|
|
5
|
-
await expect((0, detail_1.getStudentBlockRecordDetail)("63c2807d669fa967f17f5559")).rejects.toThrow("token为空");
|
|
6
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
test("get student following page should fail without token", async () => {
|
|
5
|
-
const data = await (0, page_1.getStudentFollowingPage)("63c2807d669fa967f17f5559");
|
|
6
|
-
expect(Array.isArray(data.data)).toBeTruthy();
|
|
7
|
-
expect(data.data[0]).toBeDefined();
|
|
8
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const creator_score_1 = require("./creator_score");
|
|
4
|
-
test("get creator score should reject without login", async () => {
|
|
5
|
-
await expect((0, creator_score_1.getCreatorScore)()).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const last_active_at_1 = require("./last_active_at");
|
|
4
|
-
const STUDENT_OID = "63c2807d669fa967f17f5559";
|
|
5
|
-
test("get student last active at", async () => {
|
|
6
|
-
const result = await (0, last_active_at_1.getStudentLastActiveAt)(STUDENT_OID);
|
|
7
|
-
expect(typeof result.lastActiveAt).toBe("number");
|
|
8
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_1 = require("./list");
|
|
4
|
-
const STUDENT_OIDS = ["63c2807d669fa967f17f5559", "62bd863874c3155ff7a54308"];
|
|
5
|
-
test("get students list", async () => {
|
|
6
|
-
const result = await (0, list_1.getStudentsList)(STUDENT_OIDS);
|
|
7
|
-
expect(Array.isArray(result)).toBe(true);
|
|
8
|
-
expect(result[0].oid).toBe(STUDENT_OIDS[0]);
|
|
9
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const list_sessions_1 = require("./list_sessions");
|
|
4
|
-
test("get student sessions should reject without login", async () => {
|
|
5
|
-
await expect((0, list_sessions_1.getStudentSessions)()).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const profile_1 = require("./profile");
|
|
4
|
-
const STUDENT_OID = "63c2807d669fa967f17f5559";
|
|
5
|
-
test("get student profile", async () => {
|
|
6
|
-
const profile = await (0, profile_1.getStudentProfile)(STUDENT_OID);
|
|
7
|
-
expect(profile.studentOid).toBe(STUDENT_OID);
|
|
8
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const page_1 = require("./page");
|
|
4
|
-
test("get reputation score log page should reject without login", async () => {
|
|
5
|
-
await expect((0, page_1.getReputationScoreLog)()).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const detail_1 = require("./detail");
|
|
4
|
-
test("get student self detail should reject without login", async () => {
|
|
5
|
-
await expect((0, detail_1.getStudentSelfDetail)(true, true, ["name", "avatar"])).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const stats_1 = require("./stats");
|
|
4
|
-
const STUDENT_OID = "63c2807d669fa967f17f5559";
|
|
5
|
-
test("get student stats", async () => {
|
|
6
|
-
const stats = await (0, stats_1.getStudentStats)(STUDENT_OID);
|
|
7
|
-
expect(typeof stats.followerCount).toBe("number");
|
|
8
|
-
expect(typeof stats.followingCount).toBe("number");
|
|
9
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const update_1 = require("./update");
|
|
4
|
-
test("update student should reject without login", async () => {
|
|
5
|
-
await expect((0, update_1.updateStudent)("MALE", false, "测试用户", Date.now(), "", "", "", "", "")).rejects.toThrow();
|
|
6
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const create_1 = require("./create");
|
|
4
|
-
test("create cloud variable should fail without token", async () => {
|
|
5
|
-
await expect((0, create_1.createCloudVariable)("63c2807d669fa967f17f5559", {})).rejects.toThrow("token为空");
|
|
6
|
-
});
|