summaryrefslogtreecommitdiff
path: root/src/lib/collection/types.ts
blob: 67f1110cfe0aa73db1d4ad8176b9a7088a52642b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export type Person = {
  "@type": "Person";
  "@id"?: string;
  email?: string;
  knows?: Person[];
  knowsLanguage?: string[];
  nationality?: {
    "@type": "Country";
  };
  description?: string;
  name?: string;
  url?: string[];
};

export type BlogPosting = {
  "@type": "BlogPosting";
  "@id": string;
  url: string;
  headline: string;
  name: string;
  alternativeHeadline?: string;
  inLanguage: string;
  abstract?: string;
  description?: string;
  author?: Person;
  contributor?: Person[];
  translator?: Person[];
  dateCreated: string;
  dateModified?: string;
  datePublished?: string;
  keywords?: string[];
  wordCount?: number;
  timeRequired?: string;
  articleBody?: string;
  text?: string;
  copyrightHolder?: Person[];
  copyrightNotice?: string;
  copyrightYear?: number;
  creativeWorkStatus?: "Published";
  encodingFormat?: "text/html";
  isAccessibleForFree?: true;
  license: string | undefined;
  citation?: BlogPosting[];
  mentions?: BlogPosting[];
  translationOfWork?: BlogPosting;
  workTranslations?: BlogPosting[];
  isBasedOn?: BlogPosting;
  locationCreated?: {
    "@type": "Place";
    name: string;
  };
  publisher?: Person;
  version?: string | number;
};