feedsmith 2.9.2 → 3.0.0-beta.2
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.
- package/README.md +3 -9
- package/dist/common/config.cjs +2 -1
- package/dist/common/config.js +2 -1
- package/dist/common/errors.cjs +30 -0
- package/dist/common/errors.d.cts +15 -0
- package/dist/common/errors.d.ts +15 -0
- package/dist/common/errors.js +27 -0
- package/dist/common/parse.cjs +2 -1
- package/dist/common/parse.d.cts +10 -11
- package/dist/common/parse.d.ts +10 -11
- package/dist/common/parse.js +2 -1
- package/dist/common/types.d.cts +24 -12
- package/dist/common/types.d.ts +24 -12
- package/dist/common/utils.cjs +6 -14
- package/dist/common/utils.js +7 -13
- package/dist/feeds/atom/common/types.d.cts +65 -52
- package/dist/feeds/atom/common/types.d.ts +65 -52
- package/dist/feeds/atom/generate/index.cjs +2 -1
- package/dist/feeds/atom/generate/index.d.cts +2 -2
- package/dist/feeds/atom/generate/index.d.ts +2 -2
- package/dist/feeds/atom/generate/index.js +2 -1
- package/dist/feeds/atom/generate/utils.cjs +23 -6
- package/dist/feeds/atom/generate/utils.js +20 -3
- package/dist/feeds/atom/parse/index.cjs +10 -3
- package/dist/feeds/atom/parse/index.d.cts +2 -2
- package/dist/feeds/atom/parse/index.d.ts +2 -2
- package/dist/feeds/atom/parse/index.js +10 -3
- package/dist/feeds/atom/parse/utils.cjs +61 -31
- package/dist/feeds/atom/parse/utils.js +59 -29
- package/dist/feeds/json/common/types.d.cts +19 -19
- package/dist/feeds/json/common/types.d.ts +19 -19
- package/dist/feeds/json/generate/index.cjs +5 -1
- package/dist/feeds/json/generate/index.d.cts +2 -2
- package/dist/feeds/json/generate/index.d.ts +2 -2
- package/dist/feeds/json/generate/index.js +5 -1
- package/dist/feeds/json/generate/utils.cjs +7 -2
- package/dist/feeds/json/generate/utils.js +8 -3
- package/dist/feeds/json/parse/index.cjs +3 -2
- package/dist/feeds/json/parse/index.d.cts +2 -2
- package/dist/feeds/json/parse/index.d.ts +2 -2
- package/dist/feeds/json/parse/index.js +3 -2
- package/dist/feeds/json/parse/utils.cjs +4 -4
- package/dist/feeds/json/parse/utils.js +4 -4
- package/dist/feeds/rdf/common/types.d.cts +31 -28
- package/dist/feeds/rdf/common/types.d.ts +31 -28
- package/dist/feeds/rdf/parse/index.cjs +10 -3
- package/dist/feeds/rdf/parse/index.d.cts +2 -2
- package/dist/feeds/rdf/parse/index.d.ts +2 -2
- package/dist/feeds/rdf/parse/index.js +10 -3
- package/dist/feeds/rdf/parse/utils.cjs +23 -20
- package/dist/feeds/rdf/parse/utils.js +15 -12
- package/dist/feeds/rss/common/types.d.cts +76 -74
- package/dist/feeds/rss/common/types.d.ts +76 -74
- package/dist/feeds/rss/generate/index.cjs +2 -1
- package/dist/feeds/rss/generate/index.d.cts +2 -2
- package/dist/feeds/rss/generate/index.d.ts +2 -2
- package/dist/feeds/rss/generate/index.js +2 -1
- package/dist/feeds/rss/generate/utils.cjs +36 -36
- package/dist/feeds/rss/generate/utils.js +10 -10
- package/dist/feeds/rss/parse/index.cjs +10 -3
- package/dist/feeds/rss/parse/index.d.cts +2 -2
- package/dist/feeds/rss/parse/index.d.ts +2 -2
- package/dist/feeds/rss/parse/index.js +10 -3
- package/dist/feeds/rss/parse/utils.cjs +138 -38
- package/dist/feeds/rss/parse/utils.js +119 -19
- package/dist/index.cjs +5 -0
- package/dist/index.d.cts +37 -16
- package/dist/index.d.ts +37 -16
- package/dist/index.js +2 -1
- package/dist/namespaces/app/common/types.d.cts +1 -3
- package/dist/namespaces/app/common/types.d.ts +1 -3
- package/dist/namespaces/app/parse/utils.cjs +2 -2
- package/dist/namespaces/app/parse/utils.js +2 -2
- package/dist/namespaces/atom/common/types.d.cts +3 -3
- package/dist/namespaces/atom/common/types.d.ts +3 -3
- package/dist/namespaces/atom/parse/utils.cjs +4 -2
- package/dist/namespaces/atom/parse/utils.js +4 -2
- package/dist/namespaces/dc/common/types.d.cts +4 -19
- package/dist/namespaces/dc/common/types.d.ts +4 -19
- package/dist/namespaces/dc/generate/utils.cjs +15 -15
- package/dist/namespaces/dc/generate/utils.js +16 -16
- package/dist/namespaces/dc/parse/utils.cjs +4 -17
- package/dist/namespaces/dc/parse/utils.js +5 -18
- package/dist/namespaces/dcterms/common/types.d.cts +23 -59
- package/dist/namespaces/dcterms/common/types.d.ts +23 -59
- package/dist/namespaces/dcterms/generate/utils.cjs +55 -55
- package/dist/namespaces/dcterms/generate/utils.js +56 -56
- package/dist/namespaces/dcterms/parse/utils.cjs +23 -57
- package/dist/namespaces/dcterms/parse/utils.js +24 -58
- package/dist/namespaces/georss/common/types.d.cts +21 -19
- package/dist/namespaces/georss/common/types.d.ts +21 -19
- package/dist/namespaces/georss/generate/utils.cjs +2 -2
- package/dist/namespaces/georss/generate/utils.js +2 -2
- package/dist/namespaces/googleplay/common/types.d.cts +9 -7
- package/dist/namespaces/googleplay/common/types.d.ts +9 -7
- package/dist/namespaces/itunes/common/types.d.cts +9 -5
- package/dist/namespaces/itunes/common/types.d.ts +9 -5
- package/dist/namespaces/media/common/types.d.cts +85 -84
- package/dist/namespaces/media/common/types.d.ts +85 -84
- package/dist/namespaces/media/generate/utils.cjs +1 -1
- package/dist/namespaces/media/generate/utils.js +2 -2
- package/dist/namespaces/media/parse/utils.cjs +1 -2
- package/dist/namespaces/media/parse/utils.js +1 -2
- package/dist/namespaces/opensearch/common/types.d.cts +7 -5
- package/dist/namespaces/opensearch/common/types.d.ts +7 -5
- package/dist/namespaces/podcast/common/types.d.cts +136 -142
- package/dist/namespaces/podcast/common/types.d.ts +136 -142
- package/dist/namespaces/podcast/generate/utils.cjs +6 -6
- package/dist/namespaces/podcast/generate/utils.js +7 -7
- package/dist/namespaces/podcast/parse/utils.cjs +13 -19
- package/dist/namespaces/podcast/parse/utils.js +13 -19
- package/dist/namespaces/prism/common/types.d.cts +2 -4
- package/dist/namespaces/prism/common/types.d.ts +2 -4
- package/dist/namespaces/prism/parse/utils.cjs +19 -19
- package/dist/namespaces/prism/parse/utils.js +19 -19
- package/dist/namespaces/psc/common/types.d.cts +8 -6
- package/dist/namespaces/psc/common/types.d.ts +8 -6
- package/dist/namespaces/rawvoice/common/types.d.cts +24 -24
- package/dist/namespaces/rawvoice/common/types.d.ts +24 -24
- package/dist/namespaces/rawvoice/parse/utils.cjs +7 -7
- package/dist/namespaces/rawvoice/parse/utils.js +7 -7
- package/dist/namespaces/source/common/types.d.cts +20 -18
- package/dist/namespaces/source/common/types.d.ts +20 -18
- package/dist/namespaces/spotify/common/types.d.cts +22 -20
- package/dist/namespaces/spotify/common/types.d.ts +22 -20
- package/dist/namespaces/sy/common/types.d.cts +1 -3
- package/dist/namespaces/sy/common/types.d.ts +1 -3
- package/dist/namespaces/sy/parse/utils.cjs +2 -2
- package/dist/namespaces/sy/parse/utils.js +2 -2
- package/dist/namespaces/thr/common/types.d.cts +7 -7
- package/dist/namespaces/thr/common/types.d.ts +7 -7
- package/dist/namespaces/thr/parse/utils.cjs +2 -2
- package/dist/namespaces/thr/parse/utils.js +2 -2
- package/dist/namespaces/xml/common/types.d.cts +11 -0
- package/dist/namespaces/xml/common/types.d.ts +11 -0
- package/dist/namespaces/xml/generate/utils.cjs +13 -0
- package/dist/namespaces/xml/generate/utils.js +13 -0
- package/dist/namespaces/xml/parse/utils.cjs +13 -0
- package/dist/namespaces/xml/parse/utils.js +13 -0
- package/dist/opml/common/types.d.cts +18 -13
- package/dist/opml/common/types.d.ts +18 -13
- package/dist/opml/generate/index.cjs +2 -1
- package/dist/opml/generate/index.d.cts +3 -3
- package/dist/opml/generate/index.d.ts +3 -3
- package/dist/opml/generate/index.js +2 -1
- package/dist/opml/parse/index.cjs +9 -2
- package/dist/opml/parse/index.d.cts +2 -3
- package/dist/opml/parse/index.d.ts +2 -3
- package/dist/opml/parse/index.js +9 -2
- package/dist/opml/parse/utils.cjs +5 -5
- package/dist/opml/parse/utils.js +5 -5
- package/package.json +2 -19
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +0 -7
- package/dist/types.d.ts +0 -7
- package/dist/types.js +0 -1
|
@@ -1,86 +1,83 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Requirable, Strict } from "../../../common/types.js";
|
|
2
2
|
|
|
3
3
|
//#region src/namespaces/podcast/common/types.d.ts
|
|
4
4
|
declare namespace PodcastNs {
|
|
5
5
|
/** @internal Common properties shared by Item and LiveItem. */
|
|
6
|
-
type BaseItem = {
|
|
7
|
-
transcripts?: Array<Transcript
|
|
8
|
-
chapters?: Chapters
|
|
9
|
-
soundbites?: Array<Soundbite
|
|
10
|
-
persons?: Array<Person
|
|
11
|
-
locations?: Array<Location
|
|
12
|
-
season?: Season
|
|
13
|
-
episode?: Episode
|
|
14
|
-
license?: License
|
|
15
|
-
alternateEnclosures?: Array<AlternateEnclosure
|
|
16
|
-
values?: Array<Value
|
|
17
|
-
images?: Array<Image
|
|
18
|
-
socialInteracts?: Array<SocialInteract
|
|
19
|
-
txts?: Array<Txt
|
|
20
|
-
chat?: Chat
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
type Transcript = {
|
|
26
|
-
url: string;
|
|
27
|
-
type: string;
|
|
6
|
+
type BaseItem<TStrict extends boolean = false> = {
|
|
7
|
+
transcripts?: Array<Transcript<TStrict>>;
|
|
8
|
+
chapters?: Chapters<TStrict>;
|
|
9
|
+
soundbites?: Array<Soundbite<TStrict>>;
|
|
10
|
+
persons?: Array<Person<TStrict>>;
|
|
11
|
+
locations?: Array<Location<TStrict>>;
|
|
12
|
+
season?: Season<TStrict>;
|
|
13
|
+
episode?: Episode<TStrict>;
|
|
14
|
+
license?: License<TStrict>;
|
|
15
|
+
alternateEnclosures?: Array<AlternateEnclosure<TStrict>>;
|
|
16
|
+
values?: Array<Value<TStrict>>;
|
|
17
|
+
images?: Array<Image<TStrict>>;
|
|
18
|
+
socialInteracts?: Array<SocialInteract<TStrict>>;
|
|
19
|
+
txts?: Array<Txt<TStrict>>;
|
|
20
|
+
chat?: Chat<TStrict>;
|
|
21
|
+
};
|
|
22
|
+
type Transcript<TStrict extends boolean = false> = Strict<{
|
|
23
|
+
url: Requirable<string>;
|
|
24
|
+
type: Requirable<string>;
|
|
28
25
|
language?: string;
|
|
29
26
|
rel?: string;
|
|
30
|
-
}
|
|
31
|
-
type Locked = {
|
|
32
|
-
value: boolean
|
|
27
|
+
}, TStrict>;
|
|
28
|
+
type Locked<TStrict extends boolean = false> = Strict<{
|
|
29
|
+
value: Requirable<boolean>;
|
|
33
30
|
owner?: string;
|
|
34
|
-
}
|
|
35
|
-
type Funding = {
|
|
36
|
-
url: string
|
|
31
|
+
}, TStrict>;
|
|
32
|
+
type Funding<TStrict extends boolean = false> = Strict<{
|
|
33
|
+
url: Requirable<string>;
|
|
37
34
|
display?: string;
|
|
38
|
-
}
|
|
39
|
-
type Chapters = {
|
|
40
|
-
url: string
|
|
41
|
-
type: string
|
|
42
|
-
}
|
|
43
|
-
type Soundbite = {
|
|
44
|
-
startTime: number
|
|
45
|
-
duration: number
|
|
35
|
+
}, TStrict>;
|
|
36
|
+
type Chapters<TStrict extends boolean = false> = Strict<{
|
|
37
|
+
url: Requirable<string>;
|
|
38
|
+
type: Requirable<string>;
|
|
39
|
+
}, TStrict>;
|
|
40
|
+
type Soundbite<TStrict extends boolean = false> = Strict<{
|
|
41
|
+
startTime: Requirable<number>;
|
|
42
|
+
duration: Requirable<number>;
|
|
46
43
|
display?: string;
|
|
47
|
-
}
|
|
48
|
-
type Person = {
|
|
49
|
-
display: string
|
|
44
|
+
}, TStrict>;
|
|
45
|
+
type Person<TStrict extends boolean = false> = Strict<{
|
|
46
|
+
display: Requirable<string>;
|
|
50
47
|
role?: string;
|
|
51
48
|
group?: string;
|
|
52
49
|
img?: string;
|
|
53
50
|
href?: string;
|
|
54
|
-
}
|
|
55
|
-
type Location = {
|
|
56
|
-
display: string
|
|
51
|
+
}, TStrict>;
|
|
52
|
+
type Location<TStrict extends boolean = false> = Strict<{
|
|
53
|
+
display: Requirable<string>;
|
|
57
54
|
rel?: string;
|
|
58
55
|
geo?: string;
|
|
59
56
|
osm?: string;
|
|
60
57
|
country?: string;
|
|
61
|
-
}
|
|
62
|
-
type Season = {
|
|
63
|
-
number: number
|
|
58
|
+
}, TStrict>;
|
|
59
|
+
type Season<TStrict extends boolean = false> = Strict<{
|
|
60
|
+
number: Requirable<number>;
|
|
64
61
|
name?: string;
|
|
65
|
-
}
|
|
66
|
-
type Episode = {
|
|
67
|
-
number: number
|
|
62
|
+
}, TStrict>;
|
|
63
|
+
type Episode<TStrict extends boolean = false> = Strict<{
|
|
64
|
+
number: Requirable<number>;
|
|
68
65
|
display?: string;
|
|
69
|
-
}
|
|
70
|
-
type Trailer<TDate extends
|
|
71
|
-
display: string
|
|
72
|
-
url: string
|
|
73
|
-
pubDate: TDate
|
|
66
|
+
}, TStrict>;
|
|
67
|
+
type Trailer<TDate, TStrict extends boolean = false> = Strict<{
|
|
68
|
+
display: Requirable<string>;
|
|
69
|
+
url: Requirable<string>;
|
|
70
|
+
pubDate: Requirable<TDate>;
|
|
74
71
|
length?: number;
|
|
75
72
|
type?: string;
|
|
76
73
|
season?: number;
|
|
77
|
-
}
|
|
78
|
-
type License = {
|
|
79
|
-
display: string
|
|
74
|
+
}, TStrict>;
|
|
75
|
+
type License<TStrict extends boolean = false> = Strict<{
|
|
76
|
+
display: Requirable<string>;
|
|
80
77
|
url?: string;
|
|
81
|
-
}
|
|
82
|
-
type AlternateEnclosure = {
|
|
83
|
-
type: string
|
|
78
|
+
}, TStrict>;
|
|
79
|
+
type AlternateEnclosure<TStrict extends boolean = false> = Strict<{
|
|
80
|
+
type: Requirable<string>;
|
|
84
81
|
length?: number;
|
|
85
82
|
bitrate?: number;
|
|
86
83
|
height?: number;
|
|
@@ -89,131 +86,128 @@ declare namespace PodcastNs {
|
|
|
89
86
|
rel?: string;
|
|
90
87
|
codecs?: string;
|
|
91
88
|
default?: boolean;
|
|
92
|
-
sources?: Array<Source
|
|
93
|
-
integrity?: Integrity
|
|
94
|
-
}
|
|
95
|
-
type Source = {
|
|
96
|
-
uri: string
|
|
89
|
+
sources?: Array<Source<TStrict>>;
|
|
90
|
+
integrity?: Integrity<TStrict>;
|
|
91
|
+
}, TStrict>;
|
|
92
|
+
type Source<TStrict extends boolean = false> = Strict<{
|
|
93
|
+
uri: Requirable<string>;
|
|
97
94
|
contentType?: string;
|
|
98
|
-
}
|
|
99
|
-
type Integrity = {
|
|
100
|
-
type: string
|
|
101
|
-
value: string
|
|
102
|
-
}
|
|
103
|
-
type Value = {
|
|
104
|
-
type: string
|
|
105
|
-
method: string
|
|
95
|
+
}, TStrict>;
|
|
96
|
+
type Integrity<TStrict extends boolean = false> = Strict<{
|
|
97
|
+
type: Requirable<string>;
|
|
98
|
+
value: Requirable<string>;
|
|
99
|
+
}, TStrict>;
|
|
100
|
+
type Value<TStrict extends boolean = false> = Strict<{
|
|
101
|
+
type: Requirable<string>;
|
|
102
|
+
method: Requirable<string>;
|
|
106
103
|
suggested?: number;
|
|
107
|
-
valueRecipients?: Array<ValueRecipient
|
|
108
|
-
valueTimeSplits?: Array<ValueTimeSplit
|
|
109
|
-
}
|
|
110
|
-
type ValueRecipient = {
|
|
104
|
+
valueRecipients?: Array<ValueRecipient<TStrict>>;
|
|
105
|
+
valueTimeSplits?: Array<ValueTimeSplit<TStrict>>;
|
|
106
|
+
}, TStrict>;
|
|
107
|
+
type ValueRecipient<TStrict extends boolean = false> = Strict<{
|
|
111
108
|
name?: string;
|
|
112
109
|
customKey?: string;
|
|
113
110
|
customValue?: string;
|
|
114
|
-
type: string
|
|
115
|
-
address: string
|
|
116
|
-
split: number
|
|
111
|
+
type: Requirable<string>;
|
|
112
|
+
address: Requirable<string>;
|
|
113
|
+
split: Requirable<number>;
|
|
117
114
|
fee?: boolean;
|
|
118
|
-
}
|
|
115
|
+
}, TStrict>;
|
|
119
116
|
/** @internal Legacy type for parsing podcast:images with srcset attribute. */
|
|
120
117
|
type Images = {
|
|
121
118
|
srcset?: string;
|
|
122
119
|
};
|
|
123
|
-
type Image = {
|
|
124
|
-
href: string
|
|
120
|
+
type Image<TStrict extends boolean = false> = Strict<{
|
|
121
|
+
href: Requirable<string>;
|
|
125
122
|
alt?: string;
|
|
126
123
|
aspectRatio?: string;
|
|
127
124
|
width?: number;
|
|
128
125
|
height?: number;
|
|
129
126
|
type?: string;
|
|
130
127
|
purpose?: string;
|
|
131
|
-
}
|
|
132
|
-
type LiveItem<TDate extends
|
|
133
|
-
status: string
|
|
134
|
-
start: TDate
|
|
128
|
+
}, TStrict>;
|
|
129
|
+
type LiveItem<TDate, TStrict extends boolean = false> = BaseItem<TStrict> & Strict<{
|
|
130
|
+
status: Requirable<string>;
|
|
131
|
+
start: Requirable<TDate>;
|
|
135
132
|
end?: TDate;
|
|
136
|
-
contentLinks?: Array<ContentLink
|
|
137
|
-
}
|
|
138
|
-
type ContentLink = {
|
|
139
|
-
href: string
|
|
133
|
+
contentLinks?: Array<ContentLink<TStrict>>;
|
|
134
|
+
}, TStrict>;
|
|
135
|
+
type ContentLink<TStrict extends boolean = false> = Strict<{
|
|
136
|
+
href: Requirable<string>;
|
|
140
137
|
display?: string;
|
|
141
|
-
}
|
|
142
|
-
type SocialInteract = {
|
|
138
|
+
}, TStrict>;
|
|
139
|
+
type SocialInteract<TStrict extends boolean = false> = Strict<{
|
|
143
140
|
uri?: string;
|
|
144
|
-
protocol: string
|
|
141
|
+
protocol: Requirable<string>;
|
|
145
142
|
accountId?: string;
|
|
146
143
|
accountUrl?: string;
|
|
147
144
|
priority?: number;
|
|
148
|
-
}
|
|
149
|
-
type Chat = {
|
|
150
|
-
server: string
|
|
151
|
-
protocol: string
|
|
145
|
+
}, TStrict>;
|
|
146
|
+
type Chat<TStrict extends boolean = false> = Strict<{
|
|
147
|
+
server: Requirable<string>;
|
|
148
|
+
protocol: Requirable<string>;
|
|
152
149
|
accountId?: string;
|
|
153
150
|
space?: string;
|
|
154
|
-
}
|
|
155
|
-
type Block = {
|
|
156
|
-
value: boolean
|
|
151
|
+
}, TStrict>;
|
|
152
|
+
type Block<TStrict extends boolean = false> = Strict<{
|
|
153
|
+
value: Requirable<boolean>;
|
|
157
154
|
id?: string;
|
|
158
|
-
}
|
|
159
|
-
type Txt = {
|
|
160
|
-
display: string
|
|
155
|
+
}, TStrict>;
|
|
156
|
+
type Txt<TStrict extends boolean = false> = Strict<{
|
|
157
|
+
display: Requirable<string>;
|
|
161
158
|
purpose?: string;
|
|
162
|
-
}
|
|
163
|
-
type RemoteItem = {
|
|
164
|
-
feedGuid: string
|
|
159
|
+
}, TStrict>;
|
|
160
|
+
type RemoteItem<TStrict extends boolean = false> = Strict<{
|
|
161
|
+
feedGuid: Requirable<string>;
|
|
165
162
|
feedUrl?: string;
|
|
166
163
|
itemGuid?: string;
|
|
167
164
|
medium?: string;
|
|
168
165
|
title?: string;
|
|
166
|
+
}, TStrict>;
|
|
167
|
+
type Podroll<TStrict extends boolean = false> = {
|
|
168
|
+
remoteItems?: Array<RemoteItem<TStrict>>;
|
|
169
169
|
};
|
|
170
|
-
type
|
|
171
|
-
|
|
172
|
-
};
|
|
173
|
-
type UpdateFrequency<TDate extends DateLike> = {
|
|
174
|
-
display: string;
|
|
170
|
+
type UpdateFrequency<TDate, TStrict extends boolean = false> = Strict<{
|
|
171
|
+
display: Requirable<string>;
|
|
175
172
|
complete?: boolean;
|
|
176
173
|
dtstart?: TDate;
|
|
177
174
|
rrule?: string;
|
|
178
|
-
}
|
|
175
|
+
}, TStrict>;
|
|
179
176
|
type Podping = {
|
|
180
177
|
usesPodping?: boolean;
|
|
181
178
|
};
|
|
182
|
-
type Publisher = {
|
|
183
|
-
remoteItem?: RemoteItem
|
|
179
|
+
type Publisher<TStrict extends boolean = false> = {
|
|
180
|
+
remoteItem?: RemoteItem<TStrict>;
|
|
184
181
|
};
|
|
185
|
-
type ValueTimeSplit = {
|
|
186
|
-
startTime: number
|
|
187
|
-
duration: number
|
|
182
|
+
type ValueTimeSplit<TStrict extends boolean = false> = Strict<{
|
|
183
|
+
startTime: Requirable<number>;
|
|
184
|
+
duration: Requirable<number>;
|
|
188
185
|
remoteStartTime?: number;
|
|
189
186
|
remotePercentage?: number;
|
|
190
|
-
remoteItem?: RemoteItem
|
|
191
|
-
valueRecipients?: Array<ValueRecipient
|
|
192
|
-
}
|
|
193
|
-
type Item = BaseItem
|
|
194
|
-
type Feed<TDate extends
|
|
195
|
-
locked?: Locked
|
|
196
|
-
fundings?: Array<Funding
|
|
197
|
-
persons?: Array<Person
|
|
198
|
-
locations?: Array<Location
|
|
199
|
-
trailers?: Array<Trailer<TDate>>;
|
|
200
|
-
license?: License
|
|
187
|
+
remoteItem?: RemoteItem<TStrict>;
|
|
188
|
+
valueRecipients?: Array<ValueRecipient<TStrict>>;
|
|
189
|
+
}, TStrict>;
|
|
190
|
+
type Item<TStrict extends boolean = false> = BaseItem<TStrict>;
|
|
191
|
+
type Feed<TDate, TStrict extends boolean = false> = {
|
|
192
|
+
locked?: Locked<TStrict>;
|
|
193
|
+
fundings?: Array<Funding<TStrict>>;
|
|
194
|
+
persons?: Array<Person<TStrict>>;
|
|
195
|
+
locations?: Array<Location<TStrict>>;
|
|
196
|
+
trailers?: Array<Trailer<TDate, TStrict>>;
|
|
197
|
+
license?: License<TStrict>;
|
|
201
198
|
guid?: string;
|
|
202
|
-
values?: Array<Value
|
|
199
|
+
values?: Array<Value<TStrict>>;
|
|
203
200
|
medium?: string;
|
|
204
|
-
images?: Array<Image
|
|
205
|
-
liveItems?: Array<LiveItem<TDate>>;
|
|
206
|
-
blocks?: Array<Block
|
|
207
|
-
txts?: Array<Txt
|
|
208
|
-
remoteItems?: Array<RemoteItem
|
|
209
|
-
podroll?: Podroll
|
|
210
|
-
updateFrequency?: UpdateFrequency<TDate>;
|
|
201
|
+
images?: Array<Image<TStrict>>;
|
|
202
|
+
liveItems?: Array<LiveItem<TDate, TStrict>>;
|
|
203
|
+
blocks?: Array<Block<TStrict>>;
|
|
204
|
+
txts?: Array<Txt<TStrict>>;
|
|
205
|
+
remoteItems?: Array<RemoteItem<TStrict>>;
|
|
206
|
+
podroll?: Podroll<TStrict>;
|
|
207
|
+
updateFrequency?: UpdateFrequency<TDate, TStrict>;
|
|
211
208
|
podping?: Podping;
|
|
212
|
-
chat?: Chat
|
|
213
|
-
publisher?: Publisher
|
|
214
|
-
location?: Location; /** @deprecated Use `values` (array) instead. Multiple podcast:value elements are allowed per specification. */
|
|
215
|
-
value?: Value; /** @deprecated Use `chat` (singular) instead. Only one podcast:chat element is allowed per specification. */
|
|
216
|
-
chats?: Array<Chat>;
|
|
209
|
+
chat?: Chat<TStrict>;
|
|
210
|
+
publisher?: Publisher<TStrict>;
|
|
217
211
|
};
|
|
218
212
|
}
|
|
219
213
|
//#endregion
|
|
@@ -7,16 +7,16 @@ const generateBaseItem = (baseItem) => {
|
|
|
7
7
|
"podcast:chapters": generateChapters(baseItem.chapters),
|
|
8
8
|
"podcast:soundbite": require_utils.trimArray(baseItem.soundbites, generateSoundbite),
|
|
9
9
|
"podcast:person": require_utils.trimArray(baseItem.persons, generatePerson),
|
|
10
|
-
"podcast:location": require_utils.
|
|
10
|
+
"podcast:location": require_utils.trimArray(baseItem.locations, generateLocation),
|
|
11
11
|
"podcast:season": generateSeason(baseItem.season),
|
|
12
12
|
"podcast:episode": generateEpisode(baseItem.episode),
|
|
13
13
|
"podcast:license": generateLicense(baseItem.license),
|
|
14
14
|
"podcast:alternateEnclosure": require_utils.trimArray(baseItem.alternateEnclosures, generateAlternateEnclosure),
|
|
15
|
-
"podcast:value": require_utils.
|
|
15
|
+
"podcast:value": require_utils.trimArray(baseItem.values, generateValue),
|
|
16
16
|
"podcast:image": require_utils.trimArray(baseItem.images, generateImage),
|
|
17
17
|
"podcast:socialInteract": require_utils.trimArray(baseItem.socialInteracts, generateSocialInteract),
|
|
18
18
|
"podcast:txt": require_utils.trimArray(baseItem.txts, generateTxt),
|
|
19
|
-
"podcast:chat":
|
|
19
|
+
"podcast:chat": generateChat(baseItem.chat)
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
const generateTranscript = (transcript) => {
|
|
@@ -275,11 +275,11 @@ const generateFeed = (feed) => {
|
|
|
275
275
|
"podcast:locked": generateLocked(feed.locked),
|
|
276
276
|
"podcast:funding": require_utils.trimArray(feed.fundings, generateFunding),
|
|
277
277
|
"podcast:person": require_utils.trimArray(feed.persons, generatePerson),
|
|
278
|
-
"podcast:location": require_utils.
|
|
278
|
+
"podcast:location": require_utils.trimArray(feed.locations, generateLocation),
|
|
279
279
|
"podcast:trailer": require_utils.trimArray(feed.trailers, generateTrailer),
|
|
280
280
|
"podcast:license": generateLicense(feed.license),
|
|
281
281
|
"podcast:guid": require_utils.generateCdataString(feed.guid),
|
|
282
|
-
"podcast:value": require_utils.
|
|
282
|
+
"podcast:value": require_utils.trimArray(feed.values, generateValue),
|
|
283
283
|
"podcast:medium": require_utils.generateCdataString(feed.medium),
|
|
284
284
|
"podcast:image": require_utils.trimArray(feed.images, generateImage),
|
|
285
285
|
"podcast:liveItem": require_utils.trimArray(feed.liveItems, generateLiveItem),
|
|
@@ -289,7 +289,7 @@ const generateFeed = (feed) => {
|
|
|
289
289
|
"podcast:podroll": generatePodroll(feed.podroll),
|
|
290
290
|
"podcast:updateFrequency": generateUpdateFrequency(feed.updateFrequency),
|
|
291
291
|
"podcast:podping": generatePodping(feed.podping),
|
|
292
|
-
"podcast:chat":
|
|
292
|
+
"podcast:chat": generateChat(feed.chat),
|
|
293
293
|
"podcast:publisher": generatePublisher(feed.publisher)
|
|
294
294
|
});
|
|
295
295
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateBoolean, generateCdataString, generateNumber, generatePlainString, generateRfc3339Date, generateRfc822Date, generateTextOrCdataString, generateYesNoBoolean, isObject, trimArray, trimObject } from "../../../common/utils.js";
|
|
2
2
|
//#region src/namespaces/podcast/generate/utils.ts
|
|
3
3
|
const generateBaseItem = (baseItem) => {
|
|
4
4
|
if (!isObject(baseItem)) return;
|
|
@@ -7,16 +7,16 @@ const generateBaseItem = (baseItem) => {
|
|
|
7
7
|
"podcast:chapters": generateChapters(baseItem.chapters),
|
|
8
8
|
"podcast:soundbite": trimArray(baseItem.soundbites, generateSoundbite),
|
|
9
9
|
"podcast:person": trimArray(baseItem.persons, generatePerson),
|
|
10
|
-
"podcast:location":
|
|
10
|
+
"podcast:location": trimArray(baseItem.locations, generateLocation),
|
|
11
11
|
"podcast:season": generateSeason(baseItem.season),
|
|
12
12
|
"podcast:episode": generateEpisode(baseItem.episode),
|
|
13
13
|
"podcast:license": generateLicense(baseItem.license),
|
|
14
14
|
"podcast:alternateEnclosure": trimArray(baseItem.alternateEnclosures, generateAlternateEnclosure),
|
|
15
|
-
"podcast:value":
|
|
15
|
+
"podcast:value": trimArray(baseItem.values, generateValue),
|
|
16
16
|
"podcast:image": trimArray(baseItem.images, generateImage),
|
|
17
17
|
"podcast:socialInteract": trimArray(baseItem.socialInteracts, generateSocialInteract),
|
|
18
18
|
"podcast:txt": trimArray(baseItem.txts, generateTxt),
|
|
19
|
-
"podcast:chat":
|
|
19
|
+
"podcast:chat": generateChat(baseItem.chat)
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
const generateTranscript = (transcript) => {
|
|
@@ -275,11 +275,11 @@ const generateFeed = (feed) => {
|
|
|
275
275
|
"podcast:locked": generateLocked(feed.locked),
|
|
276
276
|
"podcast:funding": trimArray(feed.fundings, generateFunding),
|
|
277
277
|
"podcast:person": trimArray(feed.persons, generatePerson),
|
|
278
|
-
"podcast:location":
|
|
278
|
+
"podcast:location": trimArray(feed.locations, generateLocation),
|
|
279
279
|
"podcast:trailer": trimArray(feed.trailers, generateTrailer),
|
|
280
280
|
"podcast:license": generateLicense(feed.license),
|
|
281
281
|
"podcast:guid": generateCdataString(feed.guid),
|
|
282
|
-
"podcast:value":
|
|
282
|
+
"podcast:value": trimArray(feed.values, generateValue),
|
|
283
283
|
"podcast:medium": generateCdataString(feed.medium),
|
|
284
284
|
"podcast:image": trimArray(feed.images, generateImage),
|
|
285
285
|
"podcast:liveItem": trimArray(feed.liveItems, generateLiveItem),
|
|
@@ -289,7 +289,7 @@ const generateFeed = (feed) => {
|
|
|
289
289
|
"podcast:podroll": generatePodroll(feed.podroll),
|
|
290
290
|
"podcast:updateFrequency": generateUpdateFrequency(feed.updateFrequency),
|
|
291
291
|
"podcast:podping": generatePodping(feed.podping),
|
|
292
|
-
"podcast:chat":
|
|
292
|
+
"podcast:chat": generateChat(feed.chat),
|
|
293
293
|
"podcast:publisher": generatePublisher(feed.publisher)
|
|
294
294
|
});
|
|
295
295
|
};
|
|
@@ -69,12 +69,12 @@ const parseEpisode = (value) => {
|
|
|
69
69
|
display: require_utils.parseString(value?.["@display"])
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
const parseTrailer = (value) => {
|
|
72
|
+
const parseTrailer = (value, options) => {
|
|
73
73
|
if (!require_utils.isObject(value)) return;
|
|
74
74
|
return require_utils.trimObject({
|
|
75
75
|
display: require_utils.parseString(require_utils.retrieveText(value)),
|
|
76
76
|
url: require_utils.parseString(value["@url"]),
|
|
77
|
-
pubDate: require_utils.parseDate(value["@pubdate"]),
|
|
77
|
+
pubDate: require_utils.parseDate(value["@pubdate"], options?.parseDateFn),
|
|
78
78
|
length: require_utils.parseNumber(value["@length"]),
|
|
79
79
|
type: require_utils.parseString(value["@type"]),
|
|
80
80
|
season: require_utils.parseNumber(value["@season"])
|
|
@@ -168,13 +168,13 @@ const parseImages = (value) => {
|
|
|
168
168
|
const retrieveImages = (value) => {
|
|
169
169
|
return require_utils.parseArrayOf(value["podcast:image"], parseImage) ?? require_utils.parseSingularOf(value["podcast:images"], parseImages);
|
|
170
170
|
};
|
|
171
|
-
const parseLiveItem = (value) => {
|
|
171
|
+
const parseLiveItem = (value, options) => {
|
|
172
172
|
if (!require_utils.isObject(value)) return;
|
|
173
173
|
return require_utils.trimObject({
|
|
174
174
|
...retrieveItem(value),
|
|
175
175
|
status: require_utils.parseString(value["@status"]),
|
|
176
|
-
start: require_utils.parseDate(value["@start"]),
|
|
177
|
-
end: require_utils.parseDate(value["@end"]),
|
|
176
|
+
start: require_utils.parseDate(value["@start"], options?.parseDateFn),
|
|
177
|
+
end: require_utils.parseDate(value["@end"], options?.parseDateFn),
|
|
178
178
|
contentLinks: require_utils.parseArrayOf(value["podcast:contentlink"], parseContentLink)
|
|
179
179
|
});
|
|
180
180
|
};
|
|
@@ -230,11 +230,11 @@ const parsePodroll = (value) => {
|
|
|
230
230
|
if (!require_utils.isObject(value)) return;
|
|
231
231
|
return require_utils.trimObject({ remoteItems: require_utils.parseArrayOf(value["podcast:remoteitem"], parseRemoteItem) });
|
|
232
232
|
};
|
|
233
|
-
const parseUpdateFrequency = (value) => {
|
|
233
|
+
const parseUpdateFrequency = (value, options) => {
|
|
234
234
|
return require_utils.trimObject({
|
|
235
235
|
display: require_utils.parseString(require_utils.retrieveText(value)),
|
|
236
236
|
complete: require_utils.parseBoolean(value?.["@complete"]),
|
|
237
|
-
dtstart: require_utils.parseDate(value?.["@dtstart"]),
|
|
237
|
+
dtstart: require_utils.parseDate(value?.["@dtstart"], options?.parseDateFn),
|
|
238
238
|
rrule: require_utils.parseString(value?.["@rrule"])
|
|
239
239
|
});
|
|
240
240
|
};
|
|
@@ -273,37 +273,31 @@ const retrieveItem = (value) => {
|
|
|
273
273
|
images: retrieveImages(value),
|
|
274
274
|
socialInteracts: require_utils.parseArrayOf(value["podcast:socialinteract"], parseSocialInteract),
|
|
275
275
|
txts: require_utils.parseArrayOf(value["podcast:txt"], parseTxt),
|
|
276
|
-
chat: require_utils.parseSingularOf(value["podcast:chat"], parseChat)
|
|
277
|
-
location: require_utils.parseSingularOf(value["podcast:location"], parseLocation),
|
|
278
|
-
value: require_utils.parseSingularOf(value["podcast:value"], parseValue),
|
|
279
|
-
chats: require_utils.parseArrayOf(value["podcast:chat"], parseChat)
|
|
276
|
+
chat: require_utils.parseSingularOf(value["podcast:chat"], parseChat)
|
|
280
277
|
});
|
|
281
278
|
};
|
|
282
|
-
const retrieveFeed = (value) => {
|
|
279
|
+
const retrieveFeed = (value, options) => {
|
|
283
280
|
if (!require_utils.isObject(value)) return;
|
|
284
281
|
return require_utils.trimObject({
|
|
285
282
|
locked: require_utils.parseSingularOf(value["podcast:locked"], parseLocked),
|
|
286
283
|
fundings: require_utils.parseArrayOf(value["podcast:funding"], parseFunding),
|
|
287
284
|
persons: require_utils.parseArrayOf(value["podcast:person"], parsePerson),
|
|
288
285
|
locations: require_utils.parseArrayOf(value["podcast:location"], parseLocation),
|
|
289
|
-
trailers: require_utils.parseArrayOf(value["podcast:trailer"], parseTrailer),
|
|
286
|
+
trailers: require_utils.parseArrayOf(value["podcast:trailer"], (value) => parseTrailer(value, options)),
|
|
290
287
|
license: require_utils.parseSingularOf(value["podcast:license"], parseLicense),
|
|
291
288
|
guid: require_utils.parseSingularOf(value["podcast:guid"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
292
289
|
values: require_utils.parseArrayOf(value["podcast:value"], parseValue),
|
|
293
290
|
medium: require_utils.parseSingularOf(value["podcast:medium"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
294
291
|
images: retrieveImages(value),
|
|
295
|
-
liveItems: require_utils.parseArrayOf(value["podcast:liveitem"], parseLiveItem),
|
|
292
|
+
liveItems: require_utils.parseArrayOf(value["podcast:liveitem"], (value) => parseLiveItem(value, options)),
|
|
296
293
|
blocks: require_utils.parseArrayOf(value["podcast:block"], parseBlock),
|
|
297
294
|
txts: require_utils.parseArrayOf(value["podcast:txt"], parseTxt),
|
|
298
295
|
remoteItems: require_utils.parseArrayOf(value["podcast:remoteitem"], parseRemoteItem),
|
|
299
296
|
podroll: require_utils.parseSingularOf(value["podcast:podroll"], parsePodroll),
|
|
300
|
-
updateFrequency: require_utils.parseSingularOf(value["podcast:updatefrequency"], parseUpdateFrequency),
|
|
297
|
+
updateFrequency: require_utils.parseSingularOf(value["podcast:updatefrequency"], (value) => parseUpdateFrequency(value, options)),
|
|
301
298
|
podping: require_utils.parseSingularOf(value["podcast:podping"], parsePodping),
|
|
302
299
|
chat: require_utils.parseSingularOf(value["podcast:chat"], parseChat),
|
|
303
|
-
publisher: require_utils.parseSingularOf(value["podcast:publisher"], parsePublisher)
|
|
304
|
-
location: require_utils.parseSingularOf(value["podcast:location"], parseLocation),
|
|
305
|
-
value: require_utils.parseSingularOf(value["podcast:value"], parseValue),
|
|
306
|
-
chats: require_utils.parseArrayOf(value["podcast:chat"], parseChat)
|
|
300
|
+
publisher: require_utils.parseSingularOf(value["podcast:publisher"], parsePublisher)
|
|
307
301
|
});
|
|
308
302
|
};
|
|
309
303
|
//#endregion
|
|
@@ -69,12 +69,12 @@ const parseEpisode = (value) => {
|
|
|
69
69
|
display: parseString(value?.["@display"])
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
const parseTrailer = (value) => {
|
|
72
|
+
const parseTrailer = (value, options) => {
|
|
73
73
|
if (!isObject(value)) return;
|
|
74
74
|
return trimObject({
|
|
75
75
|
display: parseString(retrieveText(value)),
|
|
76
76
|
url: parseString(value["@url"]),
|
|
77
|
-
pubDate: parseDate(value["@pubdate"]),
|
|
77
|
+
pubDate: parseDate(value["@pubdate"], options?.parseDateFn),
|
|
78
78
|
length: parseNumber(value["@length"]),
|
|
79
79
|
type: parseString(value["@type"]),
|
|
80
80
|
season: parseNumber(value["@season"])
|
|
@@ -168,13 +168,13 @@ const parseImages = (value) => {
|
|
|
168
168
|
const retrieveImages = (value) => {
|
|
169
169
|
return parseArrayOf(value["podcast:image"], parseImage) ?? parseSingularOf(value["podcast:images"], parseImages);
|
|
170
170
|
};
|
|
171
|
-
const parseLiveItem = (value) => {
|
|
171
|
+
const parseLiveItem = (value, options) => {
|
|
172
172
|
if (!isObject(value)) return;
|
|
173
173
|
return trimObject({
|
|
174
174
|
...retrieveItem(value),
|
|
175
175
|
status: parseString(value["@status"]),
|
|
176
|
-
start: parseDate(value["@start"]),
|
|
177
|
-
end: parseDate(value["@end"]),
|
|
176
|
+
start: parseDate(value["@start"], options?.parseDateFn),
|
|
177
|
+
end: parseDate(value["@end"], options?.parseDateFn),
|
|
178
178
|
contentLinks: parseArrayOf(value["podcast:contentlink"], parseContentLink)
|
|
179
179
|
});
|
|
180
180
|
};
|
|
@@ -230,11 +230,11 @@ const parsePodroll = (value) => {
|
|
|
230
230
|
if (!isObject(value)) return;
|
|
231
231
|
return trimObject({ remoteItems: parseArrayOf(value["podcast:remoteitem"], parseRemoteItem) });
|
|
232
232
|
};
|
|
233
|
-
const parseUpdateFrequency = (value) => {
|
|
233
|
+
const parseUpdateFrequency = (value, options) => {
|
|
234
234
|
return trimObject({
|
|
235
235
|
display: parseString(retrieveText(value)),
|
|
236
236
|
complete: parseBoolean(value?.["@complete"]),
|
|
237
|
-
dtstart: parseDate(value?.["@dtstart"]),
|
|
237
|
+
dtstart: parseDate(value?.["@dtstart"], options?.parseDateFn),
|
|
238
238
|
rrule: parseString(value?.["@rrule"])
|
|
239
239
|
});
|
|
240
240
|
};
|
|
@@ -273,37 +273,31 @@ const retrieveItem = (value) => {
|
|
|
273
273
|
images: retrieveImages(value),
|
|
274
274
|
socialInteracts: parseArrayOf(value["podcast:socialinteract"], parseSocialInteract),
|
|
275
275
|
txts: parseArrayOf(value["podcast:txt"], parseTxt),
|
|
276
|
-
chat: parseSingularOf(value["podcast:chat"], parseChat)
|
|
277
|
-
location: parseSingularOf(value["podcast:location"], parseLocation),
|
|
278
|
-
value: parseSingularOf(value["podcast:value"], parseValue),
|
|
279
|
-
chats: parseArrayOf(value["podcast:chat"], parseChat)
|
|
276
|
+
chat: parseSingularOf(value["podcast:chat"], parseChat)
|
|
280
277
|
});
|
|
281
278
|
};
|
|
282
|
-
const retrieveFeed = (value) => {
|
|
279
|
+
const retrieveFeed = (value, options) => {
|
|
283
280
|
if (!isObject(value)) return;
|
|
284
281
|
return trimObject({
|
|
285
282
|
locked: parseSingularOf(value["podcast:locked"], parseLocked),
|
|
286
283
|
fundings: parseArrayOf(value["podcast:funding"], parseFunding),
|
|
287
284
|
persons: parseArrayOf(value["podcast:person"], parsePerson),
|
|
288
285
|
locations: parseArrayOf(value["podcast:location"], parseLocation),
|
|
289
|
-
trailers: parseArrayOf(value["podcast:trailer"], parseTrailer),
|
|
286
|
+
trailers: parseArrayOf(value["podcast:trailer"], (value) => parseTrailer(value, options)),
|
|
290
287
|
license: parseSingularOf(value["podcast:license"], parseLicense),
|
|
291
288
|
guid: parseSingularOf(value["podcast:guid"], (value) => parseString(retrieveText(value))),
|
|
292
289
|
values: parseArrayOf(value["podcast:value"], parseValue),
|
|
293
290
|
medium: parseSingularOf(value["podcast:medium"], (value) => parseString(retrieveText(value))),
|
|
294
291
|
images: retrieveImages(value),
|
|
295
|
-
liveItems: parseArrayOf(value["podcast:liveitem"], parseLiveItem),
|
|
292
|
+
liveItems: parseArrayOf(value["podcast:liveitem"], (value) => parseLiveItem(value, options)),
|
|
296
293
|
blocks: parseArrayOf(value["podcast:block"], parseBlock),
|
|
297
294
|
txts: parseArrayOf(value["podcast:txt"], parseTxt),
|
|
298
295
|
remoteItems: parseArrayOf(value["podcast:remoteitem"], parseRemoteItem),
|
|
299
296
|
podroll: parseSingularOf(value["podcast:podroll"], parsePodroll),
|
|
300
|
-
updateFrequency: parseSingularOf(value["podcast:updatefrequency"], parseUpdateFrequency),
|
|
297
|
+
updateFrequency: parseSingularOf(value["podcast:updatefrequency"], (value) => parseUpdateFrequency(value, options)),
|
|
301
298
|
podping: parseSingularOf(value["podcast:podping"], parsePodping),
|
|
302
299
|
chat: parseSingularOf(value["podcast:chat"], parseChat),
|
|
303
|
-
publisher: parseSingularOf(value["podcast:publisher"], parsePublisher)
|
|
304
|
-
location: parseSingularOf(value["podcast:location"], parseLocation),
|
|
305
|
-
value: parseSingularOf(value["podcast:value"], parseValue),
|
|
306
|
-
chats: parseArrayOf(value["podcast:chat"], parseChat)
|
|
300
|
+
publisher: parseSingularOf(value["podcast:publisher"], parsePublisher)
|
|
307
301
|
});
|
|
308
302
|
};
|
|
309
303
|
//#endregion
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { DateLike } from "../../../common/types.cjs";
|
|
2
|
-
|
|
3
1
|
//#region src/namespaces/prism/common/types.d.ts
|
|
4
2
|
declare namespace PrismNs {
|
|
5
|
-
type Feed<TDate
|
|
3
|
+
type Feed<TDate> = {
|
|
6
4
|
publicationName?: string;
|
|
7
5
|
issn?: string;
|
|
8
6
|
eIssn?: string;
|
|
@@ -81,7 +79,7 @@ declare namespace PrismNs {
|
|
|
81
79
|
expirationDate?: TDate; /** @deprecated Since PRISM 3.0. Use pur:rightsAgent instead. */
|
|
82
80
|
rightsAgent?: string;
|
|
83
81
|
};
|
|
84
|
-
type Item<TDate
|
|
82
|
+
type Item<TDate> = {
|
|
85
83
|
publicationName?: string;
|
|
86
84
|
issn?: string;
|
|
87
85
|
eIssn?: string;
|