@ccw-api/api 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1544 -0
- package/dist/index.d.cts +3409 -0
- package/dist/index.d.ts +3409 -0
- package/dist/index.js +1502 -0
- package/package.json +10 -8
- package/dist/esm/bfs-web/extensions/{eid}/donate.js +0 -14
- package/dist/esm/bfs-web/extensions/{eid}/donate.test.js +0 -4
- package/dist/esm/bfs-web/index.js +0 -6
- package/dist/esm/bfs-web/users/{oid}/extensions.js +0 -21
- package/dist/esm/bfs-web/users/{oid}/extensions.test.js +0 -4
- package/dist/esm/community-web/api/v1/short_code/encode.js +0 -25
- 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/approval/list.js +0 -16
- package/dist/esm/community-web/base/dateTime.js +0 -10
- package/dist/esm/community-web/base/dateTime.test.js +0 -6
- package/dist/esm/community-web/campaign_resource/detail.js +0 -12
- package/dist/esm/community-web/campaign_resource/detail.test.js +0 -10
- package/dist/esm/community-web/ccw-main/status.js +0 -12
- package/dist/esm/community-web/ccw-main/status.test.js +0 -4
- package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.js +0 -34
- package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.test.js +0 -8
- package/dist/esm/community-web/check_in_record/check_in_record.test.js +0 -8
- package/dist/esm/community-web/check_in_record/detail.js +0 -11
- package/dist/esm/community-web/check_in_record/insert.js +0 -12
- package/dist/esm/community-web/cloud_asset/search.js +0 -25
- package/dist/esm/community-web/cloud_asset/search.test.js +0 -6
- package/dist/esm/community-web/cloud_asset/user/privacy.js +0 -11
- package/dist/esm/community-web/cloud_asset/user/privacy.test.js +0 -4
- package/dist/esm/community-web/comment/create.js +0 -16
- package/dist/esm/community-web/comment/create.test.js +0 -13
- package/dist/esm/community-web/comment/like_record/create.js +0 -13
- package/dist/esm/community-web/comment/like_record/create.test.js +0 -4
- package/dist/esm/community-web/comment/page.js +0 -24
- package/dist/esm/community-web/comment/page.test.js +0 -15
- package/dist/esm/community-web/comment/page_by_topic.js +0 -28
- package/dist/esm/community-web/comment/page_by_topic.test.js +0 -13
- package/dist/esm/community-web/comment/reply.js +0 -17
- package/dist/esm/community-web/comment/reply.test.js +0 -4
- package/dist/esm/community-web/config/detail.js +0 -13
- package/dist/esm/community-web/config/detail.test.js +0 -9
- package/dist/esm/community-web/creation/detail.js +0 -14
- package/dist/esm/community-web/creation/detail.test.js +0 -18
- package/dist/esm/community-web/creation/excellent/list.js +0 -13
- package/dist/esm/community-web/creation/excellent/list.test.js +0 -10
- package/dist/esm/community-web/creation/introduction/detail.js +0 -13
- package/dist/esm/community-web/creation/introduction/detail.test.js +0 -17
- package/dist/esm/community-web/creation/like/detail.js +0 -13
- package/dist/esm/community-web/creation/like/detail.test.js +0 -19
- package/dist/esm/community-web/creation/loading/tips.js +0 -11
- package/dist/esm/community-web/creation/loading/tips.test.js +0 -8
- package/dist/esm/community-web/creation/own/page.js +0 -26
- package/dist/esm/community-web/creation/own/page.test.js +0 -4
- package/dist/esm/community-web/creation/page.js +0 -24
- package/dist/esm/community-web/creation/page.test.js +0 -16
- package/dist/esm/community-web/creation/page_by_student.js +0 -24
- package/dist/esm/community-web/creation/page_by_student.test.js +0 -20
- package/dist/esm/community-web/creation/potential/list.js +0 -13
- package/dist/esm/community-web/creation/potential/list.test.js +0 -10
- package/dist/esm/community-web/creation/recommend.js +0 -23
- package/dist/esm/community-web/creation/recommend.test.js +0 -10
- package/dist/esm/community-web/creation/search/page.js +0 -24
- package/dist/esm/community-web/creation/search/page.test.js +0 -5
- package/dist/esm/community-web/creation/smart_contract/split_rule/create.js +0 -14
- 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.js +0 -13
- package/dist/esm/community-web/creation/smart_contract/split_rule/detail.test.js +0 -4
- package/dist/esm/community-web/creation/student/detail.js +0 -13
- package/dist/esm/community-web/creation/student/detail.test.js +0 -17
- package/dist/esm/community-web/creation/submit.js +0 -12
- package/dist/esm/community-web/creation/submit.test.js +0 -32
- package/dist/esm/community-web/creation/tag/list.js +0 -12
- package/dist/esm/community-web/creation/tag/list.test.js +0 -10
- package/dist/esm/community-web/creation/team_member/list.js +0 -14
- package/dist/esm/community-web/creation/team_member/list.test.js +0 -4
- package/dist/esm/community-web/creation/team_member/produce_ticket.js +0 -13
- package/dist/esm/community-web/creation/team_member/produce_ticket.test.js +0 -4
- package/dist/esm/community-web/creation/teamwork_log/page.js +0 -38
- package/dist/esm/community-web/creation/teamwork_log/page.test.js +0 -4
- package/dist/esm/community-web/creation/update.js +0 -22
- package/dist/esm/community-web/creation/update.test.js +0 -4
- package/dist/esm/community-web/creation_activity_stats/list.js +0 -13
- package/dist/esm/community-web/creation_activity_stats/list.test.js +0 -5
- package/dist/esm/community-web/creation_attribute/detail.js +0 -24
- package/dist/esm/community-web/creation_attribute/detail.test.js +0 -10
- package/dist/esm/community-web/creation_donated_record/ranking_list.js +0 -22
- package/dist/esm/community-web/creation_donated_record/ranking_list.test.js +0 -12
- package/dist/esm/community-web/creation_favorite/detail.js +0 -13
- package/dist/esm/community-web/creation_favorite/detail.test.js +0 -5
- package/dist/esm/community-web/creation_recommend_position/list.js +0 -14
- package/dist/esm/community-web/creation_recommend_position/list.test.js +0 -5
- package/dist/esm/community-web/creation_release/code_profiling/detail.js +0 -14
- package/dist/esm/community-web/creation_release/code_profiling/detail.test.js +0 -5
- package/dist/esm/community-web/creation_release/page.js +0 -24
- package/dist/esm/community-web/creation_release/page.test.js +0 -12
- package/dist/esm/community-web/creation_screenshot/page.js +0 -20
- package/dist/esm/community-web/creation_screenshot/page.test.js +0 -11
- package/dist/esm/community-web/creation_stats/view.js +0 -14
- package/dist/esm/community-web/creation_stats/view.test.js +0 -6
- package/dist/esm/community-web/currency/account/personal.js +0 -11
- package/dist/esm/community-web/currency/account/personal.test.js +0 -4
- package/dist/esm/community-web/emoji/all.js +0 -11
- package/dist/esm/community-web/emoji/all.test.js +0 -11
- package/dist/esm/community-web/emoji/category/list.js +0 -11
- package/dist/esm/community-web/emoji/category/list.test.js +0 -9
- package/dist/esm/community-web/emoji/page.js +0 -23
- package/dist/esm/community-web/emoji/page.test.js +0 -12
- package/dist/esm/community-web/event.js +0 -13
- package/dist/esm/community-web/event.test.js +0 -5
- package/dist/esm/community-web/extensions/creation-like/detail.js +0 -14
- package/dist/esm/community-web/extensions/creation-like/detail.test.js +0 -4
- package/dist/esm/community-web/extensions/following/status.js +0 -14
- package/dist/esm/community-web/extensions/following/status.test.js +0 -4
- package/dist/esm/community-web/great_creation/update.js +0 -13
- package/dist/esm/community-web/great_creation/update.test.js +0 -4
- package/dist/esm/community-web/hash_tag/detail.js +0 -13
- package/dist/esm/community-web/hash_tag/hash_tag_detail.test.js +0 -9
- package/dist/esm/community-web/hash_tag/managed/list.js +0 -29
- package/dist/esm/community-web/hash_tag/managed/managed_list.test.js +0 -10
- package/dist/esm/community-web/hash_tag/recommend/list.js +0 -11
- 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.js +0 -13
- package/dist/esm/community-web/hash_tag_creation/list_relation.test.js +0 -5
- package/dist/esm/community-web/hash_tag_creation/mine.js +0 -29
- package/dist/esm/community-web/hash_tag_favorite/detail.js +0 -13
- package/dist/esm/community-web/hash_tag_favorite/hash_tag_favorite_detail.test.js +0 -4
- package/dist/esm/community-web/health/check.js +0 -12
- package/dist/esm/community-web/health/check.test.js +0 -10
- package/dist/esm/community-web/historical_team_member/page.js +0 -27
- package/dist/esm/community-web/historical_team_member/page.test.js +0 -12
- package/dist/esm/community-web/index.js +0 -214
- package/dist/esm/community-web/leaflets/item/list.js +0 -13
- package/dist/esm/community-web/leaflets/item/list.test.js +0 -5
- package/dist/esm/community-web/locked_user/detail.js +0 -13
- package/dist/esm/community-web/locked_user/detail.test.js +0 -6
- package/dist/esm/community-web/muted_user/detail.js +0 -13
- package/dist/esm/community-web/muted_user/detail.test.js +0 -6
- package/dist/esm/community-web/notification/page.js +0 -23
- package/dist/esm/community-web/notification/page.test.js +0 -4
- package/dist/esm/community-web/notification/stats/v2.js +0 -13
- 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/notify_message/show.js +0 -12
- package/dist/esm/community-web/post/detail.js +0 -13
- package/dist/esm/community-web/post/post.test.js +0 -8
- package/dist/esm/community-web/search/hot_words.js +0 -13
- package/dist/esm/community-web/search/search.test.js +0 -6
- package/dist/esm/community-web/short_url/create.js +0 -15
- package/dist/esm/community-web/short_url/decompress.js +0 -13
- package/dist/esm/community-web/short_url/decompress.test.js +0 -4
- package/dist/esm/community-web/short_url/shortUrl.test.js +0 -4
- package/dist/esm/community-web/smart_contract/account.js +0 -13
- package/dist/esm/community-web/smart_contract/account.test.js +0 -4
- package/dist/esm/community-web/smart_contract/detail.js +0 -13
- package/dist/esm/community-web/smart_contract/detail.test.js +0 -4
- package/dist/esm/community-web/smart_contract/execute.js +0 -17
- package/dist/esm/community-web/smart_contract/execute.test.js +0 -4
- package/dist/esm/community-web/smart_contract/list.js +0 -14
- 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.js +0 -13
- package/dist/esm/community-web/student/block_record/detail.test.js +0 -4
- package/dist/esm/community-web/student/block_record/list.js +0 -21
- package/dist/esm/community-web/student/block_record/status.js +0 -13
- package/dist/esm/community-web/student/following/page.js +0 -24
- package/dist/esm/community-web/student/following/page.test.js +0 -6
- package/dist/esm/community-web/students/creator_score.js +0 -12
- package/dist/esm/community-web/students/creator_score.test.js +0 -4
- package/dist/esm/community-web/students/last_active_at.js +0 -13
- package/dist/esm/community-web/students/last_active_at.test.js +0 -6
- package/dist/esm/community-web/students/list.js +0 -13
- package/dist/esm/community-web/students/list.test.js +0 -7
- package/dist/esm/community-web/students/list_sessions.js +0 -21
- package/dist/esm/community-web/students/list_sessions.test.js +0 -4
- package/dist/esm/community-web/students/profile.js +0 -13
- package/dist/esm/community-web/students/profile.test.js +0 -6
- package/dist/esm/community-web/students/reputation_score_log/page.js +0 -21
- package/dist/esm/community-web/students/reputation_score_log/reputation_score_log.test.js +0 -4
- package/dist/esm/community-web/students/self/detail.js +0 -15
- package/dist/esm/community-web/students/self/self_detail.test.js +0 -4
- package/dist/esm/community-web/students/stats.js +0 -13
- package/dist/esm/community-web/students/stats.test.js +0 -7
- package/dist/esm/community-web/students/update.js +0 -31
- package/dist/esm/community-web/students/update.test.js +0 -4
- package/dist/esm/community-web/study-community/cloud_variable/create.js +0 -15
- package/dist/esm/community-web/study-community/cloud_variable/create.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/delete.js +0 -13
- package/dist/esm/community-web/study-community/comment/delete.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/fold.js +0 -13
- package/dist/esm/community-web/study-community/comment/fold.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/reset_weight.js +0 -13
- package/dist/esm/community-web/study-community/comment/reset_weight.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/top.js +0 -13
- package/dist/esm/community-web/study-community/comment/top.test.js +0 -4
- package/dist/esm/community-web/study-community/following/follow.js +0 -13
- package/dist/esm/community-web/study-community/following/follow.test.js +0 -4
- package/dist/esm/community-web/study-community/member/detail.js +0 -12
- package/dist/esm/community-web/study-community/member/member_detail.test.js +0 -4
- package/dist/esm/community-web/study-community/spread_feed/unread/count.js +0 -13
- 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.js +0 -15
- package/dist/esm/community-web/study-trade/trade/donate.test.js +0 -4
- package/dist/esm/community-web/subject_area/page.js +0 -22
- package/dist/esm/community-web/subject_area/page_by_channel.js +0 -22
- 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/award.js +0 -13
- package/dist/esm/community-web/task/mine.js +0 -12
- 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.js +0 -25
- package/dist/esm/community-web/typical_project/page.test.js +0 -12
- package/dist/esm/community-web/typical_project/student/unread_count.js +0 -14
- package/dist/esm/community-web/typical_project/student/unread_count.test.js +0 -4
- package/dist/esm/community-web/user-card/detail.js +0 -13
- package/dist/esm/community-web/user-card/user_card_detail.test.js +0 -6
- package/dist/esm/community-web/user_label/list.js +0 -12
- package/dist/esm/community-web/user_label/user_label_list.test.js +0 -5
- package/dist/esm/community-web/user_package/status.js +0 -14
- package/dist/esm/community-web/user_package/status.test.js +0 -4
- package/dist/esm/community-web/user_package/user_product.js +0 -29
- package/dist/esm/community-web/user_package/user_product.test.js +0 -9
- package/dist/esm/community-web-cloud-database/cloud_variable/detail/v2.js +0 -16
- package/dist/esm/community-web-cloud-database/cloud_variable/detail/v2.test.js +0 -4
- package/dist/esm/community-web-cloud-database/cloud_variable/save.js +0 -29
- package/dist/esm/community-web-cloud-database/cloud_variable/save.test.js +0 -13
- package/dist/esm/community-web-cloud-database/index.js +0 -7
- package/dist/esm/coverage.test.js +0 -5
- package/dist/esm/gandi-main/bulletins/detail.js +0 -12
- package/dist/esm/gandi-main/bulletins/detail.test.js +0 -17
- package/dist/esm/gandi-main/bulletins/page.js +0 -24
- package/dist/esm/gandi-main/bulletins/page.test.js +0 -6
- package/dist/esm/gandi-main/creation/leaderboards/{oid}/records.js +0 -28
- package/dist/esm/gandi-main/creation/leaderboards/{oid}/records.test.js +0 -11
- package/dist/esm/gandi-main/index.js +0 -11
- package/dist/esm/gandi-main/timestamp/current.js +0 -9
- package/dist/esm/gandi-main/timestamp/current.test.js +0 -6
- package/dist/esm/index.js +0 -16
- package/dist/esm/op-parent-api/captcha/check.js +0 -15
- package/dist/esm/op-parent-api/captcha/check.test.js +0 -12
- package/dist/esm/op-parent-api/captcha/create.js +0 -13
- package/dist/esm/op-parent-api/captcha/create.test.js +0 -13
- package/dist/esm/op-parent-api/index.js +0 -6
- package/dist/esm/queryPages.js +0 -22
- package/dist/esm/sso/index.js +0 -12
- package/dist/esm/sso/web/auth/assistant/captcha/v2/create.js +0 -17
- 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/login-by-password.js +0 -28
- package/dist/esm/sso/web/auth/logout.js +0 -11
- package/dist/esm/sso/web/auth/logout_by_session.js +0 -12
- package/dist/esm/sso/web/auth/v3/login/by-phone.js +0 -33
- package/dist/esm/sso/web/auth/v3/login/by-phone.test.js +0 -7
- package/dist/esm/types/notification.js +0 -7
- package/dist/esm/types/notificationContent.js +0 -1
- package/dist/node/bfs-web/extensions/{eid}/donate.js +0 -18
- package/dist/node/bfs-web/extensions/{eid}/donate.test.js +0 -6
- package/dist/node/bfs-web/index.js +0 -9
- package/dist/node/bfs-web/users/{oid}/extensions.js +0 -25
- package/dist/node/bfs-web/users/{oid}/extensions.test.js +0 -6
- package/dist/node/community-web/api/v1/short_code/encode.js +0 -29
- 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/approval/list.js +0 -23
- package/dist/node/community-web/base/dateTime.js +0 -17
- package/dist/node/community-web/base/dateTime.test.js +0 -8
- package/dist/node/community-web/campaign_resource/detail.js +0 -16
- package/dist/node/community-web/campaign_resource/detail.test.js +0 -12
- package/dist/node/community-web/ccw-main/status.js +0 -16
- package/dist/node/community-web/ccw-main/status.test.js +0 -6
- package/dist/node/community-web/ccw-mall/ccw/product/fe/query.js +0 -38
- package/dist/node/community-web/ccw-mall/ccw/product/fe/query.test.js +0 -10
- package/dist/node/community-web/check_in_record/check_in_record.test.js +0 -10
- package/dist/node/community-web/check_in_record/detail.js +0 -15
- package/dist/node/community-web/check_in_record/insert.js +0 -16
- package/dist/node/community-web/cloud_asset/search.js +0 -29
- package/dist/node/community-web/cloud_asset/search.test.js +0 -8
- package/dist/node/community-web/cloud_asset/user/privacy.js +0 -15
- package/dist/node/community-web/cloud_asset/user/privacy.test.js +0 -6
- package/dist/node/community-web/comment/create.js +0 -20
- package/dist/node/community-web/comment/create.test.js +0 -15
- package/dist/node/community-web/comment/like_record/create.js +0 -17
- package/dist/node/community-web/comment/like_record/create.test.js +0 -6
- package/dist/node/community-web/comment/page.js +0 -28
- package/dist/node/community-web/comment/page.test.js +0 -17
- package/dist/node/community-web/comment/page_by_topic.js +0 -32
- package/dist/node/community-web/comment/page_by_topic.test.js +0 -15
- package/dist/node/community-web/comment/reply.js +0 -21
- package/dist/node/community-web/comment/reply.test.js +0 -6
- package/dist/node/community-web/config/detail.js +0 -17
- package/dist/node/community-web/config/detail.test.js +0 -11
- package/dist/node/community-web/creation/detail.js +0 -18
- package/dist/node/community-web/creation/detail.test.js +0 -20
- package/dist/node/community-web/creation/excellent/list.js +0 -17
- package/dist/node/community-web/creation/excellent/list.test.js +0 -12
- package/dist/node/community-web/creation/introduction/detail.js +0 -17
- package/dist/node/community-web/creation/introduction/detail.test.js +0 -19
- package/dist/node/community-web/creation/like/detail.js +0 -17
- package/dist/node/community-web/creation/like/detail.test.js +0 -21
- package/dist/node/community-web/creation/loading/tips.js +0 -15
- package/dist/node/community-web/creation/loading/tips.test.js +0 -10
- package/dist/node/community-web/creation/own/page.js +0 -30
- package/dist/node/community-web/creation/own/page.test.js +0 -6
- package/dist/node/community-web/creation/page.js +0 -28
- package/dist/node/community-web/creation/page.test.js +0 -18
- package/dist/node/community-web/creation/page_by_student.js +0 -28
- package/dist/node/community-web/creation/page_by_student.test.js +0 -22
- package/dist/node/community-web/creation/potential/list.js +0 -17
- package/dist/node/community-web/creation/potential/list.test.js +0 -12
- package/dist/node/community-web/creation/recommend.js +0 -27
- package/dist/node/community-web/creation/recommend.test.js +0 -12
- package/dist/node/community-web/creation/search/page.js +0 -28
- package/dist/node/community-web/creation/search/page.test.js +0 -7
- package/dist/node/community-web/creation/smart_contract/split_rule/create.js +0 -18
- 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.js +0 -17
- package/dist/node/community-web/creation/smart_contract/split_rule/detail.test.js +0 -6
- package/dist/node/community-web/creation/student/detail.js +0 -17
- package/dist/node/community-web/creation/student/detail.test.js +0 -19
- package/dist/node/community-web/creation/submit.js +0 -16
- package/dist/node/community-web/creation/submit.test.js +0 -34
- package/dist/node/community-web/creation/tag/list.js +0 -16
- package/dist/node/community-web/creation/tag/list.test.js +0 -12
- package/dist/node/community-web/creation/team_member/list.js +0 -18
- package/dist/node/community-web/creation/team_member/list.test.js +0 -6
- package/dist/node/community-web/creation/team_member/produce_ticket.js +0 -17
- package/dist/node/community-web/creation/team_member/produce_ticket.test.js +0 -6
- package/dist/node/community-web/creation/teamwork_log/page.js +0 -42
- package/dist/node/community-web/creation/teamwork_log/page.test.js +0 -6
- package/dist/node/community-web/creation/update.js +0 -26
- package/dist/node/community-web/creation/update.test.js +0 -6
- package/dist/node/community-web/creation_activity_stats/list.js +0 -17
- package/dist/node/community-web/creation_activity_stats/list.test.js +0 -7
- package/dist/node/community-web/creation_attribute/detail.js +0 -28
- package/dist/node/community-web/creation_attribute/detail.test.js +0 -12
- package/dist/node/community-web/creation_donated_record/ranking_list.js +0 -26
- package/dist/node/community-web/creation_donated_record/ranking_list.test.js +0 -14
- package/dist/node/community-web/creation_favorite/detail.js +0 -17
- package/dist/node/community-web/creation_favorite/detail.test.js +0 -7
- package/dist/node/community-web/creation_recommend_position/list.js +0 -18
- package/dist/node/community-web/creation_recommend_position/list.test.js +0 -7
- package/dist/node/community-web/creation_release/code_profiling/detail.js +0 -18
- package/dist/node/community-web/creation_release/code_profiling/detail.test.js +0 -7
- package/dist/node/community-web/creation_release/page.js +0 -28
- package/dist/node/community-web/creation_release/page.test.js +0 -14
- package/dist/node/community-web/creation_screenshot/page.js +0 -24
- package/dist/node/community-web/creation_screenshot/page.test.js +0 -13
- package/dist/node/community-web/creation_stats/view.js +0 -18
- package/dist/node/community-web/creation_stats/view.test.js +0 -8
- package/dist/node/community-web/currency/account/personal.js +0 -15
- package/dist/node/community-web/currency/account/personal.test.js +0 -6
- package/dist/node/community-web/emoji/all.js +0 -15
- package/dist/node/community-web/emoji/all.test.js +0 -13
- package/dist/node/community-web/emoji/category/list.js +0 -15
- package/dist/node/community-web/emoji/category/list.test.js +0 -11
- package/dist/node/community-web/emoji/page.js +0 -27
- package/dist/node/community-web/emoji/page.test.js +0 -14
- package/dist/node/community-web/event.js +0 -17
- package/dist/node/community-web/event.test.js +0 -7
- package/dist/node/community-web/extensions/creation-like/detail.js +0 -18
- package/dist/node/community-web/extensions/creation-like/detail.test.js +0 -6
- package/dist/node/community-web/extensions/following/status.js +0 -18
- package/dist/node/community-web/extensions/following/status.test.js +0 -6
- package/dist/node/community-web/great_creation/update.js +0 -17
- package/dist/node/community-web/great_creation/update.test.js +0 -6
- package/dist/node/community-web/hash_tag/detail.js +0 -17
- package/dist/node/community-web/hash_tag/hash_tag_detail.test.js +0 -11
- package/dist/node/community-web/hash_tag/managed/list.js +0 -33
- package/dist/node/community-web/hash_tag/managed/managed_list.test.js +0 -12
- package/dist/node/community-web/hash_tag/recommend/list.js +0 -15
- 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.js +0 -17
- package/dist/node/community-web/hash_tag_creation/list_relation.test.js +0 -7
- package/dist/node/community-web/hash_tag_creation/mine.js +0 -33
- package/dist/node/community-web/hash_tag_favorite/detail.js +0 -17
- package/dist/node/community-web/hash_tag_favorite/hash_tag_favorite_detail.test.js +0 -6
- package/dist/node/community-web/health/check.js +0 -16
- package/dist/node/community-web/health/check.test.js +0 -12
- package/dist/node/community-web/historical_team_member/page.js +0 -31
- package/dist/node/community-web/historical_team_member/page.test.js +0 -14
- package/dist/node/community-web/index.js +0 -217
- package/dist/node/community-web/leaflets/item/list.js +0 -17
- package/dist/node/community-web/leaflets/item/list.test.js +0 -7
- package/dist/node/community-web/locked_user/detail.js +0 -17
- package/dist/node/community-web/locked_user/detail.test.js +0 -8
- package/dist/node/community-web/muted_user/detail.js +0 -17
- package/dist/node/community-web/muted_user/detail.test.js +0 -8
- package/dist/node/community-web/notification/page.js +0 -27
- package/dist/node/community-web/notification/page.test.js +0 -6
- package/dist/node/community-web/notification/stats/v2.js +0 -17
- 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/notify_message/show.js +0 -16
- package/dist/node/community-web/post/detail.js +0 -17
- package/dist/node/community-web/post/post.test.js +0 -10
- package/dist/node/community-web/search/hot_words.js +0 -17
- package/dist/node/community-web/search/search.test.js +0 -8
- package/dist/node/community-web/short_url/create.js +0 -19
- package/dist/node/community-web/short_url/decompress.js +0 -17
- package/dist/node/community-web/short_url/decompress.test.js +0 -6
- package/dist/node/community-web/short_url/shortUrl.test.js +0 -6
- package/dist/node/community-web/smart_contract/account.js +0 -17
- package/dist/node/community-web/smart_contract/account.test.js +0 -6
- package/dist/node/community-web/smart_contract/detail.js +0 -17
- package/dist/node/community-web/smart_contract/detail.test.js +0 -6
- package/dist/node/community-web/smart_contract/execute.js +0 -21
- package/dist/node/community-web/smart_contract/execute.test.js +0 -6
- package/dist/node/community-web/smart_contract/list.js +0 -18
- 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.js +0 -17
- package/dist/node/community-web/student/block_record/detail.test.js +0 -6
- package/dist/node/community-web/student/block_record/list.js +0 -25
- package/dist/node/community-web/student/block_record/status.js +0 -17
- package/dist/node/community-web/student/following/page.js +0 -28
- package/dist/node/community-web/student/following/page.test.js +0 -8
- package/dist/node/community-web/students/creator_score.js +0 -16
- package/dist/node/community-web/students/creator_score.test.js +0 -6
- package/dist/node/community-web/students/last_active_at.js +0 -17
- package/dist/node/community-web/students/last_active_at.test.js +0 -8
- package/dist/node/community-web/students/list.js +0 -17
- package/dist/node/community-web/students/list.test.js +0 -9
- package/dist/node/community-web/students/list_sessions.js +0 -25
- package/dist/node/community-web/students/list_sessions.test.js +0 -6
- package/dist/node/community-web/students/profile.js +0 -17
- package/dist/node/community-web/students/profile.test.js +0 -8
- package/dist/node/community-web/students/reputation_score_log/page.js +0 -25
- package/dist/node/community-web/students/reputation_score_log/reputation_score_log.test.js +0 -6
- package/dist/node/community-web/students/self/detail.js +0 -19
- package/dist/node/community-web/students/self/self_detail.test.js +0 -6
- package/dist/node/community-web/students/stats.js +0 -17
- package/dist/node/community-web/students/stats.test.js +0 -9
- package/dist/node/community-web/students/update.js +0 -35
- package/dist/node/community-web/students/update.test.js +0 -6
- package/dist/node/community-web/study-community/cloud_variable/create.js +0 -19
- package/dist/node/community-web/study-community/cloud_variable/create.test.js +0 -6
- package/dist/node/community-web/study-community/comment/delete.js +0 -17
- package/dist/node/community-web/study-community/comment/delete.test.js +0 -6
- package/dist/node/community-web/study-community/comment/fold.js +0 -17
- package/dist/node/community-web/study-community/comment/fold.test.js +0 -6
- package/dist/node/community-web/study-community/comment/reset_weight.js +0 -17
- package/dist/node/community-web/study-community/comment/reset_weight.test.js +0 -6
- package/dist/node/community-web/study-community/comment/top.js +0 -17
- package/dist/node/community-web/study-community/comment/top.test.js +0 -6
- package/dist/node/community-web/study-community/following/follow.js +0 -17
- package/dist/node/community-web/study-community/following/follow.test.js +0 -6
- package/dist/node/community-web/study-community/member/detail.js +0 -16
- package/dist/node/community-web/study-community/member/member_detail.test.js +0 -6
- package/dist/node/community-web/study-community/spread_feed/unread/count.js +0 -17
- 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.js +0 -19
- package/dist/node/community-web/study-trade/trade/donate.test.js +0 -6
- package/dist/node/community-web/subject_area/page.js +0 -26
- package/dist/node/community-web/subject_area/page_by_channel.js +0 -26
- 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/award.js +0 -17
- package/dist/node/community-web/task/mine.js +0 -16
- 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.js +0 -29
- package/dist/node/community-web/typical_project/page.test.js +0 -14
- package/dist/node/community-web/typical_project/student/unread_count.js +0 -18
- package/dist/node/community-web/typical_project/student/unread_count.test.js +0 -6
- package/dist/node/community-web/user-card/detail.js +0 -17
- package/dist/node/community-web/user-card/user_card_detail.test.js +0 -8
- package/dist/node/community-web/user_label/list.js +0 -16
- package/dist/node/community-web/user_label/user_label_list.test.js +0 -7
- package/dist/node/community-web/user_package/status.js +0 -18
- package/dist/node/community-web/user_package/status.test.js +0 -6
- package/dist/node/community-web/user_package/user_product.js +0 -33
- package/dist/node/community-web/user_package/user_product.test.js +0 -11
- package/dist/node/community-web-cloud-database/cloud_variable/detail/v2.js +0 -20
- package/dist/node/community-web-cloud-database/cloud_variable/detail/v2.test.js +0 -6
- package/dist/node/community-web-cloud-database/cloud_variable/save.js +0 -34
- package/dist/node/community-web-cloud-database/cloud_variable/save.test.js +0 -15
- package/dist/node/community-web-cloud-database/index.js +0 -10
- package/dist/node/coverage.test.js +0 -7
- package/dist/node/gandi-main/bulletins/detail.js +0 -16
- package/dist/node/gandi-main/bulletins/detail.test.js +0 -19
- package/dist/node/gandi-main/bulletins/page.js +0 -28
- package/dist/node/gandi-main/bulletins/page.test.js +0 -8
- package/dist/node/gandi-main/creation/leaderboards/{oid}/records.js +0 -33
- package/dist/node/gandi-main/creation/leaderboards/{oid}/records.test.js +0 -13
- package/dist/node/gandi-main/index.js +0 -14
- package/dist/node/gandi-main/timestamp/current.js +0 -13
- package/dist/node/gandi-main/timestamp/current.test.js +0 -8
- package/dist/node/index.js +0 -25
- package/dist/node/op-parent-api/captcha/check.js +0 -19
- package/dist/node/op-parent-api/captcha/check.test.js +0 -14
- package/dist/node/op-parent-api/captcha/create.js +0 -17
- package/dist/node/op-parent-api/captcha/create.test.js +0 -15
- package/dist/node/op-parent-api/index.js +0 -9
- package/dist/node/queryPages.js +0 -26
- package/dist/node/sso/index.js +0 -15
- package/dist/node/sso/web/auth/assistant/captcha/v2/create.js +0 -21
- 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/login-by-password.js +0 -32
- package/dist/node/sso/web/auth/logout.js +0 -15
- package/dist/node/sso/web/auth/logout_by_session.js +0 -16
- package/dist/node/sso/web/auth/v3/login/by-phone.js +0 -37
- package/dist/node/sso/web/auth/v3/login/by-phone.test.js +0 -9
- package/dist/node/types/notification.js +0 -10
- package/dist/node/types/notificationContent.js +0 -2
- package/dist/types/bfs-web/extensions/{eid}/donate.d.ts +0 -13
- package/dist/types/bfs-web/index.d.ts +0 -6
- package/dist/types/bfs-web/users/{oid}/extensions.d.ts +0 -12
- package/dist/types/community-web/api/v1/short_code/encode.d.ts +0 -42
- package/dist/types/community-web/approval/list.d.ts +0 -27
- package/dist/types/community-web/base/dateTime.d.ts +0 -5
- package/dist/types/community-web/campaign_resource/detail.d.ts +0 -17
- package/dist/types/community-web/ccw-main/status.d.ts +0 -11
- package/dist/types/community-web/ccw-mall/ccw/product/fe/query.d.ts +0 -54
- package/dist/types/community-web/check_in_record/detail.d.ts +0 -17
- package/dist/types/community-web/check_in_record/insert.d.ts +0 -10
- package/dist/types/community-web/cloud_asset/search.d.ts +0 -44
- package/dist/types/community-web/cloud_asset/user/privacy.d.ts +0 -14
- package/dist/types/community-web/comment/create.d.ts +0 -40
- package/dist/types/community-web/comment/like_record/create.d.ts +0 -11
- package/dist/types/community-web/comment/page.d.ts +0 -19
- package/dist/types/community-web/comment/page_by_topic.d.ts +0 -19
- package/dist/types/community-web/comment/reply.d.ts +0 -27
- package/dist/types/community-web/config/detail.d.ts +0 -11
- package/dist/types/community-web/creation/detail.d.ts +0 -15
- package/dist/types/community-web/creation/excellent/list.d.ts +0 -12
- package/dist/types/community-web/creation/introduction/detail.d.ts +0 -13
- package/dist/types/community-web/creation/like/detail.d.ts +0 -13
- package/dist/types/community-web/creation/loading/tips.d.ts +0 -9
- package/dist/types/community-web/creation/own/page.d.ts +0 -17
- package/dist/types/community-web/creation/page.d.ts +0 -16
- package/dist/types/community-web/creation/page_by_student.d.ts +0 -16
- package/dist/types/community-web/creation/potential/list.d.ts +0 -12
- package/dist/types/community-web/creation/recommend.d.ts +0 -15
- package/dist/types/community-web/creation/search/page.d.ts +0 -17
- package/dist/types/community-web/creation/smart_contract/split_rule/create.d.ts +0 -25
- package/dist/types/community-web/creation/smart_contract/split_rule/detail.d.ts +0 -31
- package/dist/types/community-web/creation/student/detail.d.ts +0 -13
- package/dist/types/community-web/creation/submit.d.ts +0 -39
- package/dist/types/community-web/creation/tag/list.d.ts +0 -11
- package/dist/types/community-web/creation/team_member/list.d.ts +0 -15
- package/dist/types/community-web/creation/team_member/produce_ticket.d.ts +0 -12
- package/dist/types/community-web/creation/teamwork_log/page.d.ts +0 -42
- package/dist/types/community-web/creation/update.d.ts +0 -19
- package/dist/types/community-web/creation_activity_stats/list.d.ts +0 -20
- package/dist/types/community-web/creation_attribute/detail.d.ts +0 -34
- package/dist/types/community-web/creation_donated_record/ranking_list.d.ts +0 -19
- package/dist/types/community-web/creation_favorite/detail.d.ts +0 -13
- package/dist/types/community-web/creation_recommend_position/list.d.ts +0 -13
- package/dist/types/community-web/creation_release/code_profiling/detail.d.ts +0 -60
- package/dist/types/community-web/creation_release/page.d.ts +0 -16
- package/dist/types/community-web/creation_screenshot/page.d.ts +0 -15
- package/dist/types/community-web/creation_stats/view.d.ts +0 -14
- package/dist/types/community-web/currency/account/personal.d.ts +0 -12
- package/dist/types/community-web/emoji/all.d.ts +0 -27
- package/dist/types/community-web/emoji/category/list.d.ts +0 -16
- package/dist/types/community-web/emoji/page.d.ts +0 -17
- package/dist/types/community-web/event.d.ts +0 -11
- package/dist/types/community-web/extensions/creation-like/detail.d.ts +0 -18
- package/dist/types/community-web/extensions/following/status.d.ts +0 -19
- package/dist/types/community-web/great_creation/update.d.ts +0 -12
- package/dist/types/community-web/hash_tag/detail.d.ts +0 -12
- package/dist/types/community-web/hash_tag/managed/list.d.ts +0 -18
- package/dist/types/community-web/hash_tag/recommend/list.d.ts +0 -8
- package/dist/types/community-web/hash_tag_creation/list_relation.d.ts +0 -13
- package/dist/types/community-web/hash_tag_creation/mine.d.ts +0 -18
- package/dist/types/community-web/hash_tag_favorite/detail.d.ts +0 -12
- package/dist/types/community-web/health/check.d.ts +0 -14
- package/dist/types/community-web/historical_team_member/page.d.ts +0 -17
- package/dist/types/community-web/index.d.ts +0 -214
- package/dist/types/community-web/leaflets/item/list.d.ts +0 -25
- package/dist/types/community-web/locked_user/detail.d.ts +0 -24
- package/dist/types/community-web/muted_user/detail.d.ts +0 -11
- package/dist/types/community-web/notification/page.d.ts +0 -15
- package/dist/types/community-web/notification/stats/v2.d.ts +0 -12
- package/dist/types/community-web/notify_message/show.d.ts +0 -17
- package/dist/types/community-web/post/detail.d.ts +0 -50
- package/dist/types/community-web/search/hot_words.d.ts +0 -11
- package/dist/types/community-web/short_url/create.d.ts +0 -11
- package/dist/types/community-web/short_url/decompress.d.ts +0 -11
- package/dist/types/community-web/smart_contract/account.d.ts +0 -13
- package/dist/types/community-web/smart_contract/detail.d.ts +0 -24
- package/dist/types/community-web/smart_contract/execute.d.ts +0 -25
- package/dist/types/community-web/smart_contract/list.d.ts +0 -49
- package/dist/types/community-web/student/block_record/detail.d.ts +0 -35
- package/dist/types/community-web/student/block_record/list.d.ts +0 -18
- package/dist/types/community-web/student/block_record/status.d.ts +0 -16
- package/dist/types/community-web/student/following/page.d.ts +0 -17
- package/dist/types/community-web/students/creator_score.d.ts +0 -9
- package/dist/types/community-web/students/last_active_at.d.ts +0 -14
- package/dist/types/community-web/students/list.d.ts +0 -13
- package/dist/types/community-web/students/list_sessions.d.ts +0 -12
- package/dist/types/community-web/students/profile.d.ts +0 -13
- package/dist/types/community-web/students/reputation_score_log/page.d.ts +0 -11
- package/dist/types/community-web/students/self/detail.d.ts +0 -18
- package/dist/types/community-web/students/stats.d.ts +0 -13
- package/dist/types/community-web/students/update.d.ts +0 -18
- package/dist/types/community-web/study-community/cloud_variable/create.d.ts +0 -15
- package/dist/types/community-web/study-community/comment/delete.d.ts +0 -11
- package/dist/types/community-web/study-community/comment/fold.d.ts +0 -11
- package/dist/types/community-web/study-community/comment/reset_weight.d.ts +0 -11
- package/dist/types/community-web/study-community/comment/top.d.ts +0 -14
- package/dist/types/community-web/study-community/following/follow.d.ts +0 -12
- package/dist/types/community-web/study-community/member/detail.d.ts +0 -25
- package/dist/types/community-web/study-community/spread_feed/unread/count.d.ts +0 -12
- package/dist/types/community-web/study-trade/trade/donate.d.ts +0 -17
- package/dist/types/community-web/subject_area/page.d.ts +0 -71
- package/dist/types/community-web/subject_area/page_by_channel.d.ts +0 -73
- package/dist/types/community-web/task/award.d.ts +0 -19
- package/dist/types/community-web/task/mine.d.ts +0 -29
- package/dist/types/community-web/typical_project/page.d.ts +0 -29
- package/dist/types/community-web/typical_project/student/unread_count.d.ts +0 -13
- package/dist/types/community-web/user-card/detail.d.ts +0 -43
- package/dist/types/community-web/user_label/list.d.ts +0 -11
- package/dist/types/community-web/user_package/status.d.ts +0 -13
- package/dist/types/community-web/user_package/user_product.d.ts +0 -40
- package/dist/types/community-web-cloud-database/cloud_variable/detail/v2.d.ts +0 -17
- package/dist/types/community-web-cloud-database/cloud_variable/save.d.ts +0 -26
- package/dist/types/community-web-cloud-database/index.d.ts +0 -7
- package/dist/types/gandi-main/bulletins/detail.d.ts +0 -16
- package/dist/types/gandi-main/bulletins/page.d.ts +0 -19
- package/dist/types/gandi-main/creation/leaderboards/{oid}/records.d.ts +0 -62
- package/dist/types/gandi-main/index.d.ts +0 -11
- package/dist/types/gandi-main/timestamp/current.d.ts +0 -7
- package/dist/types/index.d.ts +0 -147
- package/dist/types/op-parent-api/captcha/check.d.ts +0 -21
- package/dist/types/op-parent-api/captcha/create.d.ts +0 -24
- package/dist/types/op-parent-api/index.d.ts +0 -6
- package/dist/types/queryPages.d.ts +0 -9
- package/dist/types/sso/index.d.ts +0 -12
- package/dist/types/sso/web/auth/assistant/captcha/v2/create.d.ts +0 -34
- package/dist/types/sso/web/auth/login-by-password.d.ts +0 -34
- package/dist/types/sso/web/auth/logout.d.ts +0 -6
- package/dist/types/sso/web/auth/logout_by_session.d.ts +0 -7
- package/dist/types/sso/web/auth/v3/login/by-phone.d.ts +0 -38
- package/dist/types/types/notification.d.ts +0 -66
- package/dist/types/types/notificationContent.d.ts +0 -126
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3409 @@
|
|
|
1
|
+
export { setToken } from '@ccw-api/axios';
|
|
2
|
+
|
|
3
|
+
type Res$1R = {
|
|
4
|
+
captchaExpired: boolean;
|
|
5
|
+
errorMsg: string | null;
|
|
6
|
+
success: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 校验图形验证码(拼图滑块坐标)
|
|
10
|
+
* @param {string} token createCaptcha 返回的 token
|
|
11
|
+
* @param {number} x 拼图滑块目标位置的 x 坐标
|
|
12
|
+
* @param {number} y 拼图滑块目标位置的 y 坐标
|
|
13
|
+
* @returns {Promise<Res>} 校验结果
|
|
14
|
+
*/
|
|
15
|
+
declare function checkCaptcha(token: string, x: number, y?: number): Promise<Res$1R>;
|
|
16
|
+
|
|
17
|
+
type CaptchaType = "BLOCK_PUZZLE";
|
|
18
|
+
type Res$1Q = {
|
|
19
|
+
data: {
|
|
20
|
+
/**
|
|
21
|
+
* data url
|
|
22
|
+
*/
|
|
23
|
+
bgImg: string;
|
|
24
|
+
/**
|
|
25
|
+
* data url
|
|
26
|
+
*/
|
|
27
|
+
jigsawImg: string;
|
|
28
|
+
};
|
|
29
|
+
token: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 创建图形验证码(拼图滑块)
|
|
33
|
+
* @param {CaptchaType} type 验证码类型,默认 BLOCK_PUZZLE(滑块拼图)
|
|
34
|
+
* @returns {Promise<Res>} 验证码信息:bgImg为背景图base64 data url,jigsawImg为拼图块base64 data url,token用于后续校验
|
|
35
|
+
*/
|
|
36
|
+
declare function createCaptcha(type?: CaptchaType): Promise<Res$1Q>;
|
|
37
|
+
|
|
38
|
+
type Res$1P = {};
|
|
39
|
+
/**
|
|
40
|
+
* 查询云变量详情 V2
|
|
41
|
+
* @param {string} accessKey 访问密钥(如作品 OID)
|
|
42
|
+
* @param {string} primaryKey 主键(如 `${projectId}-u`)
|
|
43
|
+
* @param {string} secondaryKey 次级键
|
|
44
|
+
* @param {string[]} filterKeys 过滤的变量名列表
|
|
45
|
+
* @returns {Promise<Res>} 云变量详情
|
|
46
|
+
*/
|
|
47
|
+
declare function getCloudVariableDetailV2(accessKey: string, primaryKey: string, secondaryKey: string, filterKeys: string[]): Promise<Res$1P>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 十六进制秒级时间戳
|
|
51
|
+
* @example const date = new Date(Number.parseInt(t, 16) * 1000);
|
|
52
|
+
*/
|
|
53
|
+
type HexSecTimeStamp = string;
|
|
54
|
+
/**
|
|
55
|
+
* MongoDB ObjectID
|
|
56
|
+
* @example
|
|
57
|
+
* const t = id.subString(0,8);
|
|
58
|
+
* const date = new Date(Number.parseInt(t, 16) * 1000);
|
|
59
|
+
*/
|
|
60
|
+
type MongoDBId = `${HexSecTimeStamp}${string}`;
|
|
61
|
+
type ApiResponse<T> = {
|
|
62
|
+
body: T;
|
|
63
|
+
code: string;
|
|
64
|
+
msg: string;
|
|
65
|
+
status: number;
|
|
66
|
+
};
|
|
67
|
+
type CCWdomain = "xiguacity.cn" | "ccw.site";
|
|
68
|
+
type CNameOssUrl = `https://m.${CCWdomain}/${string}`;
|
|
69
|
+
type LatestCNameOssUrl = `https://m.${CCWdomain}/${string}?t=${number}`;
|
|
70
|
+
type OriginOssUrl = `https://zhishi.oss-cn-beijing.aliyuncs.com/${string}`;
|
|
71
|
+
/**
|
|
72
|
+
* UUID 类型体操:匹配 8-4-4-4-12 的五段式结构
|
|
73
|
+
* @example "6839840e-aa50-47d4-8028-ae932bddfee7"
|
|
74
|
+
*/
|
|
75
|
+
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
76
|
+
|
|
77
|
+
type api_ApiResponse<T> = ApiResponse<T>;
|
|
78
|
+
type api_CCWdomain = CCWdomain;
|
|
79
|
+
type api_CNameOssUrl = CNameOssUrl;
|
|
80
|
+
type api_HexSecTimeStamp = HexSecTimeStamp;
|
|
81
|
+
type api_LatestCNameOssUrl = LatestCNameOssUrl;
|
|
82
|
+
type api_MongoDBId = MongoDBId;
|
|
83
|
+
type api_OriginOssUrl = OriginOssUrl;
|
|
84
|
+
type api_UUID = UUID;
|
|
85
|
+
declare namespace api {
|
|
86
|
+
export type { api_ApiResponse as ApiResponse, api_CCWdomain as CCWdomain, api_CNameOssUrl as CNameOssUrl, api_HexSecTimeStamp as HexSecTimeStamp, api_LatestCNameOssUrl as LatestCNameOssUrl, api_MongoDBId as MongoDBId, api_OriginOssUrl as OriginOssUrl, api_UUID as UUID };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
type SaveCloudVariableRes<T extends Record<string, unknown>> = T;
|
|
90
|
+
/**
|
|
91
|
+
* 保存作品云变量到云数据库
|
|
92
|
+
* @param {MongoDBId} projectId 作品id
|
|
93
|
+
* @param {string} secondaryKey 次级键 - 变量名或标识
|
|
94
|
+
* @param {T} value 要保存数据
|
|
95
|
+
* @returns {Promise<SaveCloudVariableRes<T>>} 保存后的值对象
|
|
96
|
+
*/
|
|
97
|
+
declare function saveProjectCloudVariable<T extends string>(projectId: MongoDBId, secondaryKey: string, value: T): Promise<SaveCloudVariableRes<{
|
|
98
|
+
v: T;
|
|
99
|
+
}>>;
|
|
100
|
+
/**
|
|
101
|
+
* 保存数据到用户云数据库
|
|
102
|
+
* @param {MongoDBId} projectId 作品id
|
|
103
|
+
* @param {number} studentNum 次级键 - 用户id
|
|
104
|
+
* @param {T} value 要保存的键值对
|
|
105
|
+
* @returns {Promise<SaveCloudVariableRes<T>>} 保存后的值对象
|
|
106
|
+
*/
|
|
107
|
+
declare function saveUserCloudVariable<T extends Record<string, string>>(projectId: MongoDBId, studentNum: number, value: T): Promise<SaveCloudVariableRes<T>>;
|
|
108
|
+
|
|
109
|
+
interface ApprovalTag<Tid = number, Tn = string> {
|
|
110
|
+
bizId: null;
|
|
111
|
+
bizType: null;
|
|
112
|
+
description: string;
|
|
113
|
+
/**
|
|
114
|
+
* 有时会包含tag的名称,如"Gandi开发者"
|
|
115
|
+
*/
|
|
116
|
+
iconLink: CNameOssUrl;
|
|
117
|
+
id: Tid;
|
|
118
|
+
/**
|
|
119
|
+
* 浮于iconLink之上的icon
|
|
120
|
+
*/
|
|
121
|
+
mediumImage: CNameOssUrl;
|
|
122
|
+
name: Tn;
|
|
123
|
+
prerequisite: string;
|
|
124
|
+
tag: null;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
type approval_ApprovalTag<Tid = number, Tn = string> = ApprovalTag<Tid, Tn>;
|
|
128
|
+
declare namespace approval {
|
|
129
|
+
export type { approval_ApprovalTag as ApprovalTag };
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
type AccountTypes = "STUDENT";
|
|
133
|
+
|
|
134
|
+
type account_AccountTypes = AccountTypes;
|
|
135
|
+
declare namespace account {
|
|
136
|
+
export type { account_AccountTypes as AccountTypes };
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface BaseUser {
|
|
140
|
+
avatar: CNameOssUrl;
|
|
141
|
+
name: string;
|
|
142
|
+
picUrl: CNameOssUrl;
|
|
143
|
+
virtualValue: CNameOssUrl;
|
|
144
|
+
}
|
|
145
|
+
interface StudentSimple extends BaseUser {
|
|
146
|
+
bio: string;
|
|
147
|
+
oid: MongoDBId;
|
|
148
|
+
}
|
|
149
|
+
interface Student extends StudentSimple {
|
|
150
|
+
approvedContent: null | string;
|
|
151
|
+
approvedType: null | string;
|
|
152
|
+
commentCount: number;
|
|
153
|
+
creationCount: number;
|
|
154
|
+
favoriteCount: number;
|
|
155
|
+
followerCount: number;
|
|
156
|
+
followingCount: number;
|
|
157
|
+
followingStatus: "UNFOLLOWED" | "FOLLOWED";
|
|
158
|
+
isSelf: boolean;
|
|
159
|
+
likeCount: number;
|
|
160
|
+
remixedCount: number;
|
|
161
|
+
viewCount: number;
|
|
162
|
+
}
|
|
163
|
+
interface StudentOverview {
|
|
164
|
+
approvedContent: null | string;
|
|
165
|
+
approvedType: null | string;
|
|
166
|
+
avatar: CNameOssUrl;
|
|
167
|
+
bio: string;
|
|
168
|
+
commentCount: null | number;
|
|
169
|
+
creationCount: null | number;
|
|
170
|
+
favoriteCount: null | number;
|
|
171
|
+
followerCount: null | number;
|
|
172
|
+
followingCount: null | number;
|
|
173
|
+
followingStatus: null | "UNFOLLOWED" | "FOLLOWED" | "BOTH_FOLLOWED" | string;
|
|
174
|
+
isSelf: null | boolean;
|
|
175
|
+
likeCount: null | number;
|
|
176
|
+
name: string;
|
|
177
|
+
oid: MongoDBId;
|
|
178
|
+
picUrl: null | CNameOssUrl;
|
|
179
|
+
remixedCount: null | number;
|
|
180
|
+
viewCount: null | number;
|
|
181
|
+
virtualValue: null | CNameOssUrl;
|
|
182
|
+
}
|
|
183
|
+
interface OtherUser extends BaseUser {
|
|
184
|
+
accountOid: MongoDBId;
|
|
185
|
+
accountType: AccountTypes;
|
|
186
|
+
approvalTagRelations: ApprovalTag[];
|
|
187
|
+
createdAt: number;
|
|
188
|
+
currentCreationPlaytime: null;
|
|
189
|
+
ext: {};
|
|
190
|
+
hideGender: boolean;
|
|
191
|
+
id: number;
|
|
192
|
+
status: "NORMAL";
|
|
193
|
+
updatedAt: number;
|
|
194
|
+
virtualValue: CNameOssUrl;
|
|
195
|
+
}
|
|
196
|
+
type UserLabels = "POTENTIAL_CREATION";
|
|
197
|
+
interface ProfileExtraInfo {
|
|
198
|
+
hobbies: string;
|
|
199
|
+
learnedProgrammingLanguages: string;
|
|
200
|
+
programmingCapability: string;
|
|
201
|
+
selfIntroduction: string;
|
|
202
|
+
}
|
|
203
|
+
interface MemberArchive {
|
|
204
|
+
accountOid: null | MongoDBId;
|
|
205
|
+
defaultEditor: string;
|
|
206
|
+
greatCreationOid: MongoDBId;
|
|
207
|
+
homepageCover: CNameOssUrl;
|
|
208
|
+
}
|
|
209
|
+
interface ReputationScore {
|
|
210
|
+
rank: string;
|
|
211
|
+
score: number;
|
|
212
|
+
studentOid: MongoDBId;
|
|
213
|
+
}
|
|
214
|
+
interface ProfileStatistics {
|
|
215
|
+
badgesCount: null | number;
|
|
216
|
+
homeworkCount: number;
|
|
217
|
+
likeHomeworkCount: number;
|
|
218
|
+
}
|
|
219
|
+
interface ReputationScoreLog {
|
|
220
|
+
createdAt: number;
|
|
221
|
+
description: string;
|
|
222
|
+
id: number;
|
|
223
|
+
score: number;
|
|
224
|
+
studentOid: MongoDBId;
|
|
225
|
+
}
|
|
226
|
+
interface StudentProfile extends BaseUser {
|
|
227
|
+
bio: string;
|
|
228
|
+
birthday: number;
|
|
229
|
+
category: string;
|
|
230
|
+
commentCount: number;
|
|
231
|
+
extraInfo: ProfileExtraInfo;
|
|
232
|
+
gender: string;
|
|
233
|
+
hideGender: boolean;
|
|
234
|
+
identityAuthRank: string;
|
|
235
|
+
lastLoginAt: number;
|
|
236
|
+
memberArchive: MemberArchive;
|
|
237
|
+
regChannel: null | string;
|
|
238
|
+
reputationScore: ReputationScore;
|
|
239
|
+
statistics: ProfileStatistics;
|
|
240
|
+
studentCreatedDays: number;
|
|
241
|
+
studentNumber: string;
|
|
242
|
+
studentOid: MongoDBId;
|
|
243
|
+
}
|
|
244
|
+
interface ParentInfo {
|
|
245
|
+
acceptedCashInviteOnce: null | boolean;
|
|
246
|
+
alphaUser: null | boolean;
|
|
247
|
+
altName: null | string;
|
|
248
|
+
annualIncome: null | string;
|
|
249
|
+
archive: null | boolean;
|
|
250
|
+
authedTime: null | number;
|
|
251
|
+
avatar: null | CNameOssUrl;
|
|
252
|
+
bindPhone: string;
|
|
253
|
+
birthday: null | number;
|
|
254
|
+
cashInviteCreatedAt: null | number;
|
|
255
|
+
cashInviteRestartAt: null | number;
|
|
256
|
+
clazzDevice: null | string;
|
|
257
|
+
company: null | string;
|
|
258
|
+
countryCode: null | string;
|
|
259
|
+
createdAt: null | number;
|
|
260
|
+
degree: null | string;
|
|
261
|
+
distinctId: string;
|
|
262
|
+
divorced: null | boolean;
|
|
263
|
+
email: null | string;
|
|
264
|
+
ext: {};
|
|
265
|
+
followTeachers: object[];
|
|
266
|
+
fullName: null | string;
|
|
267
|
+
gender: null | string;
|
|
268
|
+
giftCardCampaign: null | string;
|
|
269
|
+
guestOid: null | MongoDBId;
|
|
270
|
+
idcard: null | string;
|
|
271
|
+
industry: null | string;
|
|
272
|
+
integer: null | number;
|
|
273
|
+
inviterableId: null | string;
|
|
274
|
+
inviterableType: null | string;
|
|
275
|
+
isEmployee: null | boolean;
|
|
276
|
+
jobPosition: null | string;
|
|
277
|
+
lastSubscribeAt: null | number;
|
|
278
|
+
mainContact: null | boolean;
|
|
279
|
+
name: null | string;
|
|
280
|
+
needSelectClazz: null | boolean;
|
|
281
|
+
oid: MongoDBId;
|
|
282
|
+
overseaExperience: null | boolean;
|
|
283
|
+
phoneAddr: null | string;
|
|
284
|
+
powerUser: null | boolean;
|
|
285
|
+
realName: null | string;
|
|
286
|
+
relationship: null | string;
|
|
287
|
+
remarkName: null | string;
|
|
288
|
+
rewardsCashesCount: null | number;
|
|
289
|
+
source: null | string;
|
|
290
|
+
sourceCategory: null | string;
|
|
291
|
+
sourceInfo: null | string;
|
|
292
|
+
status: null | string;
|
|
293
|
+
student: null | object;
|
|
294
|
+
studentOid: MongoDBId;
|
|
295
|
+
subscribe: null | boolean;
|
|
296
|
+
subscribeScene: null | string;
|
|
297
|
+
tags: null | string[];
|
|
298
|
+
telephone: string;
|
|
299
|
+
university: null | string;
|
|
300
|
+
updatedAt: null | number;
|
|
301
|
+
userTags: string[];
|
|
302
|
+
userType: null | string;
|
|
303
|
+
wechatAccount: null | string;
|
|
304
|
+
wechatCity: null | string;
|
|
305
|
+
wechatCountry: null | string;
|
|
306
|
+
wechatOpenid: null | string;
|
|
307
|
+
wechatProvince: null | string;
|
|
308
|
+
wechatUnionid: null | string;
|
|
309
|
+
wehubWxid: null | string;
|
|
310
|
+
wxid: null | string;
|
|
311
|
+
}
|
|
312
|
+
interface CurrentParent {
|
|
313
|
+
bindPhone: string;
|
|
314
|
+
qqNickname: string;
|
|
315
|
+
qqNum: null | string;
|
|
316
|
+
}
|
|
317
|
+
interface InfoModifyDate {
|
|
318
|
+
avatarModifiedAt: null | number;
|
|
319
|
+
nameModifiedAt: null | number;
|
|
320
|
+
}
|
|
321
|
+
type StudentSelfDetailFields = "abGroup" | "accountNumber" | "address" | "age" | "avatar" | "bio" | "birthday" | "city" | "commentCount" | "countryCode" | "createdAt" | "currentParent" | "email" | "extraInfo" | "fullName" | "gender" | "grade" | "hideGender" | "host" | "identity" | "identityAuthRank" | "identityType" | "informationModifyDate" | "lastLoginAt" | "name" | "oid" | "parents" | "picUrl" | "province" | "qq" | "reputationScore" | "school" | "studentNumber" | "updatedAt" | "virtualValue";
|
|
322
|
+
interface StudentSelfDetail {
|
|
323
|
+
abGroup: null | string;
|
|
324
|
+
accountNumber: string;
|
|
325
|
+
address: null | string;
|
|
326
|
+
addressCode: null | string;
|
|
327
|
+
age: number;
|
|
328
|
+
archive: null | boolean;
|
|
329
|
+
avatar: CNameOssUrl;
|
|
330
|
+
bio: string;
|
|
331
|
+
birthYear: null | number;
|
|
332
|
+
birthday: number;
|
|
333
|
+
category: null | string;
|
|
334
|
+
city: null | string;
|
|
335
|
+
commentCount: number;
|
|
336
|
+
contactPhone: null | string;
|
|
337
|
+
countryCode: null | string;
|
|
338
|
+
createdAt: number;
|
|
339
|
+
currentMajorClazzOid: null | MongoDBId;
|
|
340
|
+
currentParent: CurrentParent;
|
|
341
|
+
distinctId: null | string;
|
|
342
|
+
district: null | string;
|
|
343
|
+
email: null | string;
|
|
344
|
+
energy: null | number;
|
|
345
|
+
energyRegain: null | number;
|
|
346
|
+
examScore: null | number;
|
|
347
|
+
extraInfo: ProfileExtraInfo;
|
|
348
|
+
firstTime: null | boolean;
|
|
349
|
+
followingStatus: null | string;
|
|
350
|
+
fullName: string;
|
|
351
|
+
gender: string;
|
|
352
|
+
grade: number;
|
|
353
|
+
group: null | string;
|
|
354
|
+
guest: null | boolean;
|
|
355
|
+
guestNumber: null | string;
|
|
356
|
+
hideGender: boolean;
|
|
357
|
+
host: string;
|
|
358
|
+
identity: string;
|
|
359
|
+
identityAuthRank: string;
|
|
360
|
+
identityType: string;
|
|
361
|
+
informationModifyDate: InfoModifyDate;
|
|
362
|
+
keywords: string[];
|
|
363
|
+
lastLoginAt: null | number;
|
|
364
|
+
lastStudyAt: null | number;
|
|
365
|
+
lowAge: null | boolean;
|
|
366
|
+
midexamScore: null | number;
|
|
367
|
+
miniprojectFreeNum: null | number;
|
|
368
|
+
mpClicked: null | boolean;
|
|
369
|
+
mpShowedModal: null | boolean;
|
|
370
|
+
mpTutorial: null | string;
|
|
371
|
+
name: string;
|
|
372
|
+
newWorkbenchTutorial: null | boolean;
|
|
373
|
+
oid: MongoDBId;
|
|
374
|
+
orgId: null | string;
|
|
375
|
+
parents: ParentInfo[];
|
|
376
|
+
passwordDigest: null | string;
|
|
377
|
+
photo: null | string;
|
|
378
|
+
picUrl: CNameOssUrl;
|
|
379
|
+
province: null | string;
|
|
380
|
+
qq: string;
|
|
381
|
+
receiver: null | string;
|
|
382
|
+
regChannel: null | string;
|
|
383
|
+
remarkName: null | string;
|
|
384
|
+
reputationScore: ReputationScore;
|
|
385
|
+
role: null | string;
|
|
386
|
+
school: string;
|
|
387
|
+
showServiceTerm: null | boolean;
|
|
388
|
+
showTaskList: null | boolean;
|
|
389
|
+
stats: null | object;
|
|
390
|
+
studentNumber: string;
|
|
391
|
+
task: null | object;
|
|
392
|
+
teacherUnreadedMessages: null | number;
|
|
393
|
+
tutorialSteps: null | string;
|
|
394
|
+
updatedAt: number;
|
|
395
|
+
validateSchool: null | boolean;
|
|
396
|
+
virtualValue: CNameOssUrl;
|
|
397
|
+
watchedMiniProjectTutorailVideo: null | boolean;
|
|
398
|
+
xiguaStudentNo: null | string;
|
|
399
|
+
}
|
|
400
|
+
interface StudentListItem {
|
|
401
|
+
abGroup: null | string;
|
|
402
|
+
accountNumber: null | string;
|
|
403
|
+
address: null | string;
|
|
404
|
+
addressCode: null | string;
|
|
405
|
+
age: null | number;
|
|
406
|
+
archive: null | boolean;
|
|
407
|
+
avatar: CNameOssUrl;
|
|
408
|
+
bio: null | string;
|
|
409
|
+
birthYear: null | number;
|
|
410
|
+
birthday: null | number;
|
|
411
|
+
category: null | string;
|
|
412
|
+
city: null | string;
|
|
413
|
+
commentCount: null | number;
|
|
414
|
+
contactPhone: null | string;
|
|
415
|
+
countryCode: null | string;
|
|
416
|
+
createdAt: null | number;
|
|
417
|
+
currentMajorClazzOid: null | MongoDBId;
|
|
418
|
+
currentParent: null | object;
|
|
419
|
+
distinctId: null | string;
|
|
420
|
+
district: null | string;
|
|
421
|
+
email: null | string;
|
|
422
|
+
energy: null | number;
|
|
423
|
+
energyRegain: null | number;
|
|
424
|
+
examScore: null | number;
|
|
425
|
+
extraInfo: null | object;
|
|
426
|
+
firstTime: null | boolean;
|
|
427
|
+
followingStatus: null | string;
|
|
428
|
+
fullName: null | string;
|
|
429
|
+
gender: null | string;
|
|
430
|
+
grade: null | number;
|
|
431
|
+
group: null | string;
|
|
432
|
+
guest: null | boolean;
|
|
433
|
+
guestNumber: null | string;
|
|
434
|
+
hideGender: null | boolean;
|
|
435
|
+
host: null | string;
|
|
436
|
+
identity: null | string;
|
|
437
|
+
identityAuthRank: null | string;
|
|
438
|
+
identityType: null | string;
|
|
439
|
+
informationModifyDate: null | object;
|
|
440
|
+
keywords: string[];
|
|
441
|
+
lastLoginAt: null | number;
|
|
442
|
+
lastStudyAt: null | number;
|
|
443
|
+
lowAge: null | boolean;
|
|
444
|
+
midexamScore: null | number;
|
|
445
|
+
miniprojectFreeNum: null | number;
|
|
446
|
+
mpClicked: null | boolean;
|
|
447
|
+
mpShowedModal: null | boolean;
|
|
448
|
+
mpTutorial: null | string;
|
|
449
|
+
name: string;
|
|
450
|
+
newWorkbenchTutorial: null | boolean;
|
|
451
|
+
oid: MongoDBId;
|
|
452
|
+
orgId: null | string;
|
|
453
|
+
parents: object[];
|
|
454
|
+
passwordDigest: null | string;
|
|
455
|
+
photo: null | string;
|
|
456
|
+
picUrl: CNameOssUrl;
|
|
457
|
+
province: null | string;
|
|
458
|
+
qq: null | string;
|
|
459
|
+
receiver: null | string;
|
|
460
|
+
regChannel: null | string;
|
|
461
|
+
remarkName: null | string;
|
|
462
|
+
reputationScore: null | number;
|
|
463
|
+
role: null | string;
|
|
464
|
+
school: null | string;
|
|
465
|
+
showServiceTerm: null | boolean;
|
|
466
|
+
showTaskList: null | boolean;
|
|
467
|
+
stats: null | object;
|
|
468
|
+
studentNumber: string;
|
|
469
|
+
task: null | object;
|
|
470
|
+
teacherUnreadedMessages: null | number;
|
|
471
|
+
tutorialSteps: null | string;
|
|
472
|
+
updatedAt: null | number;
|
|
473
|
+
validateSchool: null | boolean;
|
|
474
|
+
virtualValue: CNameOssUrl;
|
|
475
|
+
watchedMiniProjectTutorailVideo: null | boolean;
|
|
476
|
+
xiguaStudentNo: null | string;
|
|
477
|
+
}
|
|
478
|
+
interface CreatorScore {
|
|
479
|
+
rank: "ORDINARY" | "HACKER" | "ADVANCED";
|
|
480
|
+
rankRetentionDate: null;
|
|
481
|
+
score: number;
|
|
482
|
+
studentOid: MongoDBId;
|
|
483
|
+
}
|
|
484
|
+
interface StudentFollowerStats {
|
|
485
|
+
followerCount: number;
|
|
486
|
+
followingCount: number;
|
|
487
|
+
}
|
|
488
|
+
interface StudentUpdateReq {
|
|
489
|
+
birthday: number;
|
|
490
|
+
fullName: string;
|
|
491
|
+
gender: string;
|
|
492
|
+
hideGender: boolean;
|
|
493
|
+
hobbies: string;
|
|
494
|
+
learnedProgrammingLanguages: string;
|
|
495
|
+
programmingCapability: string;
|
|
496
|
+
qq: string;
|
|
497
|
+
school: string;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
type userData_BaseUser = BaseUser;
|
|
501
|
+
type userData_CreatorScore = CreatorScore;
|
|
502
|
+
type userData_CurrentParent = CurrentParent;
|
|
503
|
+
type userData_InfoModifyDate = InfoModifyDate;
|
|
504
|
+
type userData_MemberArchive = MemberArchive;
|
|
505
|
+
type userData_OtherUser = OtherUser;
|
|
506
|
+
type userData_ParentInfo = ParentInfo;
|
|
507
|
+
type userData_ProfileExtraInfo = ProfileExtraInfo;
|
|
508
|
+
type userData_ProfileStatistics = ProfileStatistics;
|
|
509
|
+
type userData_ReputationScore = ReputationScore;
|
|
510
|
+
type userData_ReputationScoreLog = ReputationScoreLog;
|
|
511
|
+
type userData_Student = Student;
|
|
512
|
+
type userData_StudentFollowerStats = StudentFollowerStats;
|
|
513
|
+
type userData_StudentListItem = StudentListItem;
|
|
514
|
+
type userData_StudentOverview = StudentOverview;
|
|
515
|
+
type userData_StudentProfile = StudentProfile;
|
|
516
|
+
type userData_StudentSelfDetail = StudentSelfDetail;
|
|
517
|
+
type userData_StudentSelfDetailFields = StudentSelfDetailFields;
|
|
518
|
+
type userData_StudentSimple = StudentSimple;
|
|
519
|
+
type userData_StudentUpdateReq = StudentUpdateReq;
|
|
520
|
+
type userData_UserLabels = UserLabels;
|
|
521
|
+
declare namespace userData {
|
|
522
|
+
export type { userData_BaseUser as BaseUser, userData_CreatorScore as CreatorScore, userData_CurrentParent as CurrentParent, userData_InfoModifyDate as InfoModifyDate, userData_MemberArchive as MemberArchive, userData_OtherUser as OtherUser, userData_ParentInfo as ParentInfo, userData_ProfileExtraInfo as ProfileExtraInfo, userData_ProfileStatistics as ProfileStatistics, userData_ReputationScore as ReputationScore, userData_ReputationScoreLog as ReputationScoreLog, userData_Student as Student, userData_StudentFollowerStats as StudentFollowerStats, userData_StudentListItem as StudentListItem, userData_StudentOverview as StudentOverview, userData_StudentProfile as StudentProfile, userData_StudentSelfDetail as StudentSelfDetail, userData_StudentSelfDetailFields as StudentSelfDetailFields, userData_StudentSimple as StudentSimple, userData_StudentUpdateReq as StudentUpdateReq, userData_UserLabels as UserLabels };
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
interface CreationRelease {
|
|
526
|
+
checked: boolean;
|
|
527
|
+
coverGifLink: CNameOssUrl;
|
|
528
|
+
coverLink: CNameOssUrl;
|
|
529
|
+
createdAt: number;
|
|
530
|
+
customVersion: string;
|
|
531
|
+
description: string;
|
|
532
|
+
extensions: string[];
|
|
533
|
+
hasCloudVariables: boolean;
|
|
534
|
+
keyboardLayout: KBDLayout;
|
|
535
|
+
oid: MongoDBId;
|
|
536
|
+
operatingInstruction: string;
|
|
537
|
+
profiling: null | string;
|
|
538
|
+
projectLink: string;
|
|
539
|
+
status: CreationStatus;
|
|
540
|
+
submittedAt: number;
|
|
541
|
+
tags: string[];
|
|
542
|
+
updatedAt: number;
|
|
543
|
+
version: string;
|
|
544
|
+
videoLink: null | string;
|
|
545
|
+
}
|
|
546
|
+
interface TeamMemberResp {
|
|
547
|
+
authority: string;
|
|
548
|
+
avatar: string;
|
|
549
|
+
createdAt: number;
|
|
550
|
+
creationOid: MongoDBId;
|
|
551
|
+
name: string;
|
|
552
|
+
online: null | boolean;
|
|
553
|
+
priority: number;
|
|
554
|
+
profile: null | string;
|
|
555
|
+
role: string;
|
|
556
|
+
userOid: MongoDBId;
|
|
557
|
+
}
|
|
558
|
+
interface TeamworkStatus {
|
|
559
|
+
currentTeamMemberList: TeamMemberResp[];
|
|
560
|
+
online: boolean;
|
|
561
|
+
}
|
|
562
|
+
interface CreationSimple extends CreationMinimal {
|
|
563
|
+
artifactType: string;
|
|
564
|
+
createdAt: number;
|
|
565
|
+
currentReleaseOid: MongoDBId;
|
|
566
|
+
description: string;
|
|
567
|
+
ext: {
|
|
568
|
+
SUBMIT_HASH_TAGS: string[];
|
|
569
|
+
keyboardLayout: KBDLayout;
|
|
570
|
+
requireLogin: boolean;
|
|
571
|
+
};
|
|
572
|
+
featuredCoverLink: string;
|
|
573
|
+
forEveryone: boolean;
|
|
574
|
+
hashTags: string[];
|
|
575
|
+
isOpenSource: boolean;
|
|
576
|
+
isTeamwork: boolean;
|
|
577
|
+
keyboardLayout: KBDLayout;
|
|
578
|
+
lastPassedAt: number;
|
|
579
|
+
latestProjectLink: string;
|
|
580
|
+
operatedAt: number;
|
|
581
|
+
rank: string;
|
|
582
|
+
requireLogin: boolean;
|
|
583
|
+
screenMode: CreationScreenMode;
|
|
584
|
+
sourceOpenLevel: SourceOpenLevel;
|
|
585
|
+
status: CreationStatus;
|
|
586
|
+
student: StudentOverview;
|
|
587
|
+
studentOid: MongoDBId;
|
|
588
|
+
tags: string[];
|
|
589
|
+
teamMemberRespList: TeamMemberResp[];
|
|
590
|
+
type: string;
|
|
591
|
+
updatedAt: number;
|
|
592
|
+
/**
|
|
593
|
+
* ALL: 所有人可见
|
|
594
|
+
* PRIVATE: 仅自己可见
|
|
595
|
+
*/
|
|
596
|
+
visibleScope: "PRIVATE" | "ALL";
|
|
597
|
+
}
|
|
598
|
+
interface Creation extends CreationSimple {
|
|
599
|
+
creationReleaseList: CreationRelease[];
|
|
600
|
+
currentHashTag: null | string;
|
|
601
|
+
eid: null | string;
|
|
602
|
+
firstPublishedRelease: null | CreationRelease;
|
|
603
|
+
isSelf: null | boolean;
|
|
604
|
+
projectLastModifiedAt: null | number;
|
|
605
|
+
remixCreationOid: null | MongoDBId;
|
|
606
|
+
remixedCreation: null | object;
|
|
607
|
+
repostedSource: null | object;
|
|
608
|
+
stats: null | ExtensionStats;
|
|
609
|
+
student: StudentOverview;
|
|
610
|
+
teamworkStatus: null | TeamworkStatus;
|
|
611
|
+
typicalProjectId: null | string;
|
|
612
|
+
}
|
|
613
|
+
interface CreationTag {
|
|
614
|
+
code: string;
|
|
615
|
+
createdAt: number;
|
|
616
|
+
id: number;
|
|
617
|
+
priority: number;
|
|
618
|
+
title: string;
|
|
619
|
+
updatedAt: number;
|
|
620
|
+
visibility: "PUBLIC";
|
|
621
|
+
}
|
|
622
|
+
interface LoadingTip {
|
|
623
|
+
妮可: string[];
|
|
624
|
+
孙小弟: string[];
|
|
625
|
+
小八: string[];
|
|
626
|
+
胖达: string[];
|
|
627
|
+
}
|
|
628
|
+
interface UserLikeDetail {
|
|
629
|
+
action: LikeActions;
|
|
630
|
+
createdAt: number;
|
|
631
|
+
/**
|
|
632
|
+
* 作品id
|
|
633
|
+
*/
|
|
634
|
+
creationOid: MongoDBId;
|
|
635
|
+
oid: MongoDBId;
|
|
636
|
+
/**
|
|
637
|
+
* 一般为作品作者
|
|
638
|
+
*/
|
|
639
|
+
receiverOid: MongoDBId;
|
|
640
|
+
/**
|
|
641
|
+
* 用户id
|
|
642
|
+
*/
|
|
643
|
+
senderOid: MongoDBId;
|
|
644
|
+
}
|
|
645
|
+
type LikeActions = "SIX" | "HEART" | "HANDSHAKE" | "LIKE" | "SMILE" | "FLOWER" | "WATERMELON";
|
|
646
|
+
interface DonatedRecord {
|
|
647
|
+
bucks: number;
|
|
648
|
+
createdAt: number;
|
|
649
|
+
creationOid: MongoDBId;
|
|
650
|
+
donatorAvatar: CNameOssUrl;
|
|
651
|
+
donatorName: string;
|
|
652
|
+
donatorOid: MongoDBId;
|
|
653
|
+
donatorType: AccountTypes;
|
|
654
|
+
id: number;
|
|
655
|
+
updatedAt: number;
|
|
656
|
+
}
|
|
657
|
+
interface CreationScreenshot {
|
|
658
|
+
commenter: OtherUser;
|
|
659
|
+
commenterId: number;
|
|
660
|
+
createdAt: number;
|
|
661
|
+
creationScreenshot: CNameOssUrl;
|
|
662
|
+
ext: {};
|
|
663
|
+
id: number;
|
|
664
|
+
msg: string;
|
|
665
|
+
status: null;
|
|
666
|
+
topicId: number;
|
|
667
|
+
updatedAt: number;
|
|
668
|
+
weight: number;
|
|
669
|
+
}
|
|
670
|
+
interface FavoriteDetail {
|
|
671
|
+
creationOid: MongoDBId;
|
|
672
|
+
favoritedAt: number;
|
|
673
|
+
studentOid: MongoDBId;
|
|
674
|
+
updatedAt: number;
|
|
675
|
+
}
|
|
676
|
+
interface CreationMinimal {
|
|
677
|
+
commentCount: number;
|
|
678
|
+
creationRelease: CreationRelease;
|
|
679
|
+
favoriteCount: number;
|
|
680
|
+
latestCoverLink: string;
|
|
681
|
+
likeCount: number;
|
|
682
|
+
oid: MongoDBId;
|
|
683
|
+
remixedCount: number;
|
|
684
|
+
title: string;
|
|
685
|
+
viewCount: number;
|
|
686
|
+
}
|
|
687
|
+
type CreationScreenMode = "LANDSCAPE";
|
|
688
|
+
type ReleaseTag = "Alpha" | "Beta" | "RC" | "Release";
|
|
689
|
+
type KBDLayout = "CUSTOM" | "TOUCH" | "DISABLED";
|
|
690
|
+
type SourceOpenLevel = "PRIVATE" | "SOURCE_READABLE" | "PUBLIC";
|
|
691
|
+
type CreationStatus = "PUBLISHED" | "BANNED" | "SUBMITTED" | "REJECTED";
|
|
692
|
+
|
|
693
|
+
type creation_Creation = Creation;
|
|
694
|
+
type creation_CreationMinimal = CreationMinimal;
|
|
695
|
+
type creation_CreationRelease = CreationRelease;
|
|
696
|
+
type creation_CreationScreenMode = CreationScreenMode;
|
|
697
|
+
type creation_CreationScreenshot = CreationScreenshot;
|
|
698
|
+
type creation_CreationSimple = CreationSimple;
|
|
699
|
+
type creation_CreationStatus = CreationStatus;
|
|
700
|
+
type creation_CreationTag = CreationTag;
|
|
701
|
+
type creation_DonatedRecord = DonatedRecord;
|
|
702
|
+
type creation_FavoriteDetail = FavoriteDetail;
|
|
703
|
+
type creation_KBDLayout = KBDLayout;
|
|
704
|
+
type creation_LikeActions = LikeActions;
|
|
705
|
+
type creation_LoadingTip = LoadingTip;
|
|
706
|
+
type creation_ReleaseTag = ReleaseTag;
|
|
707
|
+
type creation_SourceOpenLevel = SourceOpenLevel;
|
|
708
|
+
type creation_TeamMemberResp = TeamMemberResp;
|
|
709
|
+
type creation_TeamworkStatus = TeamworkStatus;
|
|
710
|
+
type creation_UserLikeDetail = UserLikeDetail;
|
|
711
|
+
declare namespace creation {
|
|
712
|
+
export type { creation_Creation as Creation, creation_CreationMinimal as CreationMinimal, creation_CreationRelease as CreationRelease, creation_CreationScreenMode as CreationScreenMode, creation_CreationScreenshot as CreationScreenshot, creation_CreationSimple as CreationSimple, creation_CreationStatus as CreationStatus, creation_CreationTag as CreationTag, creation_DonatedRecord as DonatedRecord, creation_FavoriteDetail as FavoriteDetail, creation_KBDLayout as KBDLayout, creation_LikeActions as LikeActions, creation_LoadingTip as LoadingTip, creation_ReleaseTag as ReleaseTag, creation_SourceOpenLevel as SourceOpenLevel, creation_TeamMemberResp as TeamMemberResp, creation_TeamworkStatus as TeamworkStatus, creation_UserLikeDetail as UserLikeDetail };
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
interface ExtensionStats {
|
|
716
|
+
averageRating: number;
|
|
717
|
+
mostApprovedReviewIds: string[];
|
|
718
|
+
reviewCount: number;
|
|
719
|
+
reviewTags: string[];
|
|
720
|
+
}
|
|
721
|
+
interface ExtensionStatsWithCounts extends ExtensionStats {
|
|
722
|
+
commentCount: number;
|
|
723
|
+
donateCount: number;
|
|
724
|
+
favoriteCount: number;
|
|
725
|
+
likeCount: number;
|
|
726
|
+
reviewTags: [];
|
|
727
|
+
}
|
|
728
|
+
interface Extension {
|
|
729
|
+
activeVersionId: number;
|
|
730
|
+
cover: CNameOssUrl;
|
|
731
|
+
createdAt: number;
|
|
732
|
+
creationId: MongoDBId;
|
|
733
|
+
description: string;
|
|
734
|
+
eid: string;
|
|
735
|
+
icon: "test";
|
|
736
|
+
id: number;
|
|
737
|
+
latestProjectCoverLink: null;
|
|
738
|
+
latestProjectLink: null;
|
|
739
|
+
name: string;
|
|
740
|
+
publisher: {
|
|
741
|
+
avatar: CNameOssUrl;
|
|
742
|
+
id: MongoDBId;
|
|
743
|
+
locked: null;
|
|
744
|
+
nickname: string;
|
|
745
|
+
};
|
|
746
|
+
publisherId: MongoDBId;
|
|
747
|
+
stats: ExtensionStatsWithCounts;
|
|
748
|
+
updatedAt: number;
|
|
749
|
+
versions: ExtensionVersion[];
|
|
750
|
+
}
|
|
751
|
+
interface ExtensionVersion {
|
|
752
|
+
assetUri: CNameOssUrl;
|
|
753
|
+
changelog: string;
|
|
754
|
+
createdAt: number;
|
|
755
|
+
demos: [];
|
|
756
|
+
eid: string;
|
|
757
|
+
id: number;
|
|
758
|
+
license: null;
|
|
759
|
+
previews: [CNameOssUrl];
|
|
760
|
+
projectCoverLink: null;
|
|
761
|
+
projectLink: CNameOssUrl;
|
|
762
|
+
readme: string;
|
|
763
|
+
rejectReason: null;
|
|
764
|
+
releaseTags: ReleaseTag[];
|
|
765
|
+
releasedAt: number;
|
|
766
|
+
status: ExtensionApproveStatus;
|
|
767
|
+
tags: [];
|
|
768
|
+
tutorials: [];
|
|
769
|
+
updatedAt: number;
|
|
770
|
+
version: string;
|
|
771
|
+
}
|
|
772
|
+
type ExtensionApproveStatus = "PENDING" | "APPROVED" | "REJECTED";
|
|
773
|
+
|
|
774
|
+
type SortType = "ASC" | "DESC";
|
|
775
|
+
/**
|
|
776
|
+
* 分页参数
|
|
777
|
+
*/
|
|
778
|
+
interface PageArgs<SortField extends string> {
|
|
779
|
+
/**
|
|
780
|
+
* 当前页码
|
|
781
|
+
*/
|
|
782
|
+
page: number;
|
|
783
|
+
/**
|
|
784
|
+
* 每页数据量
|
|
785
|
+
*/
|
|
786
|
+
perPage: number;
|
|
787
|
+
/**
|
|
788
|
+
* 排序依据
|
|
789
|
+
*
|
|
790
|
+
* 这个实际上可以根据返回值的任何键排序
|
|
791
|
+
*/
|
|
792
|
+
sortField: SortField;
|
|
793
|
+
/**
|
|
794
|
+
* 排序方式
|
|
795
|
+
*
|
|
796
|
+
* ASC: 升序,
|
|
797
|
+
* DESC: 降序
|
|
798
|
+
*/
|
|
799
|
+
sortType: SortType;
|
|
800
|
+
}
|
|
801
|
+
type PagesRes<Item, SortField = string> = {
|
|
802
|
+
data: Item[];
|
|
803
|
+
offset: number;
|
|
804
|
+
page: number;
|
|
805
|
+
perPage: number;
|
|
806
|
+
sortField: SortField;
|
|
807
|
+
sortType: SortType;
|
|
808
|
+
totalNum: number;
|
|
809
|
+
totalPages: number;
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
type pages_PageArgs<SortField extends string> = PageArgs<SortField>;
|
|
813
|
+
type pages_PagesRes<Item, SortField = string> = PagesRes<Item, SortField>;
|
|
814
|
+
type pages_SortType = SortType;
|
|
815
|
+
declare namespace pages {
|
|
816
|
+
export type { pages_PageArgs as PageArgs, pages_PagesRes as PagesRes, pages_SortType as SortType };
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
type Res$1O = PagesRes<Extension>;
|
|
820
|
+
/**
|
|
821
|
+
* 获取用户扩展列表分页
|
|
822
|
+
* @param {MongoDBId} userOid 用户id
|
|
823
|
+
* @param {Partial<PageArgs<"createdAt" | "updatedAt" | T>>} pageArgs_ 分页参数
|
|
824
|
+
* @returns {Promise<Res>} 扩展分页列表
|
|
825
|
+
*/
|
|
826
|
+
declare function getUserExtensions<T extends string>(userOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | "updatedAt" | T>>): Promise<Res$1O>;
|
|
827
|
+
|
|
828
|
+
type Res$1N = boolean;
|
|
829
|
+
/**
|
|
830
|
+
* 向扩展投币
|
|
831
|
+
* @param {ExtensionDonateEid} eid 扩展id
|
|
832
|
+
* @param {number} bucks 捐赠金币数量
|
|
833
|
+
* @returns {Promise<Res>} 是否捐赠成功
|
|
834
|
+
*/
|
|
835
|
+
declare function donateExtension(eid: string, bucks: number): Promise<Res$1N>;
|
|
836
|
+
|
|
837
|
+
type SubmitRes = boolean;
|
|
838
|
+
type LeaderboardUser = {
|
|
839
|
+
avatar: null | CNameOssUrl;
|
|
840
|
+
id: MongoDBId;
|
|
841
|
+
locked: null | boolean;
|
|
842
|
+
nickname: null | string;
|
|
843
|
+
};
|
|
844
|
+
type LeaderboardRecord = {
|
|
845
|
+
createdAt: number;
|
|
846
|
+
ext: string;
|
|
847
|
+
leaderboardOid: MongoDBId;
|
|
848
|
+
oid: MongoDBId;
|
|
849
|
+
ranking: number;
|
|
850
|
+
score: number;
|
|
851
|
+
updatedAt: number;
|
|
852
|
+
user: LeaderboardUser;
|
|
853
|
+
userId: MongoDBId;
|
|
854
|
+
};
|
|
855
|
+
type ScoreFormat = "DECIMAL_WITH_SEPARATOR" | string;
|
|
856
|
+
type ScoreStorageRule = "BEST" | string;
|
|
857
|
+
type StatsCycle = "ALL_DAYS" | string;
|
|
858
|
+
type LeaderboardRecordsRes = {
|
|
859
|
+
coverLink: null | CNameOssUrl;
|
|
860
|
+
createdAt: number;
|
|
861
|
+
creationId: MongoDBId;
|
|
862
|
+
curUserLeaderboardRecord: null | LeaderboardRecord;
|
|
863
|
+
displayLines: number;
|
|
864
|
+
leaderboardRecordTotalNum: number;
|
|
865
|
+
leaderboardRecords: LeaderboardRecord[];
|
|
866
|
+
oid: MongoDBId;
|
|
867
|
+
scoreFormat: ScoreFormat;
|
|
868
|
+
scoreStorageRule: ScoreStorageRule;
|
|
869
|
+
scoreUnit: string;
|
|
870
|
+
showPersonalRanking: boolean;
|
|
871
|
+
sortType: SortType;
|
|
872
|
+
statsCycle: StatsCycle;
|
|
873
|
+
title: string;
|
|
874
|
+
updatedAt: number;
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* 向作品排行榜提交一条分数记录
|
|
878
|
+
* @param {MongoDBId} leaderboardOid 排行榜id
|
|
879
|
+
* @param {number} score 分数
|
|
880
|
+
* @param {MongoDBId} userOid 用户id
|
|
881
|
+
* @param {string} ext 扩展信息(可选)
|
|
882
|
+
* @returns {Promise<SubmitRes>} 是否提交成功
|
|
883
|
+
*/
|
|
884
|
+
declare function submitLeaderboardRecord(leaderboardOid: MongoDBId, score: number, userOid: MongoDBId, ext?: string): Promise<SubmitRes>;
|
|
885
|
+
/**
|
|
886
|
+
* 获取作品排行榜记录列表
|
|
887
|
+
* @param {MongoDBId} leaderboardOid 排行榜id
|
|
888
|
+
* @returns {Promise<LeaderboardRecordsRes>} 排行榜记录列表
|
|
889
|
+
*/
|
|
890
|
+
declare function getLeaderboardRecords(leaderboardOid: MongoDBId): Promise<LeaderboardRecordsRes>;
|
|
891
|
+
|
|
892
|
+
type BulletinDetail = {
|
|
893
|
+
createdAt: number;
|
|
894
|
+
id: number;
|
|
895
|
+
publishedAt: number;
|
|
896
|
+
status: "PUBLISHED";
|
|
897
|
+
title: string;
|
|
898
|
+
updatedAt: number;
|
|
899
|
+
};
|
|
900
|
+
type Res$1M = BulletinDetail;
|
|
901
|
+
/**
|
|
902
|
+
* 获取公告详情
|
|
903
|
+
* @param {number} id 公告id
|
|
904
|
+
* @returns {Promise<Res>} 公告详情
|
|
905
|
+
*/
|
|
906
|
+
declare function getBulletinDetail(id: number): Promise<Res$1M>;
|
|
907
|
+
|
|
908
|
+
type BulletinItem = {
|
|
909
|
+
createdAt: number;
|
|
910
|
+
id: number;
|
|
911
|
+
publishedAt: number;
|
|
912
|
+
status: "PUBLISHED";
|
|
913
|
+
title: string;
|
|
914
|
+
updatedAt: number;
|
|
915
|
+
};
|
|
916
|
+
type SortField$c = "publishedAt";
|
|
917
|
+
type Res$1L = PagesRes<BulletinItem>;
|
|
918
|
+
/**
|
|
919
|
+
* 获取公告分页列表
|
|
920
|
+
* @param {'PUBLISHED' | S} status 公告状态过滤
|
|
921
|
+
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
922
|
+
* @returns {Promise<Res>} 公告分页列表
|
|
923
|
+
*/
|
|
924
|
+
declare function getBulletinsPage<T extends string, S extends string>(status?: "PUBLISHED" | S, pageArgs_?: Partial<PageArgs<SortField$c | T>>): Promise<Res$1L>;
|
|
925
|
+
|
|
926
|
+
type Res$1K = number;
|
|
927
|
+
/**
|
|
928
|
+
* 获取服务端当前时间戳
|
|
929
|
+
* @returns {Promise<Res>} 当前时间戳(毫秒)
|
|
930
|
+
*/
|
|
931
|
+
declare function getCurrentTimestamp(): Promise<Res$1K>;
|
|
932
|
+
|
|
933
|
+
type Res$1J = boolean;
|
|
934
|
+
/**
|
|
935
|
+
* 查看作品统计(增加浏览量)
|
|
936
|
+
* @param {MongoDBId} oid 作品id
|
|
937
|
+
* @param {string} inviteCode 邀请码
|
|
938
|
+
* @returns {Promise<boolean>} 是否成功
|
|
939
|
+
*/
|
|
940
|
+
declare function viewCreationStats(oid: MongoDBId, inviteCode?: string): Promise<Res$1J>;
|
|
941
|
+
|
|
942
|
+
type Res$1I = boolean;
|
|
943
|
+
/**
|
|
944
|
+
* 更新学生个人信息
|
|
945
|
+
* @param {string} gender 性别
|
|
946
|
+
* @param {boolean} hideGender 是否隐藏性别
|
|
947
|
+
* @param {string} fullName 全名
|
|
948
|
+
* @param {number} birthday 生日时间戳
|
|
949
|
+
* @param {string} programmingCapability 编程能力
|
|
950
|
+
* @param {string} school 学校
|
|
951
|
+
* @param {string} qq QQ号
|
|
952
|
+
* @param {string} hobbies 爱好
|
|
953
|
+
* @param {string} learnedProgrammingLanguages 学过的编程语言
|
|
954
|
+
* @returns {Promise<boolean>} 是否更新成功
|
|
955
|
+
*/
|
|
956
|
+
declare function updateStudent(gender: string, hideGender: boolean, fullName: string, birthday: number, programmingCapability: string, school: string, qq: string, hobbies: string, learnedProgrammingLanguages: string): Promise<Res$1I>;
|
|
957
|
+
|
|
958
|
+
type Res$1H = boolean;
|
|
959
|
+
/**
|
|
960
|
+
* 更换代表作
|
|
961
|
+
* @param {MongoDBId|""} creationOid 作品OID 若为""则是取消展示
|
|
962
|
+
* @returns {Promise<Res>} 更换结果
|
|
963
|
+
*/
|
|
964
|
+
declare function updateGreatCreation(creationOid: MongoDBId | ""): Promise<Res$1H>;
|
|
965
|
+
|
|
966
|
+
type Res$1G = boolean;
|
|
967
|
+
/**
|
|
968
|
+
* 更新作品信息
|
|
969
|
+
* @param {MongoDBId} oid 作品id
|
|
970
|
+
* @param {LatestCNameOssUrl} latestProjectLink_ 最新项目链接
|
|
971
|
+
* @param {CreationScreenMode} screenMode 屏幕模式
|
|
972
|
+
* @param {CNameOssUrl} latestCoverLink 最新封面链接
|
|
973
|
+
* @returns {Promise<Res>} 更新是否成功
|
|
974
|
+
*/
|
|
975
|
+
declare function updateCreation(oid: MongoDBId, latestProjectLink_: CNameOssUrl, screenMode: CreationScreenMode, latestCoverLink: CNameOssUrl): Promise<Res$1G>;
|
|
976
|
+
|
|
977
|
+
type Res$1F = boolean;
|
|
978
|
+
/**
|
|
979
|
+
* 置顶评论
|
|
980
|
+
* @param {number} id 评论id
|
|
981
|
+
* @returns {Promise<Res>} 操作是否成功
|
|
982
|
+
*/
|
|
983
|
+
declare function topComment(id: number): Promise<Res$1F>;
|
|
984
|
+
|
|
985
|
+
type Req$1 = {
|
|
986
|
+
audioSize: number;
|
|
987
|
+
costumeSize: number;
|
|
988
|
+
coverLink: CNameOssUrl;
|
|
989
|
+
customVersion: string;
|
|
990
|
+
description: string;
|
|
991
|
+
extensions: string[];
|
|
992
|
+
featuredCoverLink: CNameOssUrl;
|
|
993
|
+
hasCloudVariables: false;
|
|
994
|
+
hashTags: string[];
|
|
995
|
+
isContribute: boolean;
|
|
996
|
+
isOpenSource: boolean;
|
|
997
|
+
keyboardLayout: KBDLayout;
|
|
998
|
+
oid: MongoDBId;
|
|
999
|
+
operatingInstruction: string;
|
|
1000
|
+
projectLink: CNameOssUrl;
|
|
1001
|
+
projectSize: number;
|
|
1002
|
+
publishedFeedSwitch: boolean;
|
|
1003
|
+
releaseDescription: string;
|
|
1004
|
+
releaseTags: ReleaseTag[];
|
|
1005
|
+
remixCreationOid: null | MongoDBId;
|
|
1006
|
+
repostedSource: string;
|
|
1007
|
+
requireLogin: boolean;
|
|
1008
|
+
sourceOpenLevel: SourceOpenLevel;
|
|
1009
|
+
tags: [];
|
|
1010
|
+
title: string;
|
|
1011
|
+
type: "ORIGINAL" | "REMIXED";
|
|
1012
|
+
videoLink: null | string;
|
|
1013
|
+
};
|
|
1014
|
+
type Res$1E = boolean;
|
|
1015
|
+
/**
|
|
1016
|
+
* 提交作品
|
|
1017
|
+
* @param {Req} req 提交参数 看着写吧,我也不知道该怎么整了()
|
|
1018
|
+
* @returns {Promise<Res>} 提交是否成功
|
|
1019
|
+
*/
|
|
1020
|
+
declare function submitCreation(req: Req$1): Promise<Res$1E>;
|
|
1021
|
+
|
|
1022
|
+
type Res$1D = boolean;
|
|
1023
|
+
/**
|
|
1024
|
+
* 设置用户商品状态(如佩戴/卸下头像框)
|
|
1025
|
+
* @param {number} id 用户商品ID
|
|
1026
|
+
* @param {boolean} status 商品状态,true为佩戴,false为卸下
|
|
1027
|
+
* @returns {Promise<Res>} 设置结果
|
|
1028
|
+
*/
|
|
1029
|
+
declare function setUserProductStatus(id: number, status: boolean): Promise<Res$1D>;
|
|
1030
|
+
|
|
1031
|
+
type Res$1C = boolean;
|
|
1032
|
+
/**
|
|
1033
|
+
* 发送事件
|
|
1034
|
+
* @param {string} actionId 事件ID
|
|
1035
|
+
* @returns {Promise<Res>} 是否成功
|
|
1036
|
+
*/
|
|
1037
|
+
declare function sendEvent(actionId: string): Promise<Res$1C>;
|
|
1038
|
+
|
|
1039
|
+
type SortField$b = "createdAt" | "likeCount" | "viewCount";
|
|
1040
|
+
type Req = {
|
|
1041
|
+
oids?: string[];
|
|
1042
|
+
tag?: string;
|
|
1043
|
+
};
|
|
1044
|
+
type Res$1B = PagesRes<CreationSimple>;
|
|
1045
|
+
/**
|
|
1046
|
+
* 搜索作品
|
|
1047
|
+
* @param {string} req.tag 标签 例如:游戏 动画故事 角色扮演 kukeChat
|
|
1048
|
+
* @param {string[]} req.oids 作品id列表
|
|
1049
|
+
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1050
|
+
* @returns {Promise<Res>} 作品分页结果
|
|
1051
|
+
*/
|
|
1052
|
+
declare function searchCreationsByTag<T extends string>(req: Req, pageArgs_?: Partial<PageArgs<SortField$b | T>>): Promise<Res$1B>;
|
|
1053
|
+
|
|
1054
|
+
type SortField$a = "type" | "createdAt";
|
|
1055
|
+
type Res$1A = PagesRes<CloudAsset>;
|
|
1056
|
+
interface CloudAsset {
|
|
1057
|
+
categories: [];
|
|
1058
|
+
/**
|
|
1059
|
+
* 毫秒级时间戳
|
|
1060
|
+
*/
|
|
1061
|
+
createdAt: number;
|
|
1062
|
+
creatorOid: MongoDBId;
|
|
1063
|
+
customizedInfo: null;
|
|
1064
|
+
ext: {};
|
|
1065
|
+
id: string;
|
|
1066
|
+
keywords: [];
|
|
1067
|
+
name: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* @example "/23azZqHBnqj/2BzzTdi5I5C/2BzzTdi5I5w"
|
|
1070
|
+
*/
|
|
1071
|
+
path: string;
|
|
1072
|
+
previewImages: [CNameOssUrl];
|
|
1073
|
+
size: number;
|
|
1074
|
+
tags: [];
|
|
1075
|
+
type: CloudAssetType;
|
|
1076
|
+
updatedAt: number;
|
|
1077
|
+
/**
|
|
1078
|
+
* 素材直链
|
|
1079
|
+
*/
|
|
1080
|
+
uri: CNameOssUrl;
|
|
1081
|
+
}
|
|
1082
|
+
type CloudAssetType = "COSTUME" | "FOLDER" | "VIDEO" | "AUDIO";
|
|
1083
|
+
/**
|
|
1084
|
+
* 获取用户云背包特定目录内素材
|
|
1085
|
+
* @param {MongoDBId} creatorOid 用户id
|
|
1086
|
+
* @param {string} path 目录(例如'/23azZqHBnqj/2BzzTdi5I5C/')
|
|
1087
|
+
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1088
|
+
* @returns {Promise<Res>} 目录内的素材分页结果
|
|
1089
|
+
*/
|
|
1090
|
+
declare function searchCloudAssets<T extends string>(creatorOid: MongoDBId, path?: string, pageArgs_?: Partial<PageArgs<SortField$a | T>>): Promise<Res$1A>;
|
|
1091
|
+
|
|
1092
|
+
type Res$1z = boolean;
|
|
1093
|
+
/**
|
|
1094
|
+
* 取消置顶
|
|
1095
|
+
* @param {number} id 评论id
|
|
1096
|
+
* @returns {Promise<Res>} 操作是否成功
|
|
1097
|
+
*/
|
|
1098
|
+
declare function resetCommentWeight(id: number): Promise<Res$1z>;
|
|
1099
|
+
|
|
1100
|
+
type Res$1y = string;
|
|
1101
|
+
/**
|
|
1102
|
+
* 获取协作签名(协作token)
|
|
1103
|
+
* @param {MongoDBId} creationOid 作品id
|
|
1104
|
+
* @returns {Promise<Res>} 签名(token)
|
|
1105
|
+
*/
|
|
1106
|
+
declare function produceTeamMemberTicket(creationOid: MongoDBId): Promise<Res$1y>;
|
|
1107
|
+
|
|
1108
|
+
type Res$1x = boolean;
|
|
1109
|
+
/**
|
|
1110
|
+
* 点赞评论
|
|
1111
|
+
* @param {number} commentId 评论id
|
|
1112
|
+
* @returns {Promise<Res>} 操作是否成功
|
|
1113
|
+
*/
|
|
1114
|
+
declare function likeComment(commentId: number): Promise<Res$1x>;
|
|
1115
|
+
|
|
1116
|
+
type Res$1w = boolean;
|
|
1117
|
+
/**
|
|
1118
|
+
* 插入签到记录(相当于签到)
|
|
1119
|
+
* @returns {Promise<boolean>} 是否成功
|
|
1120
|
+
*/
|
|
1121
|
+
declare function insertCheckInRecord(): Promise<Res$1w>;
|
|
1122
|
+
|
|
1123
|
+
type SortField$9 = "createdAt" | "likeCount" | "viewCount";
|
|
1124
|
+
type Res$1v = PagesRes<Creation>;
|
|
1125
|
+
/**
|
|
1126
|
+
* 获取学生的作品列表
|
|
1127
|
+
* @param {MongoDBId[]} studentOids 学生id列表
|
|
1128
|
+
* @param {Partial<PageArgs<SortField|T>>} pageArgs_ 分页参数
|
|
1129
|
+
* @returns {Promise<Res>} 作品分页结果
|
|
1130
|
+
*/
|
|
1131
|
+
declare function getCreationsByStudent<T extends string>(studentOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$9 | T>>): Promise<Res$1v>;
|
|
1132
|
+
|
|
1133
|
+
declare enum ProductCategory$1 {
|
|
1134
|
+
Merchandise = 7,
|
|
1135
|
+
AvatarFrame = 5,
|
|
1136
|
+
EMOJI = 10
|
|
1137
|
+
}
|
|
1138
|
+
type ProductSource = "CCW_OFFICIAL";
|
|
1139
|
+
type ProductType = 1 | 2 | 3;
|
|
1140
|
+
type Product = {
|
|
1141
|
+
createdAt: number;
|
|
1142
|
+
description: string;
|
|
1143
|
+
elements: unknown[];
|
|
1144
|
+
functionDescribe: string;
|
|
1145
|
+
id: number;
|
|
1146
|
+
name: string;
|
|
1147
|
+
note: string;
|
|
1148
|
+
offlineAt: null | number;
|
|
1149
|
+
oid: MongoDBId;
|
|
1150
|
+
onlineAt: number;
|
|
1151
|
+
originPointPrice: number;
|
|
1152
|
+
originPrice: number;
|
|
1153
|
+
periodValidityDay: null | number;
|
|
1154
|
+
periodValidityTime: null | number;
|
|
1155
|
+
picUrl: null | CNameOssUrl | string;
|
|
1156
|
+
pointPrice: number;
|
|
1157
|
+
price: number;
|
|
1158
|
+
priority: number;
|
|
1159
|
+
productCategory: ProductCategory$1;
|
|
1160
|
+
purchaseLimitationNum: number;
|
|
1161
|
+
source: ProductSource;
|
|
1162
|
+
status: number;
|
|
1163
|
+
stockNum: number;
|
|
1164
|
+
type: ProductType;
|
|
1165
|
+
updatedAt: number;
|
|
1166
|
+
virtualValue: null | CNameOssUrl | string;
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
type mall_Product = Product;
|
|
1170
|
+
type mall_ProductSource = ProductSource;
|
|
1171
|
+
type mall_ProductType = ProductType;
|
|
1172
|
+
declare namespace mall {
|
|
1173
|
+
export { type mall_Product as Product, ProductCategory$1 as ProductCategory, type mall_ProductSource as ProductSource, type mall_ProductType as ProductType };
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
type ProductSortField = "createdAt" | "updatedAt" | "pointPrice" | "priority" | "stockNum";
|
|
1177
|
+
type Res$1u = PagesRes<Product, ProductSortField>;
|
|
1178
|
+
/**
|
|
1179
|
+
* 分页查询CCW小商店商品列表
|
|
1180
|
+
* @param {ProductCategory | undefined} productCategory 商品分类(可选):5=头像框,7=周边商品,10=表情 等
|
|
1181
|
+
* @param {Partial<PageArgs<ProductSortField>>} pageArgs_ 分页参数(默认 page=1, perPage=30, sortType="DESC")
|
|
1182
|
+
* @returns {Promise<Res>} 商品分页结果 PagesRes<Product>
|
|
1183
|
+
*/
|
|
1184
|
+
declare function queryMallProducts<T extends string>(productCategory?: ProductCategory$1, pageArgs_?: Partial<PageArgs<ProductSortField | T>>): Promise<Res$1u>;
|
|
1185
|
+
|
|
1186
|
+
type Res$1t = PagesRes<UserProduct>;
|
|
1187
|
+
type UserProduct = {
|
|
1188
|
+
createdAt: number | null;
|
|
1189
|
+
description: string;
|
|
1190
|
+
exchangeOrderId: string | null;
|
|
1191
|
+
expiredAt: number | null;
|
|
1192
|
+
id: number;
|
|
1193
|
+
isExpire: boolean;
|
|
1194
|
+
name: string;
|
|
1195
|
+
picUrl: CNameOssUrl;
|
|
1196
|
+
productCategory: number;
|
|
1197
|
+
productOid: MongoDBId;
|
|
1198
|
+
productSource: null;
|
|
1199
|
+
status: boolean;
|
|
1200
|
+
updatedAt: number | null;
|
|
1201
|
+
userOid: MongoDBId;
|
|
1202
|
+
userType: AccountTypes;
|
|
1203
|
+
validFrom: number;
|
|
1204
|
+
virtualValue: CNameOssUrl;
|
|
1205
|
+
};
|
|
1206
|
+
declare enum ProductCategory {
|
|
1207
|
+
AVATAR_FRAME = 5
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* 分页获取用户商品(如头像框)
|
|
1211
|
+
* @param {ProductCategory} productCategory 商品分类,默认5为头像框
|
|
1212
|
+
* @param {Partial<PageArgs<SortField>>} pageArgs_ 分页参数
|
|
1213
|
+
* @returns {Promise<Res>} 分页用户商品数据
|
|
1214
|
+
*/
|
|
1215
|
+
declare function getUserProductsPage<SortField extends string>(productCategory?: ProductCategory, pageArgs_?: Partial<PageArgs<SortField>>): Promise<Res$1t>;
|
|
1216
|
+
|
|
1217
|
+
type Res$1s = {
|
|
1218
|
+
userLabels: UserLabels[];
|
|
1219
|
+
};
|
|
1220
|
+
/**
|
|
1221
|
+
* 获取用户标签列表
|
|
1222
|
+
* @returns {Promise<Res>} 用户标签数据
|
|
1223
|
+
*/
|
|
1224
|
+
declare function getUserLabelList(): Promise<Res$1s>;
|
|
1225
|
+
|
|
1226
|
+
type UserCardApprovalTag = {
|
|
1227
|
+
iconLink: CNameOssUrl;
|
|
1228
|
+
id: number;
|
|
1229
|
+
mediumImage: CNameOssUrl;
|
|
1230
|
+
name: string;
|
|
1231
|
+
};
|
|
1232
|
+
type UserCardUser = {
|
|
1233
|
+
approvalTags: UserCardApprovalTag[];
|
|
1234
|
+
avatar: CNameOssUrl;
|
|
1235
|
+
bio: string;
|
|
1236
|
+
followingStatus: null | string;
|
|
1237
|
+
identityAuthRank: string;
|
|
1238
|
+
name: string;
|
|
1239
|
+
oid: MongoDBId;
|
|
1240
|
+
reputationScore: null | {
|
|
1241
|
+
rank: string;
|
|
1242
|
+
score: number;
|
|
1243
|
+
studentOid: MongoDBId;
|
|
1244
|
+
};
|
|
1245
|
+
statistics: null | {
|
|
1246
|
+
creationCount: number;
|
|
1247
|
+
followerCount: number;
|
|
1248
|
+
followingCount: number;
|
|
1249
|
+
likeCount: number;
|
|
1250
|
+
};
|
|
1251
|
+
virtualValue: CNameOssUrl;
|
|
1252
|
+
};
|
|
1253
|
+
type Res$1r = {
|
|
1254
|
+
creation: CreationMinimal | null;
|
|
1255
|
+
user: UserCardUser;
|
|
1256
|
+
};
|
|
1257
|
+
/**
|
|
1258
|
+
* 获取用户卡片详情
|
|
1259
|
+
* @param {MongoDBId} oid 用户id
|
|
1260
|
+
* @returns {Promise<Res>} 用户卡片数据
|
|
1261
|
+
*/
|
|
1262
|
+
declare function getUserCardDetail(oid: MongoDBId): Promise<Res$1r>;
|
|
1263
|
+
|
|
1264
|
+
type Res$1q = {
|
|
1265
|
+
/**
|
|
1266
|
+
* @example 100MB: "104857600"
|
|
1267
|
+
*/
|
|
1268
|
+
totalStorage: string;
|
|
1269
|
+
usedStorage: string;
|
|
1270
|
+
};
|
|
1271
|
+
/**
|
|
1272
|
+
* 获取用户云存储空间信息
|
|
1273
|
+
* @returns {Promise<Res>} 存储空间信息
|
|
1274
|
+
*/
|
|
1275
|
+
declare function getUserAssetStorageSize(): Promise<Res$1q>;
|
|
1276
|
+
|
|
1277
|
+
type Res$1p = [];
|
|
1278
|
+
/**
|
|
1279
|
+
* @deprecated 该接口只会返回"[]"
|
|
1280
|
+
* 获取学生未读应用课工程文件项目数量
|
|
1281
|
+
* @param {MongoDBId} studentOid 学生id
|
|
1282
|
+
* @returns {Promise<Res>} 未读应用课工程文件项目id列表
|
|
1283
|
+
*/
|
|
1284
|
+
declare function getTypicalProjectUnreadCount(studentOid: MongoDBId): Promise<Res$1p>;
|
|
1285
|
+
|
|
1286
|
+
type TypicalProjectItem = {
|
|
1287
|
+
cover: string;
|
|
1288
|
+
createdAt: null | number;
|
|
1289
|
+
creationHints: null | string;
|
|
1290
|
+
creationInfo: null | string;
|
|
1291
|
+
defaultLinks: string[];
|
|
1292
|
+
defaultStars: string[];
|
|
1293
|
+
id: number;
|
|
1294
|
+
name: string;
|
|
1295
|
+
projectLink: string;
|
|
1296
|
+
status: string;
|
|
1297
|
+
templateType: string;
|
|
1298
|
+
updatedAt: null | number;
|
|
1299
|
+
};
|
|
1300
|
+
type Res$1o = PagesRes<TypicalProjectItem>;
|
|
1301
|
+
/**
|
|
1302
|
+
* 获取应用课工程文件项目分页列表 (https://www.ccw.site/workspace/application)
|
|
1303
|
+
* @param {MongoDBId} studentOid 学生id
|
|
1304
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1305
|
+
* @returns {Promise<Res>} 应用课工程文件项目分页列表
|
|
1306
|
+
*/
|
|
1307
|
+
declare function getTypicalProjectPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1o>;
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* @returns {Promise<number>} 当前时间戳,相当于Date.now()
|
|
1311
|
+
*/
|
|
1312
|
+
declare function getTime(): Promise<number>;
|
|
1313
|
+
|
|
1314
|
+
type TeamworkLogOperator = {
|
|
1315
|
+
avatar: CNameOssUrl;
|
|
1316
|
+
name: string;
|
|
1317
|
+
oid: MongoDBId;
|
|
1318
|
+
};
|
|
1319
|
+
type TeamworkLogItem<T> = {
|
|
1320
|
+
content: T;
|
|
1321
|
+
createdAt: number;
|
|
1322
|
+
creationId: MongoDBId;
|
|
1323
|
+
id: string;
|
|
1324
|
+
operateTarget: string;
|
|
1325
|
+
operator: TeamworkLogOperator;
|
|
1326
|
+
operatorId: MongoDBId;
|
|
1327
|
+
};
|
|
1328
|
+
type TeamworkLogContent = {
|
|
1329
|
+
key: "closedProject" | "openedProject" | "addedSomeBlocks" | "deletedSomeBlocks" | "syncedVariables" | "syncedLists" | "usedProjectHistoryVersion" | "addedSprite" | `created${"Global" | "Private"}${"Variable" | "List"}`;
|
|
1330
|
+
operator: {
|
|
1331
|
+
avatar: CNameOssUrl;
|
|
1332
|
+
clientId: string;
|
|
1333
|
+
name: string;
|
|
1334
|
+
oid: MongoDBId;
|
|
1335
|
+
};
|
|
1336
|
+
params: any;
|
|
1337
|
+
};
|
|
1338
|
+
type SortField$8 = "createdAt";
|
|
1339
|
+
type OperateTargets = "VARIABLE" | "BLOCK" | "SPRITE" | "PROJECT" | "TEAMWORK";
|
|
1340
|
+
type Res$1n<T> = PagesRes<TeamworkLogItem<T>>;
|
|
1341
|
+
/**
|
|
1342
|
+
* 获取团队协作日志分页
|
|
1343
|
+
* @param {MongoDBId} creationId 作品id
|
|
1344
|
+
* @param {OperateTargets[]} operateTargets 操作目标过滤
|
|
1345
|
+
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1346
|
+
* @returns {Promise<Res>} 协作日志分页列表
|
|
1347
|
+
*/
|
|
1348
|
+
declare function getTeamworkLogPage<T extends string>(creationId: MongoDBId, operateTargets: OperateTargets[], pageArgs_?: Partial<PageArgs<SortField$8 | T>>): Promise<Res$1n<TeamworkLogContent>>;
|
|
1349
|
+
|
|
1350
|
+
type TeamMemberAuthority = "ADMIN" | "MEMBER" | "OBSERVER";
|
|
1351
|
+
type TeamMember = {
|
|
1352
|
+
authority: TeamMemberAuthority;
|
|
1353
|
+
avatar: CNameOssUrl;
|
|
1354
|
+
creationOid: MongoDBId;
|
|
1355
|
+
name: string;
|
|
1356
|
+
/**
|
|
1357
|
+
* 成员贡献信息
|
|
1358
|
+
* @example profile = "开发,美工(偷懒)"
|
|
1359
|
+
*/
|
|
1360
|
+
profile: string;
|
|
1361
|
+
role: "ALL";
|
|
1362
|
+
userOid: MongoDBId;
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
type Res$1m = TeamMember[];
|
|
1366
|
+
/**
|
|
1367
|
+
* 获取作品协作成员列表
|
|
1368
|
+
* @param {MongoDBId} creationOid 作品id
|
|
1369
|
+
* @param {TeamMemberAuthority[]} authorities 权限过滤
|
|
1370
|
+
* @returns {Promise<Res>} 作品协作成员列表
|
|
1371
|
+
*/
|
|
1372
|
+
declare function getTeamMemberList(creationOid: MongoDBId, authorities: TeamMemberAuthority[]): Promise<Res$1m>;
|
|
1373
|
+
|
|
1374
|
+
type SubjectAreaModuleComponent$1 = {
|
|
1375
|
+
data: {
|
|
1376
|
+
bgColor?: string;
|
|
1377
|
+
bgImage?: CNameOssUrl;
|
|
1378
|
+
col?: number;
|
|
1379
|
+
creationOids?: MongoDBId[];
|
|
1380
|
+
display?: string;
|
|
1381
|
+
hover?: boolean;
|
|
1382
|
+
origin: string;
|
|
1383
|
+
overflow?: string;
|
|
1384
|
+
row?: string;
|
|
1385
|
+
targetLink?: string;
|
|
1386
|
+
targetType?: string;
|
|
1387
|
+
};
|
|
1388
|
+
type: string;
|
|
1389
|
+
};
|
|
1390
|
+
type SubjectAreaModule$1 = {
|
|
1391
|
+
components: SubjectAreaModuleComponent$1[];
|
|
1392
|
+
filled: boolean;
|
|
1393
|
+
gutter: number;
|
|
1394
|
+
subtitle: string;
|
|
1395
|
+
subtitleColor: string;
|
|
1396
|
+
title: string;
|
|
1397
|
+
titleColor: string;
|
|
1398
|
+
type: string;
|
|
1399
|
+
};
|
|
1400
|
+
type SubjectAreaGroup$1 = {
|
|
1401
|
+
bgAtmosphere: null | string;
|
|
1402
|
+
bgColor: string;
|
|
1403
|
+
bgImage: CNameOssUrl;
|
|
1404
|
+
id: number;
|
|
1405
|
+
lottieJsonUrl: null | CNameOssUrl;
|
|
1406
|
+
modules: SubjectAreaModule$1[];
|
|
1407
|
+
moreLink: null | string;
|
|
1408
|
+
moreLinkText: null | string;
|
|
1409
|
+
subjectAreaId: number;
|
|
1410
|
+
subtitle: string;
|
|
1411
|
+
subtitleColor: string;
|
|
1412
|
+
title: string;
|
|
1413
|
+
titleColor: string;
|
|
1414
|
+
verticalPadding: number;
|
|
1415
|
+
};
|
|
1416
|
+
type SubjectAreaChannel = "tags" | "mmo" | "adventure";
|
|
1417
|
+
type SubjectAreaItem$1 = {
|
|
1418
|
+
creationOids: MongoDBId[];
|
|
1419
|
+
enabled: boolean;
|
|
1420
|
+
iconLink: null | CNameOssUrl;
|
|
1421
|
+
id: number;
|
|
1422
|
+
location: null | string;
|
|
1423
|
+
platform: string;
|
|
1424
|
+
priority: number;
|
|
1425
|
+
subjectAreaGroup: SubjectAreaGroup$1;
|
|
1426
|
+
subtitle: null | string;
|
|
1427
|
+
targetLink: null | string;
|
|
1428
|
+
title: string;
|
|
1429
|
+
visibleFor: string[];
|
|
1430
|
+
};
|
|
1431
|
+
type Res$1l = PagesRes<SubjectAreaItem$1>;
|
|
1432
|
+
/**
|
|
1433
|
+
* 按频道分页获取分区列表(用于上方nav bar的"热门分类" "联机" "联名挑战赛")
|
|
1434
|
+
* @param {SubjectAreaChannel} channel 频道
|
|
1435
|
+
* @param {Partial<PageArgs<"campaignResourceId" | T>>} pageArgs_ 分页参数
|
|
1436
|
+
* @returns {Promise<Res>} 学科区分页数据
|
|
1437
|
+
*/
|
|
1438
|
+
declare function getSubjectAreaPageByChannel<T extends string>(channel: SubjectAreaChannel, pageArgs_?: Partial<PageArgs<"campaignResourceId" | T>>): Promise<Res$1l>;
|
|
1439
|
+
|
|
1440
|
+
type SubjectAreaModuleComponent = {
|
|
1441
|
+
data: {
|
|
1442
|
+
bgColor?: string;
|
|
1443
|
+
bgImage?: CNameOssUrl;
|
|
1444
|
+
col?: number;
|
|
1445
|
+
creationOids?: MongoDBId[];
|
|
1446
|
+
display?: string;
|
|
1447
|
+
hover?: boolean;
|
|
1448
|
+
origin: string;
|
|
1449
|
+
overflow?: string;
|
|
1450
|
+
row?: string;
|
|
1451
|
+
targetLink?: string;
|
|
1452
|
+
targetType?: string;
|
|
1453
|
+
};
|
|
1454
|
+
type: string;
|
|
1455
|
+
};
|
|
1456
|
+
type SubjectAreaModule = {
|
|
1457
|
+
components: SubjectAreaModuleComponent[];
|
|
1458
|
+
filled: boolean;
|
|
1459
|
+
gutter: number;
|
|
1460
|
+
subtitle: string;
|
|
1461
|
+
subtitleColor: string;
|
|
1462
|
+
title: string;
|
|
1463
|
+
titleColor: string;
|
|
1464
|
+
type: string;
|
|
1465
|
+
};
|
|
1466
|
+
type SubjectAreaGroup = {
|
|
1467
|
+
bgAtmosphere: null | string;
|
|
1468
|
+
bgColor: string;
|
|
1469
|
+
bgImage: CNameOssUrl;
|
|
1470
|
+
id: number;
|
|
1471
|
+
lottieJsonUrl: null | CNameOssUrl;
|
|
1472
|
+
modules: SubjectAreaModule[];
|
|
1473
|
+
moreLink: null | string;
|
|
1474
|
+
moreLinkText: null | string;
|
|
1475
|
+
subjectAreaId: number;
|
|
1476
|
+
subtitle: string;
|
|
1477
|
+
subtitleColor: string;
|
|
1478
|
+
title: string;
|
|
1479
|
+
titleColor: string;
|
|
1480
|
+
verticalPadding: number;
|
|
1481
|
+
};
|
|
1482
|
+
type SubjectAreaScene = "HOMEPAGE";
|
|
1483
|
+
type SubjectAreaItem = {
|
|
1484
|
+
creationOids: MongoDBId[];
|
|
1485
|
+
enabled: boolean;
|
|
1486
|
+
iconLink: null | CNameOssUrl;
|
|
1487
|
+
id: number;
|
|
1488
|
+
location: null | string;
|
|
1489
|
+
platform: "WEB";
|
|
1490
|
+
priority: number;
|
|
1491
|
+
subjectAreaGroup: SubjectAreaGroup;
|
|
1492
|
+
subtitle: null | string;
|
|
1493
|
+
targetLink: null | string;
|
|
1494
|
+
title: string;
|
|
1495
|
+
visibleFor: string[];
|
|
1496
|
+
};
|
|
1497
|
+
type Res$1k = PagesRes<SubjectAreaItem>;
|
|
1498
|
+
/**
|
|
1499
|
+
* 分页获取主页推荐列表
|
|
1500
|
+
* @param {SubjectAreaScene} scene 场景
|
|
1501
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1502
|
+
* @returns {Promise<Res>} 主页推荐分页数据
|
|
1503
|
+
*/
|
|
1504
|
+
declare function getSubjectAreaPage<T extends string>(scene: SubjectAreaScene, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1k>;
|
|
1505
|
+
|
|
1506
|
+
type Res$1j = {
|
|
1507
|
+
accountOid: MongoDBId;
|
|
1508
|
+
accountType: AccountTypes;
|
|
1509
|
+
approvedContent: null | string;
|
|
1510
|
+
approvedType: null | string;
|
|
1511
|
+
avatar: CNameOssUrl;
|
|
1512
|
+
createdAt: number;
|
|
1513
|
+
ext: {};
|
|
1514
|
+
hideGender: boolean;
|
|
1515
|
+
id: number;
|
|
1516
|
+
maxCheckedFeedId: string;
|
|
1517
|
+
name: string;
|
|
1518
|
+
status: "NORMAL";
|
|
1519
|
+
studentNumber: `${number}`;
|
|
1520
|
+
updatedAt: number;
|
|
1521
|
+
};
|
|
1522
|
+
/**
|
|
1523
|
+
* 获取当前用户学习社区成员详情
|
|
1524
|
+
* @returns {Promise<Res>} 我的社区成员详情
|
|
1525
|
+
*/
|
|
1526
|
+
declare function getStudyCommunityMemberDetail(): Promise<Res$1j>;
|
|
1527
|
+
|
|
1528
|
+
type Res$1i = StudentFollowerStats;
|
|
1529
|
+
/**
|
|
1530
|
+
* 获取学生统计数据(关注数、粉丝数)
|
|
1531
|
+
* @param {MongoDBId} studentOid 学生id
|
|
1532
|
+
* @returns {Promise<Res>} 统计数据
|
|
1533
|
+
*/
|
|
1534
|
+
declare function getStudentStats(studentOid: MongoDBId): Promise<Res$1i>;
|
|
1535
|
+
|
|
1536
|
+
type Res$1h = StudentListItem[];
|
|
1537
|
+
/**
|
|
1538
|
+
* 根据学生OID列表获取学生信息列表(这个会返回一堆null,不建议使用)
|
|
1539
|
+
* @param {MongoDBId[]} studentOids 学生OID列表
|
|
1540
|
+
* @returns {Promise<Res>} 学生信息列表
|
|
1541
|
+
*/
|
|
1542
|
+
declare function getStudentsList(studentOids: MongoDBId[]): Promise<Res$1h>;
|
|
1543
|
+
|
|
1544
|
+
interface SessionArea {
|
|
1545
|
+
city: string;
|
|
1546
|
+
country: string;
|
|
1547
|
+
ip: string;
|
|
1548
|
+
province: string;
|
|
1549
|
+
}
|
|
1550
|
+
interface StudentSession {
|
|
1551
|
+
area: SessionArea;
|
|
1552
|
+
browser: string;
|
|
1553
|
+
clientCode: "STUDY_COMMUNITY";
|
|
1554
|
+
createdAt: number;
|
|
1555
|
+
currentDevice: boolean;
|
|
1556
|
+
device: string;
|
|
1557
|
+
expireTime: number;
|
|
1558
|
+
extra: string;
|
|
1559
|
+
id: number;
|
|
1560
|
+
ip: string;
|
|
1561
|
+
lastAccessTime: number;
|
|
1562
|
+
}
|
|
1563
|
+
interface LoginSession<Extra = string> {
|
|
1564
|
+
accountId: -1;
|
|
1565
|
+
accountObjectId: MongoDBId;
|
|
1566
|
+
accountType: AccountTypes;
|
|
1567
|
+
clientCode: "STUDY_COMMUNITY";
|
|
1568
|
+
createdAt: number;
|
|
1569
|
+
email: null;
|
|
1570
|
+
expireTime: number;
|
|
1571
|
+
extra: Extra;
|
|
1572
|
+
id: number;
|
|
1573
|
+
lastAccessTime: number;
|
|
1574
|
+
orgId: "";
|
|
1575
|
+
scene: null;
|
|
1576
|
+
status: "ENABLED";
|
|
1577
|
+
token: string;
|
|
1578
|
+
urlEncodedFullName: null;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
type session_LoginSession<Extra = string> = LoginSession<Extra>;
|
|
1582
|
+
type session_SessionArea = SessionArea;
|
|
1583
|
+
type session_StudentSession = StudentSession;
|
|
1584
|
+
declare namespace session {
|
|
1585
|
+
export type { session_LoginSession as LoginSession, session_SessionArea as SessionArea, session_StudentSession as StudentSession };
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
type Res$1g = PagesRes<StudentSession>;
|
|
1589
|
+
/**
|
|
1590
|
+
* 获取学生登录会话列表
|
|
1591
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1592
|
+
* @returns {Promise<Res>} 会话列表分页数据
|
|
1593
|
+
*/
|
|
1594
|
+
declare function getStudentSessions<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1g>;
|
|
1595
|
+
|
|
1596
|
+
type Res$1f = StudentSelfDetail;
|
|
1597
|
+
/**
|
|
1598
|
+
* 获取当前登录学生的详细信息
|
|
1599
|
+
* @param {boolean} needGrade 是否需要年级信息
|
|
1600
|
+
* @param {boolean} needExtraInfo 是否需要扩展信息
|
|
1601
|
+
* @param {StudentSelfDetailFields[]} fields 需要返回的字段列表
|
|
1602
|
+
* @returns {Promise<Res>} 当前学生详情
|
|
1603
|
+
*/
|
|
1604
|
+
declare function getStudentSelfDetail(needGrade: boolean, needExtraInfo: boolean, fields: StudentSelfDetailFields[]): Promise<Res$1f>;
|
|
1605
|
+
|
|
1606
|
+
type Res$1e = StudentProfile;
|
|
1607
|
+
/**
|
|
1608
|
+
* 获取学生个人主页资料
|
|
1609
|
+
* @param {MongoDBId} studentOid 学生id
|
|
1610
|
+
* @returns {Promise<Res>} 学生资料
|
|
1611
|
+
*/
|
|
1612
|
+
declare function getStudentProfile(studentOid: MongoDBId): Promise<Res$1e>;
|
|
1613
|
+
|
|
1614
|
+
type Res$1d = {
|
|
1615
|
+
lastActiveAt: number;
|
|
1616
|
+
};
|
|
1617
|
+
/**
|
|
1618
|
+
* 获取学生最后活跃时间
|
|
1619
|
+
* @param {MongoDBId} studentOid 学生id
|
|
1620
|
+
* @returns {Promise<Res>} 最后活跃时间数据
|
|
1621
|
+
*/
|
|
1622
|
+
declare function getStudentLastActiveAt(studentOid: MongoDBId): Promise<Res$1d>;
|
|
1623
|
+
|
|
1624
|
+
type Res$1c = PagesRes<StudentSimple & {
|
|
1625
|
+
operatorFollowingStatus: "FOLLOWED" | "BOTH_FOLLOWED";
|
|
1626
|
+
}>;
|
|
1627
|
+
/**
|
|
1628
|
+
* 获取学生关注列表分页
|
|
1629
|
+
* @param {MongoDBId} studentOid 学生id
|
|
1630
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1631
|
+
* @returns {Promise<Res>} 关注列表分页
|
|
1632
|
+
*/
|
|
1633
|
+
declare function getStudentFollowingPage<T extends string>(studentOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1c>;
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* 用户是否在我的黑名单中
|
|
1637
|
+
*/
|
|
1638
|
+
type BlockStatus = "NOT_BLOCKED" | "BLOCKING";
|
|
1639
|
+
type Res$1b = BlockStatus;
|
|
1640
|
+
/**
|
|
1641
|
+
* 获取特定用户黑名单状态
|
|
1642
|
+
* @param {MongoDBId} studentOid 学生id
|
|
1643
|
+
* @returns {Promise<Res>} 封禁状态
|
|
1644
|
+
*/
|
|
1645
|
+
declare function getStudentBlockStatus(studentOid: MongoDBId): Promise<Res$1b>;
|
|
1646
|
+
|
|
1647
|
+
type BlockRecord = {
|
|
1648
|
+
createdAt: number;
|
|
1649
|
+
expireAt: number;
|
|
1650
|
+
id: number;
|
|
1651
|
+
reason: string;
|
|
1652
|
+
studentOid: MongoDBId;
|
|
1653
|
+
};
|
|
1654
|
+
type Res$1a = PagesRes<BlockRecord>;
|
|
1655
|
+
/**
|
|
1656
|
+
* 获取学生封禁记录列表
|
|
1657
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1658
|
+
* @returns {Promise<Res>} 封禁记录分页数据
|
|
1659
|
+
*/
|
|
1660
|
+
declare function getStudentBlockRecordList<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$1a>;
|
|
1661
|
+
|
|
1662
|
+
type BlockActionRecord = {
|
|
1663
|
+
action: "BLOCK";
|
|
1664
|
+
createdAt: number;
|
|
1665
|
+
deletedAt: null;
|
|
1666
|
+
ext: null;
|
|
1667
|
+
/**
|
|
1668
|
+
* 我的用户id
|
|
1669
|
+
*/
|
|
1670
|
+
fromEntityId: MongoDBId;
|
|
1671
|
+
fromEntityType: AccountTypes;
|
|
1672
|
+
oid: MongoDBId;
|
|
1673
|
+
/**
|
|
1674
|
+
* 被加入黑名单的id
|
|
1675
|
+
*/
|
|
1676
|
+
relatedEntityId: MongoDBId;
|
|
1677
|
+
relatedEntityType: AccountTypes;
|
|
1678
|
+
updatedAt: number;
|
|
1679
|
+
};
|
|
1680
|
+
type Res$19 = BlockActionRecord | null;
|
|
1681
|
+
/**
|
|
1682
|
+
* 获取特定用户黑名单详细信息
|
|
1683
|
+
* @param {MongoDBId} studentOid 学生id
|
|
1684
|
+
* @returns {Promise<Res>} 封禁状态
|
|
1685
|
+
*/
|
|
1686
|
+
declare function getStudentBlockRecordDetail(studentOid: MongoDBId): Promise<Res$19>;
|
|
1687
|
+
|
|
1688
|
+
type Res$18 = number;
|
|
1689
|
+
/**
|
|
1690
|
+
* 获取动态未读消息数
|
|
1691
|
+
* @param {MongoDBId} studentOid 学生id
|
|
1692
|
+
* @returns {Promise<number>} 未读消息数
|
|
1693
|
+
*/
|
|
1694
|
+
declare function getSpreadFeedUnreadCount(studentOid: MongoDBId): Promise<Res$18>;
|
|
1695
|
+
|
|
1696
|
+
type SplitRuleItem = {
|
|
1697
|
+
authority: TeamMemberAuthority;
|
|
1698
|
+
avatar: string;
|
|
1699
|
+
creationOid: MongoDBId;
|
|
1700
|
+
id: number;
|
|
1701
|
+
name: string;
|
|
1702
|
+
/**
|
|
1703
|
+
* 排序顺序,从零开始,小的在上
|
|
1704
|
+
*/
|
|
1705
|
+
priority: number;
|
|
1706
|
+
profile: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* @example rate=0.8
|
|
1709
|
+
*/
|
|
1710
|
+
rate: number;
|
|
1711
|
+
role: string;
|
|
1712
|
+
userOid: MongoDBId;
|
|
1713
|
+
};
|
|
1714
|
+
type Res$17 = SplitRuleItem[];
|
|
1715
|
+
/**
|
|
1716
|
+
* 获取作品协作者智能合约分成规则详情
|
|
1717
|
+
* @param {MongoDBId} creationOid 作品id
|
|
1718
|
+
* @returns {Promise<Res>} 分成规则列表
|
|
1719
|
+
*/
|
|
1720
|
+
declare function getSplitRuleDetail(creationOid: MongoDBId): Promise<Res$17>;
|
|
1721
|
+
|
|
1722
|
+
type SmartContractBizType = "CREATION";
|
|
1723
|
+
type SmartContractRule = {
|
|
1724
|
+
createdAt: number;
|
|
1725
|
+
id: number;
|
|
1726
|
+
rule: {
|
|
1727
|
+
awardeeAccountId?: "${curUserAccountId}";
|
|
1728
|
+
awarderAccountId?: "${smartContractAccountId}";
|
|
1729
|
+
bucks: "${bucks}";
|
|
1730
|
+
code: "donate" | "award";
|
|
1731
|
+
donatorAccountId?: "${curUserAccountId}";
|
|
1732
|
+
funSignature: {
|
|
1733
|
+
en: string;
|
|
1734
|
+
zh_cn: string;
|
|
1735
|
+
};
|
|
1736
|
+
splitDetailList?: {
|
|
1737
|
+
accountId: "${smartContractAccountId}" | "${creationAccountId}";
|
|
1738
|
+
rate: number;
|
|
1739
|
+
}[];
|
|
1740
|
+
title: string;
|
|
1741
|
+
};
|
|
1742
|
+
smartContractId: number;
|
|
1743
|
+
updatedAt: number;
|
|
1744
|
+
};
|
|
1745
|
+
type SmartCoinContract = {
|
|
1746
|
+
accountId: MongoDBId;
|
|
1747
|
+
bizId: MongoDBId;
|
|
1748
|
+
bizType: SmartContractBizType;
|
|
1749
|
+
createdAt: number;
|
|
1750
|
+
id: number;
|
|
1751
|
+
rules: SmartContractRule[];
|
|
1752
|
+
status: "ENABLED";
|
|
1753
|
+
title: "通用合约";
|
|
1754
|
+
type: "GENERAL";
|
|
1755
|
+
updatedAt: number;
|
|
1756
|
+
};
|
|
1757
|
+
type Res$16 = SmartCoinContract[];
|
|
1758
|
+
/**
|
|
1759
|
+
* 列出作品中的智能金币合约
|
|
1760
|
+
* @param {MongoDBId} bizId 业务ID(如作品OID)
|
|
1761
|
+
* @param {SmartContractBizType} bizType 业务类型,CREATION
|
|
1762
|
+
* @returns {Promise<Res>} 智能合约列表
|
|
1763
|
+
*/
|
|
1764
|
+
declare function getSmartContractList(bizId: MongoDBId, bizType?: SmartContractBizType): Promise<Res$16>;
|
|
1765
|
+
|
|
1766
|
+
type Res$15 = {
|
|
1767
|
+
accountId: MongoDBId;
|
|
1768
|
+
bizId: MongoDBId;
|
|
1769
|
+
bizType: SmartContractBizType;
|
|
1770
|
+
createdAt: number;
|
|
1771
|
+
id: number;
|
|
1772
|
+
rules: SmartContractRule[];
|
|
1773
|
+
status: "ENABLED";
|
|
1774
|
+
title: string;
|
|
1775
|
+
type: string;
|
|
1776
|
+
updatedAt: number;
|
|
1777
|
+
};
|
|
1778
|
+
/**
|
|
1779
|
+
* 获取智能合约详情
|
|
1780
|
+
* @param {number} id 合约 ID
|
|
1781
|
+
* @returns {Promise<Res>} 合约详情
|
|
1782
|
+
*/
|
|
1783
|
+
declare function getSmartContractDetail(id: number): Promise<Res$15>;
|
|
1784
|
+
|
|
1785
|
+
type Res$14 = {
|
|
1786
|
+
balance: number;
|
|
1787
|
+
};
|
|
1788
|
+
/**
|
|
1789
|
+
* 查询智能合约账户余额
|
|
1790
|
+
* @param {number} id 合约 ID
|
|
1791
|
+
* @returns {Promise<Res>} 合约账户余额
|
|
1792
|
+
*/
|
|
1793
|
+
declare function getSmartContractAccount(id: number): Promise<Res$14>;
|
|
1794
|
+
|
|
1795
|
+
type Res$13 = string[];
|
|
1796
|
+
/**
|
|
1797
|
+
* 获取搜索热词
|
|
1798
|
+
* @param {number} length 热词数量
|
|
1799
|
+
* @returns {Promise<Res>} 热词列表
|
|
1800
|
+
*/
|
|
1801
|
+
declare function getSearchHotWords(length: number): Promise<Res$13>;
|
|
1802
|
+
|
|
1803
|
+
type Res$12 = PagesRes<ReputationScoreLog>;
|
|
1804
|
+
/**
|
|
1805
|
+
* 获取学生信誉分记录
|
|
1806
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
1807
|
+
* @returns {Promise<Res>} 信誉分记录分页数据
|
|
1808
|
+
*/
|
|
1809
|
+
declare function getReputationScoreLog<T extends string>(pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$12>;
|
|
1810
|
+
|
|
1811
|
+
type SortField$7 = "createdAt" | "likeCount" | "viewCount" | "updatedAt" | "commentCount";
|
|
1812
|
+
type Res$11 = PagesRes<CreationSimple>;
|
|
1813
|
+
/**
|
|
1814
|
+
* 根据原作品id获取改编作品分页列表
|
|
1815
|
+
* @param {MongoDBId[]} originCreationOids 原作品id列表
|
|
1816
|
+
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1817
|
+
* @returns {Promise<Res>} 改编作品分页结果
|
|
1818
|
+
*/
|
|
1819
|
+
declare function getRemixedCreationPage<T extends string>(originCreationOids: MongoDBId[], pageArgs_?: Partial<PageArgs<SortField$7 | T>>): Promise<Res$11>;
|
|
1820
|
+
|
|
1821
|
+
type HashTagCreationRank = "ORDINARY";
|
|
1822
|
+
type HashTagCreationStatus$1 = CreationStatus;
|
|
1823
|
+
interface HashTagCreationRelation {
|
|
1824
|
+
blurb: null | string;
|
|
1825
|
+
canAudit: boolean;
|
|
1826
|
+
createdAt: number;
|
|
1827
|
+
creationOid: MongoDBId;
|
|
1828
|
+
hashTagId: number;
|
|
1829
|
+
hashTagIdentifier: string;
|
|
1830
|
+
id: number;
|
|
1831
|
+
lastPublishedAt: number;
|
|
1832
|
+
lastSubmittedAt: number;
|
|
1833
|
+
projectLastModifiedAt: null | number;
|
|
1834
|
+
rank: HashTagCreationRank;
|
|
1835
|
+
status: HashTagCreationStatus$1;
|
|
1836
|
+
/**
|
|
1837
|
+
* 作品作者id,不是星球管理id
|
|
1838
|
+
*/
|
|
1839
|
+
studentOid: MongoDBId;
|
|
1840
|
+
updatedAt: number;
|
|
1841
|
+
}
|
|
1842
|
+
type HashTagFollowingStatus = "UNFOLLOWED" | "FOLLOWED" | "BOTH_FOLLOWED";
|
|
1843
|
+
interface HashTagMemberSimple {
|
|
1844
|
+
avatar: CNameOssUrl;
|
|
1845
|
+
followingStatus: HashTagFollowingStatus;
|
|
1846
|
+
name: string;
|
|
1847
|
+
oid: MongoDBId;
|
|
1848
|
+
}
|
|
1849
|
+
type HashTagStatus = "ENABLED";
|
|
1850
|
+
type HashTagType = "ORDINARY";
|
|
1851
|
+
interface HashTag {
|
|
1852
|
+
bulletin: string | null;
|
|
1853
|
+
bulletinOperatedAt: number | null;
|
|
1854
|
+
bulletinOperator: HashTagMemberSimple | null;
|
|
1855
|
+
bulletinOperatorOid: MongoDBId | null;
|
|
1856
|
+
commentCount: number | null;
|
|
1857
|
+
coverLink: CNameOssUrl;
|
|
1858
|
+
createdAt: number;
|
|
1859
|
+
creationCount: number;
|
|
1860
|
+
description: string | null;
|
|
1861
|
+
enableApplyManager: boolean | null;
|
|
1862
|
+
enableBatchAudit: boolean | null;
|
|
1863
|
+
favoriteStatus: unknown | null;
|
|
1864
|
+
favoritedStudentCount: number;
|
|
1865
|
+
hashTagScoreStatsResp: unknown | null;
|
|
1866
|
+
id: number;
|
|
1867
|
+
identifier: string;
|
|
1868
|
+
latestFavoritedStudents: HashTagMemberSimple[];
|
|
1869
|
+
managerIds: MongoDBId[];
|
|
1870
|
+
managers: HashTagMemberSimple[];
|
|
1871
|
+
memberCount: number;
|
|
1872
|
+
ownerType: unknown | null;
|
|
1873
|
+
priority: number;
|
|
1874
|
+
recommended: boolean;
|
|
1875
|
+
relatedStarNum: number | null;
|
|
1876
|
+
status: HashTagStatus;
|
|
1877
|
+
type: HashTagType;
|
|
1878
|
+
updatedAt: number;
|
|
1879
|
+
}
|
|
1880
|
+
interface HashTagFavorite {
|
|
1881
|
+
createdAt: number;
|
|
1882
|
+
ext: object;
|
|
1883
|
+
hashTagId: number;
|
|
1884
|
+
id: number;
|
|
1885
|
+
lastFavoritedAt: number;
|
|
1886
|
+
studentOid: MongoDBId;
|
|
1887
|
+
unfavoritedAt: number | null;
|
|
1888
|
+
updatedAt: number;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
type hashTag_HashTag = HashTag;
|
|
1892
|
+
type hashTag_HashTagCreationRank = HashTagCreationRank;
|
|
1893
|
+
type hashTag_HashTagCreationRelation = HashTagCreationRelation;
|
|
1894
|
+
type hashTag_HashTagFavorite = HashTagFavorite;
|
|
1895
|
+
type hashTag_HashTagFollowingStatus = HashTagFollowingStatus;
|
|
1896
|
+
type hashTag_HashTagMemberSimple = HashTagMemberSimple;
|
|
1897
|
+
type hashTag_HashTagStatus = HashTagStatus;
|
|
1898
|
+
type hashTag_HashTagType = HashTagType;
|
|
1899
|
+
declare namespace hashTag {
|
|
1900
|
+
export type { hashTag_HashTag as HashTag, hashTag_HashTagCreationRank as HashTagCreationRank, hashTag_HashTagCreationRelation as HashTagCreationRelation, HashTagCreationStatus$1 as HashTagCreationStatus, hashTag_HashTagFavorite as HashTagFavorite, hashTag_HashTagFollowingStatus as HashTagFollowingStatus, hashTag_HashTagMemberSimple as HashTagMemberSimple, hashTag_HashTagStatus as HashTagStatus, hashTag_HashTagType as HashTagType };
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
type Res$10 = HashTag[];
|
|
1904
|
+
/**
|
|
1905
|
+
* 获取推荐星球列表
|
|
1906
|
+
* @returns {Promise<Res>} 推荐星球列表
|
|
1907
|
+
*/
|
|
1908
|
+
declare function getRecommendHashTags(): Promise<Res$10>;
|
|
1909
|
+
|
|
1910
|
+
type CreatorType = "EXCELLENT" | "POTENTIAL";
|
|
1911
|
+
type RecommendCreator = {
|
|
1912
|
+
approvedContent: null | string;
|
|
1913
|
+
approvedType: null | string;
|
|
1914
|
+
avatar: CNameOssUrl;
|
|
1915
|
+
bio: string;
|
|
1916
|
+
creationCount: number;
|
|
1917
|
+
creatorType: CreatorType;
|
|
1918
|
+
followerCount: number;
|
|
1919
|
+
gender: "MALE" | "FEMALE";
|
|
1920
|
+
name: string;
|
|
1921
|
+
studentOid: MongoDBId;
|
|
1922
|
+
};
|
|
1923
|
+
type Res$$ = RecommendCreator[];
|
|
1924
|
+
/**
|
|
1925
|
+
* 获取社区推荐创作者列表
|
|
1926
|
+
* @param {number} excellentCount 精选创作者数量
|
|
1927
|
+
* @param {number} potentialCount 潜力创作者数量
|
|
1928
|
+
* @returns {Promise<Res>} 推荐创作者列表
|
|
1929
|
+
*/
|
|
1930
|
+
declare function getRecommendCreators(excellentCount?: number, potentialCount?: number): Promise<Res$$>;
|
|
1931
|
+
|
|
1932
|
+
type SortField$6 = "createdAt" | "likeCount" | "viewCount";
|
|
1933
|
+
type Res$_ = PagesRes<CreationSimple>;
|
|
1934
|
+
/**
|
|
1935
|
+
* 获取推荐作品列表
|
|
1936
|
+
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
1937
|
+
* @returns {Promise<Res>} 作品分页结果
|
|
1938
|
+
*/
|
|
1939
|
+
declare function getRecommendCreations<T extends string>(num: number, pageArgs_?: Partial<PageArgs<SortField$6 | T>>): Promise<Res$_>;
|
|
1940
|
+
|
|
1941
|
+
type Res$Z = CreationSimple[];
|
|
1942
|
+
/**
|
|
1943
|
+
* 获取潜力作品列表
|
|
1944
|
+
* @param {number} num 数量
|
|
1945
|
+
* @returns {Promise<CreationSimple[]>} 作品列表
|
|
1946
|
+
*/
|
|
1947
|
+
declare function getPotentialCreations(num: number): Promise<Res$Z>;
|
|
1948
|
+
|
|
1949
|
+
type PostTag = {
|
|
1950
|
+
name: string;
|
|
1951
|
+
slag: string;
|
|
1952
|
+
};
|
|
1953
|
+
type PostFeatureImage = {
|
|
1954
|
+
alt: string;
|
|
1955
|
+
caption: string;
|
|
1956
|
+
url: CNameOssUrl;
|
|
1957
|
+
};
|
|
1958
|
+
type PostAuthor = {
|
|
1959
|
+
avatar: CNameOssUrl;
|
|
1960
|
+
name: string;
|
|
1961
|
+
oid: MongoDBId;
|
|
1962
|
+
};
|
|
1963
|
+
type Res$Y = {
|
|
1964
|
+
author: PostAuthor;
|
|
1965
|
+
authorOid: MongoDBId;
|
|
1966
|
+
collectCount: null | number;
|
|
1967
|
+
commentCount: number;
|
|
1968
|
+
content: string;
|
|
1969
|
+
createdAt: number;
|
|
1970
|
+
draftContent: null | string;
|
|
1971
|
+
excerpt: string;
|
|
1972
|
+
featureImage: PostFeatureImage;
|
|
1973
|
+
keywords: null | string[];
|
|
1974
|
+
oid: MongoDBId;
|
|
1975
|
+
pageView: number;
|
|
1976
|
+
publishedAt: number;
|
|
1977
|
+
rank: "EXCELLENT" | "ORDINARY";
|
|
1978
|
+
rankUpdatedAt: null | number;
|
|
1979
|
+
reviewedAt: number;
|
|
1980
|
+
slug: string;
|
|
1981
|
+
status: string;
|
|
1982
|
+
tagRefs: PostTag[];
|
|
1983
|
+
tags: string[];
|
|
1984
|
+
title: string;
|
|
1985
|
+
updatedAt: number;
|
|
1986
|
+
visibility: string;
|
|
1987
|
+
};
|
|
1988
|
+
/**
|
|
1989
|
+
* 获取帖子详情
|
|
1990
|
+
* @param {string} slug 帖子slug
|
|
1991
|
+
* @returns {Promise<Res>} 帖子详情
|
|
1992
|
+
*/
|
|
1993
|
+
declare function getPostDetail(slug: string): Promise<Res$Y>;
|
|
1994
|
+
|
|
1995
|
+
type Res$X = HashTagCreationRelation[];
|
|
1996
|
+
/**
|
|
1997
|
+
* 获取作品所在星球列表
|
|
1998
|
+
* @param {MongoDBId} creationOid 作品ID
|
|
1999
|
+
* @returns {Promise<Res>} 星球列表
|
|
2000
|
+
*/
|
|
2001
|
+
declare function getPlanetsOfCreation(creationOid: MongoDBId): Promise<Res$X>;
|
|
2002
|
+
|
|
2003
|
+
type Res$W = {
|
|
2004
|
+
internalCurrencyBalance: number;
|
|
2005
|
+
topUpCurrencyBalance: number;
|
|
2006
|
+
withdrawCurrencyBalance: number;
|
|
2007
|
+
};
|
|
2008
|
+
/**
|
|
2009
|
+
* 获取个人金币信息
|
|
2010
|
+
* @returns {Promise<Res>} 账户金币余额信息
|
|
2011
|
+
*/
|
|
2012
|
+
declare function getPersonalCurrencyAccount(): Promise<Res$W>;
|
|
2013
|
+
|
|
2014
|
+
type SortField$5 = "updatedAt" | "createdAt";
|
|
2015
|
+
type Res$V = PagesRes<CreationSimple>;
|
|
2016
|
+
/**
|
|
2017
|
+
* 获取自己的作品分页列表
|
|
2018
|
+
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
2019
|
+
* @param {boolean} ignoreTypicalProject 是否忽略应用课编程文件项目
|
|
2020
|
+
* @param {ProjectStatus[]} statuses 作品状态过滤
|
|
2021
|
+
* @returns {Promise<Res>} 自己的作品分页列表
|
|
2022
|
+
*/
|
|
2023
|
+
declare function getOwnCreationPage<T extends string>(pageArgs_?: Partial<PageArgs<SortField$5 | T>>, statuses?: CreationStatus[], ignoreTypicalProject?: boolean): Promise<Res$V>;
|
|
2024
|
+
|
|
2025
|
+
type SubjectType$1 = "POST" | "CREATION" | "EXTENSION" | "PROFILE" | "SOCIETY" | "ACTIVITY" | string;
|
|
2026
|
+
type ContentCategory = "POST_LIKED" | "POST_FAVORITE" | "POST_COMMENT" | "CREATION_LIKED" | "CREATION_FAVORITE" | "CREATION_COMMENTED" | "CREATION_SHARE" | "EXTENSION_LIKED" | "EXTENSION_COMMENTED" | "EXTENSION_COMMENT_REPLIED" | "PROFILE_LEAVE_WORDS" | "SESSION_CREATED" | "COMMUNITY_ACTIVITY" | "FOLLOWED" | "POST_VISIBILITY_CHANGED" | string;
|
|
2027
|
+
interface PostNotificationContentBase {
|
|
2028
|
+
subject_type: "POST";
|
|
2029
|
+
sender: string;
|
|
2030
|
+
subject_oid: MongoDBId;
|
|
2031
|
+
subject_outline: string;
|
|
2032
|
+
avatar: null;
|
|
2033
|
+
sender_id: MongoDBId;
|
|
2034
|
+
slug: UUID;
|
|
2035
|
+
}
|
|
2036
|
+
interface PostLikedContent extends PostNotificationContentBase {
|
|
2037
|
+
}
|
|
2038
|
+
interface PostFavContent extends PostNotificationContentBase {
|
|
2039
|
+
comments: string;
|
|
2040
|
+
}
|
|
2041
|
+
interface PostCommentContent {
|
|
2042
|
+
ext: {
|
|
2043
|
+
slug: UUID;
|
|
2044
|
+
} | null;
|
|
2045
|
+
comments: string;
|
|
2046
|
+
subject_type: "POST";
|
|
2047
|
+
sender: string;
|
|
2048
|
+
subject_oid: MongoDBId;
|
|
2049
|
+
subject_outline: string;
|
|
2050
|
+
senderType: "STUDENT" | string;
|
|
2051
|
+
avatar: CNameOssUrl;
|
|
2052
|
+
message: string | null;
|
|
2053
|
+
sender_id: MongoDBId;
|
|
2054
|
+
}
|
|
2055
|
+
interface CreationNotificationContentBase {
|
|
2056
|
+
subject_type: "CREATION";
|
|
2057
|
+
sender: string;
|
|
2058
|
+
subject_oid: MongoDBId;
|
|
2059
|
+
sender_id: MongoDBId;
|
|
2060
|
+
}
|
|
2061
|
+
interface CreationLikeNotificationContent extends CreationNotificationContentBase {
|
|
2062
|
+
homework_title: string;
|
|
2063
|
+
homework_id: MongoDBId;
|
|
2064
|
+
student_id: `${number}`;
|
|
2065
|
+
avatar: CNameOssUrl;
|
|
2066
|
+
like_icon: CNameOssUrl;
|
|
2067
|
+
}
|
|
2068
|
+
interface CreationFavContent extends CreationNotificationContentBase {
|
|
2069
|
+
comments: string;
|
|
2070
|
+
subject_outline: string;
|
|
2071
|
+
}
|
|
2072
|
+
interface CreationCommentedContent {
|
|
2073
|
+
ext: null;
|
|
2074
|
+
comments: string;
|
|
2075
|
+
subject_type: "CREATION";
|
|
2076
|
+
sender: string;
|
|
2077
|
+
subject_oid: MongoDBId;
|
|
2078
|
+
subject_outline: string;
|
|
2079
|
+
senderType: "STUDENT" | string;
|
|
2080
|
+
avatar: CNameOssUrl;
|
|
2081
|
+
message: string | null;
|
|
2082
|
+
sender_id: MongoDBId;
|
|
2083
|
+
}
|
|
2084
|
+
interface CreationShareContent {
|
|
2085
|
+
subject_type: "CREATION";
|
|
2086
|
+
subject_outline: string;
|
|
2087
|
+
subject_oid: MongoDBId;
|
|
2088
|
+
sender_id: MongoDBId;
|
|
2089
|
+
}
|
|
2090
|
+
interface ExtensionLikedContent {
|
|
2091
|
+
subject_type: "EXTENSION";
|
|
2092
|
+
sender: string;
|
|
2093
|
+
subject_oid: string;
|
|
2094
|
+
subject_outline: string;
|
|
2095
|
+
avatar: null;
|
|
2096
|
+
sender_id: MongoDBId;
|
|
2097
|
+
}
|
|
2098
|
+
interface ExtensionCommentedContent {
|
|
2099
|
+
ext: {
|
|
2100
|
+
target: MongoDBId;
|
|
2101
|
+
} | null;
|
|
2102
|
+
comments: string;
|
|
2103
|
+
subject_type: "EXTENSION";
|
|
2104
|
+
sender: string;
|
|
2105
|
+
subject_oid: string;
|
|
2106
|
+
subject_outline: string;
|
|
2107
|
+
senderType: "STUDENT" | string;
|
|
2108
|
+
avatar: CNameOssUrl;
|
|
2109
|
+
message: string | null;
|
|
2110
|
+
sender_id: MongoDBId;
|
|
2111
|
+
}
|
|
2112
|
+
interface ExtensionCommentRepliedContent extends ExtensionCommentedContent {
|
|
2113
|
+
}
|
|
2114
|
+
interface ProfileLeaveWordsContent {
|
|
2115
|
+
ext: null;
|
|
2116
|
+
comments: string;
|
|
2117
|
+
subject_type: "PROFILE";
|
|
2118
|
+
sender: string;
|
|
2119
|
+
subject_oid: MongoDBId;
|
|
2120
|
+
subject_outline: string;
|
|
2121
|
+
senderType: "STUDENT" | string;
|
|
2122
|
+
avatar: CNameOssUrl;
|
|
2123
|
+
message: string | null;
|
|
2124
|
+
sender_id: MongoDBId;
|
|
2125
|
+
}
|
|
2126
|
+
interface SessionCreatedContent {
|
|
2127
|
+
comments: string;
|
|
2128
|
+
subject_type: "SOCIETY";
|
|
2129
|
+
subject_oid: null;
|
|
2130
|
+
}
|
|
2131
|
+
interface CommunityActivityContent {
|
|
2132
|
+
comments: string;
|
|
2133
|
+
subject_type: "ACTIVITY";
|
|
2134
|
+
subject_oid: MongoDBId;
|
|
2135
|
+
subject_outline: string;
|
|
2136
|
+
}
|
|
2137
|
+
interface FollowedContent {
|
|
2138
|
+
comments: string;
|
|
2139
|
+
subject_type: "SOCIETY";
|
|
2140
|
+
sender: string;
|
|
2141
|
+
subject_oid: MongoDBId;
|
|
2142
|
+
sender_id: MongoDBId;
|
|
2143
|
+
}
|
|
2144
|
+
interface PostVisibilityChangedContent {
|
|
2145
|
+
comments: string;
|
|
2146
|
+
subject_type: "SOCIETY";
|
|
2147
|
+
subject_oid: null;
|
|
2148
|
+
}
|
|
2149
|
+
type NotificationContent = PostLikedContent | PostFavContent | PostCommentContent | CreationLikeNotificationContent | CreationFavContent | CreationCommentedContent | CreationShareContent | ExtensionLikedContent | ExtensionCommentedContent | ExtensionCommentRepliedContent | ProfileLeaveWordsContent | SessionCreatedContent | CommunityActivityContent | FollowedContent | PostVisibilityChangedContent | Record<string, unknown>;
|
|
2150
|
+
|
|
2151
|
+
type notificationContent_CommunityActivityContent = CommunityActivityContent;
|
|
2152
|
+
type notificationContent_ContentCategory = ContentCategory;
|
|
2153
|
+
type notificationContent_CreationCommentedContent = CreationCommentedContent;
|
|
2154
|
+
type notificationContent_CreationFavContent = CreationFavContent;
|
|
2155
|
+
type notificationContent_CreationLikeNotificationContent = CreationLikeNotificationContent;
|
|
2156
|
+
type notificationContent_CreationNotificationContentBase = CreationNotificationContentBase;
|
|
2157
|
+
type notificationContent_CreationShareContent = CreationShareContent;
|
|
2158
|
+
type notificationContent_ExtensionCommentRepliedContent = ExtensionCommentRepliedContent;
|
|
2159
|
+
type notificationContent_ExtensionCommentedContent = ExtensionCommentedContent;
|
|
2160
|
+
type notificationContent_ExtensionLikedContent = ExtensionLikedContent;
|
|
2161
|
+
type notificationContent_FollowedContent = FollowedContent;
|
|
2162
|
+
type notificationContent_NotificationContent = NotificationContent;
|
|
2163
|
+
type notificationContent_PostCommentContent = PostCommentContent;
|
|
2164
|
+
type notificationContent_PostFavContent = PostFavContent;
|
|
2165
|
+
type notificationContent_PostLikedContent = PostLikedContent;
|
|
2166
|
+
type notificationContent_PostNotificationContentBase = PostNotificationContentBase;
|
|
2167
|
+
type notificationContent_PostVisibilityChangedContent = PostVisibilityChangedContent;
|
|
2168
|
+
type notificationContent_ProfileLeaveWordsContent = ProfileLeaveWordsContent;
|
|
2169
|
+
type notificationContent_SessionCreatedContent = SessionCreatedContent;
|
|
2170
|
+
declare namespace notificationContent {
|
|
2171
|
+
export type { notificationContent_CommunityActivityContent as CommunityActivityContent, notificationContent_ContentCategory as ContentCategory, notificationContent_CreationCommentedContent as CreationCommentedContent, notificationContent_CreationFavContent as CreationFavContent, notificationContent_CreationLikeNotificationContent as CreationLikeNotificationContent, notificationContent_CreationNotificationContentBase as CreationNotificationContentBase, notificationContent_CreationShareContent as CreationShareContent, notificationContent_ExtensionCommentRepliedContent as ExtensionCommentRepliedContent, notificationContent_ExtensionCommentedContent as ExtensionCommentedContent, notificationContent_ExtensionLikedContent as ExtensionLikedContent, notificationContent_FollowedContent as FollowedContent, notificationContent_NotificationContent as NotificationContent, notificationContent_PostCommentContent as PostCommentContent, notificationContent_PostFavContent as PostFavContent, notificationContent_PostLikedContent as PostLikedContent, notificationContent_PostNotificationContentBase as PostNotificationContentBase, notificationContent_PostVisibilityChangedContent as PostVisibilityChangedContent, notificationContent_ProfileLeaveWordsContent as ProfileLeaveWordsContent, notificationContent_SessionCreatedContent as SessionCreatedContent, SubjectType$1 as SubjectType };
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
declare enum NotificationGroup {
|
|
2175
|
+
CreationInteraction = "CREATION_INTERACTION",
|
|
2176
|
+
CommentToMe = "COMMENT_TO_ME",
|
|
2177
|
+
FriendShare = "FRIEND_SHARE",
|
|
2178
|
+
WebSystem = "WEB_SYSTEM"
|
|
2179
|
+
}
|
|
2180
|
+
interface NotificationSenderInfo {
|
|
2181
|
+
approvedContent: string | null;
|
|
2182
|
+
avatar: string;
|
|
2183
|
+
name: string;
|
|
2184
|
+
oid: MongoDBId;
|
|
2185
|
+
}
|
|
2186
|
+
interface NotificationExtensionInfo {
|
|
2187
|
+
cover: string;
|
|
2188
|
+
createdAt: number;
|
|
2189
|
+
creationId: MongoDBId;
|
|
2190
|
+
description: string;
|
|
2191
|
+
eid: string;
|
|
2192
|
+
icon: string;
|
|
2193
|
+
id: number;
|
|
2194
|
+
latestProjectCoverLink: string | null;
|
|
2195
|
+
latestProjectLink: string | null;
|
|
2196
|
+
name: string;
|
|
2197
|
+
publisherId: MongoDBId;
|
|
2198
|
+
status: string;
|
|
2199
|
+
updatedAt: number;
|
|
2200
|
+
}
|
|
2201
|
+
interface Notification {
|
|
2202
|
+
assetMarketInfo: null;
|
|
2203
|
+
avatar: CNameOssUrl;
|
|
2204
|
+
comment: string | null;
|
|
2205
|
+
commentType: string | null;
|
|
2206
|
+
content: NotificationContent;
|
|
2207
|
+
contentCategory: ContentCategory;
|
|
2208
|
+
createdAt: number;
|
|
2209
|
+
creationInfo: CreationMinimal | null;
|
|
2210
|
+
extensionInfo: NotificationExtensionInfo | null;
|
|
2211
|
+
followInfo: null;
|
|
2212
|
+
likeIcon: string | null;
|
|
2213
|
+
message: null;
|
|
2214
|
+
messageType: null;
|
|
2215
|
+
senderInfo: NotificationSenderInfo;
|
|
2216
|
+
senderName: string;
|
|
2217
|
+
senderOid: MongoDBId;
|
|
2218
|
+
senderType: string | null;
|
|
2219
|
+
studentInfo: null;
|
|
2220
|
+
subjectOid: MongoDBId;
|
|
2221
|
+
subjectOutline: string;
|
|
2222
|
+
subjectType: SubjectType$1;
|
|
2223
|
+
title: string | null;
|
|
2224
|
+
triggeredById: string;
|
|
2225
|
+
url: string | null;
|
|
2226
|
+
}
|
|
2227
|
+
interface NotificationStats {
|
|
2228
|
+
ACTIVITY_ASSISTANT: number;
|
|
2229
|
+
COMMENT_TO_ME: number;
|
|
2230
|
+
CREATION_INTERACTION: number;
|
|
2231
|
+
CREATION_STATUS: number;
|
|
2232
|
+
FOLLOW_ME: number;
|
|
2233
|
+
FRIEND_SHARE: number;
|
|
2234
|
+
JUDGEMENT: number;
|
|
2235
|
+
WEB_SYSTEM: number;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
type notification_Notification = Notification;
|
|
2239
|
+
type notification_NotificationExtensionInfo = NotificationExtensionInfo;
|
|
2240
|
+
type notification_NotificationGroup = NotificationGroup;
|
|
2241
|
+
declare const notification_NotificationGroup: typeof NotificationGroup;
|
|
2242
|
+
type notification_NotificationSenderInfo = NotificationSenderInfo;
|
|
2243
|
+
type notification_NotificationStats = NotificationStats;
|
|
2244
|
+
declare namespace notification {
|
|
2245
|
+
export { type notification_Notification as Notification, type notification_NotificationExtensionInfo as NotificationExtensionInfo, notification_NotificationGroup as NotificationGroup, type notification_NotificationSenderInfo as NotificationSenderInfo, type notification_NotificationStats as NotificationStats };
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
type Res$U = NotificationStats;
|
|
2249
|
+
/**
|
|
2250
|
+
* 获取通知统计
|
|
2251
|
+
* @param {boolean} countAll 是否统计全部
|
|
2252
|
+
* @returns {Promise<Res>} 通知统计数据
|
|
2253
|
+
*/
|
|
2254
|
+
declare function getNotificationStats(countAll?: boolean): Promise<Res$U>;
|
|
2255
|
+
|
|
2256
|
+
type Res$T = PagesRes<Notification>;
|
|
2257
|
+
/**
|
|
2258
|
+
* 分页获取通知列表
|
|
2259
|
+
* @param {NotificationGroup} notifyGroup 通知分组
|
|
2260
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
2261
|
+
* @returns {Promise<Res>} 分页通知数据
|
|
2262
|
+
*/
|
|
2263
|
+
declare function getNotificationPage<T extends string>(notifyGroup?: NotificationGroup, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$T>;
|
|
2264
|
+
|
|
2265
|
+
type NotifyMessage = {
|
|
2266
|
+
/** @example message = '由于包含广告或垃圾信息,已被管理员删除!' */
|
|
2267
|
+
message: string;
|
|
2268
|
+
/** @example title = '广告或垃圾信息' */
|
|
2269
|
+
title: string;
|
|
2270
|
+
};
|
|
2271
|
+
type Res$S = NotifyMessage[];
|
|
2272
|
+
/**
|
|
2273
|
+
* 获取通知删除原因列表
|
|
2274
|
+
* @returns {Promise<Res>} 消息删除原因列表
|
|
2275
|
+
*/
|
|
2276
|
+
declare function getNotifyDeleteReasons(): Promise<Res$S>;
|
|
2277
|
+
|
|
2278
|
+
/**
|
|
2279
|
+
* PREPARED: 已完成,未领取
|
|
2280
|
+
* PENDING: 未完成
|
|
2281
|
+
* AWARDED: 已领取
|
|
2282
|
+
*/
|
|
2283
|
+
type TaskStatus = "PENDING" | "PREPARED" | "AWARDED";
|
|
2284
|
+
type TaskType = "CYCLE";
|
|
2285
|
+
type TaskExt = {
|
|
2286
|
+
pic: OriginOssUrl;
|
|
2287
|
+
};
|
|
2288
|
+
type TaskItem = {
|
|
2289
|
+
description: string;
|
|
2290
|
+
ext: TaskExt;
|
|
2291
|
+
name: string;
|
|
2292
|
+
oid: MongoDBId;
|
|
2293
|
+
status: TaskStatus;
|
|
2294
|
+
type: TaskType;
|
|
2295
|
+
};
|
|
2296
|
+
type Res$R = TaskItem[];
|
|
2297
|
+
/**
|
|
2298
|
+
* 获取我的任务列表
|
|
2299
|
+
* @returns {Promise<Res>} 任务列表
|
|
2300
|
+
*/
|
|
2301
|
+
declare function getMyTasks(): Promise<Res$R>;
|
|
2302
|
+
|
|
2303
|
+
type SortField$4 = "createdAt" | "lastPassedAt" | "lastSubmittedAt" | "lastPublishedAt" | string;
|
|
2304
|
+
type HashTagCreationStatus = "PUBLISHED" | "SUBMITTED" | string;
|
|
2305
|
+
type Res$Q = PagesRes<Creation, SortField$4>;
|
|
2306
|
+
/**
|
|
2307
|
+
* 获取当前用户提交到星球的作品列表
|
|
2308
|
+
* @param {string} [excludeHashTag] 排除的星球标识符(名称)
|
|
2309
|
+
* @param {HashTagCreationStatus[]} [statuses] 作品状态筛选,例如 ["PUBLISHED"]
|
|
2310
|
+
* @param {Partial<PageArgs<SortField | T>>} [pageArgs_] 分页参数
|
|
2311
|
+
* @returns {Promise<Res>} 星球作品分页结果
|
|
2312
|
+
*/
|
|
2313
|
+
declare function getMyHashTagCreations<T extends string>(excludeHashTag?: string, statuses?: HashTagCreationStatus[], pageArgs_?: Partial<PageArgs<SortField$4 | T>>): Promise<Res$Q>;
|
|
2314
|
+
|
|
2315
|
+
type Res$P = null;
|
|
2316
|
+
/**
|
|
2317
|
+
* 获取禁言用户详情
|
|
2318
|
+
* @param {string} studentNumber 用户number(244373873)
|
|
2319
|
+
* @returns {Promise<Res>} 禁言用户详情(null表示未禁言)
|
|
2320
|
+
*/
|
|
2321
|
+
declare function getMutedUserDetail(studentNumber: string): Promise<Res$P>;
|
|
2322
|
+
|
|
2323
|
+
interface LockedUserDetail<IsLocked extends boolean> {
|
|
2324
|
+
accountOid: IsLocked extends true ? MongoDBId : null;
|
|
2325
|
+
accountType: IsLocked extends true ? AccountTypes : null;
|
|
2326
|
+
createdAt: IsLocked extends true ? number : null;
|
|
2327
|
+
description: IsLocked extends true ? string : null;
|
|
2328
|
+
id: IsLocked extends true ? number : null;
|
|
2329
|
+
locked: IsLocked;
|
|
2330
|
+
operatorOid: IsLocked extends true ? MongoDBId : null;
|
|
2331
|
+
unlocksAt: IsLocked extends true ? number : null;
|
|
2332
|
+
updatedAt: IsLocked extends true ? number : null;
|
|
2333
|
+
}
|
|
2334
|
+
type Res$O<IsLocked extends boolean> = LockedUserDetail<IsLocked>;
|
|
2335
|
+
/**
|
|
2336
|
+
* 获取被封禁用户详情
|
|
2337
|
+
* @param {MongoDBId} accountOid 用户账户ID
|
|
2338
|
+
* @returns {Promise<Res>} 被封禁用户详情
|
|
2339
|
+
*/
|
|
2340
|
+
declare function getLockedUserDetail<IsLocked extends boolean = false>(accountOid: MongoDBId): Promise<Res$O<IsLocked>>;
|
|
2341
|
+
|
|
2342
|
+
type Res$N = LoadingTip;
|
|
2343
|
+
/**
|
|
2344
|
+
* 获取加载提示语
|
|
2345
|
+
* @returns {Promise<LoadingTip>} 加载提示语
|
|
2346
|
+
*/
|
|
2347
|
+
declare function getLoadingTips(): Promise<Res$N>;
|
|
2348
|
+
|
|
2349
|
+
type Res$M = UserLikeDetail;
|
|
2350
|
+
/**
|
|
2351
|
+
* 获取用户是否曾给作品点赞及点赞动作
|
|
2352
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2353
|
+
* @returns {Promise<UserLikeDetail>} 点赞详情
|
|
2354
|
+
*/
|
|
2355
|
+
declare function getLikeDetail(creationOid: MongoDBId): Promise<Res$M>;
|
|
2356
|
+
|
|
2357
|
+
interface LeafletsItem {
|
|
2358
|
+
advertisementId: number;
|
|
2359
|
+
advertisementUrl: string;
|
|
2360
|
+
createdAt: number;
|
|
2361
|
+
id: number;
|
|
2362
|
+
itemUrl: CNameOssUrl;
|
|
2363
|
+
/**
|
|
2364
|
+
* 广告标题
|
|
2365
|
+
* @example name = "六月小商店上新"
|
|
2366
|
+
*/
|
|
2367
|
+
name: string;
|
|
2368
|
+
updatedAt: number;
|
|
2369
|
+
}
|
|
2370
|
+
type Res$L = LeafletsItem[];
|
|
2371
|
+
/**
|
|
2372
|
+
* 获取消息中心上方广告横幅项目列表
|
|
2373
|
+
* @param {number} advertisementId 广告ID
|
|
2374
|
+
* @returns {Promise<Res>} 广告项目列表
|
|
2375
|
+
*/
|
|
2376
|
+
declare function getLeafletsItemList(advertisementId: number): Promise<Res$L>;
|
|
2377
|
+
|
|
2378
|
+
interface HealthCheckItem {
|
|
2379
|
+
name: string;
|
|
2380
|
+
status: string;
|
|
2381
|
+
traceId: string;
|
|
2382
|
+
}
|
|
2383
|
+
type Res$K = HealthCheckItem[];
|
|
2384
|
+
/**
|
|
2385
|
+
* @deprecated 仅用于初始化axios
|
|
2386
|
+
* health check接口
|
|
2387
|
+
* @returns {Promise<Res>}
|
|
2388
|
+
*/
|
|
2389
|
+
declare function healthCheck(): Promise<Res$K>;
|
|
2390
|
+
|
|
2391
|
+
type SortField$3 = "createdAt" | "priority" | string;
|
|
2392
|
+
type Res$J = PagesRes<HashTag, SortField$3>;
|
|
2393
|
+
/**
|
|
2394
|
+
* 获取用户管理的星球列表
|
|
2395
|
+
* @param {MongoDBId} studentOid 学生oid
|
|
2396
|
+
* @param {number[]} excludeHashTagIds 排除的星球id列表
|
|
2397
|
+
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
2398
|
+
* @returns {Promise<Res>} 管理的星球分页结果
|
|
2399
|
+
*/
|
|
2400
|
+
declare function getManagedHashTags<T extends string>(studentOid: MongoDBId, excludeHashTagIds?: number[], pageArgs_?: Partial<PageArgs<SortField$3 | T>>): Promise<Res$J>;
|
|
2401
|
+
|
|
2402
|
+
type Res$I = PagesRes<Record<string, never>>;
|
|
2403
|
+
/**
|
|
2404
|
+
* 获取历史团队成员分页
|
|
2405
|
+
* 不知道怎么用
|
|
2406
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2407
|
+
* @param {Partial<PageArgs<string | T>>} pageArgs_ 分页参数
|
|
2408
|
+
* @returns {Promise<Res>} 历史团队成员分页列表
|
|
2409
|
+
*/
|
|
2410
|
+
declare function getHistoricalTeamMemberPage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<string | T>>): Promise<Res$I>;
|
|
2411
|
+
|
|
2412
|
+
type Res$H = HashTagFavorite;
|
|
2413
|
+
/**
|
|
2414
|
+
* 获取星球收藏详情
|
|
2415
|
+
* @param {number} hashTagId 星球ID
|
|
2416
|
+
* @returns {Promise<Res>} 星球收藏详情
|
|
2417
|
+
*/
|
|
2418
|
+
declare function getHashTagFavoriteDetail(hashTagId: number): Promise<Res$H>;
|
|
2419
|
+
|
|
2420
|
+
type Res$G = HashTag;
|
|
2421
|
+
/**
|
|
2422
|
+
* 获取星球详情
|
|
2423
|
+
* @param {string} identifier 星球标识符(名称)
|
|
2424
|
+
* @returns {Promise<Res>} 星球详情
|
|
2425
|
+
*/
|
|
2426
|
+
declare function getHashTagDetail(identifier: string): Promise<Res$G>;
|
|
2427
|
+
|
|
2428
|
+
interface Emoji {
|
|
2429
|
+
category: `${number}`;
|
|
2430
|
+
createdAt: number;
|
|
2431
|
+
id: number;
|
|
2432
|
+
imageUrl: CNameOssUrl;
|
|
2433
|
+
/**
|
|
2434
|
+
* 表情包名称
|
|
2435
|
+
*/
|
|
2436
|
+
name: string;
|
|
2437
|
+
/**
|
|
2438
|
+
* 表情包作者
|
|
2439
|
+
*/
|
|
2440
|
+
operatorName: string;
|
|
2441
|
+
operatorOid: MongoDBId;
|
|
2442
|
+
priority: number;
|
|
2443
|
+
status: "ENABLED";
|
|
2444
|
+
updatedAt: number;
|
|
2445
|
+
}
|
|
2446
|
+
type Res$F = Emoji[];
|
|
2447
|
+
/**
|
|
2448
|
+
* 获取所有表情包
|
|
2449
|
+
* @returns {Promise<Res>} 表情包列表
|
|
2450
|
+
*/
|
|
2451
|
+
declare function getAllEmojis(): Promise<Res$F>;
|
|
2452
|
+
|
|
2453
|
+
type Res$E = PagesRes<Emoji>;
|
|
2454
|
+
type EmojiStatus = "ENABLED" | "PUBLISHED";
|
|
2455
|
+
/**
|
|
2456
|
+
* 分页获取表情包
|
|
2457
|
+
* @param {string} status 表情包状态
|
|
2458
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
2459
|
+
* @returns {Promise<Res>} 分页表情包数据
|
|
2460
|
+
*/
|
|
2461
|
+
declare function getEmojiPage<T extends string>(status?: EmojiStatus, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$E>;
|
|
2462
|
+
|
|
2463
|
+
interface EmojiCategory {
|
|
2464
|
+
createdAt: number;
|
|
2465
|
+
id: number;
|
|
2466
|
+
imageUrl: CNameOssUrl;
|
|
2467
|
+
name: string;
|
|
2468
|
+
updatedAt: number;
|
|
2469
|
+
}
|
|
2470
|
+
type Res$D = EmojiCategory[];
|
|
2471
|
+
/**
|
|
2472
|
+
* 获取表情包分类列表
|
|
2473
|
+
* @returns {Promise<Res>} 表情包分类列表
|
|
2474
|
+
*/
|
|
2475
|
+
declare function getEmojiCategoryList(): Promise<Res$D>;
|
|
2476
|
+
|
|
2477
|
+
type Res$C = {
|
|
2478
|
+
avatar: CNameOssUrl;
|
|
2479
|
+
isFollowing: boolean;
|
|
2480
|
+
name: string;
|
|
2481
|
+
oid: MongoDBId;
|
|
2482
|
+
};
|
|
2483
|
+
/**
|
|
2484
|
+
* [连接社区扩展] 查询是否关注了指定创作者
|
|
2485
|
+
* @param {MongoDBId} playingCreationOid 当前播放的作品 OID
|
|
2486
|
+
* @param {MongoDBId} userOid 目标用户 OID
|
|
2487
|
+
* @returns {Promise<Res>} 关注状态及用户信息
|
|
2488
|
+
*/
|
|
2489
|
+
declare function getConnectCommunityFollowingStatus(playingCreationOid: MongoDBId, userOid: MongoDBId): Promise<Res$C>;
|
|
2490
|
+
|
|
2491
|
+
type Res$B = CreationSimple[];
|
|
2492
|
+
/**
|
|
2493
|
+
* 获取精选作品列表
|
|
2494
|
+
* @param {number} num 数量
|
|
2495
|
+
* @returns {Promise<CreationSimple[]>} 作品列表
|
|
2496
|
+
*/
|
|
2497
|
+
declare function getExcellentCreations(num: number): Promise<Res$B>;
|
|
2498
|
+
|
|
2499
|
+
type Res$A = {
|
|
2500
|
+
curUserDonatedRecord: null | DonatedRecord;
|
|
2501
|
+
rankingList: PagesRes<DonatedRecord>;
|
|
2502
|
+
totalBucks: null | number;
|
|
2503
|
+
};
|
|
2504
|
+
/**
|
|
2505
|
+
* 获取作品投币排行
|
|
2506
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2507
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
2508
|
+
* @returns {Promise<Res>} 投币排行数据
|
|
2509
|
+
*/
|
|
2510
|
+
declare function getDonatedRecordRanking<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$A>;
|
|
2511
|
+
|
|
2512
|
+
type Res$z = CreatorScore;
|
|
2513
|
+
/**
|
|
2514
|
+
* 获取当前学生创作分
|
|
2515
|
+
* @returns {Promise<Res>} 创作分信息
|
|
2516
|
+
*/
|
|
2517
|
+
declare function getCreatorScore(): Promise<Res$z>;
|
|
2518
|
+
|
|
2519
|
+
type Res$y = CreationTag[];
|
|
2520
|
+
/**
|
|
2521
|
+
* 获取作品标签列表 例如 https://www.ccw.site/pages/tags/anime
|
|
2522
|
+
* @returns {Promise<CreationTag[]>} 标签列表
|
|
2523
|
+
*/
|
|
2524
|
+
declare function getCreationTags(): Promise<Res$y>;
|
|
2525
|
+
|
|
2526
|
+
type Res$x = Student;
|
|
2527
|
+
/**
|
|
2528
|
+
* 获取学生详情
|
|
2529
|
+
* @param {MongoDBId} studentOid 学生id
|
|
2530
|
+
* @returns {Promise<Student>} 学生详情
|
|
2531
|
+
*/
|
|
2532
|
+
declare function getCreationStudentDetail(studentOid: MongoDBId): Promise<Res$x>;
|
|
2533
|
+
|
|
2534
|
+
type Res$w = PagesRes<CreationScreenshot>;
|
|
2535
|
+
/**
|
|
2536
|
+
* 获取作品截图分页
|
|
2537
|
+
* @param {MongoDBId} subjectOid 作品id
|
|
2538
|
+
* @param {Partial<PageArgs<"createdAt" | T>>} pageArgs_ 分页参数
|
|
2539
|
+
* @returns {Promise<Res>} 分页截图列表
|
|
2540
|
+
*/
|
|
2541
|
+
declare function getCreationScreenshotPage<T extends string>(subjectOid: MongoDBId, pageArgs_?: Partial<PageArgs<"createdAt" | T>>): Promise<Res$w>;
|
|
2542
|
+
|
|
2543
|
+
type SortField$2 = "submittedAt";
|
|
2544
|
+
type Res$v = PagesRes<CreationRelease>;
|
|
2545
|
+
/**
|
|
2546
|
+
* 获取作品发布记录分页
|
|
2547
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2548
|
+
* @param {Partial<PageArgs<SortField | T>>} pageArgs_ 分页参数
|
|
2549
|
+
* @returns {Promise<Res>} 发布记录分页列表
|
|
2550
|
+
*/
|
|
2551
|
+
declare function getCreationReleasePage<T extends string>(creationOid: MongoDBId, pageArgs_?: Partial<PageArgs<SortField$2 | T>>): Promise<Res$v>;
|
|
2552
|
+
|
|
2553
|
+
type Res$u = [];
|
|
2554
|
+
/**
|
|
2555
|
+
* 获取作品推荐位置列表
|
|
2556
|
+
* @deprecated 此接口不可用,请使用 `getRecommendCreations` from `src/community-web/creation/recommend.ts`
|
|
2557
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2558
|
+
* @returns {Promise<Res>} 推荐位置列表,因为不知道什么bug,固定为[]
|
|
2559
|
+
*/
|
|
2560
|
+
declare function getCreationRecommendPositionList(creationOid: MongoDBId): Promise<Res$u>;
|
|
2561
|
+
|
|
2562
|
+
type Res$t = {
|
|
2563
|
+
interactionStatus: boolean;
|
|
2564
|
+
oid: MongoDBId;
|
|
2565
|
+
title: string;
|
|
2566
|
+
};
|
|
2567
|
+
/**
|
|
2568
|
+
* [连接社区扩展] 查询用户对作品的点赞交互状态
|
|
2569
|
+
* @param {MongoDBId} playingCreationOid 当前播放的作品 OID
|
|
2570
|
+
* @param {MongoDBId} creationOid 目标作品 OID
|
|
2571
|
+
* @returns {Promise<Res>} 点赞状态及作品信息
|
|
2572
|
+
*/
|
|
2573
|
+
declare function getConnectCommunityCreationLikeStatus(playingCreationOid: MongoDBId, creationOid: MongoDBId): Promise<Res$t>;
|
|
2574
|
+
|
|
2575
|
+
type Res$s = Creation;
|
|
2576
|
+
/**
|
|
2577
|
+
* 获取用户代表作
|
|
2578
|
+
* @param {MongoDBId} studentOid 学生id
|
|
2579
|
+
* @returns {Promise<Creation>} 作品详情
|
|
2580
|
+
*/
|
|
2581
|
+
declare function getCreationIntroduction(studentOid: MongoDBId): Promise<Res$s>;
|
|
2582
|
+
|
|
2583
|
+
type Res$r = null | FavoriteDetail;
|
|
2584
|
+
/**
|
|
2585
|
+
* 获取作品收藏详情(需要登录)
|
|
2586
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2587
|
+
* @returns {Promise<Res>} 收藏详情(未收藏返回null)
|
|
2588
|
+
*/
|
|
2589
|
+
declare function getCreationFavoriteDetail(creationOid: MongoDBId): Promise<Res$r>;
|
|
2590
|
+
|
|
2591
|
+
type Res$q = Creation;
|
|
2592
|
+
/**
|
|
2593
|
+
* 获取作品详情
|
|
2594
|
+
* @param {MongoDBId} oid 作品id
|
|
2595
|
+
* @param {string} accessKey
|
|
2596
|
+
* @returns {Promise<Creation>} 作品详情
|
|
2597
|
+
*/
|
|
2598
|
+
declare function getCreationDetail(oid: MongoDBId, accessKey: string): Promise<Res$q>;
|
|
2599
|
+
|
|
2600
|
+
type KeypadConfig = {
|
|
2601
|
+
maxR: number;
|
|
2602
|
+
minR: number;
|
|
2603
|
+
r: number;
|
|
2604
|
+
slot: string;
|
|
2605
|
+
value: string;
|
|
2606
|
+
x: number;
|
|
2607
|
+
y: number;
|
|
2608
|
+
};
|
|
2609
|
+
type CreationAttribute<KC> = {
|
|
2610
|
+
createdAt: number;
|
|
2611
|
+
creationOid: MongoDBId;
|
|
2612
|
+
endorsement: null;
|
|
2613
|
+
ext: {
|
|
2614
|
+
KEYPAD_CONFIG: KC;
|
|
2615
|
+
};
|
|
2616
|
+
recommendationCreation: unknown[];
|
|
2617
|
+
recommendationPost: unknown[];
|
|
2618
|
+
recommendationProjectTemplate: unknown[];
|
|
2619
|
+
specialThanks: unknown[];
|
|
2620
|
+
updatedAt: number;
|
|
2621
|
+
};
|
|
2622
|
+
type Res$p<KC> = CreationAttribute<KC>;
|
|
2623
|
+
/**
|
|
2624
|
+
* 获取作品属性详情
|
|
2625
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2626
|
+
* @returns {Promise<Res | null>} 作品属性
|
|
2627
|
+
*/
|
|
2628
|
+
declare function getCreationAttributeDetail(creationOid: MongoDBId): Promise<Res$p<KeypadConfig[]> | null>;
|
|
2629
|
+
|
|
2630
|
+
type CreationActivityStatsItem = {
|
|
2631
|
+
activeAt: number;
|
|
2632
|
+
activeAtDayOfWeek: number;
|
|
2633
|
+
creationOid: MongoDBId;
|
|
2634
|
+
duration: number;
|
|
2635
|
+
id: number;
|
|
2636
|
+
};
|
|
2637
|
+
type Res$o = CreationActivityStatsItem[];
|
|
2638
|
+
/**
|
|
2639
|
+
* 获取作品创作活跃统计数据列表(绿格子)
|
|
2640
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2641
|
+
* @returns {Promise<Res>} 活动统计数据
|
|
2642
|
+
*/
|
|
2643
|
+
declare function getCreationActivityStatsList(creationOid: MongoDBId): Promise<Res$o>;
|
|
2644
|
+
|
|
2645
|
+
type Res$n = string | number | boolean | null | object;
|
|
2646
|
+
/**
|
|
2647
|
+
* 获取配置详情
|
|
2648
|
+
* @param {string} key 配置键
|
|
2649
|
+
* @returns {Promise<Res>} 配置值
|
|
2650
|
+
*/
|
|
2651
|
+
declare function getConfigDetail(key: string): Promise<Res$n>;
|
|
2652
|
+
|
|
2653
|
+
interface Comment {
|
|
2654
|
+
commenter: OtherUser;
|
|
2655
|
+
commenterId: number;
|
|
2656
|
+
/**
|
|
2657
|
+
* 评论内容
|
|
2658
|
+
*/
|
|
2659
|
+
content: string;
|
|
2660
|
+
createdAt: number;
|
|
2661
|
+
dislikeCount: number;
|
|
2662
|
+
disliked: boolean;
|
|
2663
|
+
ext: {};
|
|
2664
|
+
hiddenOpinion: null;
|
|
2665
|
+
id: number;
|
|
2666
|
+
likeCount: number;
|
|
2667
|
+
liked: boolean;
|
|
2668
|
+
/**
|
|
2669
|
+
* 如果是评论,则为null,如果是回复,则为回复的评论的id
|
|
2670
|
+
*/
|
|
2671
|
+
parentId: number | null;
|
|
2672
|
+
receiver: OtherUser | null;
|
|
2673
|
+
receiverId: number;
|
|
2674
|
+
replyCount: null | number;
|
|
2675
|
+
replyToId: number;
|
|
2676
|
+
reported: boolean;
|
|
2677
|
+
sectionType: "COMMENT";
|
|
2678
|
+
status: "PUBLISHED" | "FOLDED";
|
|
2679
|
+
subComments: [];
|
|
2680
|
+
topic: TopicInfo;
|
|
2681
|
+
/**
|
|
2682
|
+
* 回复的文章/扩展id
|
|
2683
|
+
*/
|
|
2684
|
+
topicId: number;
|
|
2685
|
+
updatedAt: number;
|
|
2686
|
+
weight: number;
|
|
2687
|
+
}
|
|
2688
|
+
interface TopicInfo extends MinimalTopicInfo {
|
|
2689
|
+
createdAt: number;
|
|
2690
|
+
ext: {
|
|
2691
|
+
/**
|
|
2692
|
+
* 文章uuid可能被包含
|
|
2693
|
+
*/
|
|
2694
|
+
slug?: string;
|
|
2695
|
+
};
|
|
2696
|
+
id: number;
|
|
2697
|
+
/**
|
|
2698
|
+
* 文章名称/扩展名称/作品名称
|
|
2699
|
+
*/
|
|
2700
|
+
updatedAt: number;
|
|
2701
|
+
}
|
|
2702
|
+
type MinimalTopicInfo = {
|
|
2703
|
+
/**
|
|
2704
|
+
* 和响应无关,但至少要传一个字符进去
|
|
2705
|
+
*/
|
|
2706
|
+
outline?: string;
|
|
2707
|
+
subjectOid: string;
|
|
2708
|
+
subjectType: SubjectType;
|
|
2709
|
+
};
|
|
2710
|
+
type SubjectType = "EXTENSION" | "POST" | "CREATION";
|
|
2711
|
+
type SectionType = "REVIEW" | "COMMENT" | "PROFILE";
|
|
2712
|
+
|
|
2713
|
+
type comment_Comment = Comment;
|
|
2714
|
+
type comment_MinimalTopicInfo = MinimalTopicInfo;
|
|
2715
|
+
type comment_SectionType = SectionType;
|
|
2716
|
+
type comment_SubjectType = SubjectType;
|
|
2717
|
+
type comment_TopicInfo = TopicInfo;
|
|
2718
|
+
declare namespace comment {
|
|
2719
|
+
export type { comment_Comment as Comment, comment_MinimalTopicInfo as MinimalTopicInfo, comment_SectionType as SectionType, comment_SubjectType as SubjectType, comment_TopicInfo as TopicInfo };
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
type SortField$1 = "createdAt" | "likes";
|
|
2723
|
+
type Res$m = PagesRes<Comment>;
|
|
2724
|
+
/**
|
|
2725
|
+
* 根据主题获取评论列表
|
|
2726
|
+
* @param {string} subjectOid 主题oid
|
|
2727
|
+
* @param {SubjectType} subjectType 主题类型 (如: "POST")
|
|
2728
|
+
* @param {SectionType} sectionType 区块类型 (如: "COMMENT")
|
|
2729
|
+
* @param {Partial<PageArgs<SortField| T>>} pageArgs_ 分页参数
|
|
2730
|
+
* @returns {Promise<Res>} 评论分页结果
|
|
2731
|
+
*/
|
|
2732
|
+
declare function getCommentsByTopic<T extends string>(subjectOid: string, subjectType: SubjectType, sectionType: SectionType, pageArgs_?: Partial<PageArgs<SortField$1 | T>>): Promise<Res$m>;
|
|
2733
|
+
|
|
2734
|
+
type SortField = "createdAt";
|
|
2735
|
+
type Res$l = PagesRes<Comment>;
|
|
2736
|
+
/**
|
|
2737
|
+
* 根据topicId获取评论的回复
|
|
2738
|
+
* @param {number} topicId 话题id
|
|
2739
|
+
* @param {number} parentId 父评论id
|
|
2740
|
+
* @param {("PUBLISHED" | "FOLDED")[]} statuses 状态过滤
|
|
2741
|
+
* @param {Partial<PageArgs<SortField|T>>} pageArgs_ 分页参数
|
|
2742
|
+
* @returns {Promise<Res>} 评论分页结果
|
|
2743
|
+
*/
|
|
2744
|
+
declare function getCommentReplies<T extends string>(topicId: number, parentId: number, statuses?: ("PUBLISHED" | "FOLDED")[], pageArgs_?: Partial<PageArgs<SortField | T>>): Promise<Res$l>;
|
|
2745
|
+
|
|
2746
|
+
type ProfilingCodes = Record<string, number>;
|
|
2747
|
+
type ProfilingExt = Record<string, number>;
|
|
2748
|
+
type ProfilingMath = {
|
|
2749
|
+
arithmetic: number;
|
|
2750
|
+
logic: number;
|
|
2751
|
+
math: number;
|
|
2752
|
+
};
|
|
2753
|
+
type ProfilingMastery = {
|
|
2754
|
+
abstractionPoints: number;
|
|
2755
|
+
dataRepresentationPoints: number;
|
|
2756
|
+
flowControlPoints: number;
|
|
2757
|
+
logicPoints: number;
|
|
2758
|
+
parallelizationPoints: number;
|
|
2759
|
+
synchronizationPoints: number;
|
|
2760
|
+
userInteractivityPoints: number;
|
|
2761
|
+
};
|
|
2762
|
+
type Profiling = {
|
|
2763
|
+
audioCount: number;
|
|
2764
|
+
audioSize: `${number}`;
|
|
2765
|
+
blockChangeCount: number;
|
|
2766
|
+
codes: ProfilingCodes;
|
|
2767
|
+
costumeCount: number;
|
|
2768
|
+
costumeSize: string;
|
|
2769
|
+
count: number;
|
|
2770
|
+
ext: ProfilingExt;
|
|
2771
|
+
firstComparedChangedBlockCount: number;
|
|
2772
|
+
firstComparedChangedSpriteCount: number;
|
|
2773
|
+
functionCount: number;
|
|
2774
|
+
hatBlockCount: number;
|
|
2775
|
+
listCount: number;
|
|
2776
|
+
mastery: ProfilingMastery;
|
|
2777
|
+
math: ProfilingMath;
|
|
2778
|
+
projectSize: `${number}`;
|
|
2779
|
+
spriteChangeCount: number;
|
|
2780
|
+
spriteCount: number;
|
|
2781
|
+
validBlockCount: number;
|
|
2782
|
+
varCount: number;
|
|
2783
|
+
};
|
|
2784
|
+
type CodeProfilingDetail = {
|
|
2785
|
+
createdAt: number;
|
|
2786
|
+
creationOid: MongoDBId;
|
|
2787
|
+
creationReleaseOid: MongoDBId;
|
|
2788
|
+
id: number;
|
|
2789
|
+
profiling: Profiling;
|
|
2790
|
+
updatedAt: number;
|
|
2791
|
+
};
|
|
2792
|
+
type Res$k = CodeProfilingDetail;
|
|
2793
|
+
/**
|
|
2794
|
+
* 获取作品工程统计详情
|
|
2795
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2796
|
+
* @param {MongoDBId} creationReleaseOid 发布版本id
|
|
2797
|
+
* @returns {Promise<Res>} 代码分析详情
|
|
2798
|
+
*/
|
|
2799
|
+
declare function getCodeProfilingDetail(creationOid: MongoDBId, creationReleaseOid: MongoDBId): Promise<Res$k>;
|
|
2800
|
+
|
|
2801
|
+
type Res$j = {
|
|
2802
|
+
checkInRecordResps: DailyRecord[];
|
|
2803
|
+
checkInTimes: number;
|
|
2804
|
+
todayIndex: number;
|
|
2805
|
+
};
|
|
2806
|
+
interface DailyRecord {
|
|
2807
|
+
bucks: number;
|
|
2808
|
+
isCheckIn: boolean;
|
|
2809
|
+
}
|
|
2810
|
+
/**
|
|
2811
|
+
* 获取本月签到记录
|
|
2812
|
+
*/
|
|
2813
|
+
declare function getCheckInRecords(): Promise<Res$j>;
|
|
2814
|
+
|
|
2815
|
+
type Res$i = {
|
|
2816
|
+
data: string;
|
|
2817
|
+
datetime: string;
|
|
2818
|
+
};
|
|
2819
|
+
/**
|
|
2820
|
+
* ccw-main/status
|
|
2821
|
+
* @returns {Promise<Res>} 信息
|
|
2822
|
+
*/
|
|
2823
|
+
declare function getCCWMainStatus(): Promise<Res$i>;
|
|
2824
|
+
|
|
2825
|
+
type CampaignKeywords = "tags" | "mmo";
|
|
2826
|
+
type Res$h<K extends string> = {
|
|
2827
|
+
createdAt: number;
|
|
2828
|
+
hiddenNavbar: false;
|
|
2829
|
+
id: number;
|
|
2830
|
+
keyword: K;
|
|
2831
|
+
resourceIds: string[];
|
|
2832
|
+
resourceType: "SUBJECT_AREA";
|
|
2833
|
+
updatedAt: number;
|
|
2834
|
+
};
|
|
2835
|
+
/**
|
|
2836
|
+
* 不知道这个接口有什么用,请查看https://www.ccw.site/pages/tags自行寻找用法
|
|
2837
|
+
* @param {K} keyword 活动关键词
|
|
2838
|
+
* @returns {Promise<Res<K>>}
|
|
2839
|
+
*/
|
|
2840
|
+
declare function getCampaignResources<K extends CampaignKeywords>(keyword: K): Promise<Res$h<K>>;
|
|
2841
|
+
|
|
2842
|
+
type Res$g<Tid extends number, Tn extends string> = ApprovalStatus<Tid, Tn>[];
|
|
2843
|
+
type ApprovalStatus<Tid extends number, Tn extends string> = {
|
|
2844
|
+
adorned: boolean;
|
|
2845
|
+
approvalIconLink: CNameOssUrl;
|
|
2846
|
+
approvalTag: ApprovalTag<Tid, Tn>;
|
|
2847
|
+
approvalTagId: Tid;
|
|
2848
|
+
approvalTagName: Tn;
|
|
2849
|
+
createdAt: number;
|
|
2850
|
+
id: number;
|
|
2851
|
+
objectId: MongoDBId;
|
|
2852
|
+
objectType: AccountTypes;
|
|
2853
|
+
updatedAt: number;
|
|
2854
|
+
};
|
|
2855
|
+
/**
|
|
2856
|
+
* 获取特定用户的勋章数据
|
|
2857
|
+
* @param {MongoDBId} studentOid 用户id
|
|
2858
|
+
* @returns {Promise<Res<Tid, Tn>>} 勋章数据
|
|
2859
|
+
*/
|
|
2860
|
+
declare function getApprovalTags<Tid extends number = number, Tn extends string = string>(studentOid: MongoDBId): Promise<Res$g<Tid, Tn>>;
|
|
2861
|
+
|
|
2862
|
+
type Res$f = "UNFOLLOWED";
|
|
2863
|
+
/**
|
|
2864
|
+
* 取消关注创作者
|
|
2865
|
+
* @param {MongoDBId} followingOid 要取消关注的用户 OID
|
|
2866
|
+
* @returns {Promise<Res>} "UNFOLLOWED" 表示取消关注成功
|
|
2867
|
+
*/
|
|
2868
|
+
declare function unfollowCreator(followingOid: MongoDBId): Promise<Res$f>;
|
|
2869
|
+
|
|
2870
|
+
type Res$e = "FOLLOWED";
|
|
2871
|
+
/**
|
|
2872
|
+
* 关注创作者
|
|
2873
|
+
* @param {MongoDBId} followingOid 要关注的用户 OID
|
|
2874
|
+
* @returns {Promise<Res>} "FOLLOWED" 表示关注成功
|
|
2875
|
+
*/
|
|
2876
|
+
declare function followCreator(followingOid: MongoDBId): Promise<Res$e>;
|
|
2877
|
+
|
|
2878
|
+
type Res$d = boolean;
|
|
2879
|
+
/**
|
|
2880
|
+
* 折叠评论
|
|
2881
|
+
* @param {number} id 评论id
|
|
2882
|
+
* @returns {Promise<Res>} 操作是否成功
|
|
2883
|
+
*/
|
|
2884
|
+
declare function foldComment(id: number): Promise<Res$d>;
|
|
2885
|
+
|
|
2886
|
+
type Res$c = boolean;
|
|
2887
|
+
/**
|
|
2888
|
+
* 删除评论
|
|
2889
|
+
* @param {number} id 评论id
|
|
2890
|
+
* @returns {Promise<Res>} 操作是否成功
|
|
2891
|
+
*/
|
|
2892
|
+
declare function deleteComment(id: number): Promise<Res$c>;
|
|
2893
|
+
|
|
2894
|
+
type Res$b = string;
|
|
2895
|
+
/**
|
|
2896
|
+
* 解压缩短链接
|
|
2897
|
+
* @param {string} shortUrlCode 短链接码
|
|
2898
|
+
* @returns {Promise<Res>} 原始URL
|
|
2899
|
+
*/
|
|
2900
|
+
declare function decompressShortUrl(shortUrlCode: string): Promise<Res$b>;
|
|
2901
|
+
|
|
2902
|
+
type MemberSplitDetail = {
|
|
2903
|
+
/**
|
|
2904
|
+
* 这个值从之前获取的detail里获取
|
|
2905
|
+
* 没有的话我也不知道咋整()
|
|
2906
|
+
*/
|
|
2907
|
+
creationTeamMemberId?: number;
|
|
2908
|
+
profile: string;
|
|
2909
|
+
rate: number;
|
|
2910
|
+
role: string;
|
|
2911
|
+
userOid: MongoDBId;
|
|
2912
|
+
};
|
|
2913
|
+
type Res$a = boolean;
|
|
2914
|
+
/**
|
|
2915
|
+
* 创建作品智能合约分成规则
|
|
2916
|
+
* @param {MongoDBId} creationOid 作品id
|
|
2917
|
+
* @param {MemberSplitDetail[]} memberSplitDetails 成员分成详情
|
|
2918
|
+
* @returns {Promise<Res>} 创建是否成功
|
|
2919
|
+
*/
|
|
2920
|
+
declare function createSplitRule(creationOid: MongoDBId, memberSplitDetails: MemberSplitDetail[]): Promise<Res$a>;
|
|
2921
|
+
|
|
2922
|
+
type Res$9 = `https://ccw.site/s/${string}`;
|
|
2923
|
+
/**
|
|
2924
|
+
* 创建短链接(用于分享)
|
|
2925
|
+
* @param originUrl 原链接
|
|
2926
|
+
* @returns {Promise<Res>} 创建的短链接
|
|
2927
|
+
*/
|
|
2928
|
+
declare function createShortUrl(originUrl: string): Promise<Res$9>;
|
|
2929
|
+
|
|
2930
|
+
type Res$8 = {
|
|
2931
|
+
commenterId: number;
|
|
2932
|
+
content: string;
|
|
2933
|
+
createdAt: number;
|
|
2934
|
+
ext: null;
|
|
2935
|
+
id: number;
|
|
2936
|
+
parentId: null;
|
|
2937
|
+
receiverId: null;
|
|
2938
|
+
replyToId: null;
|
|
2939
|
+
sectionType: SectionType;
|
|
2940
|
+
status: "PUBLISHED";
|
|
2941
|
+
topicId: number;
|
|
2942
|
+
updatedAt: number;
|
|
2943
|
+
weight: null;
|
|
2944
|
+
};
|
|
2945
|
+
/**
|
|
2946
|
+
* 创建评论
|
|
2947
|
+
* @param {string} content 评论内容
|
|
2948
|
+
* @param {MinimalTopicInfo} topic 主题信息
|
|
2949
|
+
* @param {string} sectionType 板块类型
|
|
2950
|
+
* @returns {Promise<Res>} 创建的评论
|
|
2951
|
+
*/
|
|
2952
|
+
declare function createComment(content: string, topic: MinimalTopicInfo, sectionType: SectionType): Promise<Res$8>;
|
|
2953
|
+
|
|
2954
|
+
type Res$7 = Record<string, never>;
|
|
2955
|
+
/**
|
|
2956
|
+
* @deprecated 云变量几百年没用过了
|
|
2957
|
+
* 创建云变量
|
|
2958
|
+
* @param {MongoDBId} projectId 项目id
|
|
2959
|
+
* @param {Record<string, unknown>} variables 变量数据
|
|
2960
|
+
* @returns {Promise<Res>} 空对象
|
|
2961
|
+
*/
|
|
2962
|
+
declare function createCloudVariable(projectId: MongoDBId, variables: Record<string, unknown>): Promise<Res$7>;
|
|
2963
|
+
|
|
2964
|
+
type Res$6 = {
|
|
2965
|
+
success: boolean;
|
|
2966
|
+
};
|
|
2967
|
+
/**
|
|
2968
|
+
* 执行智能合约(投币/领取奖励)
|
|
2969
|
+
* @param {MongoDBId} bizId 业务 ID(如作品 OID)
|
|
2970
|
+
* @param {SmartContractBizType} bizType 业务类型,CREATION
|
|
2971
|
+
* @param {number} id 合约 ID
|
|
2972
|
+
* @param {number} ruleId 规则 ID
|
|
2973
|
+
* @param {number} bucks 金币数量
|
|
2974
|
+
* @returns {Promise<Res>} 执行结果
|
|
2975
|
+
*/
|
|
2976
|
+
declare function executeSmartContract(bizId: MongoDBId, id: number, ruleId: number, bucks: number, bizType?: SmartContractBizType): Promise<Res$6>;
|
|
2977
|
+
|
|
2978
|
+
type Res$5 = {
|
|
2979
|
+
/**
|
|
2980
|
+
* 获取的inviteCode码
|
|
2981
|
+
*/
|
|
2982
|
+
code: string;
|
|
2983
|
+
createdAt: number;
|
|
2984
|
+
ext: null;
|
|
2985
|
+
id: number;
|
|
2986
|
+
origin: {
|
|
2987
|
+
creationOid: MongoDBId;
|
|
2988
|
+
entrance: "create_detail";
|
|
2989
|
+
inviterAvatar: string;
|
|
2990
|
+
inviterId: MongoDBId;
|
|
2991
|
+
inviterName: string;
|
|
2992
|
+
inviterType: AccountTypes;
|
|
2993
|
+
};
|
|
2994
|
+
status: null;
|
|
2995
|
+
type: "SHORT_CODE";
|
|
2996
|
+
updatedAt: number;
|
|
2997
|
+
};
|
|
2998
|
+
/**
|
|
2999
|
+
* 生成作品邀请码
|
|
3000
|
+
* @param {MongoDBId} inviterId 邀请人id
|
|
3001
|
+
* @param {CNameOssUrl} inviterAvatar 邀请人头像
|
|
3002
|
+
* @param {string} inviterName 邀请人用户名
|
|
3003
|
+
* @param {MongoDBId} creationOid 作品id
|
|
3004
|
+
* @returns {Promise<Res>}
|
|
3005
|
+
*/
|
|
3006
|
+
declare function encodeShortCode(inviterId: MongoDBId, inviterAvatar: CNameOssUrl, inviterName: string, creationOid: MongoDBId): Promise<Res$5>;
|
|
3007
|
+
|
|
3008
|
+
type DonateObjectType = "CREATION";
|
|
3009
|
+
type Res$4 = null;
|
|
3010
|
+
/**
|
|
3011
|
+
* 向作品投币
|
|
3012
|
+
* @param {number} bucks 投币数量
|
|
3013
|
+
* @param {MongoDBId} objectId 作品id
|
|
3014
|
+
* @param {DonateObjectType} objectType
|
|
3015
|
+
* @returns {Promise<Res>} 无返回值
|
|
3016
|
+
*/
|
|
3017
|
+
declare function donateTrade(bucks: number, objectId: MongoDBId, objectType?: DonateObjectType): Promise<Res$4>;
|
|
3018
|
+
|
|
3019
|
+
type TaskRewardType = "INTERNAL_CURRENCY";
|
|
3020
|
+
type TaskRewardStatus = "AWARDED";
|
|
3021
|
+
type TaskReward = {
|
|
3022
|
+
rewardType: TaskRewardType;
|
|
3023
|
+
rewardValue: string;
|
|
3024
|
+
status: TaskRewardStatus;
|
|
3025
|
+
};
|
|
3026
|
+
type Res$3 = TaskReward[];
|
|
3027
|
+
/**
|
|
3028
|
+
* 领取任务奖励
|
|
3029
|
+
* @param {MongoDBId} taskOid 任务id
|
|
3030
|
+
* @returns {Promise<Res>} 奖励列表
|
|
3031
|
+
*/
|
|
3032
|
+
declare function acceptAward(taskOid: MongoDBId): Promise<Res$3>;
|
|
3033
|
+
|
|
3034
|
+
type LoginScene = "loginbyPhone";
|
|
3035
|
+
type LoginRuleCode = "ccw_sms";
|
|
3036
|
+
type Res$2<Extra> = LoginSession<Extra>;
|
|
3037
|
+
type Extra$1 = {
|
|
3038
|
+
browser: string;
|
|
3039
|
+
device: string;
|
|
3040
|
+
ip: string;
|
|
3041
|
+
loginParentOid: MongoDBId;
|
|
3042
|
+
loginType: "BY_PHONE_LOGIN_OR_REGISTER";
|
|
3043
|
+
};
|
|
3044
|
+
interface ReqExtra$1 {
|
|
3045
|
+
browser: string;
|
|
3046
|
+
device: string;
|
|
3047
|
+
}
|
|
3048
|
+
/**
|
|
3049
|
+
* 通过手机号+短信验证码登录(V3)
|
|
3050
|
+
* @param {string} phone 手机号,如 "12345671145"
|
|
3051
|
+
* @param {string} code 收到的短信验证码
|
|
3052
|
+
* @param {ReqExtra} reqExtra 设备和浏览器信息
|
|
3053
|
+
* @param {string} countryCode 国家代码,默认 "86"
|
|
3054
|
+
* @param {LoginRuleCode} ruleCode 短信规则编码,默认 "ccw_sms"
|
|
3055
|
+
* @param {LoginScene} scene 登录场景,默认 "loginbyPhone"
|
|
3056
|
+
* @returns {Promise<Res<Extra>>} session 信息
|
|
3057
|
+
*/
|
|
3058
|
+
declare function loginByPhone(phone: string, code: string, reqExtra?: ReqExtra$1, countryCode?: string, ruleCode?: LoginRuleCode, scene?: LoginScene): Promise<Res$2<Extra$1>>;
|
|
3059
|
+
|
|
3060
|
+
type SmsScene = "loginbyPhone";
|
|
3061
|
+
type SmsRuleCode = "ccw_sms";
|
|
3062
|
+
type CaptchaPayload = {
|
|
3063
|
+
data: {
|
|
3064
|
+
x: number;
|
|
3065
|
+
y: number;
|
|
3066
|
+
};
|
|
3067
|
+
token: string;
|
|
3068
|
+
};
|
|
3069
|
+
type Res$1 = {
|
|
3070
|
+
batchId: string | null;
|
|
3071
|
+
/**
|
|
3072
|
+
* sendResult=1 表示成功
|
|
3073
|
+
*/
|
|
3074
|
+
sendResult: 1 | 2;
|
|
3075
|
+
};
|
|
3076
|
+
/**
|
|
3077
|
+
* 发送短信验证码
|
|
3078
|
+
* @param {string} recipient 接收手机号,如 "10011451919"
|
|
3079
|
+
* @param {SmsScene} scene 场景,默认 loginbyPhone
|
|
3080
|
+
* @param {string} countryCode 国家代码,默认 "86"
|
|
3081
|
+
* @param {SmsRuleCode} ruleCode 短信规则编码,默认 "ccw_sms"
|
|
3082
|
+
* @param {CaptchaPayload} captcha 图形验证码校验结果(滑块拼图的坐标与token),可选(部分场景未强制要求时可省略,但失败时sendResult!=1)
|
|
3083
|
+
* @returns {Promise<Res>} 发送结果:batchId 为短信批次ID,sendResult=1 表示成功
|
|
3084
|
+
*/
|
|
3085
|
+
declare function createSmsCaptcha(recipient: string, scene?: SmsScene, countryCode?: string, ruleCode?: SmsRuleCode, captcha?: CaptchaPayload): Promise<Res$1>;
|
|
3086
|
+
|
|
3087
|
+
/**
|
|
3088
|
+
* 根据sessionId退出登陆设备
|
|
3089
|
+
* @param {number} sessionId
|
|
3090
|
+
* @returns {Promise<boolean>} 是否成功
|
|
3091
|
+
*/
|
|
3092
|
+
declare function logoutBySession(sessionId: number): Promise<boolean>;
|
|
3093
|
+
|
|
3094
|
+
/**
|
|
3095
|
+
* 退出
|
|
3096
|
+
* @returns {Promise<null>}
|
|
3097
|
+
*/
|
|
3098
|
+
declare function logout(): Promise<null>;
|
|
3099
|
+
|
|
3100
|
+
type Res<Extra> = LoginSession<Extra>;
|
|
3101
|
+
type Extra = {
|
|
3102
|
+
browser: string;
|
|
3103
|
+
device: string;
|
|
3104
|
+
ip: string;
|
|
3105
|
+
loginParentOid: MongoDBId;
|
|
3106
|
+
loginType: "BY_PASSWORD";
|
|
3107
|
+
orgId: "";
|
|
3108
|
+
};
|
|
3109
|
+
/**
|
|
3110
|
+
* @prop {string} device 设备名(win11)
|
|
3111
|
+
* @prop {string} browser 浏览器名(chrome)
|
|
3112
|
+
*/
|
|
3113
|
+
interface ReqExtra {
|
|
3114
|
+
browser: string;
|
|
3115
|
+
device: string;
|
|
3116
|
+
}
|
|
3117
|
+
/**
|
|
3118
|
+
* 通过密码登录
|
|
3119
|
+
* @param {string} loginKey 用户名
|
|
3120
|
+
* @param {string} password 密码
|
|
3121
|
+
* @param {ReqExtra} reqExtra 额外信息
|
|
3122
|
+
* @returns {Res<Extra>}
|
|
3123
|
+
*/
|
|
3124
|
+
declare function loginByPassword(loginKey: string, password: string, reqExtra?: ReqExtra): Promise<Res<Extra>>;
|
|
3125
|
+
|
|
3126
|
+
declare const sso: {
|
|
3127
|
+
loginByPassword: typeof loginByPassword;
|
|
3128
|
+
logout: typeof logout;
|
|
3129
|
+
logoutBySession: typeof logoutBySession;
|
|
3130
|
+
createSmsCaptcha: typeof createSmsCaptcha;
|
|
3131
|
+
loginByPhone: typeof loginByPhone;
|
|
3132
|
+
};
|
|
3133
|
+
|
|
3134
|
+
declare const communityWeb: {
|
|
3135
|
+
acceptAward: typeof acceptAward;
|
|
3136
|
+
donateTrade: typeof donateTrade;
|
|
3137
|
+
encodeShortCode: typeof encodeShortCode;
|
|
3138
|
+
executeSmartContract: typeof executeSmartContract;
|
|
3139
|
+
createCloudVariable: typeof createCloudVariable;
|
|
3140
|
+
createComment: typeof createComment;
|
|
3141
|
+
createShortUrl: typeof createShortUrl;
|
|
3142
|
+
createSplitRule: typeof createSplitRule;
|
|
3143
|
+
decompressShortUrl: typeof decompressShortUrl;
|
|
3144
|
+
deleteComment: typeof deleteComment;
|
|
3145
|
+
foldComment: typeof foldComment;
|
|
3146
|
+
followCreator: typeof followCreator;
|
|
3147
|
+
unfollowCreator: typeof unfollowCreator;
|
|
3148
|
+
getApprovalTags: typeof getApprovalTags;
|
|
3149
|
+
getCampaignResources: typeof getCampaignResources;
|
|
3150
|
+
getCcwMainStatus: typeof getCCWMainStatus;
|
|
3151
|
+
getCheckInRecords: typeof getCheckInRecords;
|
|
3152
|
+
getCodeProfilingDetail: typeof getCodeProfilingDetail;
|
|
3153
|
+
getCommentReplies: typeof getCommentReplies;
|
|
3154
|
+
getCommentsByTopic: typeof getCommentsByTopic;
|
|
3155
|
+
getConfigDetail: typeof getConfigDetail;
|
|
3156
|
+
getCreationActivityStatsList: typeof getCreationActivityStatsList;
|
|
3157
|
+
getCreationAttributeDetail: typeof getCreationAttributeDetail;
|
|
3158
|
+
getCreationDetail: typeof getCreationDetail;
|
|
3159
|
+
getCreationFavoriteDetail: typeof getCreationFavoriteDetail;
|
|
3160
|
+
getCreationIntroduction: typeof getCreationIntroduction;
|
|
3161
|
+
getConnectCommunityCreationLikeStatus: typeof getConnectCommunityCreationLikeStatus;
|
|
3162
|
+
getCreationRecommendPositionList: typeof getCreationRecommendPositionList;
|
|
3163
|
+
getCreationReleasePage: typeof getCreationReleasePage;
|
|
3164
|
+
getCreationScreenshotPage: typeof getCreationScreenshotPage;
|
|
3165
|
+
getCreationStudentDetail: typeof getCreationStudentDetail;
|
|
3166
|
+
getCreationTags: typeof getCreationTags;
|
|
3167
|
+
getCreatorScore: typeof getCreatorScore;
|
|
3168
|
+
getDonatedRecordRanking: typeof getDonatedRecordRanking;
|
|
3169
|
+
getExcellentCreations: typeof getExcellentCreations;
|
|
3170
|
+
getConnectCommunityFollowingStatus: typeof getConnectCommunityFollowingStatus;
|
|
3171
|
+
getEmojiCategoryList: typeof getEmojiCategoryList;
|
|
3172
|
+
getEmojiPage: typeof getEmojiPage;
|
|
3173
|
+
getAllEmojis: typeof getAllEmojis;
|
|
3174
|
+
getHashTagDetail: typeof getHashTagDetail;
|
|
3175
|
+
getHashTagFavoriteDetail: typeof getHashTagFavoriteDetail;
|
|
3176
|
+
getHistoricalTeamMemberPage: typeof getHistoricalTeamMemberPage;
|
|
3177
|
+
getManagedHashTags: typeof getManagedHashTags;
|
|
3178
|
+
getHealthCheck: typeof healthCheck;
|
|
3179
|
+
getLeafletsItemList: typeof getLeafletsItemList;
|
|
3180
|
+
getLikeDetail: typeof getLikeDetail;
|
|
3181
|
+
getLoadingTips: typeof getLoadingTips;
|
|
3182
|
+
getLockedUserDetail: typeof getLockedUserDetail;
|
|
3183
|
+
getMutedUserDetail: typeof getMutedUserDetail;
|
|
3184
|
+
getMyHashTagCreations: typeof getMyHashTagCreations;
|
|
3185
|
+
getMyTasks: typeof getMyTasks;
|
|
3186
|
+
getNotifyDeleteReasons: typeof getNotifyDeleteReasons;
|
|
3187
|
+
getNotificationPage: typeof getNotificationPage;
|
|
3188
|
+
getNotificationStats: typeof getNotificationStats;
|
|
3189
|
+
getOwnCreationPage: typeof getOwnCreationPage;
|
|
3190
|
+
getPersonalCurrencyAccount: typeof getPersonalCurrencyAccount;
|
|
3191
|
+
getPlanetsOfCreation: typeof getPlanetsOfCreation;
|
|
3192
|
+
getPostDetail: typeof getPostDetail;
|
|
3193
|
+
getPotentialCreations: typeof getPotentialCreations;
|
|
3194
|
+
getRecommendCreations: typeof getRecommendCreations;
|
|
3195
|
+
getRecommendCreators: typeof getRecommendCreators;
|
|
3196
|
+
getRecommendHashTags: typeof getRecommendHashTags;
|
|
3197
|
+
getRemixedCreationPage: typeof getRemixedCreationPage;
|
|
3198
|
+
getReputationScoreLogPage: typeof getReputationScoreLog;
|
|
3199
|
+
getSearchHotWords: typeof getSearchHotWords;
|
|
3200
|
+
getSmartContractAccount: typeof getSmartContractAccount;
|
|
3201
|
+
getSmartContractDetail: typeof getSmartContractDetail;
|
|
3202
|
+
getSmartContractList: typeof getSmartContractList;
|
|
3203
|
+
getSplitRuleDetail: typeof getSplitRuleDetail;
|
|
3204
|
+
getSpreadFeedUnreadCount: typeof getSpreadFeedUnreadCount;
|
|
3205
|
+
getStudentBlockRecordDetail: typeof getStudentBlockRecordDetail;
|
|
3206
|
+
getStudentBlockRecordList: typeof getStudentBlockRecordList;
|
|
3207
|
+
getStudentBlockStatus: typeof getStudentBlockStatus;
|
|
3208
|
+
getStudentFollowingPage: typeof getStudentFollowingPage;
|
|
3209
|
+
getStudentLastActiveAt: typeof getStudentLastActiveAt;
|
|
3210
|
+
getStudentProfile: typeof getStudentProfile;
|
|
3211
|
+
getStudentSelfDetail: typeof getStudentSelfDetail;
|
|
3212
|
+
getStudentSessions: typeof getStudentSessions;
|
|
3213
|
+
getStudentsList: typeof getStudentsList;
|
|
3214
|
+
getStudentStats: typeof getStudentStats;
|
|
3215
|
+
getStudyCommunityMemberDetail: typeof getStudyCommunityMemberDetail;
|
|
3216
|
+
getSubjectAreaPage: typeof getSubjectAreaPage;
|
|
3217
|
+
getSubjectAreaPageByChannel: typeof getSubjectAreaPageByChannel;
|
|
3218
|
+
getTeamMemberList: typeof getTeamMemberList;
|
|
3219
|
+
getTeamworkLogPage: typeof getTeamworkLogPage;
|
|
3220
|
+
getTime: typeof getTime;
|
|
3221
|
+
getTypicalProjectPage: typeof getTypicalProjectPage;
|
|
3222
|
+
getTypicalProjectUnreadCount: typeof getTypicalProjectUnreadCount;
|
|
3223
|
+
getUserAssetStorageSize: typeof getUserAssetStorageSize;
|
|
3224
|
+
getUserCardDetail: typeof getUserCardDetail;
|
|
3225
|
+
getUserLabelList: typeof getUserLabelList;
|
|
3226
|
+
getUserProductsPage: typeof getUserProductsPage;
|
|
3227
|
+
queryMallProducts: typeof queryMallProducts;
|
|
3228
|
+
getCreationsByStudent: typeof getCreationsByStudent;
|
|
3229
|
+
insertCheckInRecord: typeof insertCheckInRecord;
|
|
3230
|
+
likeComment: typeof likeComment;
|
|
3231
|
+
produceTeamMemberTicket: typeof produceTeamMemberTicket;
|
|
3232
|
+
resetCommentWeight: typeof resetCommentWeight;
|
|
3233
|
+
searchCloudAssets: typeof searchCloudAssets;
|
|
3234
|
+
searchCreationsByTag: typeof searchCreationsByTag;
|
|
3235
|
+
sendEvent: typeof sendEvent;
|
|
3236
|
+
setUserProductStatus: typeof setUserProductStatus;
|
|
3237
|
+
submitCreation: typeof submitCreation;
|
|
3238
|
+
topComment: typeof topComment;
|
|
3239
|
+
updateCreation: typeof updateCreation;
|
|
3240
|
+
updateGreatCreation: typeof updateGreatCreation;
|
|
3241
|
+
updateStudent: typeof updateStudent;
|
|
3242
|
+
viewCreationStats: typeof viewCreationStats;
|
|
3243
|
+
};
|
|
3244
|
+
|
|
3245
|
+
declare const gandiMain: {
|
|
3246
|
+
getCurrentTimestamp: typeof getCurrentTimestamp;
|
|
3247
|
+
getBulletinsPage: typeof getBulletinsPage;
|
|
3248
|
+
getBulletinDetail: typeof getBulletinDetail;
|
|
3249
|
+
submitLeaderboardRecord: typeof submitLeaderboardRecord;
|
|
3250
|
+
getLeaderboardRecords: typeof getLeaderboardRecords;
|
|
3251
|
+
};
|
|
3252
|
+
|
|
3253
|
+
declare const bfsWeb: {
|
|
3254
|
+
donateExtension: typeof donateExtension;
|
|
3255
|
+
getUserExtensions: typeof getUserExtensions;
|
|
3256
|
+
};
|
|
3257
|
+
|
|
3258
|
+
declare const communityWebCloudDatabase: {
|
|
3259
|
+
saveProjectCloudVariable: typeof saveProjectCloudVariable;
|
|
3260
|
+
saveUserCloudVariable: typeof saveUserCloudVariable;
|
|
3261
|
+
getCloudVariableDetailV2: typeof getCloudVariableDetailV2;
|
|
3262
|
+
};
|
|
3263
|
+
|
|
3264
|
+
declare const opParentApi: {
|
|
3265
|
+
createCaptcha: typeof createCaptcha;
|
|
3266
|
+
checkCaptcha: typeof checkCaptcha;
|
|
3267
|
+
};
|
|
3268
|
+
|
|
3269
|
+
declare const _default: {
|
|
3270
|
+
sso: {
|
|
3271
|
+
loginByPassword: typeof loginByPassword;
|
|
3272
|
+
logout: typeof logout;
|
|
3273
|
+
logoutBySession: typeof logoutBySession;
|
|
3274
|
+
createSmsCaptcha: typeof createSmsCaptcha;
|
|
3275
|
+
loginByPhone: typeof loginByPhone;
|
|
3276
|
+
};
|
|
3277
|
+
communityWeb: {
|
|
3278
|
+
acceptAward: typeof acceptAward;
|
|
3279
|
+
donateTrade: typeof donateTrade;
|
|
3280
|
+
encodeShortCode: typeof encodeShortCode;
|
|
3281
|
+
executeSmartContract: typeof executeSmartContract;
|
|
3282
|
+
createCloudVariable: typeof createCloudVariable;
|
|
3283
|
+
createComment: typeof createComment;
|
|
3284
|
+
createShortUrl: typeof createShortUrl;
|
|
3285
|
+
createSplitRule: typeof createSplitRule;
|
|
3286
|
+
decompressShortUrl: typeof decompressShortUrl;
|
|
3287
|
+
deleteComment: typeof deleteComment;
|
|
3288
|
+
foldComment: typeof foldComment;
|
|
3289
|
+
followCreator: typeof followCreator;
|
|
3290
|
+
unfollowCreator: typeof unfollowCreator;
|
|
3291
|
+
getApprovalTags: typeof getApprovalTags;
|
|
3292
|
+
getCampaignResources: typeof getCampaignResources;
|
|
3293
|
+
getCcwMainStatus: typeof getCCWMainStatus;
|
|
3294
|
+
getCheckInRecords: typeof getCheckInRecords;
|
|
3295
|
+
getCodeProfilingDetail: typeof getCodeProfilingDetail;
|
|
3296
|
+
getCommentReplies: typeof getCommentReplies;
|
|
3297
|
+
getCommentsByTopic: typeof getCommentsByTopic;
|
|
3298
|
+
getConfigDetail: typeof getConfigDetail;
|
|
3299
|
+
getCreationActivityStatsList: typeof getCreationActivityStatsList;
|
|
3300
|
+
getCreationAttributeDetail: typeof getCreationAttributeDetail;
|
|
3301
|
+
getCreationDetail: typeof getCreationDetail;
|
|
3302
|
+
getCreationFavoriteDetail: typeof getCreationFavoriteDetail;
|
|
3303
|
+
getCreationIntroduction: typeof getCreationIntroduction;
|
|
3304
|
+
getConnectCommunityCreationLikeStatus: typeof getConnectCommunityCreationLikeStatus;
|
|
3305
|
+
getCreationRecommendPositionList: typeof getCreationRecommendPositionList;
|
|
3306
|
+
getCreationReleasePage: typeof getCreationReleasePage;
|
|
3307
|
+
getCreationScreenshotPage: typeof getCreationScreenshotPage;
|
|
3308
|
+
getCreationStudentDetail: typeof getCreationStudentDetail;
|
|
3309
|
+
getCreationTags: typeof getCreationTags;
|
|
3310
|
+
getCreatorScore: typeof getCreatorScore;
|
|
3311
|
+
getDonatedRecordRanking: typeof getDonatedRecordRanking;
|
|
3312
|
+
getExcellentCreations: typeof getExcellentCreations;
|
|
3313
|
+
getConnectCommunityFollowingStatus: typeof getConnectCommunityFollowingStatus;
|
|
3314
|
+
getEmojiCategoryList: typeof getEmojiCategoryList;
|
|
3315
|
+
getEmojiPage: typeof getEmojiPage;
|
|
3316
|
+
getAllEmojis: typeof getAllEmojis;
|
|
3317
|
+
getHashTagDetail: typeof getHashTagDetail;
|
|
3318
|
+
getHashTagFavoriteDetail: typeof getHashTagFavoriteDetail;
|
|
3319
|
+
getHistoricalTeamMemberPage: typeof getHistoricalTeamMemberPage;
|
|
3320
|
+
getManagedHashTags: typeof getManagedHashTags;
|
|
3321
|
+
getHealthCheck: typeof healthCheck;
|
|
3322
|
+
getLeafletsItemList: typeof getLeafletsItemList;
|
|
3323
|
+
getLikeDetail: typeof getLikeDetail;
|
|
3324
|
+
getLoadingTips: typeof getLoadingTips;
|
|
3325
|
+
getLockedUserDetail: typeof getLockedUserDetail;
|
|
3326
|
+
getMutedUserDetail: typeof getMutedUserDetail;
|
|
3327
|
+
getMyHashTagCreations: typeof getMyHashTagCreations;
|
|
3328
|
+
getMyTasks: typeof getMyTasks;
|
|
3329
|
+
getNotifyDeleteReasons: typeof getNotifyDeleteReasons;
|
|
3330
|
+
getNotificationPage: typeof getNotificationPage;
|
|
3331
|
+
getNotificationStats: typeof getNotificationStats;
|
|
3332
|
+
getOwnCreationPage: typeof getOwnCreationPage;
|
|
3333
|
+
getPersonalCurrencyAccount: typeof getPersonalCurrencyAccount;
|
|
3334
|
+
getPlanetsOfCreation: typeof getPlanetsOfCreation;
|
|
3335
|
+
getPostDetail: typeof getPostDetail;
|
|
3336
|
+
getPotentialCreations: typeof getPotentialCreations;
|
|
3337
|
+
getRecommendCreations: typeof getRecommendCreations;
|
|
3338
|
+
getRecommendCreators: typeof getRecommendCreators;
|
|
3339
|
+
getRecommendHashTags: typeof getRecommendHashTags;
|
|
3340
|
+
getRemixedCreationPage: typeof getRemixedCreationPage;
|
|
3341
|
+
getReputationScoreLogPage: typeof getReputationScoreLog;
|
|
3342
|
+
getSearchHotWords: typeof getSearchHotWords;
|
|
3343
|
+
getSmartContractAccount: typeof getSmartContractAccount;
|
|
3344
|
+
getSmartContractDetail: typeof getSmartContractDetail;
|
|
3345
|
+
getSmartContractList: typeof getSmartContractList;
|
|
3346
|
+
getSplitRuleDetail: typeof getSplitRuleDetail;
|
|
3347
|
+
getSpreadFeedUnreadCount: typeof getSpreadFeedUnreadCount;
|
|
3348
|
+
getStudentBlockRecordDetail: typeof getStudentBlockRecordDetail;
|
|
3349
|
+
getStudentBlockRecordList: typeof getStudentBlockRecordList;
|
|
3350
|
+
getStudentBlockStatus: typeof getStudentBlockStatus;
|
|
3351
|
+
getStudentFollowingPage: typeof getStudentFollowingPage;
|
|
3352
|
+
getStudentLastActiveAt: typeof getStudentLastActiveAt;
|
|
3353
|
+
getStudentProfile: typeof getStudentProfile;
|
|
3354
|
+
getStudentSelfDetail: typeof getStudentSelfDetail;
|
|
3355
|
+
getStudentSessions: typeof getStudentSessions;
|
|
3356
|
+
getStudentsList: typeof getStudentsList;
|
|
3357
|
+
getStudentStats: typeof getStudentStats;
|
|
3358
|
+
getStudyCommunityMemberDetail: typeof getStudyCommunityMemberDetail;
|
|
3359
|
+
getSubjectAreaPage: typeof getSubjectAreaPage;
|
|
3360
|
+
getSubjectAreaPageByChannel: typeof getSubjectAreaPageByChannel;
|
|
3361
|
+
getTeamMemberList: typeof getTeamMemberList;
|
|
3362
|
+
getTeamworkLogPage: typeof getTeamworkLogPage;
|
|
3363
|
+
getTime: typeof getTime;
|
|
3364
|
+
getTypicalProjectPage: typeof getTypicalProjectPage;
|
|
3365
|
+
getTypicalProjectUnreadCount: typeof getTypicalProjectUnreadCount;
|
|
3366
|
+
getUserAssetStorageSize: typeof getUserAssetStorageSize;
|
|
3367
|
+
getUserCardDetail: typeof getUserCardDetail;
|
|
3368
|
+
getUserLabelList: typeof getUserLabelList;
|
|
3369
|
+
getUserProductsPage: typeof getUserProductsPage;
|
|
3370
|
+
queryMallProducts: typeof queryMallProducts;
|
|
3371
|
+
getCreationsByStudent: typeof getCreationsByStudent;
|
|
3372
|
+
insertCheckInRecord: typeof insertCheckInRecord;
|
|
3373
|
+
likeComment: typeof likeComment;
|
|
3374
|
+
produceTeamMemberTicket: typeof produceTeamMemberTicket;
|
|
3375
|
+
resetCommentWeight: typeof resetCommentWeight;
|
|
3376
|
+
searchCloudAssets: typeof searchCloudAssets;
|
|
3377
|
+
searchCreationsByTag: typeof searchCreationsByTag;
|
|
3378
|
+
sendEvent: typeof sendEvent;
|
|
3379
|
+
setUserProductStatus: typeof setUserProductStatus;
|
|
3380
|
+
submitCreation: typeof submitCreation;
|
|
3381
|
+
topComment: typeof topComment;
|
|
3382
|
+
updateCreation: typeof updateCreation;
|
|
3383
|
+
updateGreatCreation: typeof updateGreatCreation;
|
|
3384
|
+
updateStudent: typeof updateStudent;
|
|
3385
|
+
viewCreationStats: typeof viewCreationStats;
|
|
3386
|
+
};
|
|
3387
|
+
gandiMain: {
|
|
3388
|
+
getCurrentTimestamp: typeof getCurrentTimestamp;
|
|
3389
|
+
getBulletinsPage: typeof getBulletinsPage;
|
|
3390
|
+
getBulletinDetail: typeof getBulletinDetail;
|
|
3391
|
+
submitLeaderboardRecord: typeof submitLeaderboardRecord;
|
|
3392
|
+
getLeaderboardRecords: typeof getLeaderboardRecords;
|
|
3393
|
+
};
|
|
3394
|
+
bfsWeb: {
|
|
3395
|
+
donateExtension: typeof donateExtension;
|
|
3396
|
+
getUserExtensions: typeof getUserExtensions;
|
|
3397
|
+
};
|
|
3398
|
+
communityWebCloudDatabase: {
|
|
3399
|
+
saveProjectCloudVariable: typeof saveProjectCloudVariable;
|
|
3400
|
+
saveUserCloudVariable: typeof saveUserCloudVariable;
|
|
3401
|
+
getCloudVariableDetailV2: typeof getCloudVariableDetailV2;
|
|
3402
|
+
};
|
|
3403
|
+
opParentApi: {
|
|
3404
|
+
createCaptcha: typeof createCaptcha;
|
|
3405
|
+
checkCaptcha: typeof checkCaptcha;
|
|
3406
|
+
};
|
|
3407
|
+
};
|
|
3408
|
+
|
|
3409
|
+
export { account as Account, api as Api, approval as Approval, comment as Comment, creation as Creation, hashTag as HashTag, mall as Mall, notification as Notification, notificationContent as NotificationContent, pages as Pages, session as Session, userData as UserData, bfsWeb, communityWeb, communityWebCloudDatabase, _default as default, gandiMain, opParentApi, sso };
|