stackexchange-api
Version:
A Node.js wrapper for the StackExchange API
242 lines (241 loc) • 10.8 kB
TypeScript
export declare const fields: {
readonly Answer: {
readonly accepted: "answer.accepted";
readonly answerId: "answer.answer_id";
readonly awardedBountyAmount: "answer.awarded_bounty_amount";
readonly awardedBountyUsers: "answer.awarded_bounty_users";
readonly body: "answer.body";
readonly bodyMarkdown: "answer.body_markdown";
readonly canFlag: "answer.can_flag";
readonly commentCount: "answer.comment_count";
readonly comments: "answer.comments";
readonly communityOwnedDate: "answer.community_owned_date";
readonly creationDate: "answer.creation_date";
readonly downVoteCount: "answer.down_vote_count";
readonly downvoted: "answer.downvoted";
readonly isAccepted: "answer.is_accepted";
readonly lastActivityDate: "answer.last_activity_date";
readonly lastEditDate: "answer.last_edit_date";
readonly lastEditor: "answer.last_editor";
readonly link: "answer.link";
readonly lockedDate: "answer.locked_date";
readonly owner: "answer.owner";
readonly questionId: "answer.question_id";
readonly score: "answer.score";
readonly shareLink: "answer.share_link";
readonly tags: "answer.tags";
readonly title: "answer.title";
readonly upVoteCount: "answer.up_vote_count";
readonly upvoted: "answer.upvoted";
};
readonly Badge: {
readonly awardCount: "badge.award_count";
readonly badgeId: "badge.badge_id";
readonly badgeType: "badge.badge_type";
readonly description: "badge.description";
readonly link: "badge.link";
readonly name: "badge.name";
readonly rank: "badge.rank";
readonly user: "badge.user";
};
readonly BadgeCount: {
readonly bronze: "badge_count.bronze";
readonly gold: "badge_count.gold";
readonly silver: "badge_count.silver";
};
readonly ClosedDetails: {
readonly byUsers: "closed_details.by_users";
readonly description: "closed_details.description";
readonly onHold: "closed_details.on_hold";
readonly originalQuestions: "closed_details.original_questions";
readonly reason: "closed_details.reason";
};
readonly Comment: {
readonly body: "comment.body";
readonly bodyMarkdown: "comment.body_markdown";
readonly canFlag: "comment.can_flag";
readonly commentId: "comment.comment_id";
readonly creationDate: "comment.creation_date";
readonly edited: "comment.edited";
readonly link: "comment.link";
readonly owner: "comment.owner";
readonly postId: "comment.post_id";
readonly postType: "comment.post_type";
readonly replyToUser: "comment.reply_to_user";
readonly score: "comment.score";
readonly upvoted: "comment.upvoted";
};
readonly Filter: {
readonly filter: "filter.filter";
readonly filterType: "filter.filter_type";
readonly includedFields: "filter.included_fields";
};
readonly Info: {
readonly answersPerMinute: "info.answers_per_minute";
readonly apiRevision: "info.api_revision";
readonly badgesPerMinute: "info.badges_per_minute";
readonly newActiveUsers: "info.new_active_users";
readonly questionsPerMinute: "info.questions_per_minute";
readonly site: "info.site";
readonly totalAccepted: "info.total_accepted";
readonly totalAnswers: "info.total_answers";
readonly totalBadges: "info.total_badges";
readonly totalComments: "info.total_comments";
readonly totalQuestions: "info.total_questions";
readonly totalUnanswered: "info.total_unanswered";
readonly totalUsers: "info.total_users";
readonly totalVotes: "info.total_votes";
};
readonly MigrationInfo: {
readonly onDate: "migration_info.on_date";
readonly otherSite: "migration_info.other_site";
readonly questionId: "migration_info.question_id";
};
readonly Notice: {
readonly body: "notice.body";
readonly creationDate: "notice.creation_date";
readonly ownerUserId: "notice.owner_user_id";
};
readonly OriginalQuestion: {
readonly acceptedAnswerId: "original_question.accepted_answer_id";
readonly answerCount: "original_question.answer_count";
readonly questionId: "original_question.question_id";
readonly title: "original_question.title";
};
readonly Post: {
readonly body: "post.body";
readonly bodyMarkdown: "post.body_markdown";
readonly commentCount: "post.comment_count";
readonly comments: "post.comments";
readonly creationDate: "post.creation_date";
readonly downVoteCount: "post.down_vote_count";
readonly downvoted: "post.downvoted";
readonly lastActivityDate: "post.last_activity_date";
readonly lastEditDate: "post.last_edit_date";
readonly lastEditor: "post.last_editor";
readonly link: "post.link";
readonly owner: "post.owner";
readonly postId: "post.post_id";
readonly postType: "post.post_type";
readonly score: "post.score";
readonly shareLink: "post.share_link";
readonly title: "post.title";
readonly upVoteCount: "post.up_vote_count";
readonly upvoted: "post.upvoted";
};
readonly Privilege: {
readonly description: "privilege.description";
readonly reputation: "privilege.reputation";
readonly shortDescription: "privilege.short_description";
};
readonly Question: {
readonly acceptedAnswerId: "question.accepted_answer_id";
readonly answerCount: "question.answer_count";
readonly answers: "question.answers";
readonly body: "question.body";
readonly bodyMarkdown: "question.body_markdown";
readonly bountyAmount: "question.bounty_amount";
readonly bountyClosesDate: "question.bounty_closes_date";
readonly bountyUser: "question.bounty_user";
readonly canClose: "question.can_close";
readonly canFlag: "question.can_flag";
readonly closeVoteCount: "question.close_vote_count";
readonly closedDate: "question.closed_date";
readonly closedDetails: "question.closed_details";
readonly closedReason: "question.closed_reason";
readonly commentCount: "question.comment_count";
readonly comments: "question.comments";
readonly communityOwnedDate: "question.community_owned_date";
readonly creationDate: "question.creation_date";
readonly deleteVoteCount: "question.delete_vote_count";
readonly downVoteCount: "question.down_vote_count";
readonly downvoted: "question.downvoted";
readonly favoriteCount: "question.favorite_count";
readonly favorited: "question.favorited";
readonly isAnswered: "question.is_answered";
readonly lastActivityDate: "question.last_activity_date";
readonly lastEditDate: "question.last_edit_date";
readonly lastEditor: "question.last_editor";
readonly link: "question.link";
readonly lockedDate: "question.locked_date";
readonly migratedFrom: "question.migrated_from";
readonly migratedTo: "question.migrated_to";
readonly notice: "question.notice";
readonly owner: "question.owner";
readonly protectedDate: "question.protected_date";
readonly questionId: "question.question_id";
readonly reopenVoteCount: "question.reopen_vote_count";
readonly score: "question.score";
readonly shareLink: "question.share_link";
readonly tags: "question.tags";
readonly title: "question.title";
readonly upVoteCount: "question.up_vote_count";
readonly upvoted: "question.upvoted";
readonly viewCount: "question.view_count";
};
readonly RelatedSite: {
readonly apiSiteParameter: "related_site.api_site_parameter";
readonly name: "related_site.name";
readonly relation: "related_site.relation";
readonly siteUrl: "related_site.site_url";
};
readonly ShallowUser: {
readonly acceptRate: "shallow_user.accept_rate";
readonly badgeCounts: "shallow_user.badge_counts";
readonly displayName: "shallow_user.display_name";
readonly link: "shallow_user.link";
readonly profileImage: "shallow_user.profile_image";
readonly reputation: "shallow_user.reputation";
readonly userId: "shallow_user.user_id";
readonly userType: "shallow_user.user_type";
};
readonly Site: {
readonly aliases: "site.aliases";
readonly apiSiteParameter: "site.api_site_parameter";
readonly audience: "site.audience";
readonly closedBetaDate: "site.closed_beta_date";
readonly faviconUrl: "site.favicon_url";
readonly highResolutionIconUrl: "site.high_resolution_icon_url";
readonly iconUrl: "site.icon_url";
readonly launchDate: "site.launch_date";
readonly logoUrl: "site.logo_url";
readonly markdownExtensions: "site.markdown_extensions";
readonly name: "site.name";
readonly openBetaDate: "site.open_beta_date";
readonly relatedSites: "site.related_sites";
readonly siteState: "site.site_state";
readonly siteType: "site.site_type";
readonly siteUrl: "site.site_url";
readonly styling: "site.styling";
readonly twitterAccount: "site.twitter_account";
};
readonly Styling: {
readonly linkColor: "styling.link_color";
readonly tagBackgroundColor: "styling.tag_background_color";
readonly tagForegroundColor: "styling.tag_foreground_color";
};
readonly Tag: {
readonly count: "tag.count";
readonly hasSynonyms: "tag.has_synonyms";
readonly isModeratorOnly: "tag.is_moderator_only";
readonly isRequired: "tag.is_required";
readonly lastActivityDate: "tag.last_activity_date";
readonly name: "tag.name";
readonly synonyms: "tag.synonyms";
readonly userId: "tag.user_id";
};
readonly Wrapper: {
readonly backoff: ".backoff";
readonly errorId: ".error_id";
readonly errorMessage: ".error_message";
readonly errorName: ".error_name";
readonly hasMore: ".has_more";
readonly items: ".items";
readonly page: ".page";
readonly pageSize: ".page_size";
readonly quotaMax: ".quota_max";
readonly quotaRemaining: ".quota_remaining";
readonly total: ".total";
readonly type: ".type";
};
};