@ccw-api/api 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/bfs-web/index.js +2 -2
- package/dist/esm/bfs-web/users/{oid}/extensions.js +1 -1
- package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.js +1 -1
- package/dist/esm/community-web/cloud_asset/search.js +1 -1
- package/dist/esm/community-web/comment/page.js +1 -1
- package/dist/esm/community-web/comment/page_by_topic.js +1 -1
- package/dist/esm/community-web/creation/own/page.js +1 -1
- package/dist/esm/community-web/creation/page.js +1 -1
- package/dist/esm/community-web/creation/page_by_student.js +1 -1
- package/dist/esm/community-web/creation/recommend.js +1 -1
- package/dist/esm/community-web/creation/search/page.js +1 -1
- package/dist/esm/community-web/creation/teamwork_log/page.js +1 -1
- package/dist/esm/community-web/creation_donated_record/ranking_list.js +1 -1
- package/dist/esm/community-web/creation_release/page.js +1 -1
- package/dist/esm/community-web/creation_screenshot/page.js +1 -1
- package/dist/esm/community-web/emoji/page.js +1 -1
- package/dist/esm/community-web/hash_tag/managed/list.js +1 -1
- package/dist/esm/community-web/hash_tag_creation/mine.js +1 -1
- package/dist/esm/community-web/historical_team_member/page.js +1 -1
- package/dist/esm/community-web/index.js +106 -106
- package/dist/esm/community-web/notification/page.js +2 -2
- package/dist/esm/community-web/student/block_record/list.js +1 -1
- package/dist/esm/community-web/student/following/page.js +1 -1
- package/dist/esm/community-web/students/list_sessions.js +1 -1
- package/dist/esm/community-web/students/reputation_score_log/page.js +1 -1
- package/dist/esm/community-web/subject_area/page.js +1 -1
- package/dist/esm/community-web/subject_area/page_by_channel.js +1 -1
- package/dist/esm/community-web/typical_project/page.js +1 -1
- package/dist/esm/community-web/user_package/user_product.js +1 -1
- package/dist/esm/community-web-cloud-database/index.js +2 -2
- package/dist/esm/gandi-main/bulletins/page.js +1 -1
- package/dist/esm/gandi-main/index.js +4 -4
- package/dist/esm/index.js +6 -6
- package/dist/esm/op-parent-api/index.js +2 -2
- package/dist/esm/sso/index.js +5 -5
- package/dist/esm/types/account.js +1 -0
- package/dist/esm/types/api.js +1 -0
- package/dist/esm/types/approval.js +1 -0
- package/dist/esm/types/comment.js +1 -0
- package/dist/esm/types/creation.js +1 -0
- package/dist/esm/types/extensions.js +1 -0
- package/dist/esm/types/hashTag.js +1 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/pages.js +1 -0
- package/dist/esm/types/session.js +1 -0
- package/dist/esm/types/teamwork.js +1 -0
- package/dist/esm/types/userData.js +1 -0
- package/dist/node/bfs-web/users/{oid}/extensions.js +1 -1
- package/dist/node/community-web/ccw-mall/ccw/product/fe/query.js +1 -1
- package/dist/node/community-web/cloud_asset/search.js +1 -1
- package/dist/node/community-web/comment/page.js +1 -1
- package/dist/node/community-web/comment/page_by_topic.js +1 -1
- package/dist/node/community-web/creation/own/page.js +1 -1
- package/dist/node/community-web/creation/page.js +1 -1
- package/dist/node/community-web/creation/page_by_student.js +1 -1
- package/dist/node/community-web/creation/recommend.js +1 -1
- package/dist/node/community-web/creation/search/page.js +1 -1
- package/dist/node/community-web/creation/teamwork_log/page.js +1 -1
- package/dist/node/community-web/creation_donated_record/ranking_list.js +1 -1
- package/dist/node/community-web/creation_release/page.js +1 -1
- package/dist/node/community-web/creation_screenshot/page.js +1 -1
- package/dist/node/community-web/emoji/page.js +1 -1
- package/dist/node/community-web/hash_tag/managed/list.js +1 -1
- package/dist/node/community-web/hash_tag_creation/mine.js +1 -1
- package/dist/node/community-web/historical_team_member/page.js +1 -1
- package/dist/node/community-web/notification/page.js +2 -2
- package/dist/node/community-web/student/block_record/list.js +1 -1
- package/dist/node/community-web/student/following/page.js +1 -1
- package/dist/node/community-web/students/list_sessions.js +1 -1
- package/dist/node/community-web/students/reputation_score_log/page.js +1 -1
- package/dist/node/community-web/subject_area/page.js +1 -1
- package/dist/node/community-web/subject_area/page_by_channel.js +1 -1
- package/dist/node/community-web/typical_project/page.js +1 -1
- package/dist/node/community-web/user_package/user_product.js +1 -1
- package/dist/node/gandi-main/bulletins/page.js +1 -1
- package/dist/node/types/account.js +2 -0
- package/dist/node/types/api.js +2 -0
- package/dist/node/types/approval.js +2 -0
- package/dist/node/types/comment.js +2 -0
- package/dist/node/types/creation.js +2 -0
- package/dist/node/types/extensions.js +2 -0
- package/dist/node/types/hashTag.js +2 -0
- package/dist/node/types/index.js +2 -0
- package/dist/node/types/pages.js +2 -0
- package/dist/node/types/session.js +2 -0
- package/dist/node/types/teamwork.js +2 -0
- package/dist/node/types/userData.js +2 -0
- package/dist/types/bfs-web/users/{oid}/extensions.d.ts +3 -3
- package/dist/types/community-web/api/v1/short_code/encode.d.ts +2 -2
- package/dist/types/community-web/approval/list.d.ts +3 -3
- package/dist/types/community-web/ccw-mall/ccw/product/fe/query.d.ts +2 -2
- package/dist/types/community-web/cloud_asset/search.d.ts +2 -2
- package/dist/types/community-web/comment/create.d.ts +3 -3
- package/dist/types/community-web/comment/page.d.ts +2 -2
- package/dist/types/community-web/comment/page_by_topic.d.ts +2 -2
- package/dist/types/community-web/creation/detail.d.ts +2 -2
- package/dist/types/community-web/creation/excellent/list.d.ts +1 -1
- package/dist/types/community-web/creation/introduction/detail.d.ts +2 -2
- package/dist/types/community-web/creation/like/detail.d.ts +2 -2
- package/dist/types/community-web/creation/loading/tips.d.ts +1 -1
- package/dist/types/community-web/creation/own/page.d.ts +2 -2
- package/dist/types/community-web/creation/page.d.ts +3 -3
- package/dist/types/community-web/creation/page_by_student.d.ts +3 -3
- package/dist/types/community-web/creation/potential/list.d.ts +1 -1
- package/dist/types/community-web/creation/recommend.d.ts +2 -2
- package/dist/types/community-web/creation/search/page.d.ts +2 -2
- package/dist/types/community-web/creation/smart_contract/split_rule/create.d.ts +1 -1
- package/dist/types/community-web/creation/smart_contract/split_rule/detail.d.ts +2 -2
- package/dist/types/community-web/creation/student/detail.d.ts +2 -2
- package/dist/types/community-web/creation/submit.d.ts +2 -2
- package/dist/types/community-web/creation/tag/list.d.ts +1 -1
- package/dist/types/community-web/creation/team_member/list.d.ts +2 -2
- package/dist/types/community-web/creation/team_member/produce_ticket.d.ts +1 -1
- package/dist/types/community-web/creation/teamwork_log/page.d.ts +2 -2
- package/dist/types/community-web/creation/update.d.ts +2 -2
- package/dist/types/community-web/creation_activity_stats/list.d.ts +1 -1
- package/dist/types/community-web/creation_attribute/detail.d.ts +1 -1
- package/dist/types/community-web/creation_donated_record/ranking_list.d.ts +3 -3
- package/dist/types/community-web/creation_favorite/detail.d.ts +2 -2
- package/dist/types/community-web/creation_recommend_position/list.d.ts +1 -1
- package/dist/types/community-web/creation_release/code_profiling/detail.d.ts +1 -1
- package/dist/types/community-web/creation_release/page.d.ts +3 -3
- package/dist/types/community-web/creation_screenshot/page.d.ts +3 -3
- package/dist/types/community-web/creation_stats/view.d.ts +1 -1
- package/dist/types/community-web/emoji/all.d.ts +1 -1
- package/dist/types/community-web/emoji/category/list.d.ts +1 -1
- package/dist/types/community-web/emoji/page.d.ts +1 -1
- package/dist/types/community-web/extensions/creation-like/detail.d.ts +1 -1
- package/dist/types/community-web/extensions/following/status.d.ts +1 -1
- package/dist/types/community-web/great_creation/update.d.ts +1 -1
- package/dist/types/community-web/hash_tag/detail.d.ts +1 -1
- package/dist/types/community-web/hash_tag/managed/list.d.ts +3 -3
- package/dist/types/community-web/hash_tag/recommend/list.d.ts +1 -1
- package/dist/types/community-web/hash_tag_creation/list_relation.d.ts +2 -2
- package/dist/types/community-web/hash_tag_creation/mine.d.ts +2 -2
- package/dist/types/community-web/hash_tag_favorite/detail.d.ts +1 -1
- package/dist/types/community-web/historical_team_member/page.d.ts +2 -2
- package/dist/types/community-web/leaflets/item/list.d.ts +1 -1
- package/dist/types/community-web/locked_user/detail.d.ts +2 -2
- package/dist/types/community-web/notification/page.d.ts +2 -2
- package/dist/types/community-web/notification/stats/v2.d.ts +1 -1
- package/dist/types/community-web/post/detail.d.ts +1 -1
- package/dist/types/community-web/smart_contract/detail.d.ts +1 -1
- package/dist/types/community-web/smart_contract/execute.d.ts +1 -1
- package/dist/types/community-web/smart_contract/list.d.ts +1 -1
- package/dist/types/community-web/student/block_record/detail.d.ts +2 -2
- package/dist/types/community-web/student/block_record/list.d.ts +2 -2
- package/dist/types/community-web/student/block_record/status.d.ts +1 -1
- package/dist/types/community-web/student/following/page.d.ts +3 -3
- package/dist/types/community-web/students/creator_score.d.ts +1 -1
- package/dist/types/community-web/students/last_active_at.d.ts +1 -1
- package/dist/types/community-web/students/list.d.ts +2 -2
- package/dist/types/community-web/students/list_sessions.d.ts +2 -2
- package/dist/types/community-web/students/profile.d.ts +2 -2
- package/dist/types/community-web/students/reputation_score_log/page.d.ts +2 -2
- package/dist/types/community-web/students/self/detail.d.ts +1 -1
- package/dist/types/community-web/students/stats.d.ts +2 -2
- package/dist/types/community-web/students/update.d.ts +1 -1
- package/dist/types/community-web/study-community/cloud_variable/create.d.ts +1 -1
- package/dist/types/community-web/study-community/following/follow.d.ts +1 -1
- package/dist/types/community-web/study-community/member/detail.d.ts +2 -2
- package/dist/types/community-web/study-community/spread_feed/unread/count.d.ts +1 -1
- package/dist/types/community-web/study-trade/trade/donate.d.ts +1 -1
- package/dist/types/community-web/subject_area/page.d.ts +2 -2
- package/dist/types/community-web/subject_area/page_by_channel.d.ts +2 -2
- package/dist/types/community-web/task/award.d.ts +1 -1
- package/dist/types/community-web/task/mine.d.ts +1 -1
- package/dist/types/community-web/typical_project/page.d.ts +2 -2
- package/dist/types/community-web/typical_project/student/unread_count.d.ts +1 -1
- package/dist/types/community-web/user-card/detail.d.ts +2 -2
- package/dist/types/community-web/user_label/list.d.ts +1 -1
- package/dist/types/community-web/user_package/user_product.d.ts +3 -3
- package/dist/types/community-web-cloud-database/cloud_variable/save.d.ts +1 -1
- package/dist/types/gandi-main/bulletins/page.d.ts +1 -1
- package/dist/types/gandi-main/creation/leaderboards/{oid}/records.d.ts +2 -2
- package/dist/types/queryPages.d.ts +1 -1
- package/dist/types/sso/web/auth/login-by-password.d.ts +2 -2
- package/dist/types/sso/web/auth/v3/login/by-phone.d.ts +2 -2
- package/dist/types/types/account.d.ts +1 -0
- package/dist/types/types/api.d.ts +27 -0
- package/dist/types/types/approval.d.ts +18 -0
- package/dist/types/types/comment.d.ts +60 -0
- package/dist/types/types/creation.d.ts +171 -0
- package/dist/types/types/extensions.d.ts +60 -0
- package/dist/types/types/hashTag.d.ts +71 -0
- package/dist/types/types/index.d.ts +11 -0
- package/dist/types/types/notification.d.ts +3 -3
- package/dist/types/types/pages.d.ts +37 -0
- package/dist/types/types/session.d.ts +38 -0
- package/dist/types/types/teamwork.d.ts +15 -0
- package/dist/types/types/userData.d.ts +363 -0
- package/package.json +3 -2
- package/dist/esm/bfs-web/extensions/{eid}/donate.test.js +0 -4
- package/dist/esm/bfs-web/users/{oid}/extensions.test.js +0 -4
- package/dist/esm/community-web/api/v1/short_code/shortcode.test.js +0 -5
- package/dist/esm/community-web/approval/approval.test.js +0 -5
- package/dist/esm/community-web/base/dateTime.test.js +0 -6
- package/dist/esm/community-web/campaign_resource/detail.test.js +0 -10
- package/dist/esm/community-web/ccw-main/status.test.js +0 -4
- package/dist/esm/community-web/ccw-mall/ccw/product/fe/query.test.js +0 -8
- package/dist/esm/community-web/check_in_record/check_in_record.test.js +0 -8
- package/dist/esm/community-web/cloud_asset/search.test.js +0 -6
- package/dist/esm/community-web/cloud_asset/user/privacy.test.js +0 -4
- package/dist/esm/community-web/comment/create.test.js +0 -13
- package/dist/esm/community-web/comment/like_record/create.test.js +0 -4
- package/dist/esm/community-web/comment/page.test.js +0 -15
- package/dist/esm/community-web/comment/page_by_topic.test.js +0 -13
- package/dist/esm/community-web/comment/reply.test.js +0 -4
- package/dist/esm/community-web/config/detail.test.js +0 -9
- package/dist/esm/community-web/creation/detail.test.js +0 -18
- package/dist/esm/community-web/creation/excellent/list.test.js +0 -10
- package/dist/esm/community-web/creation/introduction/detail.test.js +0 -17
- package/dist/esm/community-web/creation/like/detail.test.js +0 -19
- package/dist/esm/community-web/creation/loading/tips.test.js +0 -8
- package/dist/esm/community-web/creation/own/page.test.js +0 -4
- package/dist/esm/community-web/creation/page.test.js +0 -16
- package/dist/esm/community-web/creation/page_by_student.test.js +0 -20
- package/dist/esm/community-web/creation/potential/list.test.js +0 -10
- package/dist/esm/community-web/creation/recommend.test.js +0 -10
- package/dist/esm/community-web/creation/search/page.test.js +0 -5
- package/dist/esm/community-web/creation/smart_contract/split_rule/create.test.js +0 -4
- package/dist/esm/community-web/creation/smart_contract/split_rule/detail.test.js +0 -4
- package/dist/esm/community-web/creation/student/detail.test.js +0 -17
- package/dist/esm/community-web/creation/submit.test.js +0 -32
- package/dist/esm/community-web/creation/tag/list.test.js +0 -10
- package/dist/esm/community-web/creation/team_member/list.test.js +0 -4
- package/dist/esm/community-web/creation/team_member/produce_ticket.test.js +0 -4
- package/dist/esm/community-web/creation/teamwork_log/page.test.js +0 -4
- package/dist/esm/community-web/creation/update.test.js +0 -4
- package/dist/esm/community-web/creation_activity_stats/list.test.js +0 -5
- package/dist/esm/community-web/creation_attribute/detail.test.js +0 -10
- package/dist/esm/community-web/creation_donated_record/ranking_list.test.js +0 -12
- package/dist/esm/community-web/creation_favorite/detail.test.js +0 -5
- package/dist/esm/community-web/creation_recommend_position/list.test.js +0 -5
- package/dist/esm/community-web/creation_release/code_profiling/detail.test.js +0 -5
- package/dist/esm/community-web/creation_release/page.test.js +0 -12
- package/dist/esm/community-web/creation_screenshot/page.test.js +0 -11
- package/dist/esm/community-web/creation_stats/view.test.js +0 -6
- package/dist/esm/community-web/currency/account/personal.test.js +0 -4
- package/dist/esm/community-web/emoji/all.test.js +0 -11
- package/dist/esm/community-web/emoji/category/list.test.js +0 -9
- package/dist/esm/community-web/emoji/page.test.js +0 -12
- package/dist/esm/community-web/event.test.js +0 -5
- package/dist/esm/community-web/extensions/creation-like/detail.test.js +0 -4
- package/dist/esm/community-web/extensions/following/status.test.js +0 -4
- package/dist/esm/community-web/great_creation/update.test.js +0 -4
- package/dist/esm/community-web/hash_tag/hash_tag_detail.test.js +0 -9
- package/dist/esm/community-web/hash_tag/managed/managed_list.test.js +0 -10
- package/dist/esm/community-web/hash_tag/recommend/list.test.js +0 -4
- package/dist/esm/community-web/hash_tag_creation/hash_tag_creation_list_relation.test.js +0 -4
- package/dist/esm/community-web/hash_tag_creation/hash_tag_creation_mine.test.js +0 -4
- package/dist/esm/community-web/hash_tag_creation/list_relation.test.js +0 -5
- package/dist/esm/community-web/hash_tag_favorite/hash_tag_favorite_detail.test.js +0 -4
- package/dist/esm/community-web/health/check.test.js +0 -10
- package/dist/esm/community-web/historical_team_member/page.test.js +0 -12
- package/dist/esm/community-web/leaflets/item/list.test.js +0 -5
- package/dist/esm/community-web/locked_user/detail.test.js +0 -6
- package/dist/esm/community-web/muted_user/detail.test.js +0 -6
- package/dist/esm/community-web/notification/page.test.js +0 -4
- package/dist/esm/community-web/notification/stats/v2.test.js +0 -4
- package/dist/esm/community-web/notify_message/notify_message.test.js +0 -5
- package/dist/esm/community-web/post/post.test.js +0 -8
- package/dist/esm/community-web/search/search.test.js +0 -6
- package/dist/esm/community-web/short_url/decompress.test.js +0 -4
- package/dist/esm/community-web/short_url/shortUrl.test.js +0 -4
- package/dist/esm/community-web/smart_contract/account.test.js +0 -4
- package/dist/esm/community-web/smart_contract/detail.test.js +0 -4
- package/dist/esm/community-web/smart_contract/execute.test.js +0 -4
- package/dist/esm/community-web/smart_contract/list.test.js +0 -4
- package/dist/esm/community-web/student/block_record/block_record_list.test.js +0 -4
- package/dist/esm/community-web/student/block_record/block_record_status.test.js +0 -8
- package/dist/esm/community-web/student/block_record/detail.test.js +0 -4
- package/dist/esm/community-web/student/following/page.test.js +0 -6
- package/dist/esm/community-web/students/creator_score.test.js +0 -4
- package/dist/esm/community-web/students/last_active_at.test.js +0 -6
- package/dist/esm/community-web/students/list.test.js +0 -7
- package/dist/esm/community-web/students/list_sessions.test.js +0 -4
- package/dist/esm/community-web/students/profile.test.js +0 -6
- package/dist/esm/community-web/students/reputation_score_log/reputation_score_log.test.js +0 -4
- package/dist/esm/community-web/students/self/self_detail.test.js +0 -4
- package/dist/esm/community-web/students/stats.test.js +0 -7
- package/dist/esm/community-web/students/update.test.js +0 -4
- package/dist/esm/community-web/study-community/cloud_variable/create.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/delete.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/fold.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/reset_weight.test.js +0 -4
- package/dist/esm/community-web/study-community/comment/top.test.js +0 -4
- package/dist/esm/community-web/study-community/following/follow.test.js +0 -4
- package/dist/esm/community-web/study-community/member/member_detail.test.js +0 -4
- package/dist/esm/community-web/study-community/spread_feed/unread/spread_feed_unread_count.test.js +0 -5
- package/dist/esm/community-web/study-trade/trade/donate.test.js +0 -4
- package/dist/esm/community-web/subject_area/subject_area_page.test.js +0 -5
- package/dist/esm/community-web/subject_area/subject_area_page_by_channel.test.js +0 -5
- package/dist/esm/community-web/task/task_award.test.js +0 -5
- package/dist/esm/community-web/task/task_mine.test.js +0 -4
- package/dist/esm/community-web/typical_project/page.test.js +0 -12
- package/dist/esm/community-web/typical_project/student/unread_count.test.js +0 -4
- package/dist/esm/community-web/user-card/user_card_detail.test.js +0 -6
- package/dist/esm/community-web/user_label/user_label_list.test.js +0 -5
- package/dist/esm/community-web/user_package/status.test.js +0 -4
- package/dist/esm/community-web/user_package/user_product.test.js +0 -9
- package/dist/esm/community-web-cloud-database/cloud_variable/detail/v2.test.js +0 -4
- package/dist/esm/community-web-cloud-database/cloud_variable/save.test.js +0 -13
- package/dist/esm/coverage.test.js +0 -5
- package/dist/esm/gandi-main/bulletins/detail.test.js +0 -17
- package/dist/esm/gandi-main/bulletins/page.test.js +0 -6
- package/dist/esm/gandi-main/creation/leaderboards/{oid}/records.test.js +0 -11
- package/dist/esm/gandi-main/timestamp/current.test.js +0 -6
- package/dist/esm/op-parent-api/captcha/check.test.js +0 -12
- package/dist/esm/op-parent-api/captcha/create.test.js +0 -13
- package/dist/esm/sso/web/auth/assistant/captcha/v2/create.test.js +0 -8
- package/dist/esm/sso/web/auth/auth.test.js +0 -15
- package/dist/esm/sso/web/auth/v3/login/by-phone.test.js +0 -7
- package/dist/node/bfs-web/extensions/{eid}/donate.test.js +0 -6
- package/dist/node/bfs-web/users/{oid}/extensions.test.js +0 -6
- package/dist/node/community-web/api/v1/short_code/shortcode.test.js +0 -7
- package/dist/node/community-web/approval/approval.test.js +0 -7
- package/dist/node/community-web/base/dateTime.test.js +0 -8
- package/dist/node/community-web/campaign_resource/detail.test.js +0 -12
- package/dist/node/community-web/ccw-main/status.test.js +0 -6
- package/dist/node/community-web/ccw-mall/ccw/product/fe/query.test.js +0 -10
- package/dist/node/community-web/check_in_record/check_in_record.test.js +0 -10
- package/dist/node/community-web/cloud_asset/search.test.js +0 -8
- package/dist/node/community-web/cloud_asset/user/privacy.test.js +0 -6
- package/dist/node/community-web/comment/create.test.js +0 -15
- package/dist/node/community-web/comment/like_record/create.test.js +0 -6
- package/dist/node/community-web/comment/page.test.js +0 -17
- package/dist/node/community-web/comment/page_by_topic.test.js +0 -15
- package/dist/node/community-web/comment/reply.test.js +0 -6
- package/dist/node/community-web/config/detail.test.js +0 -11
- package/dist/node/community-web/creation/detail.test.js +0 -20
- package/dist/node/community-web/creation/excellent/list.test.js +0 -12
- package/dist/node/community-web/creation/introduction/detail.test.js +0 -19
- package/dist/node/community-web/creation/like/detail.test.js +0 -21
- package/dist/node/community-web/creation/loading/tips.test.js +0 -10
- package/dist/node/community-web/creation/own/page.test.js +0 -6
- package/dist/node/community-web/creation/page.test.js +0 -18
- package/dist/node/community-web/creation/page_by_student.test.js +0 -22
- package/dist/node/community-web/creation/potential/list.test.js +0 -12
- package/dist/node/community-web/creation/recommend.test.js +0 -12
- package/dist/node/community-web/creation/search/page.test.js +0 -7
- package/dist/node/community-web/creation/smart_contract/split_rule/create.test.js +0 -6
- package/dist/node/community-web/creation/smart_contract/split_rule/detail.test.js +0 -6
- package/dist/node/community-web/creation/student/detail.test.js +0 -19
- package/dist/node/community-web/creation/submit.test.js +0 -34
- package/dist/node/community-web/creation/tag/list.test.js +0 -12
- package/dist/node/community-web/creation/team_member/list.test.js +0 -6
- package/dist/node/community-web/creation/team_member/produce_ticket.test.js +0 -6
- package/dist/node/community-web/creation/teamwork_log/page.test.js +0 -6
- package/dist/node/community-web/creation/update.test.js +0 -6
- package/dist/node/community-web/creation_activity_stats/list.test.js +0 -7
- package/dist/node/community-web/creation_attribute/detail.test.js +0 -12
- package/dist/node/community-web/creation_donated_record/ranking_list.test.js +0 -14
- package/dist/node/community-web/creation_favorite/detail.test.js +0 -7
- package/dist/node/community-web/creation_recommend_position/list.test.js +0 -7
- package/dist/node/community-web/creation_release/code_profiling/detail.test.js +0 -7
- package/dist/node/community-web/creation_release/page.test.js +0 -14
- package/dist/node/community-web/creation_screenshot/page.test.js +0 -13
- package/dist/node/community-web/creation_stats/view.test.js +0 -8
- package/dist/node/community-web/currency/account/personal.test.js +0 -6
- package/dist/node/community-web/emoji/all.test.js +0 -13
- package/dist/node/community-web/emoji/category/list.test.js +0 -11
- package/dist/node/community-web/emoji/page.test.js +0 -14
- package/dist/node/community-web/event.test.js +0 -7
- package/dist/node/community-web/extensions/creation-like/detail.test.js +0 -6
- package/dist/node/community-web/extensions/following/status.test.js +0 -6
- package/dist/node/community-web/great_creation/update.test.js +0 -6
- package/dist/node/community-web/hash_tag/hash_tag_detail.test.js +0 -11
- package/dist/node/community-web/hash_tag/managed/managed_list.test.js +0 -12
- package/dist/node/community-web/hash_tag/recommend/list.test.js +0 -6
- package/dist/node/community-web/hash_tag_creation/hash_tag_creation_list_relation.test.js +0 -6
- package/dist/node/community-web/hash_tag_creation/hash_tag_creation_mine.test.js +0 -6
- package/dist/node/community-web/hash_tag_creation/list_relation.test.js +0 -7
- package/dist/node/community-web/hash_tag_favorite/hash_tag_favorite_detail.test.js +0 -6
- package/dist/node/community-web/health/check.test.js +0 -12
- package/dist/node/community-web/historical_team_member/page.test.js +0 -14
- package/dist/node/community-web/leaflets/item/list.test.js +0 -7
- package/dist/node/community-web/locked_user/detail.test.js +0 -8
- package/dist/node/community-web/muted_user/detail.test.js +0 -8
- package/dist/node/community-web/notification/page.test.js +0 -6
- package/dist/node/community-web/notification/stats/v2.test.js +0 -6
- package/dist/node/community-web/notify_message/notify_message.test.js +0 -7
- package/dist/node/community-web/post/post.test.js +0 -10
- package/dist/node/community-web/search/search.test.js +0 -8
- package/dist/node/community-web/short_url/decompress.test.js +0 -6
- package/dist/node/community-web/short_url/shortUrl.test.js +0 -6
- package/dist/node/community-web/smart_contract/account.test.js +0 -6
- package/dist/node/community-web/smart_contract/detail.test.js +0 -6
- package/dist/node/community-web/smart_contract/execute.test.js +0 -6
- package/dist/node/community-web/smart_contract/list.test.js +0 -6
- package/dist/node/community-web/student/block_record/block_record_list.test.js +0 -6
- package/dist/node/community-web/student/block_record/block_record_status.test.js +0 -10
- package/dist/node/community-web/student/block_record/detail.test.js +0 -6
- package/dist/node/community-web/student/following/page.test.js +0 -8
- package/dist/node/community-web/students/creator_score.test.js +0 -6
- package/dist/node/community-web/students/last_active_at.test.js +0 -8
- package/dist/node/community-web/students/list.test.js +0 -9
- package/dist/node/community-web/students/list_sessions.test.js +0 -6
- package/dist/node/community-web/students/profile.test.js +0 -8
- package/dist/node/community-web/students/reputation_score_log/reputation_score_log.test.js +0 -6
- package/dist/node/community-web/students/self/self_detail.test.js +0 -6
- package/dist/node/community-web/students/stats.test.js +0 -9
- package/dist/node/community-web/students/update.test.js +0 -6
- package/dist/node/community-web/study-community/cloud_variable/create.test.js +0 -6
- package/dist/node/community-web/study-community/comment/delete.test.js +0 -6
- package/dist/node/community-web/study-community/comment/fold.test.js +0 -6
- package/dist/node/community-web/study-community/comment/reset_weight.test.js +0 -6
- package/dist/node/community-web/study-community/comment/top.test.js +0 -6
- package/dist/node/community-web/study-community/following/follow.test.js +0 -6
- package/dist/node/community-web/study-community/member/member_detail.test.js +0 -6
- package/dist/node/community-web/study-community/spread_feed/unread/spread_feed_unread_count.test.js +0 -7
- package/dist/node/community-web/study-trade/trade/donate.test.js +0 -6
- package/dist/node/community-web/subject_area/subject_area_page.test.js +0 -7
- package/dist/node/community-web/subject_area/subject_area_page_by_channel.test.js +0 -7
- package/dist/node/community-web/task/task_award.test.js +0 -7
- package/dist/node/community-web/task/task_mine.test.js +0 -6
- package/dist/node/community-web/typical_project/page.test.js +0 -14
- package/dist/node/community-web/typical_project/student/unread_count.test.js +0 -6
- package/dist/node/community-web/user-card/user_card_detail.test.js +0 -8
- package/dist/node/community-web/user_label/user_label_list.test.js +0 -7
- package/dist/node/community-web/user_package/status.test.js +0 -6
- package/dist/node/community-web/user_package/user_product.test.js +0 -11
- package/dist/node/community-web-cloud-database/cloud_variable/detail/v2.test.js +0 -6
- package/dist/node/community-web-cloud-database/cloud_variable/save.test.js +0 -15
- package/dist/node/coverage.test.js +0 -7
- package/dist/node/gandi-main/bulletins/detail.test.js +0 -19
- package/dist/node/gandi-main/bulletins/page.test.js +0 -8
- package/dist/node/gandi-main/creation/leaderboards/{oid}/records.test.js +0 -13
- package/dist/node/gandi-main/timestamp/current.test.js +0 -8
- package/dist/node/op-parent-api/captcha/check.test.js +0 -14
- package/dist/node/op-parent-api/captcha/create.test.js +0 -15
- package/dist/node/sso/web/auth/assistant/captcha/v2/create.test.js +0 -10
- package/dist/node/sso/web/auth/auth.test.js +0 -17
- package/dist/node/sso/web/auth/v3/login/by-phone.test.js +0 -9
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { MongoDBId, CNameOssUrl } from "./api";
|
|
2
|
+
import { ApprovalTag } from "./approval";
|
|
3
|
+
import { AccountTypes } from "./account";
|
|
4
|
+
export interface BaseUser {
|
|
5
|
+
avatar: CNameOssUrl;
|
|
6
|
+
name: string;
|
|
7
|
+
picUrl: CNameOssUrl;
|
|
8
|
+
virtualValue: CNameOssUrl;
|
|
9
|
+
}
|
|
10
|
+
export interface StudentSimple extends BaseUser {
|
|
11
|
+
bio: string;
|
|
12
|
+
oid: MongoDBId;
|
|
13
|
+
}
|
|
14
|
+
export interface Student extends StudentSimple {
|
|
15
|
+
approvedContent: null | string;
|
|
16
|
+
approvedType: null | string;
|
|
17
|
+
commentCount: number;
|
|
18
|
+
creationCount: number;
|
|
19
|
+
favoriteCount: number;
|
|
20
|
+
followerCount: number;
|
|
21
|
+
followingCount: number;
|
|
22
|
+
followingStatus: "UNFOLLOWED" | "FOLLOWED";
|
|
23
|
+
isSelf: boolean;
|
|
24
|
+
likeCount: number;
|
|
25
|
+
remixedCount: number;
|
|
26
|
+
viewCount: number;
|
|
27
|
+
}
|
|
28
|
+
export interface StudentOverview {
|
|
29
|
+
approvedContent: null | string;
|
|
30
|
+
approvedType: null | string;
|
|
31
|
+
avatar: CNameOssUrl;
|
|
32
|
+
bio: string;
|
|
33
|
+
commentCount: null | number;
|
|
34
|
+
creationCount: null | number;
|
|
35
|
+
favoriteCount: null | number;
|
|
36
|
+
followerCount: null | number;
|
|
37
|
+
followingCount: null | number;
|
|
38
|
+
followingStatus: null | "UNFOLLOWED" | "FOLLOWED" | "BOTH_FOLLOWED" | string;
|
|
39
|
+
isSelf: null | boolean;
|
|
40
|
+
likeCount: null | number;
|
|
41
|
+
name: string;
|
|
42
|
+
oid: MongoDBId;
|
|
43
|
+
picUrl: null | CNameOssUrl;
|
|
44
|
+
remixedCount: null | number;
|
|
45
|
+
viewCount: null | number;
|
|
46
|
+
virtualValue: null | CNameOssUrl;
|
|
47
|
+
}
|
|
48
|
+
export interface OtherUser extends BaseUser {
|
|
49
|
+
accountOid: MongoDBId;
|
|
50
|
+
accountType: AccountTypes;
|
|
51
|
+
approvalTagRelations: ApprovalTag[];
|
|
52
|
+
createdAt: number;
|
|
53
|
+
currentCreationPlaytime: null;
|
|
54
|
+
ext: {};
|
|
55
|
+
hideGender: boolean;
|
|
56
|
+
id: number;
|
|
57
|
+
status: "NORMAL";
|
|
58
|
+
updatedAt: number;
|
|
59
|
+
virtualValue: CNameOssUrl;
|
|
60
|
+
}
|
|
61
|
+
export type UserLabels = "POTENTIAL_CREATION";
|
|
62
|
+
export interface ProfileExtraInfo {
|
|
63
|
+
hobbies: string;
|
|
64
|
+
learnedProgrammingLanguages: string;
|
|
65
|
+
programmingCapability: string;
|
|
66
|
+
selfIntroduction: string;
|
|
67
|
+
}
|
|
68
|
+
export interface MemberArchive {
|
|
69
|
+
accountOid: null | MongoDBId;
|
|
70
|
+
defaultEditor: string;
|
|
71
|
+
greatCreationOid: MongoDBId;
|
|
72
|
+
homepageCover: CNameOssUrl;
|
|
73
|
+
}
|
|
74
|
+
export interface ReputationScore {
|
|
75
|
+
rank: string;
|
|
76
|
+
score: number;
|
|
77
|
+
studentOid: MongoDBId;
|
|
78
|
+
}
|
|
79
|
+
export interface ProfileStatistics {
|
|
80
|
+
badgesCount: null | number;
|
|
81
|
+
homeworkCount: number;
|
|
82
|
+
likeHomeworkCount: number;
|
|
83
|
+
}
|
|
84
|
+
export interface ReputationScoreLog {
|
|
85
|
+
createdAt: number;
|
|
86
|
+
description: string;
|
|
87
|
+
id: number;
|
|
88
|
+
score: number;
|
|
89
|
+
studentOid: MongoDBId;
|
|
90
|
+
}
|
|
91
|
+
export interface StudentProfile extends BaseUser {
|
|
92
|
+
bio: string;
|
|
93
|
+
birthday: number;
|
|
94
|
+
category: string;
|
|
95
|
+
commentCount: number;
|
|
96
|
+
extraInfo: ProfileExtraInfo;
|
|
97
|
+
gender: string;
|
|
98
|
+
hideGender: boolean;
|
|
99
|
+
identityAuthRank: string;
|
|
100
|
+
lastLoginAt: number;
|
|
101
|
+
memberArchive: MemberArchive;
|
|
102
|
+
regChannel: null | string;
|
|
103
|
+
reputationScore: ReputationScore;
|
|
104
|
+
statistics: ProfileStatistics;
|
|
105
|
+
studentCreatedDays: number;
|
|
106
|
+
studentNumber: string;
|
|
107
|
+
studentOid: MongoDBId;
|
|
108
|
+
}
|
|
109
|
+
export interface ParentInfo {
|
|
110
|
+
acceptedCashInviteOnce: null | boolean;
|
|
111
|
+
alphaUser: null | boolean;
|
|
112
|
+
altName: null | string;
|
|
113
|
+
annualIncome: null | string;
|
|
114
|
+
archive: null | boolean;
|
|
115
|
+
authedTime: null | number;
|
|
116
|
+
avatar: null | CNameOssUrl;
|
|
117
|
+
bindPhone: string;
|
|
118
|
+
birthday: null | number;
|
|
119
|
+
cashInviteCreatedAt: null | number;
|
|
120
|
+
cashInviteRestartAt: null | number;
|
|
121
|
+
clazzDevice: null | string;
|
|
122
|
+
company: null | string;
|
|
123
|
+
countryCode: null | string;
|
|
124
|
+
createdAt: null | number;
|
|
125
|
+
degree: null | string;
|
|
126
|
+
distinctId: string;
|
|
127
|
+
divorced: null | boolean;
|
|
128
|
+
email: null | string;
|
|
129
|
+
ext: {};
|
|
130
|
+
followTeachers: object[];
|
|
131
|
+
fullName: null | string;
|
|
132
|
+
gender: null | string;
|
|
133
|
+
giftCardCampaign: null | string;
|
|
134
|
+
guestOid: null | MongoDBId;
|
|
135
|
+
idcard: null | string;
|
|
136
|
+
industry: null | string;
|
|
137
|
+
integer: null | number;
|
|
138
|
+
inviterableId: null | string;
|
|
139
|
+
inviterableType: null | string;
|
|
140
|
+
isEmployee: null | boolean;
|
|
141
|
+
jobPosition: null | string;
|
|
142
|
+
lastSubscribeAt: null | number;
|
|
143
|
+
mainContact: null | boolean;
|
|
144
|
+
name: null | string;
|
|
145
|
+
needSelectClazz: null | boolean;
|
|
146
|
+
oid: MongoDBId;
|
|
147
|
+
overseaExperience: null | boolean;
|
|
148
|
+
phoneAddr: null | string;
|
|
149
|
+
powerUser: null | boolean;
|
|
150
|
+
realName: null | string;
|
|
151
|
+
relationship: null | string;
|
|
152
|
+
remarkName: null | string;
|
|
153
|
+
rewardsCashesCount: null | number;
|
|
154
|
+
source: null | string;
|
|
155
|
+
sourceCategory: null | string;
|
|
156
|
+
sourceInfo: null | string;
|
|
157
|
+
status: null | string;
|
|
158
|
+
student: null | object;
|
|
159
|
+
studentOid: MongoDBId;
|
|
160
|
+
subscribe: null | boolean;
|
|
161
|
+
subscribeScene: null | string;
|
|
162
|
+
tags: null | string[];
|
|
163
|
+
telephone: string;
|
|
164
|
+
university: null | string;
|
|
165
|
+
updatedAt: null | number;
|
|
166
|
+
userTags: string[];
|
|
167
|
+
userType: null | string;
|
|
168
|
+
wechatAccount: null | string;
|
|
169
|
+
wechatCity: null | string;
|
|
170
|
+
wechatCountry: null | string;
|
|
171
|
+
wechatOpenid: null | string;
|
|
172
|
+
wechatProvince: null | string;
|
|
173
|
+
wechatUnionid: null | string;
|
|
174
|
+
wehubWxid: null | string;
|
|
175
|
+
wxid: null | string;
|
|
176
|
+
}
|
|
177
|
+
export interface CurrentParent {
|
|
178
|
+
bindPhone: string;
|
|
179
|
+
qqNickname: string;
|
|
180
|
+
qqNum: null | string;
|
|
181
|
+
}
|
|
182
|
+
export interface InfoModifyDate {
|
|
183
|
+
avatarModifiedAt: null | number;
|
|
184
|
+
nameModifiedAt: null | number;
|
|
185
|
+
}
|
|
186
|
+
export 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";
|
|
187
|
+
export interface StudentSelfDetail {
|
|
188
|
+
abGroup: null | string;
|
|
189
|
+
accountNumber: string;
|
|
190
|
+
address: null | string;
|
|
191
|
+
addressCode: null | string;
|
|
192
|
+
age: number;
|
|
193
|
+
archive: null | boolean;
|
|
194
|
+
avatar: CNameOssUrl;
|
|
195
|
+
bio: string;
|
|
196
|
+
birthYear: null | number;
|
|
197
|
+
birthday: number;
|
|
198
|
+
category: null | string;
|
|
199
|
+
city: null | string;
|
|
200
|
+
commentCount: number;
|
|
201
|
+
contactPhone: null | string;
|
|
202
|
+
countryCode: null | string;
|
|
203
|
+
createdAt: number;
|
|
204
|
+
currentMajorClazzOid: null | MongoDBId;
|
|
205
|
+
currentParent: CurrentParent;
|
|
206
|
+
distinctId: null | string;
|
|
207
|
+
district: null | string;
|
|
208
|
+
email: null | string;
|
|
209
|
+
energy: null | number;
|
|
210
|
+
energyRegain: null | number;
|
|
211
|
+
examScore: null | number;
|
|
212
|
+
extraInfo: ProfileExtraInfo;
|
|
213
|
+
firstTime: null | boolean;
|
|
214
|
+
followingStatus: null | string;
|
|
215
|
+
fullName: string;
|
|
216
|
+
gender: string;
|
|
217
|
+
grade: number;
|
|
218
|
+
group: null | string;
|
|
219
|
+
guest: null | boolean;
|
|
220
|
+
guestNumber: null | string;
|
|
221
|
+
hideGender: boolean;
|
|
222
|
+
host: string;
|
|
223
|
+
identity: string;
|
|
224
|
+
identityAuthRank: string;
|
|
225
|
+
identityType: string;
|
|
226
|
+
informationModifyDate: InfoModifyDate;
|
|
227
|
+
keywords: string[];
|
|
228
|
+
lastLoginAt: null | number;
|
|
229
|
+
lastStudyAt: null | number;
|
|
230
|
+
lowAge: null | boolean;
|
|
231
|
+
midexamScore: null | number;
|
|
232
|
+
miniprojectFreeNum: null | number;
|
|
233
|
+
mpClicked: null | boolean;
|
|
234
|
+
mpShowedModal: null | boolean;
|
|
235
|
+
mpTutorial: null | string;
|
|
236
|
+
name: string;
|
|
237
|
+
newWorkbenchTutorial: null | boolean;
|
|
238
|
+
oid: MongoDBId;
|
|
239
|
+
orgId: null | string;
|
|
240
|
+
parents: ParentInfo[];
|
|
241
|
+
passwordDigest: null | string;
|
|
242
|
+
photo: null | string;
|
|
243
|
+
picUrl: CNameOssUrl;
|
|
244
|
+
province: null | string;
|
|
245
|
+
qq: string;
|
|
246
|
+
receiver: null | string;
|
|
247
|
+
regChannel: null | string;
|
|
248
|
+
remarkName: null | string;
|
|
249
|
+
reputationScore: ReputationScore;
|
|
250
|
+
role: null | string;
|
|
251
|
+
school: string;
|
|
252
|
+
showServiceTerm: null | boolean;
|
|
253
|
+
showTaskList: null | boolean;
|
|
254
|
+
stats: null | object;
|
|
255
|
+
studentNumber: string;
|
|
256
|
+
task: null | object;
|
|
257
|
+
teacherUnreadedMessages: null | number;
|
|
258
|
+
tutorialSteps: null | string;
|
|
259
|
+
updatedAt: number;
|
|
260
|
+
validateSchool: null | boolean;
|
|
261
|
+
virtualValue: CNameOssUrl;
|
|
262
|
+
watchedMiniProjectTutorailVideo: null | boolean;
|
|
263
|
+
xiguaStudentNo: null | string;
|
|
264
|
+
}
|
|
265
|
+
export interface StudentListItem {
|
|
266
|
+
abGroup: null | string;
|
|
267
|
+
accountNumber: null | string;
|
|
268
|
+
address: null | string;
|
|
269
|
+
addressCode: null | string;
|
|
270
|
+
age: null | number;
|
|
271
|
+
archive: null | boolean;
|
|
272
|
+
avatar: CNameOssUrl;
|
|
273
|
+
bio: null | string;
|
|
274
|
+
birthYear: null | number;
|
|
275
|
+
birthday: null | number;
|
|
276
|
+
category: null | string;
|
|
277
|
+
city: null | string;
|
|
278
|
+
commentCount: null | number;
|
|
279
|
+
contactPhone: null | string;
|
|
280
|
+
countryCode: null | string;
|
|
281
|
+
createdAt: null | number;
|
|
282
|
+
currentMajorClazzOid: null | MongoDBId;
|
|
283
|
+
currentParent: null | object;
|
|
284
|
+
distinctId: null | string;
|
|
285
|
+
district: null | string;
|
|
286
|
+
email: null | string;
|
|
287
|
+
energy: null | number;
|
|
288
|
+
energyRegain: null | number;
|
|
289
|
+
examScore: null | number;
|
|
290
|
+
extraInfo: null | object;
|
|
291
|
+
firstTime: null | boolean;
|
|
292
|
+
followingStatus: null | string;
|
|
293
|
+
fullName: null | string;
|
|
294
|
+
gender: null | string;
|
|
295
|
+
grade: null | number;
|
|
296
|
+
group: null | string;
|
|
297
|
+
guest: null | boolean;
|
|
298
|
+
guestNumber: null | string;
|
|
299
|
+
hideGender: null | boolean;
|
|
300
|
+
host: null | string;
|
|
301
|
+
identity: null | string;
|
|
302
|
+
identityAuthRank: null | string;
|
|
303
|
+
identityType: null | string;
|
|
304
|
+
informationModifyDate: null | object;
|
|
305
|
+
keywords: string[];
|
|
306
|
+
lastLoginAt: null | number;
|
|
307
|
+
lastStudyAt: null | number;
|
|
308
|
+
lowAge: null | boolean;
|
|
309
|
+
midexamScore: null | number;
|
|
310
|
+
miniprojectFreeNum: null | number;
|
|
311
|
+
mpClicked: null | boolean;
|
|
312
|
+
mpShowedModal: null | boolean;
|
|
313
|
+
mpTutorial: null | string;
|
|
314
|
+
name: string;
|
|
315
|
+
newWorkbenchTutorial: null | boolean;
|
|
316
|
+
oid: MongoDBId;
|
|
317
|
+
orgId: null | string;
|
|
318
|
+
parents: object[];
|
|
319
|
+
passwordDigest: null | string;
|
|
320
|
+
photo: null | string;
|
|
321
|
+
picUrl: CNameOssUrl;
|
|
322
|
+
province: null | string;
|
|
323
|
+
qq: null | string;
|
|
324
|
+
receiver: null | string;
|
|
325
|
+
regChannel: null | string;
|
|
326
|
+
remarkName: null | string;
|
|
327
|
+
reputationScore: null | number;
|
|
328
|
+
role: null | string;
|
|
329
|
+
school: null | string;
|
|
330
|
+
showServiceTerm: null | boolean;
|
|
331
|
+
showTaskList: null | boolean;
|
|
332
|
+
stats: null | object;
|
|
333
|
+
studentNumber: string;
|
|
334
|
+
task: null | object;
|
|
335
|
+
teacherUnreadedMessages: null | number;
|
|
336
|
+
tutorialSteps: null | string;
|
|
337
|
+
updatedAt: null | number;
|
|
338
|
+
validateSchool: null | boolean;
|
|
339
|
+
virtualValue: CNameOssUrl;
|
|
340
|
+
watchedMiniProjectTutorailVideo: null | boolean;
|
|
341
|
+
xiguaStudentNo: null | string;
|
|
342
|
+
}
|
|
343
|
+
export interface CreatorScore {
|
|
344
|
+
rank: "ORDINARY" | "HACKER" | "ADVANCED";
|
|
345
|
+
rankRetentionDate: null;
|
|
346
|
+
score: number;
|
|
347
|
+
studentOid: MongoDBId;
|
|
348
|
+
}
|
|
349
|
+
export interface StudentFollowerStats {
|
|
350
|
+
followerCount: number;
|
|
351
|
+
followingCount: number;
|
|
352
|
+
}
|
|
353
|
+
export interface StudentUpdateReq {
|
|
354
|
+
birthday: number;
|
|
355
|
+
fullName: string;
|
|
356
|
+
gender: string;
|
|
357
|
+
hideGender: boolean;
|
|
358
|
+
hobbies: string;
|
|
359
|
+
learnedProgrammingLanguages: string;
|
|
360
|
+
programmingCapability: string;
|
|
361
|
+
qq: string;
|
|
362
|
+
school: string;
|
|
363
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccw-api/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "ccw api collections",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Meng Fuzi",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test:dev": "jest --watch",
|
|
27
27
|
"doc": "typedoc",
|
|
28
28
|
"doc:dev": "typedoc --watch",
|
|
29
|
-
"build": "tsc --project tsconfig.node.json && tsc --project tsconfig.esm.json && tsc --project tsconfig.types.json"
|
|
29
|
+
"build": "tsc --project tsconfig.node.json && resolve-tspaths --project tsconfig.node.json --src ./src --out ./dist/node && tsc --project tsconfig.esm.json && resolve-tspaths --project tsconfig.esm.json --src ./src --out ./dist/esm && tsc --project tsconfig.types.json && resolve-tspaths --project tsconfig.types.json --src ./src --out ./dist/types"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@ccw-api/axios": "^3.0.0"
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@types/node": "^26.0.1",
|
|
37
37
|
"jest": "^30.4.2",
|
|
38
38
|
"prettier-plugin-sort-members": "^0.2.4",
|
|
39
|
+
"resolve-tspaths": "^0.8.23",
|
|
39
40
|
"ts-jest": "^29.4.11",
|
|
40
41
|
"typedoc": "^0.28.19"
|
|
41
42
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { encodeShortCode } from "./encode";
|
|
2
|
-
test("test shortcode", async () => {
|
|
3
|
-
const res = await encodeShortCode("63c2807d669fa967f17f5559", "https://m.ccw.site/user_projects_assets/244373873/3fc7886d05aed9f369d2c0bb2d677fc0.jpeg", "孟夫子驾到", "6386e11cfc1ed14684de07f8");
|
|
4
|
-
expect(res.code).toHaveLength("yZdXmD3PvwVPA30W".length);
|
|
5
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getCampaignResources } from "./detail";
|
|
2
|
-
test("get campaign resources with tags keyword", async () => {
|
|
3
|
-
const res = await getCampaignResources("tags");
|
|
4
|
-
expect(res.keyword).toBe("tags");
|
|
5
|
-
expect(res.resourceType).toBe("SUBJECT_AREA");
|
|
6
|
-
});
|
|
7
|
-
test("get campaign resources with mmo keyword", async () => {
|
|
8
|
-
const res = await getCampaignResources("mmo");
|
|
9
|
-
expect(res.keyword).toBe("mmo");
|
|
10
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getCheckInRecords } from "./detail";
|
|
2
|
-
import { insertCheckInRecord } from "./insert";
|
|
3
|
-
test("get check in records should fail without channel", async () => {
|
|
4
|
-
await expect(getCheckInRecords).rejects.toThrow("ccw axios Request failed: token为空(4001082401)");
|
|
5
|
-
});
|
|
6
|
-
test("insert check in record should fail without token", async () => {
|
|
7
|
-
await expect(insertCheckInRecord).rejects.toThrow("ccw axios Request failed: token为空(4001082401)");
|
|
8
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { searchCloudAssets } from "./search";
|
|
2
|
-
test("search cloud assets should fail without token", async () => {
|
|
3
|
-
const userId = "63c2807d669fa967f17f5559";
|
|
4
|
-
const path = "/23azZqHBnqj/";
|
|
5
|
-
await expect(searchCloudAssets(userId, path)).rejects.toThrow("ccw axios Request failed: token为空(4001082401)");
|
|
6
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createComment } from "./create";
|
|
2
|
-
import { getPostDetail } from "../post/detail";
|
|
3
|
-
let samplePost;
|
|
4
|
-
beforeAll(async () => {
|
|
5
|
-
samplePost = await getPostDetail("0173b23d-139d-4c48-ad98-0aa17b5d3b60");
|
|
6
|
-
}, 30000);
|
|
7
|
-
test("create comment should fail without token", async () => {
|
|
8
|
-
await expect(createComment("test", {
|
|
9
|
-
outline: "a",
|
|
10
|
-
subjectOid: samplePost.oid,
|
|
11
|
-
subjectType: "POST",
|
|
12
|
-
}, "COMMENT")).rejects.toThrow("token为空");
|
|
13
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getCommentReplies } from "./page";
|
|
2
|
-
test("get comment replies should return data", async () => {
|
|
3
|
-
const topicId = 819086;
|
|
4
|
-
const parentId = 9611280;
|
|
5
|
-
const statuses = ["PUBLISHED", "FOLDED"];
|
|
6
|
-
const res = await getCommentReplies(topicId, parentId, statuses);
|
|
7
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
8
|
-
res.data.forEach((comment) => {
|
|
9
|
-
expect(comment.id).toBeDefined();
|
|
10
|
-
expect(comment.topicId).toBe(topicId);
|
|
11
|
-
expect(comment.parentId).toBe(parentId);
|
|
12
|
-
expect(comment.content).toBeDefined();
|
|
13
|
-
expect(["PUBLISHED", "FOLDED"]).toContain(comment.status);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { getCommentsByTopic } from "./page_by_topic";
|
|
2
|
-
test("get comments by topic should return data", async () => {
|
|
3
|
-
const subjectOid = "6a3c73a3b6c84711978d92f2";
|
|
4
|
-
const subjectType = "POST";
|
|
5
|
-
const sectionType = "COMMENT";
|
|
6
|
-
const res = await getCommentsByTopic(subjectOid, subjectType, sectionType);
|
|
7
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
8
|
-
res.data.forEach((comment) => {
|
|
9
|
-
expect(comment.id).toBeDefined();
|
|
10
|
-
expect(comment.content).toBeDefined();
|
|
11
|
-
expect(["PUBLISHED", "FOLDED"]).toContain(comment.status);
|
|
12
|
-
});
|
|
13
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getConfigDetail } from "./detail";
|
|
2
|
-
test("get config detail returns value without token", async () => {
|
|
3
|
-
const result = await getConfigDetail("foo");
|
|
4
|
-
expect(result === null ||
|
|
5
|
-
typeof result === "string" ||
|
|
6
|
-
typeof result === "number" ||
|
|
7
|
-
typeof result === "boolean" ||
|
|
8
|
-
typeof result === "object").toBe(true);
|
|
9
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { getCreationDetail } from "./detail";
|
|
2
|
-
import { getExcellentCreations } from "./excellent/list";
|
|
3
|
-
let sampleCreationOid;
|
|
4
|
-
beforeAll(async () => {
|
|
5
|
-
const creations = await getExcellentCreations(1);
|
|
6
|
-
if (creations.length > 0) {
|
|
7
|
-
sampleCreationOid = creations[0].oid;
|
|
8
|
-
}
|
|
9
|
-
}, 30000);
|
|
10
|
-
test("get creation detail should return data", async () => {
|
|
11
|
-
if (!sampleCreationOid) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const res = await getCreationDetail(sampleCreationOid, "");
|
|
15
|
-
expect(res.oid).toBe(sampleCreationOid);
|
|
16
|
-
expect(res.title).toBeDefined();
|
|
17
|
-
expect(res.student).toBeDefined();
|
|
18
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getExcellentCreations } from "./list";
|
|
2
|
-
test("get excellent creations should return data", async () => {
|
|
3
|
-
const res = await getExcellentCreations(15);
|
|
4
|
-
expect(Array.isArray(res)).toBe(true);
|
|
5
|
-
res.forEach((c) => {
|
|
6
|
-
expect(c.oid).toBeDefined();
|
|
7
|
-
expect(c.title).toBeDefined();
|
|
8
|
-
});
|
|
9
|
-
expect(res).toHaveLength(15);
|
|
10
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getCreationIntroduction } from "./detail";
|
|
2
|
-
import { getExcellentCreations } from "../excellent/list";
|
|
3
|
-
let sampleStudentOid;
|
|
4
|
-
beforeAll(async () => {
|
|
5
|
-
const creations = await getExcellentCreations(1);
|
|
6
|
-
if (creations.length > 0) {
|
|
7
|
-
sampleStudentOid = creations[0].studentOid;
|
|
8
|
-
}
|
|
9
|
-
}, 30000);
|
|
10
|
-
test("get creation introduction should return data", async () => {
|
|
11
|
-
if (!sampleStudentOid) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const res = await getCreationIntroduction(sampleStudentOid);
|
|
15
|
-
expect(res.oid).toBeDefined();
|
|
16
|
-
expect(res.title).toBeDefined();
|
|
17
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { getLikeDetail } from "./detail";
|
|
2
|
-
import { getExcellentCreations } from "../excellent/list";
|
|
3
|
-
let sampleCreationOid;
|
|
4
|
-
beforeAll(async () => {
|
|
5
|
-
const creations = await getExcellentCreations(1);
|
|
6
|
-
if (creations.length > 0) {
|
|
7
|
-
sampleCreationOid = creations[0].oid;
|
|
8
|
-
}
|
|
9
|
-
}, 30000);
|
|
10
|
-
test("get like detail should return data", async () => {
|
|
11
|
-
if (!sampleCreationOid) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const res = await getLikeDetail(sampleCreationOid);
|
|
15
|
-
if (res) {
|
|
16
|
-
expect(res.creationOid).toBe(sampleCreationOid);
|
|
17
|
-
expect(res.action).toBeDefined();
|
|
18
|
-
}
|
|
19
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getLoadingTips } from "./tips";
|
|
2
|
-
test("get loading tips should return data", async () => {
|
|
3
|
-
const res = await getLoadingTips();
|
|
4
|
-
expect(res["小八"]).toBeDefined();
|
|
5
|
-
expect(res["胖达"]).toBeDefined();
|
|
6
|
-
expect(res["妮可"]).toBeDefined();
|
|
7
|
-
expect(res["孙小弟"]).toBeDefined();
|
|
8
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { getRemixedCreationPage } from "./page";
|
|
2
|
-
import { getExcellentCreations } from "./excellent/list";
|
|
3
|
-
let sampleCreationOid;
|
|
4
|
-
beforeAll(async () => {
|
|
5
|
-
const creations = await getExcellentCreations(1);
|
|
6
|
-
if (creations.length > 0) {
|
|
7
|
-
sampleCreationOid = creations[0].oid;
|
|
8
|
-
}
|
|
9
|
-
}, 30000);
|
|
10
|
-
test("get creation page should return data", async () => {
|
|
11
|
-
if (!sampleCreationOid) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const res = await getRemixedCreationPage([sampleCreationOid]);
|
|
15
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
16
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { getCreationsByStudent } from "./page_by_student";
|
|
2
|
-
import { getExcellentCreations } from "./excellent/list";
|
|
3
|
-
let sampleStudentOid;
|
|
4
|
-
beforeAll(async () => {
|
|
5
|
-
const creations = await getExcellentCreations(1);
|
|
6
|
-
if (creations.length > 0) {
|
|
7
|
-
sampleStudentOid = creations[0].studentOid;
|
|
8
|
-
}
|
|
9
|
-
}, 30000);
|
|
10
|
-
test("get creations by student should return data", async () => {
|
|
11
|
-
if (!sampleStudentOid) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const res = await getCreationsByStudent([sampleStudentOid]);
|
|
15
|
-
expect(Array.isArray(res.data)).toBe(true);
|
|
16
|
-
res.data.forEach((c) => {
|
|
17
|
-
expect(c.oid).toBeDefined();
|
|
18
|
-
expect(c.studentOid).toBeDefined();
|
|
19
|
-
});
|
|
20
|
-
});
|