@ccw-api/api 0.5.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/README.md +591 -439
- 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 +34 -0
- 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/extensions/creation-like/detail.js +14 -0
- package/dist/esm/community-web/extensions/following/status.js +14 -0
- 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 +113 -99
- package/dist/esm/community-web/notification/page.js +2 -2
- package/dist/esm/community-web/smart_contract/account.js +13 -0
- package/dist/esm/community-web/smart_contract/detail.js +13 -0
- package/dist/esm/community-web/smart_contract/execute.js +17 -0
- 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/study-community/following/follow.js +13 -0
- 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/cloud_variable/detail/v2.js +16 -0
- package/dist/esm/community-web-cloud-database/index.js +3 -1
- 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 +38 -0
- 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/extensions/creation-like/detail.js +18 -0
- package/dist/node/community-web/extensions/following/status.js +18 -0
- 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/index.js +14 -0
- package/dist/node/community-web/notification/page.js +2 -2
- package/dist/node/community-web/smart_contract/account.js +17 -0
- package/dist/node/community-web/smart_contract/detail.js +17 -0
- package/dist/node/community-web/smart_contract/execute.js +21 -0
- 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/study-community/following/follow.js +17 -0
- 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/community-web-cloud-database/cloud_variable/detail/v2.js +20 -0
- package/dist/node/community-web-cloud-database/index.js +2 -0
- 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 +54 -0
- 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 +18 -0
- package/dist/types/community-web/extensions/following/status.d.ts +19 -0
- 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/index.d.ts +14 -0
- 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 +2 -2
- package/dist/types/community-web/smart_contract/account.d.ts +13 -0
- package/dist/types/community-web/smart_contract/detail.d.ts +24 -0
- package/dist/types/community-web/smart_contract/execute.d.ts +25 -0
- 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 +12 -0
- 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/detail/v2.d.ts +17 -0
- package/dist/types/community-web-cloud-database/cloud_variable/save.d.ts +1 -1
- package/dist/types/community-web-cloud-database/index.d.ts +2 -0
- 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/index.d.ts +8 -0
- 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 +4 -3
- 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/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/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 -9
- 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/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/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/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/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/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 -11
- 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/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/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/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,5 +1,5 @@
|
|
|
1
|
-
import { getUserExtensions } from "./users/{oid}/extensions";
|
|
2
|
-
import { donateExtension } from "./extensions/{eid}/donate";
|
|
1
|
+
import { getUserExtensions } from "./users/{oid}/extensions.js";
|
|
2
|
+
import { donateExtension } from "./extensions/{eid}/donate.js";
|
|
3
3
|
export const bfsWeb = {
|
|
4
4
|
donateExtension,
|
|
5
5
|
getUserExtensions,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../../../../queryPages.js";
|
|
3
|
+
export const url = "https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";
|
|
4
|
+
export var ProductCategory;
|
|
5
|
+
(function (ProductCategory) {
|
|
6
|
+
ProductCategory[ProductCategory["Merchandise"] = 7] = "Merchandise";
|
|
7
|
+
ProductCategory[ProductCategory["AvatarFrame"] = 5] = "AvatarFrame";
|
|
8
|
+
ProductCategory[ProductCategory["EMOJI"] = 10] = "EMOJI";
|
|
9
|
+
})(ProductCategory || (ProductCategory = {}));
|
|
10
|
+
/**
|
|
11
|
+
* 分页查询CCW小商店商品列表
|
|
12
|
+
* @param {ProductCategory | undefined} productCategory 商品分类(可选):5=头像框,7=周边商品,10=表情 等
|
|
13
|
+
* @param {Partial<PageArgs<ProductSortField>>} pageArgs_ 分页参数(默认 page=1, perPage=30, sortType="DESC")
|
|
14
|
+
* @returns {Promise<Res>} 商品分页结果 PagesRes<Product>
|
|
15
|
+
*/
|
|
16
|
+
export async function queryMallProducts(productCategory, pageArgs_ = {
|
|
17
|
+
sortField: "createdAt",
|
|
18
|
+
}) {
|
|
19
|
+
const pageArgs = {
|
|
20
|
+
...DEFAULT_PAGE_ARGS,
|
|
21
|
+
...pageArgs_,
|
|
22
|
+
};
|
|
23
|
+
const queryUrl = queryPage(url, pageArgs);
|
|
24
|
+
const req = {
|
|
25
|
+
page: pageArgs.page,
|
|
26
|
+
perPage: pageArgs.perPage,
|
|
27
|
+
sortType: pageArgs.sortType,
|
|
28
|
+
productCategory,
|
|
29
|
+
source: "CCW_OFFICIAL",
|
|
30
|
+
};
|
|
31
|
+
return await ccwAxios
|
|
32
|
+
.post(queryUrl, req)
|
|
33
|
+
.then((res) => res.data.body);
|
|
34
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/cloud_asset/search";
|
|
4
4
|
const dpa = {
|
|
5
5
|
...DEFAULT_PAGE_ARGS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/comment/page";
|
|
4
4
|
/**
|
|
5
5
|
* 根据topicId获取评论的回复
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/comment/page_by_topic";
|
|
4
4
|
const dpa = {
|
|
5
5
|
...DEFAULT_PAGE_ARGS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/creation/own/page";
|
|
4
4
|
/**
|
|
5
5
|
* 获取自己的作品分页列表
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/creation/page";
|
|
4
4
|
const dpa = {
|
|
5
5
|
...DEFAULT_PAGE_ARGS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/creation/page_by_student";
|
|
4
4
|
const dpa = {
|
|
5
5
|
...DEFAULT_PAGE_ARGS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/creation/recommend";
|
|
4
4
|
const dpa = {
|
|
5
5
|
...DEFAULT_PAGE_ARGS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/creation/search/page";
|
|
4
4
|
const dpa = {
|
|
5
5
|
...DEFAULT_PAGE_ARGS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/creation/teamwork_log/page";
|
|
4
4
|
/**
|
|
5
5
|
* 获取团队协作日志分页
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/creation_donated_record/ranking_list";
|
|
4
4
|
/**
|
|
5
5
|
* 获取作品投币排行
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/creation_release/page";
|
|
4
4
|
/**
|
|
5
5
|
* 获取作品发布记录分页
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/creation_screenshot/page";
|
|
4
4
|
/**
|
|
5
5
|
* 获取作品截图分页
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
+
export const url = "https://community-web.ccw.site/extensions/creation-like/detail";
|
|
3
|
+
/**
|
|
4
|
+
* [连接社区扩展] 查询用户对作品的点赞交互状态
|
|
5
|
+
* @param {MongoDBId} playingCreationOid 当前播放的作品 OID
|
|
6
|
+
* @param {MongoDBId} creationOid 目标作品 OID
|
|
7
|
+
* @returns {Promise<Res>} 点赞状态及作品信息
|
|
8
|
+
*/
|
|
9
|
+
export async function getConnectCommunityCreationLikeStatus(playingCreationOid, creationOid) {
|
|
10
|
+
const req = { playingCreationOid, creationOid };
|
|
11
|
+
return await ccwAxios
|
|
12
|
+
.post(url, req)
|
|
13
|
+
.then((res) => res.data.body);
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
+
export const url = "https://community-web.ccw.site/extensions/following/status";
|
|
3
|
+
/**
|
|
4
|
+
* [连接社区扩展] 查询是否关注了指定创作者
|
|
5
|
+
* @param {MongoDBId} playingCreationOid 当前播放的作品 OID
|
|
6
|
+
* @param {MongoDBId} userOid 目标用户 OID
|
|
7
|
+
* @returns {Promise<Res>} 关注状态及用户信息
|
|
8
|
+
*/
|
|
9
|
+
export async function getConnectCommunityFollowingStatus(playingCreationOid, userOid) {
|
|
10
|
+
const req = { playingCreationOid, userOid };
|
|
11
|
+
return await ccwAxios
|
|
12
|
+
.post(url, req)
|
|
13
|
+
.then((res) => res.data.body);
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/hash_tag/managed/list";
|
|
4
4
|
const dpa = {
|
|
5
5
|
...DEFAULT_PAGE_ARGS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/hash_tag_creation/mine";
|
|
4
4
|
const dpa = {
|
|
5
5
|
...DEFAULT_PAGE_ARGS,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/historical_team_member/page";
|
|
4
4
|
/**
|
|
5
5
|
* 获取历史团队成员分页
|
|
@@ -1,106 +1,114 @@
|
|
|
1
|
-
import { encodeShortCode } from "./api/v1/short_code/encode";
|
|
2
|
-
import { getApprovalTags } from "./approval/list";
|
|
3
|
-
import { getTime } from "./base/dateTime";
|
|
4
|
-
import { getCampaignResources } from "./campaign_resource/detail";
|
|
5
|
-
import { getCheckInRecords } from "./check_in_record/detail";
|
|
6
|
-
import { insertCheckInRecord } from "./check_in_record/insert";
|
|
7
|
-
import { getUserAssetStorageSize } from "./cloud_asset/user/privacy";
|
|
8
|
-
import { searchCloudAssets } from "./cloud_asset/search";
|
|
9
|
-
import { getCommentReplies } from "./comment/page";
|
|
10
|
-
import { getCommentsByTopic } from "./comment/page_by_topic";
|
|
11
|
-
import { getConfigDetail } from "./config/detail";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
1
|
+
import { encodeShortCode } from "./api/v1/short_code/encode.js";
|
|
2
|
+
import { getApprovalTags } from "./approval/list.js";
|
|
3
|
+
import { getTime } from "./base/dateTime.js";
|
|
4
|
+
import { getCampaignResources } from "./campaign_resource/detail.js";
|
|
5
|
+
import { getCheckInRecords } from "./check_in_record/detail.js";
|
|
6
|
+
import { insertCheckInRecord } from "./check_in_record/insert.js";
|
|
7
|
+
import { getUserAssetStorageSize } from "./cloud_asset/user/privacy.js";
|
|
8
|
+
import { searchCloudAssets } from "./cloud_asset/search.js";
|
|
9
|
+
import { getCommentReplies } from "./comment/page.js";
|
|
10
|
+
import { getCommentsByTopic } from "./comment/page_by_topic.js";
|
|
11
|
+
import { getConfigDetail } from "./config/detail.js";
|
|
12
|
+
import { queryMallProducts } from "./ccw-mall/ccw/product/fe/query.js";
|
|
13
|
+
import { getCreationDetail } from "./creation/detail.js";
|
|
14
|
+
import { getExcellentCreations } from "./creation/excellent/list.js";
|
|
15
|
+
import { getCreationIntroduction } from "./creation/introduction/detail.js";
|
|
16
|
+
import { getLikeDetail } from "./creation/like/detail.js";
|
|
17
|
+
import { getLoadingTips } from "./creation/loading/tips.js";
|
|
18
|
+
import { getRemixedCreationPage } from "./creation/page.js";
|
|
19
|
+
import { getCreationsByStudent } from "./creation/page_by_student.js";
|
|
20
|
+
import { getPotentialCreations } from "./creation/potential/list.js";
|
|
21
|
+
import { getRecommendCreations } from "./creation/recommend.js";
|
|
22
|
+
import { searchCreationsByTag } from "./creation/search/page.js";
|
|
23
|
+
import { getCreationStudentDetail } from "./creation/student/detail.js";
|
|
24
|
+
import { getCreationTags } from "./creation/tag/list.js";
|
|
25
|
+
import { createShortUrl } from "./short_url/create.js";
|
|
26
|
+
import { getPlanetsOfCreation } from "./hash_tag_creation/list_relation.js";
|
|
27
|
+
import { getMyHashTagCreations } from "./hash_tag_creation/mine.js";
|
|
28
|
+
import { getHashTagDetail } from "./hash_tag/detail.js";
|
|
29
|
+
import { getManagedHashTags } from "./hash_tag/managed/list.js";
|
|
30
|
+
import { getHashTagFavoriteDetail } from "./hash_tag_favorite/detail.js";
|
|
31
|
+
import { getDonatedRecordRanking } from "./creation_donated_record/ranking_list.js";
|
|
32
|
+
import { getCreationFavoriteDetail } from "./creation_favorite/detail.js";
|
|
33
|
+
import { getCreationRecommendPositionList } from "./creation_recommend_position/list.js";
|
|
34
|
+
import { getCreationScreenshotPage } from "./creation_screenshot/page.js";
|
|
35
|
+
import { viewCreationStats } from "./creation_stats/view.js";
|
|
36
|
+
import { getNotifyDeleteReasons } from "./notify_message/show.js";
|
|
37
|
+
import { getPostDetail } from "./post/detail.js";
|
|
38
|
+
import { getSearchHotWords } from "./search/hot_words.js";
|
|
39
|
+
import { getStudentBlockRecordDetail } from "./student/block_record/detail.js";
|
|
40
|
+
import { getStudentBlockRecordList } from "./student/block_record/list.js";
|
|
41
|
+
import { getStudentBlockStatus } from "./student/block_record/status.js";
|
|
42
|
+
import { getCreatorScore } from "./students/creator_score.js";
|
|
43
|
+
import { getStudentLastActiveAt } from "./students/last_active_at.js";
|
|
44
|
+
import { getStudentsList } from "./students/list.js";
|
|
45
|
+
import { getStudentSessions } from "./students/list_sessions.js";
|
|
46
|
+
import { getStudentProfile } from "./students/profile.js";
|
|
47
|
+
import { getReputationScoreLog } from "./students/reputation_score_log/page.js";
|
|
48
|
+
import { getStudentSelfDetail } from "./students/self/detail.js";
|
|
49
|
+
import { getStudentStats } from "./students/stats.js";
|
|
50
|
+
import { updateStudent } from "./students/update.js";
|
|
51
|
+
import { getStudyCommunityMemberDetail } from "./study-community/member/detail.js";
|
|
52
|
+
import { getSpreadFeedUnreadCount } from "./study-community/spread_feed/unread/count.js";
|
|
53
|
+
import { getSubjectAreaPage } from "./subject_area/page.js";
|
|
54
|
+
import { getSubjectAreaPageByChannel } from "./subject_area/page_by_channel.js";
|
|
55
|
+
import { acceptAward } from "./task/award.js";
|
|
56
|
+
import { getMyTasks } from "./task/mine.js";
|
|
57
|
+
import { getUserCardDetail } from "./user-card/detail.js";
|
|
58
|
+
import { getUserLabelList } from "./user_label/list.js";
|
|
59
|
+
import { getPersonalCurrencyAccount } from "./currency/account/personal.js";
|
|
60
|
+
import { getAllEmojis } from "./emoji/all.js";
|
|
61
|
+
import { getEmojiCategoryList } from "./emoji/category/list.js";
|
|
62
|
+
import { getEmojiPage } from "./emoji/page.js";
|
|
63
|
+
import { sendEvent } from "./event.js";
|
|
64
|
+
import { healthCheck } from "./health/check.js";
|
|
65
|
+
import { getLeafletsItemList } from "./leaflets/item/list.js";
|
|
66
|
+
import { getLockedUserDetail } from "./locked_user/detail.js";
|
|
67
|
+
import { getMutedUserDetail } from "./muted_user/detail.js";
|
|
68
|
+
import { getNotificationPage } from "./notification/page.js";
|
|
69
|
+
import { getNotificationStats } from "./notification/stats/v2.js";
|
|
70
|
+
import { getTypicalProjectPage } from "./typical_project/page.js";
|
|
71
|
+
import { getTypicalProjectUnreadCount } from "./typical_project/student/unread_count.js";
|
|
72
|
+
import { getOwnCreationPage } from "./creation/own/page.js";
|
|
73
|
+
import { produceTeamMemberTicket } from "./creation/team_member/produce_ticket.js";
|
|
74
|
+
import { getTeamMemberList } from "./creation/team_member/list.js";
|
|
75
|
+
import { getTeamworkLogPage } from "./creation/teamwork_log/page.js";
|
|
76
|
+
import { updateCreation } from "./creation/update.js";
|
|
77
|
+
import { submitCreation } from "./creation/submit.js";
|
|
78
|
+
import { getSplitRuleDetail } from "./creation/smart_contract/split_rule/detail.js";
|
|
79
|
+
import { createSplitRule } from "./creation/smart_contract/split_rule/create.js";
|
|
80
|
+
import { getCreationAttributeDetail } from "./creation_attribute/detail.js";
|
|
81
|
+
import { getCreationActivityStatsList } from "./creation_activity_stats/list.js";
|
|
82
|
+
import { getCreationReleasePage } from "./creation_release/page.js";
|
|
83
|
+
import { getCodeProfilingDetail } from "./creation_release/code_profiling/detail.js";
|
|
84
|
+
import { getHistoricalTeamMemberPage } from "./historical_team_member/page.js";
|
|
85
|
+
import { decompressShortUrl } from "./short_url/decompress.js";
|
|
86
|
+
import { getRecommendHashTags } from "./hash_tag/recommend/list.js";
|
|
87
|
+
import { getCCWMainStatus } from "./ccw-main/status.js";
|
|
88
|
+
import { createCloudVariable } from "./study-community/cloud_variable/create.js";
|
|
89
|
+
import { topComment } from "./study-community/comment/top.js";
|
|
90
|
+
import { foldComment } from "./study-community/comment/fold.js";
|
|
91
|
+
import { resetCommentWeight } from "./study-community/comment/reset_weight.js";
|
|
92
|
+
import { deleteComment } from "./study-community/comment/delete.js";
|
|
93
|
+
import { createComment } from "./comment/create.js";
|
|
94
|
+
import { likeComment } from "./comment/like_record/create.js";
|
|
95
|
+
import { getStudentFollowingPage } from "./student/following/page.js";
|
|
96
|
+
import { donateTrade } from "./study-trade/trade/donate.js";
|
|
97
|
+
import { getUserProductsPage } from "./user_package/user_product.js";
|
|
98
|
+
import { setUserProductStatus } from "./user_package/status.js";
|
|
99
|
+
import { updateGreatCreation } from "./great_creation/update.js";
|
|
100
|
+
import { executeSmartContract } from "./smart_contract/execute.js";
|
|
101
|
+
import { getSmartContractAccount } from "./smart_contract/account.js";
|
|
102
|
+
import { getSmartContractDetail } from "./smart_contract/detail.js";
|
|
103
|
+
import { getSmartContractList } from "./smart_contract/list.js";
|
|
104
|
+
import { getConnectCommunityFollowingStatus } from "./extensions/following/status.js";
|
|
105
|
+
import { getConnectCommunityCreationLikeStatus } from "./extensions/creation-like/detail.js";
|
|
106
|
+
import { followCreator } from "./study-community/following/follow.js";
|
|
100
107
|
export const communityWeb = {
|
|
101
108
|
acceptAward,
|
|
102
109
|
donateTrade,
|
|
103
110
|
encodeShortCode,
|
|
111
|
+
executeSmartContract,
|
|
104
112
|
createCloudVariable,
|
|
105
113
|
createComment,
|
|
106
114
|
createShortUrl,
|
|
@@ -108,6 +116,7 @@ export const communityWeb = {
|
|
|
108
116
|
decompressShortUrl,
|
|
109
117
|
deleteComment,
|
|
110
118
|
foldComment,
|
|
119
|
+
followCreator,
|
|
111
120
|
getApprovalTags,
|
|
112
121
|
getCampaignResources,
|
|
113
122
|
getCcwMainStatus: getCCWMainStatus,
|
|
@@ -121,6 +130,7 @@ export const communityWeb = {
|
|
|
121
130
|
getCreationDetail,
|
|
122
131
|
getCreationFavoriteDetail,
|
|
123
132
|
getCreationIntroduction,
|
|
133
|
+
getConnectCommunityCreationLikeStatus,
|
|
124
134
|
getCreationRecommendPositionList,
|
|
125
135
|
getCreationReleasePage,
|
|
126
136
|
getCreationScreenshotPage,
|
|
@@ -129,6 +139,7 @@ export const communityWeb = {
|
|
|
129
139
|
getCreatorScore,
|
|
130
140
|
getDonatedRecordRanking,
|
|
131
141
|
getExcellentCreations,
|
|
142
|
+
getConnectCommunityFollowingStatus,
|
|
132
143
|
getEmojiCategoryList,
|
|
133
144
|
getEmojiPage,
|
|
134
145
|
getAllEmojis,
|
|
@@ -157,6 +168,8 @@ export const communityWeb = {
|
|
|
157
168
|
getRemixedCreationPage,
|
|
158
169
|
getReputationScoreLogPage: getReputationScoreLog,
|
|
159
170
|
getSearchHotWords,
|
|
171
|
+
getSmartContractAccount,
|
|
172
|
+
getSmartContractDetail,
|
|
160
173
|
getSmartContractList,
|
|
161
174
|
getSplitRuleDetail,
|
|
162
175
|
getSpreadFeedUnreadCount,
|
|
@@ -182,6 +195,7 @@ export const communityWeb = {
|
|
|
182
195
|
getUserCardDetail,
|
|
183
196
|
getUserLabelList,
|
|
184
197
|
getUserProductsPage,
|
|
198
|
+
queryMallProducts,
|
|
185
199
|
getCreationsByStudent,
|
|
186
200
|
insertCheckInRecord,
|
|
187
201
|
likeComment,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { queryPage, DEFAULT_PAGE_ARGS } from "
|
|
3
|
-
import { NotificationGroup } from "
|
|
2
|
+
import { queryPage, DEFAULT_PAGE_ARGS } from "../../queryPages.js";
|
|
3
|
+
import { NotificationGroup } from "../../types/notification.js";
|
|
4
4
|
export const url = "https://community-web.ccw.site/notification/page";
|
|
5
5
|
/**
|
|
6
6
|
* 分页获取通知列表
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
+
export const url = "https://community-web.ccw.site/smart_contract/account";
|
|
3
|
+
/**
|
|
4
|
+
* 查询智能合约账户余额
|
|
5
|
+
* @param {number} id 合约 ID
|
|
6
|
+
* @returns {Promise<Res>} 合约账户余额
|
|
7
|
+
*/
|
|
8
|
+
export async function getSmartContractAccount(id) {
|
|
9
|
+
const req = { id };
|
|
10
|
+
return await ccwAxios
|
|
11
|
+
.post(url, req)
|
|
12
|
+
.then((res) => res.data.body);
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
+
export const url = "https://community-web.ccw.site/smart_contract/detail";
|
|
3
|
+
/**
|
|
4
|
+
* 获取智能合约详情
|
|
5
|
+
* @param {number} id 合约 ID
|
|
6
|
+
* @returns {Promise<Res>} 合约详情
|
|
7
|
+
*/
|
|
8
|
+
export async function getSmartContractDetail(id) {
|
|
9
|
+
const req = { id };
|
|
10
|
+
return await ccwAxios
|
|
11
|
+
.post(url, req)
|
|
12
|
+
.then((res) => res.data.body);
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
+
export const url = "https://community-web.ccw.site/smart_contract/execute";
|
|
3
|
+
/**
|
|
4
|
+
* 执行智能合约(投币/领取奖励)
|
|
5
|
+
* @param {MongoDBId} bizId 业务 ID(如作品 OID)
|
|
6
|
+
* @param {SmartContractBizType} bizType 业务类型,CREATION
|
|
7
|
+
* @param {number} id 合约 ID
|
|
8
|
+
* @param {number} ruleId 规则 ID
|
|
9
|
+
* @param {number} bucks 金币数量
|
|
10
|
+
* @returns {Promise<Res>} 执行结果
|
|
11
|
+
*/
|
|
12
|
+
export async function executeSmartContract(bizId, id, ruleId, bucks, bizType = "CREATION") {
|
|
13
|
+
const req = { bizId, bizType, id, ruleId, params: { bucks } };
|
|
14
|
+
return await ccwAxios
|
|
15
|
+
.post(url, req)
|
|
16
|
+
.then((res) => res.data.body);
|
|
17
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/student/block_record/list";
|
|
4
4
|
/**
|
|
5
5
|
* 获取学生封禁记录列表
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/student/following/page";
|
|
4
4
|
/**
|
|
5
5
|
* 获取学生关注列表分页
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/students/list_sessions";
|
|
4
4
|
/**
|
|
5
5
|
* 获取学生登录会话列表
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/students/reputation_score_log/page";
|
|
4
4
|
/**
|
|
5
5
|
* 获取学生信誉分记录
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
+
export const url = "https://community-web.ccw.site/study-community/following/follow";
|
|
3
|
+
/**
|
|
4
|
+
* 关注创作者
|
|
5
|
+
* @param {MongoDBId} followingOid 要关注的用户 OID
|
|
6
|
+
* @returns {Promise<Res>} "FOLLOWED" 表示关注成功
|
|
7
|
+
*/
|
|
8
|
+
export async function followCreator(followingOid) {
|
|
9
|
+
const req = { followingOid };
|
|
10
|
+
return await ccwAxios
|
|
11
|
+
.post(url, req)
|
|
12
|
+
.then((res) => res.data.body);
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/subject_area/page";
|
|
4
4
|
/**
|
|
5
5
|
* 分页获取主页推荐列表
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/subject_area/page_by_channel";
|
|
4
4
|
/**
|
|
5
5
|
* 按频道分页获取分区列表(用于上方nav bar的"热门分类" "联机" "联名挑战赛")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { DEFAULT_PAGE_ARGS, queryPage } from "
|
|
2
|
+
import { DEFAULT_PAGE_ARGS, queryPage } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/typical_project/page";
|
|
4
4
|
/**
|
|
5
5
|
* 获取应用课工程文件项目分页列表 (https://www.ccw.site/workspace/application)
|