@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,60 @@
|
|
|
1
|
+
import { OtherUser } from "./userData";
|
|
2
|
+
export interface Comment {
|
|
3
|
+
commenter: OtherUser;
|
|
4
|
+
commenterId: number;
|
|
5
|
+
/**
|
|
6
|
+
* 评论内容
|
|
7
|
+
*/
|
|
8
|
+
content: string;
|
|
9
|
+
createdAt: number;
|
|
10
|
+
dislikeCount: number;
|
|
11
|
+
disliked: boolean;
|
|
12
|
+
ext: {};
|
|
13
|
+
hiddenOpinion: null;
|
|
14
|
+
id: number;
|
|
15
|
+
likeCount: number;
|
|
16
|
+
liked: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 如果是评论,则为null,如果是回复,则为回复的评论的id
|
|
19
|
+
*/
|
|
20
|
+
parentId: number | null;
|
|
21
|
+
receiver: OtherUser | null;
|
|
22
|
+
receiverId: number;
|
|
23
|
+
replyCount: null | number;
|
|
24
|
+
replyToId: number;
|
|
25
|
+
reported: boolean;
|
|
26
|
+
sectionType: "COMMENT";
|
|
27
|
+
status: "PUBLISHED" | "FOLDED";
|
|
28
|
+
subComments: [];
|
|
29
|
+
topic: TopicInfo;
|
|
30
|
+
/**
|
|
31
|
+
* 回复的文章/扩展id
|
|
32
|
+
*/
|
|
33
|
+
topicId: number;
|
|
34
|
+
updatedAt: number;
|
|
35
|
+
weight: number;
|
|
36
|
+
}
|
|
37
|
+
export interface TopicInfo extends MinimalTopicInfo {
|
|
38
|
+
createdAt: number;
|
|
39
|
+
ext: {
|
|
40
|
+
/**
|
|
41
|
+
* 文章uuid可能被包含
|
|
42
|
+
*/
|
|
43
|
+
slug?: string;
|
|
44
|
+
};
|
|
45
|
+
id: number;
|
|
46
|
+
/**
|
|
47
|
+
* 文章名称/扩展名称/作品名称
|
|
48
|
+
*/
|
|
49
|
+
updatedAt: number;
|
|
50
|
+
}
|
|
51
|
+
export type MinimalTopicInfo = {
|
|
52
|
+
/**
|
|
53
|
+
* 和响应无关,但至少要传一个字符进去
|
|
54
|
+
*/
|
|
55
|
+
outline?: string;
|
|
56
|
+
subjectOid: string;
|
|
57
|
+
subjectType: SubjectType;
|
|
58
|
+
};
|
|
59
|
+
export type SubjectType = "EXTENSION" | "POST" | "CREATION";
|
|
60
|
+
export type SectionType = "REVIEW" | "COMMENT" | "PROFILE";
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { MongoDBId, CNameOssUrl } from "./api";
|
|
2
|
+
import { OtherUser, StudentOverview } from "./userData";
|
|
3
|
+
import { AccountTypes } from "./account";
|
|
4
|
+
import { ExtensionStats } from "./extensions";
|
|
5
|
+
export interface CreationRelease {
|
|
6
|
+
checked: boolean;
|
|
7
|
+
coverGifLink: CNameOssUrl;
|
|
8
|
+
coverLink: CNameOssUrl;
|
|
9
|
+
createdAt: number;
|
|
10
|
+
customVersion: string;
|
|
11
|
+
description: string;
|
|
12
|
+
extensions: string[];
|
|
13
|
+
hasCloudVariables: boolean;
|
|
14
|
+
keyboardLayout: KBDLayout;
|
|
15
|
+
oid: MongoDBId;
|
|
16
|
+
operatingInstruction: string;
|
|
17
|
+
profiling: null | string;
|
|
18
|
+
projectLink: string;
|
|
19
|
+
status: CreationStatus;
|
|
20
|
+
submittedAt: number;
|
|
21
|
+
tags: string[];
|
|
22
|
+
updatedAt: number;
|
|
23
|
+
version: string;
|
|
24
|
+
videoLink: null | string;
|
|
25
|
+
}
|
|
26
|
+
export interface TeamMemberResp {
|
|
27
|
+
authority: string;
|
|
28
|
+
avatar: string;
|
|
29
|
+
createdAt: number;
|
|
30
|
+
creationOid: MongoDBId;
|
|
31
|
+
name: string;
|
|
32
|
+
online: null | boolean;
|
|
33
|
+
priority: number;
|
|
34
|
+
profile: null | string;
|
|
35
|
+
role: string;
|
|
36
|
+
userOid: MongoDBId;
|
|
37
|
+
}
|
|
38
|
+
export interface TeamworkStatus {
|
|
39
|
+
currentTeamMemberList: TeamMemberResp[];
|
|
40
|
+
online: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface CreationSimple extends CreationMinimal {
|
|
43
|
+
artifactType: string;
|
|
44
|
+
createdAt: number;
|
|
45
|
+
currentReleaseOid: MongoDBId;
|
|
46
|
+
description: string;
|
|
47
|
+
ext: {
|
|
48
|
+
SUBMIT_HASH_TAGS: string[];
|
|
49
|
+
keyboardLayout: KBDLayout;
|
|
50
|
+
requireLogin: boolean;
|
|
51
|
+
};
|
|
52
|
+
featuredCoverLink: string;
|
|
53
|
+
forEveryone: boolean;
|
|
54
|
+
hashTags: string[];
|
|
55
|
+
isOpenSource: boolean;
|
|
56
|
+
isTeamwork: boolean;
|
|
57
|
+
keyboardLayout: KBDLayout;
|
|
58
|
+
lastPassedAt: number;
|
|
59
|
+
latestProjectLink: string;
|
|
60
|
+
operatedAt: number;
|
|
61
|
+
rank: string;
|
|
62
|
+
requireLogin: boolean;
|
|
63
|
+
screenMode: CreationScreenMode;
|
|
64
|
+
sourceOpenLevel: SourceOpenLevel;
|
|
65
|
+
status: CreationStatus;
|
|
66
|
+
student: StudentOverview;
|
|
67
|
+
studentOid: MongoDBId;
|
|
68
|
+
tags: string[];
|
|
69
|
+
teamMemberRespList: TeamMemberResp[];
|
|
70
|
+
type: string;
|
|
71
|
+
updatedAt: number;
|
|
72
|
+
/**
|
|
73
|
+
* ALL: 所有人可见
|
|
74
|
+
* PRIVATE: 仅自己可见
|
|
75
|
+
*/
|
|
76
|
+
visibleScope: "PRIVATE" | "ALL";
|
|
77
|
+
}
|
|
78
|
+
export interface Creation extends CreationSimple {
|
|
79
|
+
creationReleaseList: CreationRelease[];
|
|
80
|
+
currentHashTag: null | string;
|
|
81
|
+
eid: null | string;
|
|
82
|
+
firstPublishedRelease: null | CreationRelease;
|
|
83
|
+
isSelf: null | boolean;
|
|
84
|
+
projectLastModifiedAt: null | number;
|
|
85
|
+
remixCreationOid: null | MongoDBId;
|
|
86
|
+
remixedCreation: null | object;
|
|
87
|
+
repostedSource: null | object;
|
|
88
|
+
stats: null | ExtensionStats;
|
|
89
|
+
student: StudentOverview;
|
|
90
|
+
teamworkStatus: null | TeamworkStatus;
|
|
91
|
+
typicalProjectId: null | string;
|
|
92
|
+
}
|
|
93
|
+
export interface CreationTag {
|
|
94
|
+
code: string;
|
|
95
|
+
createdAt: number;
|
|
96
|
+
id: number;
|
|
97
|
+
priority: number;
|
|
98
|
+
title: string;
|
|
99
|
+
updatedAt: number;
|
|
100
|
+
visibility: "PUBLIC";
|
|
101
|
+
}
|
|
102
|
+
export interface LoadingTip {
|
|
103
|
+
妮可: string[];
|
|
104
|
+
孙小弟: string[];
|
|
105
|
+
小八: string[];
|
|
106
|
+
胖达: string[];
|
|
107
|
+
}
|
|
108
|
+
export interface UserLikeDetail {
|
|
109
|
+
action: LikeActions;
|
|
110
|
+
createdAt: number;
|
|
111
|
+
/**
|
|
112
|
+
* 作品id
|
|
113
|
+
*/
|
|
114
|
+
creationOid: MongoDBId;
|
|
115
|
+
oid: MongoDBId;
|
|
116
|
+
/**
|
|
117
|
+
* 一般为作品作者
|
|
118
|
+
*/
|
|
119
|
+
receiverOid: MongoDBId;
|
|
120
|
+
/**
|
|
121
|
+
* 用户id
|
|
122
|
+
*/
|
|
123
|
+
senderOid: MongoDBId;
|
|
124
|
+
}
|
|
125
|
+
export type LikeActions = "SIX" | "HEART" | "HANDSHAKE" | "LIKE" | "SMILE" | "FLOWER" | "WATERMELON";
|
|
126
|
+
export interface DonatedRecord {
|
|
127
|
+
bucks: number;
|
|
128
|
+
createdAt: number;
|
|
129
|
+
creationOid: MongoDBId;
|
|
130
|
+
donatorAvatar: CNameOssUrl;
|
|
131
|
+
donatorName: string;
|
|
132
|
+
donatorOid: MongoDBId;
|
|
133
|
+
donatorType: AccountTypes;
|
|
134
|
+
id: number;
|
|
135
|
+
updatedAt: number;
|
|
136
|
+
}
|
|
137
|
+
export interface CreationScreenshot {
|
|
138
|
+
commenter: OtherUser;
|
|
139
|
+
commenterId: number;
|
|
140
|
+
createdAt: number;
|
|
141
|
+
creationScreenshot: CNameOssUrl;
|
|
142
|
+
ext: {};
|
|
143
|
+
id: number;
|
|
144
|
+
msg: string;
|
|
145
|
+
status: null;
|
|
146
|
+
topicId: number;
|
|
147
|
+
updatedAt: number;
|
|
148
|
+
weight: number;
|
|
149
|
+
}
|
|
150
|
+
export interface FavoriteDetail {
|
|
151
|
+
creationOid: MongoDBId;
|
|
152
|
+
favoritedAt: number;
|
|
153
|
+
studentOid: MongoDBId;
|
|
154
|
+
updatedAt: number;
|
|
155
|
+
}
|
|
156
|
+
export interface CreationMinimal {
|
|
157
|
+
commentCount: number;
|
|
158
|
+
creationRelease: CreationRelease;
|
|
159
|
+
favoriteCount: number;
|
|
160
|
+
latestCoverLink: string;
|
|
161
|
+
likeCount: number;
|
|
162
|
+
oid: MongoDBId;
|
|
163
|
+
remixedCount: number;
|
|
164
|
+
title: string;
|
|
165
|
+
viewCount: number;
|
|
166
|
+
}
|
|
167
|
+
export type CreationScreenMode = "LANDSCAPE";
|
|
168
|
+
export type ReleaseTag = "Alpha" | "Beta" | "RC" | "Release";
|
|
169
|
+
export type KBDLayout = "CUSTOM" | "TOUCH" | "DISABLED";
|
|
170
|
+
export type SourceOpenLevel = "PRIVATE" | "SOURCE_READABLE" | "PUBLIC";
|
|
171
|
+
export type CreationStatus = "PUBLISHED" | "BANNED" | "SUBMITTED" | "REJECTED";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { CNameOssUrl, MongoDBId } from "./api";
|
|
2
|
+
import { ReleaseTag } from "./creation";
|
|
3
|
+
export interface ExtensionStats {
|
|
4
|
+
averageRating: number;
|
|
5
|
+
mostApprovedReviewIds: string[];
|
|
6
|
+
reviewCount: number;
|
|
7
|
+
reviewTags: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface ExtensionStatsWithCounts extends ExtensionStats {
|
|
10
|
+
commentCount: number;
|
|
11
|
+
donateCount: number;
|
|
12
|
+
favoriteCount: number;
|
|
13
|
+
likeCount: number;
|
|
14
|
+
reviewTags: [];
|
|
15
|
+
}
|
|
16
|
+
export interface Extension {
|
|
17
|
+
activeVersionId: number;
|
|
18
|
+
cover: CNameOssUrl;
|
|
19
|
+
createdAt: number;
|
|
20
|
+
creationId: MongoDBId;
|
|
21
|
+
description: string;
|
|
22
|
+
eid: string;
|
|
23
|
+
icon: "test";
|
|
24
|
+
id: number;
|
|
25
|
+
latestProjectCoverLink: null;
|
|
26
|
+
latestProjectLink: null;
|
|
27
|
+
name: string;
|
|
28
|
+
publisher: {
|
|
29
|
+
avatar: CNameOssUrl;
|
|
30
|
+
id: MongoDBId;
|
|
31
|
+
locked: null;
|
|
32
|
+
nickname: string;
|
|
33
|
+
};
|
|
34
|
+
publisherId: MongoDBId;
|
|
35
|
+
stats: ExtensionStatsWithCounts;
|
|
36
|
+
updatedAt: number;
|
|
37
|
+
versions: ExtensionVersion[];
|
|
38
|
+
}
|
|
39
|
+
export interface ExtensionVersion {
|
|
40
|
+
assetUri: CNameOssUrl;
|
|
41
|
+
changelog: string;
|
|
42
|
+
createdAt: number;
|
|
43
|
+
demos: [];
|
|
44
|
+
eid: string;
|
|
45
|
+
id: number;
|
|
46
|
+
license: null;
|
|
47
|
+
previews: [CNameOssUrl];
|
|
48
|
+
projectCoverLink: null;
|
|
49
|
+
projectLink: CNameOssUrl;
|
|
50
|
+
readme: string;
|
|
51
|
+
rejectReason: null;
|
|
52
|
+
releaseTags: ReleaseTag[];
|
|
53
|
+
releasedAt: number;
|
|
54
|
+
status: ExtensionApproveStatus;
|
|
55
|
+
tags: [];
|
|
56
|
+
tutorials: [];
|
|
57
|
+
updatedAt: number;
|
|
58
|
+
version: string;
|
|
59
|
+
}
|
|
60
|
+
export type ExtensionApproveStatus = "PENDING" | "APPROVED" | "REJECTED";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { MongoDBId, CNameOssUrl } from "./api";
|
|
2
|
+
import { CreationStatus } from "./creation";
|
|
3
|
+
export type HashTagCreationRank = "ORDINARY";
|
|
4
|
+
export type HashTagCreationStatus = CreationStatus;
|
|
5
|
+
export interface HashTagCreationRelation {
|
|
6
|
+
blurb: null | string;
|
|
7
|
+
canAudit: boolean;
|
|
8
|
+
createdAt: number;
|
|
9
|
+
creationOid: MongoDBId;
|
|
10
|
+
hashTagId: number;
|
|
11
|
+
hashTagIdentifier: string;
|
|
12
|
+
id: number;
|
|
13
|
+
lastPublishedAt: number;
|
|
14
|
+
lastSubmittedAt: number;
|
|
15
|
+
projectLastModifiedAt: null | number;
|
|
16
|
+
rank: HashTagCreationRank;
|
|
17
|
+
status: HashTagCreationStatus;
|
|
18
|
+
/**
|
|
19
|
+
* 作品作者id,不是星球管理id
|
|
20
|
+
*/
|
|
21
|
+
studentOid: MongoDBId;
|
|
22
|
+
updatedAt: number;
|
|
23
|
+
}
|
|
24
|
+
export type HashTagFollowingStatus = "UNFOLLOWED" | "FOLLOWED" | "BOTH_FOLLOWED";
|
|
25
|
+
export interface HashTagMemberSimple {
|
|
26
|
+
avatar: CNameOssUrl;
|
|
27
|
+
followingStatus: HashTagFollowingStatus;
|
|
28
|
+
name: string;
|
|
29
|
+
oid: MongoDBId;
|
|
30
|
+
}
|
|
31
|
+
export type HashTagStatus = "ENABLED";
|
|
32
|
+
export type HashTagType = "ORDINARY";
|
|
33
|
+
export interface HashTag {
|
|
34
|
+
bulletin: string | null;
|
|
35
|
+
bulletinOperatedAt: number | null;
|
|
36
|
+
bulletinOperator: HashTagMemberSimple | null;
|
|
37
|
+
bulletinOperatorOid: MongoDBId | null;
|
|
38
|
+
commentCount: number | null;
|
|
39
|
+
coverLink: CNameOssUrl;
|
|
40
|
+
createdAt: number;
|
|
41
|
+
creationCount: number;
|
|
42
|
+
description: string | null;
|
|
43
|
+
enableApplyManager: boolean | null;
|
|
44
|
+
enableBatchAudit: boolean | null;
|
|
45
|
+
favoriteStatus: unknown | null;
|
|
46
|
+
favoritedStudentCount: number;
|
|
47
|
+
hashTagScoreStatsResp: unknown | null;
|
|
48
|
+
id: number;
|
|
49
|
+
identifier: string;
|
|
50
|
+
latestFavoritedStudents: HashTagMemberSimple[];
|
|
51
|
+
managerIds: MongoDBId[];
|
|
52
|
+
managers: HashTagMemberSimple[];
|
|
53
|
+
memberCount: number;
|
|
54
|
+
ownerType: unknown | null;
|
|
55
|
+
priority: number;
|
|
56
|
+
recommended: boolean;
|
|
57
|
+
relatedStarNum: number | null;
|
|
58
|
+
status: HashTagStatus;
|
|
59
|
+
type: HashTagType;
|
|
60
|
+
updatedAt: number;
|
|
61
|
+
}
|
|
62
|
+
export interface HashTagFavorite {
|
|
63
|
+
createdAt: number;
|
|
64
|
+
ext: object;
|
|
65
|
+
hashTagId: number;
|
|
66
|
+
id: number;
|
|
67
|
+
lastFavoritedAt: number;
|
|
68
|
+
studentOid: MongoDBId;
|
|
69
|
+
unfavoritedAt: number | null;
|
|
70
|
+
updatedAt: number;
|
|
71
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type * as Account from "./account";
|
|
2
|
+
export type * as Api from "./api";
|
|
3
|
+
export type * as Approval from "./approval";
|
|
4
|
+
export type * as Comment from "./comment";
|
|
5
|
+
export type * as Creation from "./creation";
|
|
6
|
+
export type * as HashTag from "./hashTag";
|
|
7
|
+
export type * as Notification from "./notification";
|
|
8
|
+
export type * as NotificationContent from "./notificationContent";
|
|
9
|
+
export type * as Pages from "./pages";
|
|
10
|
+
export type * as Session from "./session";
|
|
11
|
+
export type * as UserData from "./userData";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CNameOssUrl, MongoDBId } from "
|
|
2
|
-
import { CreationMinimal } from "
|
|
3
|
-
import { NotificationContent, ContentCategory, SubjectType } from "
|
|
1
|
+
import { CNameOssUrl, MongoDBId } from "./api";
|
|
2
|
+
import { CreationMinimal } from "./creation";
|
|
3
|
+
import { NotificationContent, ContentCategory, SubjectType } from "./notificationContent";
|
|
4
4
|
export declare enum NotificationGroup {
|
|
5
5
|
CreationInteraction = "CREATION_INTERACTION",
|
|
6
6
|
CommentToMe = "COMMENT_TO_ME",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type SortType = "ASC" | "DESC";
|
|
2
|
+
/**
|
|
3
|
+
* 分页参数
|
|
4
|
+
*/
|
|
5
|
+
export interface PageArgs<SortField extends string> {
|
|
6
|
+
/**
|
|
7
|
+
* 当前页码
|
|
8
|
+
*/
|
|
9
|
+
page: number;
|
|
10
|
+
/**
|
|
11
|
+
* 每页数据量
|
|
12
|
+
*/
|
|
13
|
+
perPage: number;
|
|
14
|
+
/**
|
|
15
|
+
* 排序依据
|
|
16
|
+
*
|
|
17
|
+
* 这个实际上可以根据返回值的任何键排序
|
|
18
|
+
*/
|
|
19
|
+
sortField: SortField;
|
|
20
|
+
/**
|
|
21
|
+
* 排序方式
|
|
22
|
+
*
|
|
23
|
+
* ASC: 升序,
|
|
24
|
+
* DESC: 降序
|
|
25
|
+
*/
|
|
26
|
+
sortType: SortType;
|
|
27
|
+
}
|
|
28
|
+
export type PagesRes<Item, SortField = string> = {
|
|
29
|
+
data: Item[];
|
|
30
|
+
offset: number;
|
|
31
|
+
page: number;
|
|
32
|
+
perPage: number;
|
|
33
|
+
sortField: SortField;
|
|
34
|
+
sortType: SortType;
|
|
35
|
+
totalNum: number;
|
|
36
|
+
totalPages: number;
|
|
37
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AccountTypes } from "./account";
|
|
2
|
+
import { MongoDBId } from "./api";
|
|
3
|
+
export interface SessionArea {
|
|
4
|
+
city: string;
|
|
5
|
+
country: string;
|
|
6
|
+
ip: string;
|
|
7
|
+
province: string;
|
|
8
|
+
}
|
|
9
|
+
export interface StudentSession {
|
|
10
|
+
area: SessionArea;
|
|
11
|
+
browser: string;
|
|
12
|
+
clientCode: "STUDY_COMMUNITY";
|
|
13
|
+
createdAt: number;
|
|
14
|
+
currentDevice: boolean;
|
|
15
|
+
device: string;
|
|
16
|
+
expireTime: number;
|
|
17
|
+
extra: string;
|
|
18
|
+
id: number;
|
|
19
|
+
ip: string;
|
|
20
|
+
lastAccessTime: number;
|
|
21
|
+
}
|
|
22
|
+
export interface LoginSession<Extra = string> {
|
|
23
|
+
accountId: -1;
|
|
24
|
+
accountObjectId: MongoDBId;
|
|
25
|
+
accountType: AccountTypes;
|
|
26
|
+
clientCode: "STUDY_COMMUNITY";
|
|
27
|
+
createdAt: number;
|
|
28
|
+
email: null;
|
|
29
|
+
expireTime: number;
|
|
30
|
+
extra: Extra;
|
|
31
|
+
id: number;
|
|
32
|
+
lastAccessTime: number;
|
|
33
|
+
orgId: "";
|
|
34
|
+
scene: null;
|
|
35
|
+
status: "ENABLED";
|
|
36
|
+
token: string;
|
|
37
|
+
urlEncodedFullName: null;
|
|
38
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CNameOssUrl, MongoDBId } from "./api";
|
|
2
|
+
export type TeamMemberAuthority = "ADMIN" | "MEMBER" | "OBSERVER";
|
|
3
|
+
export type TeamMember = {
|
|
4
|
+
authority: TeamMemberAuthority;
|
|
5
|
+
avatar: CNameOssUrl;
|
|
6
|
+
creationOid: MongoDBId;
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* 成员贡献信息
|
|
10
|
+
* @example profile = "开发,美工(偷懒)"
|
|
11
|
+
*/
|
|
12
|
+
profile: string;
|
|
13
|
+
role: "ALL";
|
|
14
|
+
userOid: MongoDBId;
|
|
15
|
+
};
|