SPB Git
3.0 KB · 26 lines typescript
1export type PaperSummary = {2  id: string; identifier: string; slug: string; number: number; series_code: string; series_name_en: string; series_name_fr: string;3  title: string; subtitle: string | null; title_fr: string | null; abstract: string[]; year: number | null; status: string; publication_status: string; notice: string | null;4  first_released_on: string | null; first_released_precision: "day" | "month" | "year"; last_revised_on: string | null; last_revised_precision: "day" | "month" | "year";5  version_label: string | null; version_no: number | null; pages: number | null; has_pdf: boolean; file_id: string | null; sha256: string | null;6  authors: { slug: string; display_name: string; given_name: string; family_name: string }[];7  domain: { slug: string; name_en: string; name_fr: string; accent: string | null } | null;8  keywords: string[]; ssrn_id: string | null; doi: string | null; view_count: number; download_count: number; featured: boolean; featured_rank: number | null; published_at: string | null; updated_at: string;9  versions_count: number; language: string;10};11export type PaperFull = PaperSummary & {12  abstract_fr: string[] | null; structured_abstract: unknown; research_question: string | null; research_question_fr: string | null; hero_headline: string | null; hero_subheadline: string | null;13  contributions: { kind?: string; title: string; description: string }[]; methodology: { title: string; description: string }[]; data_sections: { title: string; description: string }[];14  findings: { value: string; label: string }[]; reproducibility: string[]; artifacts: { kind: string; label: string; url: string }[]; external_links: { kind: string; label: string; url: string }[];15  jel: string[]; journal_ref: string | null; internal_code: string | null; embedding_model: string | null;16  topics: { slug: string; name_en: string; name_fr: string; kind: string; assigned_by: string }[];17  methods: { slug: string; name_en: string; name_fr: string; assigned_by: string; note: string | null }[];18  datasets: { slug: string; name_en: string; name_fr: string; provider: string | null; assigned_by: string; role: string | null }[];19  versions: { id: string; version_no: number; label: string; released_on: string | null; released_precision: string; description: string | null; description_fr: string | null; file_id: string | null; pages: number | null; sha256: string | null; bytes: number | null; is_current: boolean; withdrawn: boolean; withdrawn_reason: string | null }[];20  related: { slug: string; identifier: string; title: string; year: number | null; kinds: string[]; explanations: string[]; explanations_fr: string[]; inferred: boolean; weight: number }[];21};22export type ListParams = {23  q?: string; year?: number[]; domain?: string[]; topic?: string[]; author?: string[]; keyword?: string[]; method?: string[]; dataset?: string[];24  status?: string[]; pubStatus?: string[]; series?: string[]; lang?: string[]; pdf?: boolean; sort?: "recent" | "revised" | "number" | "title" | "year" | "views" | "downloads"; page?: number; perPage?: number; featured?: boolean;25};26
Files · main
Menu

Theme