@userscripters/stackexchange-api-types
Advanced tools
Comparing version 0.3.0 to 1.0.0
@@ -11,2 +11,3 @@ import type { KeywordTypeSyntaxKind, Modifier, NodeFactory } from "typescript"; | ||
decimal: ts.SyntaxKind.NumberKeyword, | ||
date: ts.SyntaxKind.NumberKeyword, | ||
}; | ||
@@ -13,0 +14,0 @@ |
@@ -15,13 +15,13 @@ export interface Answer { | ||
comments?: Comment[]; | ||
community_owned_date: Date; | ||
community_owned_date: number; | ||
content_license: string; | ||
creation_date: Date; | ||
creation_date: number; | ||
down_vote_count?: number; | ||
downvoted?: boolean; | ||
is_accepted: boolean; | ||
last_activity_date: Date; | ||
last_edit_date: Date; | ||
last_activity_date: number; | ||
last_edit_date: number; | ||
last_editor?: ShallowUser; | ||
link?: string; | ||
locked_date: Date; | ||
locked_date: number; | ||
owner: ShallowUser; | ||
@@ -42,3 +42,3 @@ posted_by_collectives: Collective[]; | ||
account_id: number; | ||
expires_on_date: Date; | ||
expires_on_date: number; | ||
scope: string[]; | ||
@@ -51,3 +51,3 @@ } | ||
badge_rank: "gold" | "silver" | "bronze"; | ||
creation_date: Date; | ||
creation_date: number; | ||
is_unread: boolean; | ||
@@ -83,6 +83,6 @@ link: string; | ||
collective: Collective; | ||
creation_date: Date; | ||
creation_date: number; | ||
dimensions: string[]; | ||
download_link: string; | ||
end_date: Date; | ||
end_date: number; | ||
health_report_dimensions?: ("date" | "page_views" | "unique_users" | "tag" | "total_questions" | "open_question" | "answered_questions" | "total_comments" | "total_answers" | "community_member_questions" | "community_member_answers" | "community_member_comments" | "percent_response_24hrs" | "percent_answer_24hrss")[]; | ||
@@ -94,3 +94,3 @@ included_tags: string[]; | ||
report_type: "unknown" | "user" | "activity" | "health"; | ||
start_date: Date; | ||
start_date: number; | ||
state: "pending" | "complete"; | ||
@@ -106,3 +106,3 @@ users_report_dimensions?: ("date" | "page_views" | "unique_users" | "tag" | "total_questions" | "open_question" | "answered_questions" | "total_comments" | "total_answers" | "community_member_questions" | "community_member_answers" | "community_member_comments" | "percent_response_24hrs" | "percent_answer_24hrss")[]; | ||
content_license: string; | ||
creation_date: Date; | ||
creation_date: number; | ||
edited: boolean; | ||
@@ -125,3 +125,3 @@ link?: string; | ||
export interface Event { | ||
creation_date: Date; | ||
creation_date: number; | ||
event_id: number; | ||
@@ -158,3 +158,3 @@ event_type: "question_posted" | "answer_posted" | "comment_posted" | "post_edited" | "user_created"; | ||
comment_id: number; | ||
creation_date: Date; | ||
creation_date: number; | ||
is_unread: boolean; | ||
@@ -189,4 +189,4 @@ item_type: "comment" | "chat_message" | "new_answer" | "careers_message" | "careers_invitations" | "meta_question" | "post_notice" | "moderator_message" | "question_update" | "followed_post_activity" | "subcommunity_endorsement" | "subcommunity_leaderboard"; | ||
badge_counts: BadgeCount; | ||
creation_date: Date; | ||
last_access_date: Date; | ||
creation_date: number; | ||
last_access_date: number; | ||
question_count: number; | ||
@@ -203,3 +203,3 @@ reputation: number; | ||
export interface AccountMerge { | ||
merge_date: Date; | ||
merge_date: number; | ||
new_account_id: number; | ||
@@ -214,3 +214,3 @@ old_account_id: number; | ||
badge_id: number; | ||
creation_date: Date; | ||
creation_date: number; | ||
description: string; | ||
@@ -226,3 +226,3 @@ link: string; | ||
body: string; | ||
creation_date: Date; | ||
creation_date: number; | ||
is_unread: boolean; | ||
@@ -241,7 +241,7 @@ notification_type: "generic" | "profile_activity" | "bounty_expired" | "bounty_expires_in_one_day" | "badge_earned" | "bounty_expires_in_three_days" | "reputation_bonus" | "accounts_associated" | "new_privilege" | "post_migrated" | "moderator_message" | "registration_reminder" | "edit_suggested" | "substantive_edit" | "bounty_grace_period_started"; | ||
content_license: string; | ||
creation_date: Date; | ||
creation_date: number; | ||
down_vote_count?: number; | ||
downvoted?: boolean; | ||
last_activity_date: Date; | ||
last_edit_date: Date; | ||
last_activity_date: number; | ||
last_edit_date: number; | ||
last_editor?: ShallowUser; | ||
@@ -273,3 +273,3 @@ link: string; | ||
bounty_amount: number; | ||
bounty_closes_date: Date; | ||
bounty_closes_date: number; | ||
bounty_user?: ShallowUser; | ||
@@ -283,3 +283,3 @@ can_answer?: boolean; | ||
close_vote_count?: number; | ||
closed_date: Date; | ||
closed_date: number; | ||
closed_details?: ClosedDetails; | ||
@@ -290,5 +290,5 @@ closed_reason: string; | ||
comments?: Comment[]; | ||
community_owned_date: Date; | ||
community_owned_date: number; | ||
content_license: string; | ||
creation_date: Date; | ||
creation_date: number; | ||
delete_vote_count?: number; | ||
@@ -300,7 +300,7 @@ down_vote_count?: number; | ||
is_answered: boolean; | ||
last_activity_date: Date; | ||
last_edit_date: Date; | ||
last_activity_date: number; | ||
last_edit_date: number; | ||
last_editor?: ShallowUser; | ||
link: string; | ||
locked_date: Date; | ||
locked_date: number; | ||
migrated_from: MigrationInfo; | ||
@@ -311,3 +311,3 @@ migrated_to: MigrationInfo; | ||
posted_by_collectives: Collective[]; | ||
protected_date: Date; | ||
protected_date: number; | ||
question_id: number; | ||
@@ -327,3 +327,3 @@ reopen_vote_count?: number; | ||
content_license: string; | ||
creation_date: Date; | ||
creation_date: number; | ||
down_vote_count: number; | ||
@@ -341,3 +341,3 @@ owner: ShallowUser; | ||
link?: string; | ||
on_date: Date; | ||
on_date: number; | ||
post_id: number; | ||
@@ -352,3 +352,3 @@ post_type: "question" | "answer" | "article"; | ||
export interface ReputationHistory { | ||
creation_date: Date; | ||
creation_date: number; | ||
post_id: number; | ||
@@ -364,3 +364,3 @@ reputation_change: number; | ||
content_license: string; | ||
creation_date: Date; | ||
creation_date: number; | ||
is_rollback: boolean; | ||
@@ -385,5 +385,5 @@ last_body?: string; | ||
body: string; | ||
closed_date?: Date; | ||
community_owned_date?: Date; | ||
creation_date: Date; | ||
closed_date?: number; | ||
community_owned_date?: number; | ||
creation_date: number; | ||
equivalent_tag_search: string[]; | ||
@@ -395,5 +395,5 @@ excerpt: string; | ||
item_type: "question" | "answer"; | ||
last_activity_date: Date; | ||
last_activity_date: number; | ||
last_activity_user?: ShallowUser; | ||
locked_date?: Date; | ||
locked_date?: number; | ||
owner?: ShallowUser; | ||
@@ -411,11 +411,11 @@ question_id: number; | ||
audience: string; | ||
closed_beta_date: Date; | ||
closed_beta_date: number; | ||
favicon_url: string; | ||
high_resolution_icon_url: string; | ||
icon_url: string; | ||
launch_date: Date; | ||
launch_date: number; | ||
logo_url: string; | ||
markdown_extensions: ("MathJax" | "Prettify" | "Balsamiq" | "jTab" | "strings")[]; | ||
name: string; | ||
open_beta_date: Date; | ||
open_beta_date: number; | ||
related_sites: RelatedSite[]; | ||
@@ -430,10 +430,10 @@ site_state: "normal" | "closed_beta" | "open_beta" | "linked_meta"; | ||
export interface SuggestedEdit { | ||
approval_date: Date; | ||
approval_date: number; | ||
body?: string; | ||
comment: string; | ||
creation_date: Date; | ||
creation_date: number; | ||
post_id: number; | ||
post_type: "question" | "answer" | "article"; | ||
proposing_user: ShallowUser; | ||
rejection_date: Date; | ||
rejection_date: number; | ||
suggested_edit_id: number; | ||
@@ -450,3 +450,3 @@ tags: string[]; | ||
is_required: boolean; | ||
last_activity_date?: Date; | ||
last_activity_date?: number; | ||
name: string; | ||
@@ -471,5 +471,5 @@ synonyms?: string[]; | ||
applied_count: number; | ||
creation_date: Date; | ||
creation_date: number; | ||
from_tag: string; | ||
last_applied_date: Date; | ||
last_applied_date: number; | ||
to_tag: string; | ||
@@ -480,5 +480,5 @@ } | ||
body?: string; | ||
body_last_edit_date: Date; | ||
body_last_edit_date: number; | ||
excerpt: string; | ||
excerpt_last_edit_date: Date; | ||
excerpt_last_edit_date: number; | ||
last_body_editor?: ShallowUser; | ||
@@ -506,8 +506,8 @@ last_excerpt_editor?: ShallowUser; | ||
collectives: CollectiveMembership[]; | ||
creation_date: Date; | ||
creation_date: number; | ||
display_name: string; | ||
down_vote_count?: number; | ||
is_employee: boolean; | ||
last_access_date: Date; | ||
last_modified_date: Date; | ||
last_access_date: number; | ||
last_modified_date: number; | ||
link: string; | ||
@@ -523,3 +523,3 @@ location: string; | ||
reputation_change_year: number; | ||
timed_penalty_date: Date; | ||
timed_penalty_date: number; | ||
up_vote_count?: number; | ||
@@ -535,3 +535,3 @@ user_id: number; | ||
comment_id: number; | ||
creation_date: Date; | ||
creation_date: number; | ||
detail: string; | ||
@@ -576,3 +576,3 @@ link?: string; | ||
collective: Collective; | ||
creation_date: Date; | ||
creation_date: number; | ||
} | ||
@@ -609,3 +609,3 @@ | ||
export interface MigrationInfo { | ||
on_date: Date; | ||
on_date: number; | ||
other_site: Site; | ||
@@ -617,3 +617,3 @@ question_id: number; | ||
body: string; | ||
creation_date: Date; | ||
creation_date: number; | ||
owner_user_id: number; | ||
@@ -620,0 +620,0 @@ } |
{ | ||
"name": "@userscripters/stackexchange-api-types", | ||
"description": "Stack Exchange API types generator", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Oleg Valter", |
@@ -9,3 +9,3 @@ | ||
| License | [GPL-3.0-or-later](https://spdx.org/licenses/GPL-3.0-or-later) | | ||
| Version | 0.3.0 | | ||
| Version | 1.0.0 | | ||
@@ -12,0 +12,0 @@ # Support |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
34316
859
0