@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
1
|
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
-
import { queryPage, DEFAULT_PAGE_ARGS } from "
|
|
2
|
+
import { queryPage, DEFAULT_PAGE_ARGS } from "../../queryPages.js";
|
|
3
3
|
export const url = "https://community-web.ccw.site/user_package/user_product";
|
|
4
4
|
export var ProductCategory;
|
|
5
5
|
(function (ProductCategory) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ccwAxios } from "@ccw-api/axios";
|
|
2
|
+
export const url = "https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";
|
|
3
|
+
/**
|
|
4
|
+
* 查询云变量详情 V2
|
|
5
|
+
* @param {string} accessKey 访问密钥(如作品 OID)
|
|
6
|
+
* @param {string} primaryKey 主键(如 `${projectId}-u`)
|
|
7
|
+
* @param {string} secondaryKey 次级键
|
|
8
|
+
* @param {string[]} filterKeys 过滤的变量名列表
|
|
9
|
+
* @returns {Promise<Res>} 云变量详情
|
|
10
|
+
*/
|
|
11
|
+
export async function getCloudVariableDetailV2(accessKey, primaryKey, secondaryKey, filterKeys) {
|
|
12
|
+
const req = { accessKey, primaryKey, secondaryKey, filterKeys };
|
|
13
|
+
return await ccwAxios
|
|
14
|
+
.post(url, req)
|
|
15
|
+
.then((res) => res.data.body);
|
|
16
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { saveProjectCloudVariable, saveUserCloudVariable, } from "./cloud_variable/save";
|
|
1
|
+
import { saveProjectCloudVariable, saveUserCloudVariable, } from "./cloud_variable/save.js";
|
|
2
|
+
import { getCloudVariableDetailV2 } from "./cloud_variable/detail/v2.js";
|
|
2
3
|
export const communityWebCloudDatabase = {
|
|
3
4
|
saveProjectCloudVariable,
|
|
4
5
|
saveUserCloudVariable,
|
|
6
|
+
getCloudVariableDetailV2,
|
|
5
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getCurrentTimestamp } from "./timestamp/current";
|
|
2
|
-
import { getBulletinsPage } from "./bulletins/page";
|
|
3
|
-
import { getBulletinDetail } from "./bulletins/detail";
|
|
4
|
-
import { getLeaderboardRecords, submitLeaderboardRecord, } from "./creation/leaderboards/{oid}/records";
|
|
1
|
+
import { getCurrentTimestamp } from "./timestamp/current.js";
|
|
2
|
+
import { getBulletinsPage } from "./bulletins/page.js";
|
|
3
|
+
import { getBulletinDetail } from "./bulletins/detail.js";
|
|
4
|
+
import { getLeaderboardRecords, submitLeaderboardRecord, } from "./creation/leaderboards/{oid}/records.js";
|
|
5
5
|
export const gandiMain = {
|
|
6
6
|
getCurrentTimestamp,
|
|
7
7
|
getBulletinsPage,
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { sso } from "./sso/index";
|
|
2
|
-
import { communityWeb } from "./community-web";
|
|
3
|
-
import { gandiMain } from "./gandi-main";
|
|
4
|
-
import { bfsWeb } from "./bfs-web";
|
|
5
|
-
import { communityWebCloudDatabase } from "./community-web-cloud-database";
|
|
6
|
-
import { opParentApi } from "./op-parent-api";
|
|
1
|
+
import { sso } from "./sso/index.js";
|
|
2
|
+
import { communityWeb } from "./community-web/index.js";
|
|
3
|
+
import { gandiMain } from "./gandi-main/index.js";
|
|
4
|
+
import { bfsWeb } from "./bfs-web/index.js";
|
|
5
|
+
import { communityWebCloudDatabase } from "./community-web-cloud-database/index.js";
|
|
6
|
+
import { opParentApi } from "./op-parent-api/index.js";
|
|
7
7
|
export { sso, communityWeb, gandiMain, bfsWeb, communityWebCloudDatabase, opParentApi, };
|
|
8
8
|
export { setToken } from "@ccw-api/axios";
|
|
9
9
|
export default {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createCaptcha } from "./captcha/create";
|
|
2
|
-
import { checkCaptcha } from "./captcha/check";
|
|
1
|
+
import { createCaptcha } from "./captcha/create.js";
|
|
2
|
+
import { checkCaptcha } from "./captcha/check.js";
|
|
3
3
|
export const opParentApi = {
|
|
4
4
|
createCaptcha,
|
|
5
5
|
checkCaptcha,
|
package/dist/esm/sso/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { loginByPassword } from "./web/auth/login-by-password";
|
|
2
|
-
import { logout } from "./web/auth/logout";
|
|
3
|
-
import { logoutBySession } from "./web/auth/logout_by_session";
|
|
4
|
-
import { createSmsCaptcha } from "./web/auth/assistant/captcha/v2/create";
|
|
5
|
-
import { loginByPhone } from "./web/auth/v3/login/by-phone";
|
|
1
|
+
import { loginByPassword } from "./web/auth/login-by-password.js";
|
|
2
|
+
import { logout } from "./web/auth/logout.js";
|
|
3
|
+
import { logoutBySession } from "./web/auth/logout_by_session.js";
|
|
4
|
+
import { createSmsCaptcha } from "./web/auth/assistant/captcha/v2/create.js";
|
|
5
|
+
import { loginByPhone } from "./web/auth/v3/login/by-phone.js";
|
|
6
6
|
export const sso = {
|
|
7
7
|
loginByPassword,
|
|
8
8
|
logout,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getUserExtensions = getUserExtensions;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../../queryPages");
|
|
7
7
|
exports.url = "https://bfs-web.ccw.site/users";
|
|
8
8
|
/**
|
|
9
9
|
* 获取用户扩展列表分页
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductCategory = exports.url = void 0;
|
|
4
|
+
exports.queryMallProducts = queryMallProducts;
|
|
5
|
+
const axios_1 = require("@ccw-api/axios");
|
|
6
|
+
const queryPages_1 = require("../../../../../queryPages");
|
|
7
|
+
exports.url = "https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";
|
|
8
|
+
var ProductCategory;
|
|
9
|
+
(function (ProductCategory) {
|
|
10
|
+
ProductCategory[ProductCategory["Merchandise"] = 7] = "Merchandise";
|
|
11
|
+
ProductCategory[ProductCategory["AvatarFrame"] = 5] = "AvatarFrame";
|
|
12
|
+
ProductCategory[ProductCategory["EMOJI"] = 10] = "EMOJI";
|
|
13
|
+
})(ProductCategory || (exports.ProductCategory = ProductCategory = {}));
|
|
14
|
+
/**
|
|
15
|
+
* 分页查询CCW小商店商品列表
|
|
16
|
+
* @param {ProductCategory | undefined} productCategory 商品分类(可选):5=头像框,7=周边商品,10=表情 等
|
|
17
|
+
* @param {Partial<PageArgs<ProductSortField>>} pageArgs_ 分页参数(默认 page=1, perPage=30, sortType="DESC")
|
|
18
|
+
* @returns {Promise<Res>} 商品分页结果 PagesRes<Product>
|
|
19
|
+
*/
|
|
20
|
+
async function queryMallProducts(productCategory, pageArgs_ = {
|
|
21
|
+
sortField: "createdAt",
|
|
22
|
+
}) {
|
|
23
|
+
const pageArgs = {
|
|
24
|
+
...queryPages_1.DEFAULT_PAGE_ARGS,
|
|
25
|
+
...pageArgs_,
|
|
26
|
+
};
|
|
27
|
+
const queryUrl = (0, queryPages_1.queryPage)(exports.url, pageArgs);
|
|
28
|
+
const req = {
|
|
29
|
+
page: pageArgs.page,
|
|
30
|
+
perPage: pageArgs.perPage,
|
|
31
|
+
sortType: pageArgs.sortType,
|
|
32
|
+
productCategory,
|
|
33
|
+
source: "CCW_OFFICIAL",
|
|
34
|
+
};
|
|
35
|
+
return await axios_1.ccwAxios
|
|
36
|
+
.post(queryUrl, req)
|
|
37
|
+
.then((res) => res.data.body);
|
|
38
|
+
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.searchCloudAssets = searchCloudAssets;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/cloud_asset/search";
|
|
8
8
|
const dpa = {
|
|
9
9
|
...queryPages_1.DEFAULT_PAGE_ARGS,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getCommentReplies = getCommentReplies;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/comment/page";
|
|
8
8
|
/**
|
|
9
9
|
* 根据topicId获取评论的回复
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getCommentsByTopic = getCommentsByTopic;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/comment/page_by_topic";
|
|
8
8
|
const dpa = {
|
|
9
9
|
...queryPages_1.DEFAULT_PAGE_ARGS,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getOwnCreationPage = getOwnCreationPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/creation/own/page";
|
|
8
8
|
/**
|
|
9
9
|
* 获取自己的作品分页列表
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getRemixedCreationPage = getRemixedCreationPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/creation/page";
|
|
8
8
|
const dpa = {
|
|
9
9
|
...queryPages_1.DEFAULT_PAGE_ARGS,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getCreationsByStudent = getCreationsByStudent;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/creation/page_by_student";
|
|
8
8
|
const dpa = {
|
|
9
9
|
...queryPages_1.DEFAULT_PAGE_ARGS,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getRecommendCreations = getRecommendCreations;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/creation/recommend";
|
|
8
8
|
const dpa = {
|
|
9
9
|
...queryPages_1.DEFAULT_PAGE_ARGS,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.searchCreationsByTag = searchCreationsByTag;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/creation/search/page";
|
|
8
8
|
const dpa = {
|
|
9
9
|
...queryPages_1.DEFAULT_PAGE_ARGS,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getTeamworkLogPage = getTeamworkLogPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/creation/teamwork_log/page";
|
|
8
8
|
/**
|
|
9
9
|
* 获取团队协作日志分页
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getDonatedRecordRanking = getDonatedRecordRanking;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/creation_donated_record/ranking_list";
|
|
8
8
|
/**
|
|
9
9
|
* 获取作品投币排行
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getCreationReleasePage = getCreationReleasePage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/creation_release/page";
|
|
8
8
|
/**
|
|
9
9
|
* 获取作品发布记录分页
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getCreationScreenshotPage = getCreationScreenshotPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/creation_screenshot/page";
|
|
8
8
|
/**
|
|
9
9
|
* 获取作品截图分页
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getEmojiPage = getEmojiPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/emoji/page";
|
|
8
8
|
/**
|
|
9
9
|
* 分页获取表情包
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.url = void 0;
|
|
4
|
+
exports.getConnectCommunityCreationLikeStatus = getConnectCommunityCreationLikeStatus;
|
|
5
|
+
const axios_1 = require("@ccw-api/axios");
|
|
6
|
+
exports.url = "https://community-web.ccw.site/extensions/creation-like/detail";
|
|
7
|
+
/**
|
|
8
|
+
* [连接社区扩展] 查询用户对作品的点赞交互状态
|
|
9
|
+
* @param {MongoDBId} playingCreationOid 当前播放的作品 OID
|
|
10
|
+
* @param {MongoDBId} creationOid 目标作品 OID
|
|
11
|
+
* @returns {Promise<Res>} 点赞状态及作品信息
|
|
12
|
+
*/
|
|
13
|
+
async function getConnectCommunityCreationLikeStatus(playingCreationOid, creationOid) {
|
|
14
|
+
const req = { playingCreationOid, creationOid };
|
|
15
|
+
return await axios_1.ccwAxios
|
|
16
|
+
.post(exports.url, req)
|
|
17
|
+
.then((res) => res.data.body);
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.url = void 0;
|
|
4
|
+
exports.getConnectCommunityFollowingStatus = getConnectCommunityFollowingStatus;
|
|
5
|
+
const axios_1 = require("@ccw-api/axios");
|
|
6
|
+
exports.url = "https://community-web.ccw.site/extensions/following/status";
|
|
7
|
+
/**
|
|
8
|
+
* [连接社区扩展] 查询是否关注了指定创作者
|
|
9
|
+
* @param {MongoDBId} playingCreationOid 当前播放的作品 OID
|
|
10
|
+
* @param {MongoDBId} userOid 目标用户 OID
|
|
11
|
+
* @returns {Promise<Res>} 关注状态及用户信息
|
|
12
|
+
*/
|
|
13
|
+
async function getConnectCommunityFollowingStatus(playingCreationOid, userOid) {
|
|
14
|
+
const req = { playingCreationOid, userOid };
|
|
15
|
+
return await axios_1.ccwAxios
|
|
16
|
+
.post(exports.url, req)
|
|
17
|
+
.then((res) => res.data.body);
|
|
18
|
+
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getManagedHashTags = getManagedHashTags;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/hash_tag/managed/list";
|
|
8
8
|
const dpa = {
|
|
9
9
|
...queryPages_1.DEFAULT_PAGE_ARGS,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getMyHashTagCreations = getMyHashTagCreations;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/hash_tag_creation/mine";
|
|
8
8
|
const dpa = {
|
|
9
9
|
...queryPages_1.DEFAULT_PAGE_ARGS,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getHistoricalTeamMemberPage = getHistoricalTeamMemberPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/historical_team_member/page";
|
|
8
8
|
/**
|
|
9
9
|
* 获取历史团队成员分页
|
|
@@ -12,6 +12,7 @@ const search_1 = require("./cloud_asset/search");
|
|
|
12
12
|
const page_1 = require("./comment/page");
|
|
13
13
|
const page_by_topic_1 = require("./comment/page_by_topic");
|
|
14
14
|
const detail_3 = require("./config/detail");
|
|
15
|
+
const query_1 = require("./ccw-mall/ccw/product/fe/query");
|
|
15
16
|
const detail_4 = require("./creation/detail");
|
|
16
17
|
const list_2 = require("./creation/excellent/list");
|
|
17
18
|
const detail_5 = require("./creation/introduction/detail");
|
|
@@ -99,11 +100,18 @@ const donate_1 = require("./study-trade/trade/donate");
|
|
|
99
100
|
const user_product_1 = require("./user_package/user_product");
|
|
100
101
|
const status_3 = require("./user_package/status");
|
|
101
102
|
const update_3 = require("./great_creation/update");
|
|
103
|
+
const execute_1 = require("./smart_contract/execute");
|
|
104
|
+
const account_1 = require("./smart_contract/account");
|
|
105
|
+
const detail_21 = require("./smart_contract/detail");
|
|
102
106
|
const list_15 = require("./smart_contract/list");
|
|
107
|
+
const status_4 = require("./extensions/following/status");
|
|
108
|
+
const detail_22 = require("./extensions/creation-like/detail");
|
|
109
|
+
const follow_1 = require("./study-community/following/follow");
|
|
103
110
|
exports.communityWeb = {
|
|
104
111
|
acceptAward: award_1.acceptAward,
|
|
105
112
|
donateTrade: donate_1.donateTrade,
|
|
106
113
|
encodeShortCode: encode_1.encodeShortCode,
|
|
114
|
+
executeSmartContract: execute_1.executeSmartContract,
|
|
107
115
|
createCloudVariable: create_3.createCloudVariable,
|
|
108
116
|
createComment: create_4.createComment,
|
|
109
117
|
createShortUrl: create_1.createShortUrl,
|
|
@@ -111,6 +119,7 @@ exports.communityWeb = {
|
|
|
111
119
|
decompressShortUrl: decompress_1.decompressShortUrl,
|
|
112
120
|
deleteComment: delete_1.deleteComment,
|
|
113
121
|
foldComment: fold_1.foldComment,
|
|
122
|
+
followCreator: follow_1.followCreator,
|
|
114
123
|
getApprovalTags: list_1.getApprovalTags,
|
|
115
124
|
getCampaignResources: detail_1.getCampaignResources,
|
|
116
125
|
getCcwMainStatus: status_2.getCCWMainStatus,
|
|
@@ -124,6 +133,7 @@ exports.communityWeb = {
|
|
|
124
133
|
getCreationDetail: detail_4.getCreationDetail,
|
|
125
134
|
getCreationFavoriteDetail: detail_10.getCreationFavoriteDetail,
|
|
126
135
|
getCreationIntroduction: detail_5.getCreationIntroduction,
|
|
136
|
+
getConnectCommunityCreationLikeStatus: detail_22.getConnectCommunityCreationLikeStatus,
|
|
127
137
|
getCreationRecommendPositionList: list_6.getCreationRecommendPositionList,
|
|
128
138
|
getCreationReleasePage: page_12.getCreationReleasePage,
|
|
129
139
|
getCreationScreenshotPage: page_4.getCreationScreenshotPage,
|
|
@@ -132,6 +142,7 @@ exports.communityWeb = {
|
|
|
132
142
|
getCreatorScore: creator_score_1.getCreatorScore,
|
|
133
143
|
getDonatedRecordRanking: ranking_list_1.getDonatedRecordRanking,
|
|
134
144
|
getExcellentCreations: list_2.getExcellentCreations,
|
|
145
|
+
getConnectCommunityFollowingStatus: status_4.getConnectCommunityFollowingStatus,
|
|
135
146
|
getEmojiCategoryList: list_10.getEmojiCategoryList,
|
|
136
147
|
getEmojiPage: page_7.getEmojiPage,
|
|
137
148
|
getAllEmojis: all_1.getAllEmojis,
|
|
@@ -160,6 +171,8 @@ exports.communityWeb = {
|
|
|
160
171
|
getRemixedCreationPage: page_2.getRemixedCreationPage,
|
|
161
172
|
getReputationScoreLogPage: page_5.getReputationScoreLog,
|
|
162
173
|
getSearchHotWords: hot_words_1.getSearchHotWords,
|
|
174
|
+
getSmartContractAccount: account_1.getSmartContractAccount,
|
|
175
|
+
getSmartContractDetail: detail_21.getSmartContractDetail,
|
|
163
176
|
getSmartContractList: list_15.getSmartContractList,
|
|
164
177
|
getSplitRuleDetail: detail_18.getSplitRuleDetail,
|
|
165
178
|
getSpreadFeedUnreadCount: count_1.getSpreadFeedUnreadCount,
|
|
@@ -185,6 +198,7 @@ exports.communityWeb = {
|
|
|
185
198
|
getUserCardDetail: detail_15.getUserCardDetail,
|
|
186
199
|
getUserLabelList: list_9.getUserLabelList,
|
|
187
200
|
getUserProductsPage: user_product_1.getUserProductsPage,
|
|
201
|
+
queryMallProducts: query_1.queryMallProducts,
|
|
188
202
|
getCreationsByStudent: page_by_student_1.getCreationsByStudent,
|
|
189
203
|
insertCheckInRecord: insert_1.insertCheckInRecord,
|
|
190
204
|
likeComment: create_5.likeComment,
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getNotificationPage = getNotificationPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
7
|
-
const notification_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
|
+
const notification_1 = require("../../types/notification");
|
|
8
8
|
exports.url = "https://community-web.ccw.site/notification/page";
|
|
9
9
|
/**
|
|
10
10
|
* 分页获取通知列表
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.url = void 0;
|
|
4
|
+
exports.getSmartContractAccount = getSmartContractAccount;
|
|
5
|
+
const axios_1 = require("@ccw-api/axios");
|
|
6
|
+
exports.url = "https://community-web.ccw.site/smart_contract/account";
|
|
7
|
+
/**
|
|
8
|
+
* 查询智能合约账户余额
|
|
9
|
+
* @param {number} id 合约 ID
|
|
10
|
+
* @returns {Promise<Res>} 合约账户余额
|
|
11
|
+
*/
|
|
12
|
+
async function getSmartContractAccount(id) {
|
|
13
|
+
const req = { id };
|
|
14
|
+
return await axios_1.ccwAxios
|
|
15
|
+
.post(exports.url, req)
|
|
16
|
+
.then((res) => res.data.body);
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.url = void 0;
|
|
4
|
+
exports.getSmartContractDetail = getSmartContractDetail;
|
|
5
|
+
const axios_1 = require("@ccw-api/axios");
|
|
6
|
+
exports.url = "https://community-web.ccw.site/smart_contract/detail";
|
|
7
|
+
/**
|
|
8
|
+
* 获取智能合约详情
|
|
9
|
+
* @param {number} id 合约 ID
|
|
10
|
+
* @returns {Promise<Res>} 合约详情
|
|
11
|
+
*/
|
|
12
|
+
async function getSmartContractDetail(id) {
|
|
13
|
+
const req = { id };
|
|
14
|
+
return await axios_1.ccwAxios
|
|
15
|
+
.post(exports.url, req)
|
|
16
|
+
.then((res) => res.data.body);
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.url = void 0;
|
|
4
|
+
exports.executeSmartContract = executeSmartContract;
|
|
5
|
+
const axios_1 = require("@ccw-api/axios");
|
|
6
|
+
exports.url = "https://community-web.ccw.site/smart_contract/execute";
|
|
7
|
+
/**
|
|
8
|
+
* 执行智能合约(投币/领取奖励)
|
|
9
|
+
* @param {MongoDBId} bizId 业务 ID(如作品 OID)
|
|
10
|
+
* @param {SmartContractBizType} bizType 业务类型,CREATION
|
|
11
|
+
* @param {number} id 合约 ID
|
|
12
|
+
* @param {number} ruleId 规则 ID
|
|
13
|
+
* @param {number} bucks 金币数量
|
|
14
|
+
* @returns {Promise<Res>} 执行结果
|
|
15
|
+
*/
|
|
16
|
+
async function executeSmartContract(bizId, id, ruleId, bucks, bizType = "CREATION") {
|
|
17
|
+
const req = { bizId, bizType, id, ruleId, params: { bucks } };
|
|
18
|
+
return await axios_1.ccwAxios
|
|
19
|
+
.post(exports.url, req)
|
|
20
|
+
.then((res) => res.data.body);
|
|
21
|
+
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getStudentBlockRecordList = getStudentBlockRecordList;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/student/block_record/list";
|
|
8
8
|
/**
|
|
9
9
|
* 获取学生封禁记录列表
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getStudentFollowingPage = getStudentFollowingPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/student/following/page";
|
|
8
8
|
/**
|
|
9
9
|
* 获取学生关注列表分页
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getStudentSessions = getStudentSessions;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/students/list_sessions";
|
|
8
8
|
/**
|
|
9
9
|
* 获取学生登录会话列表
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getReputationScoreLog = getReputationScoreLog;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/students/reputation_score_log/page";
|
|
8
8
|
/**
|
|
9
9
|
* 获取学生信誉分记录
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.url = void 0;
|
|
4
|
+
exports.followCreator = followCreator;
|
|
5
|
+
const axios_1 = require("@ccw-api/axios");
|
|
6
|
+
exports.url = "https://community-web.ccw.site/study-community/following/follow";
|
|
7
|
+
/**
|
|
8
|
+
* 关注创作者
|
|
9
|
+
* @param {MongoDBId} followingOid 要关注的用户 OID
|
|
10
|
+
* @returns {Promise<Res>} "FOLLOWED" 表示关注成功
|
|
11
|
+
*/
|
|
12
|
+
async function followCreator(followingOid) {
|
|
13
|
+
const req = { followingOid };
|
|
14
|
+
return await axios_1.ccwAxios
|
|
15
|
+
.post(exports.url, req)
|
|
16
|
+
.then((res) => res.data.body);
|
|
17
|
+
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getSubjectAreaPage = getSubjectAreaPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/subject_area/page";
|
|
8
8
|
/**
|
|
9
9
|
* 分页获取主页推荐列表
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getSubjectAreaPageByChannel = getSubjectAreaPageByChannel;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/subject_area/page_by_channel";
|
|
8
8
|
/**
|
|
9
9
|
* 按频道分页获取分区列表(用于上方nav bar的"热门分类" "联机" "联名挑战赛")
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.url = void 0;
|
|
4
4
|
exports.getTypicalProjectPage = getTypicalProjectPage;
|
|
5
5
|
const axios_1 = require("@ccw-api/axios");
|
|
6
|
-
const queryPages_1 = require("
|
|
6
|
+
const queryPages_1 = require("../../queryPages");
|
|
7
7
|
exports.url = "https://community-web.ccw.site/typical_project/page";
|
|
8
8
|
/**
|
|
9
9
|
* 获取应用课工程文件项目分页列表 (https://www.ccw.site/workspace/application)
|