@mana-app/types 0.0.10 → 0.0.12
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.
|
@@ -2,7 +2,7 @@ import { BaseItem } from "./BaseItem";
|
|
|
2
2
|
import { Chapter } from "./Chapter";
|
|
3
3
|
import { PublicationStatus, ContentType, ReadingMode } from "./Enums";
|
|
4
4
|
import { SimpleHighlight } from "./Highlight";
|
|
5
|
-
import {
|
|
5
|
+
import { Tag } from "./Property";
|
|
6
6
|
export type Content = BaseItem & {
|
|
7
7
|
/**
|
|
8
8
|
* The Publication Status of Content
|
|
@@ -23,9 +23,9 @@ export type Content = BaseItem & {
|
|
|
23
23
|
*/
|
|
24
24
|
additionalTitles?: string[];
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Tags of the publication
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
tags?: Tag[];
|
|
29
29
|
/**
|
|
30
30
|
* Content Type of the publication
|
|
31
31
|
*
|
|
@@ -61,7 +61,9 @@ export type Content = BaseItem & {
|
|
|
61
61
|
export declare enum AdditionalInfoType {
|
|
62
62
|
Staff = 1,
|
|
63
63
|
Highlights = 2,
|
|
64
|
-
Characters = 3
|
|
64
|
+
Characters = 3,
|
|
65
|
+
Links = 4,
|
|
66
|
+
Tags = 5
|
|
65
67
|
}
|
|
66
68
|
export interface AdditionalInfoBase<TType extends AdditionalInfoType = AdditionalInfoType> {
|
|
67
69
|
type: TType;
|
|
@@ -79,6 +81,12 @@ export type HighlightsSection = AdditionalInfoBase<AdditionalInfoType.Highlights
|
|
|
79
81
|
export type CharactersSection = AdditionalInfoBase<AdditionalInfoType.Characters> & {
|
|
80
82
|
items: CharacterItem[];
|
|
81
83
|
};
|
|
84
|
+
export type LinksSection = AdditionalInfoBase<AdditionalInfoType.Links> & {
|
|
85
|
+
items: LinkItem[];
|
|
86
|
+
};
|
|
87
|
+
export type TagsSection = AdditionalInfoBase<AdditionalInfoType.Tags> & {
|
|
88
|
+
items: TagItem[];
|
|
89
|
+
};
|
|
82
90
|
export interface AdditionalInfoItemBase<TType extends AdditionalInfoType = AdditionalInfoType> {
|
|
83
91
|
readonly type: TType;
|
|
84
92
|
id: string;
|
|
@@ -98,4 +106,10 @@ export type CharacterItem = AdditionalInfoItemBase<AdditionalInfoType.Characters
|
|
|
98
106
|
staffSubtitle?: string;
|
|
99
107
|
staffImage?: string;
|
|
100
108
|
};
|
|
101
|
-
export type
|
|
109
|
+
export type LinkItem = AdditionalInfoItemBase<AdditionalInfoType.Links> & {
|
|
110
|
+
id: string;
|
|
111
|
+
title: string;
|
|
112
|
+
url: string;
|
|
113
|
+
};
|
|
114
|
+
export type TagItem = AdditionalInfoItemBase<AdditionalInfoType.Tags> & Tag;
|
|
115
|
+
export type AdditionalInfoSectionItem = StaffItem | CharacterItem | SimpleHighlight | LinkItem | TagItem;
|
|
@@ -6,5 +6,7 @@ var AdditionalInfoType;
|
|
|
6
6
|
AdditionalInfoType[AdditionalInfoType["Staff"] = 1] = "Staff";
|
|
7
7
|
AdditionalInfoType[AdditionalInfoType["Highlights"] = 2] = "Highlights";
|
|
8
8
|
AdditionalInfoType[AdditionalInfoType["Characters"] = 3] = "Characters";
|
|
9
|
+
AdditionalInfoType[AdditionalInfoType["Links"] = 4] = "Links";
|
|
10
|
+
AdditionalInfoType[AdditionalInfoType["Tags"] = 5] = "Tags";
|
|
9
11
|
})(AdditionalInfoType || (exports.AdditionalInfoType = AdditionalInfoType = {}));
|
|
10
12
|
;
|