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,11 +1,9 @@
|
|
|
1
|
-
import { DateLike } from "../../../common/types.cjs";
|
|
2
|
-
|
|
3
1
|
//#region src/namespaces/app/common/types.d.ts
|
|
4
2
|
declare namespace AppNs {
|
|
5
3
|
type Control = {
|
|
6
4
|
draft?: boolean;
|
|
7
5
|
};
|
|
8
|
-
type Entry<TDate
|
|
6
|
+
type Entry<TDate> = {
|
|
9
7
|
edited?: TDate;
|
|
10
8
|
control?: Control;
|
|
11
9
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { DateLike } from "../../../common/types.js";
|
|
2
|
-
|
|
3
1
|
//#region src/namespaces/app/common/types.d.ts
|
|
4
2
|
declare namespace AppNs {
|
|
5
3
|
type Control = {
|
|
6
4
|
draft?: boolean;
|
|
7
5
|
};
|
|
8
|
-
type Entry<TDate
|
|
6
|
+
type Entry<TDate> = {
|
|
9
7
|
edited?: TDate;
|
|
10
8
|
control?: Control;
|
|
11
9
|
};
|
|
@@ -4,10 +4,10 @@ const parseControl = (value) => {
|
|
|
4
4
|
if (!require_utils.isObject(value)) return;
|
|
5
5
|
return require_utils.trimObject({ draft: require_utils.parseSingularOf(value["app:draft"], (value) => require_utils.parseYesNoBoolean(require_utils.retrieveText(value))) });
|
|
6
6
|
};
|
|
7
|
-
const retrieveEntry = (value) => {
|
|
7
|
+
const retrieveEntry = (value, options) => {
|
|
8
8
|
if (!require_utils.isObject(value)) return;
|
|
9
9
|
return require_utils.trimObject({
|
|
10
|
-
edited: require_utils.parseSingularOf(value["app:edited"], (value) => require_utils.parseDate(require_utils.retrieveText(value))),
|
|
10
|
+
edited: require_utils.parseSingularOf(value["app:edited"], (value) => require_utils.parseDate(require_utils.retrieveText(value), options?.parseDateFn)),
|
|
11
11
|
control: require_utils.parseSingularOf(value["app:control"], parseControl)
|
|
12
12
|
});
|
|
13
13
|
};
|
|
@@ -4,10 +4,10 @@ const parseControl = (value) => {
|
|
|
4
4
|
if (!isObject(value)) return;
|
|
5
5
|
return trimObject({ draft: parseSingularOf(value["app:draft"], (value) => parseYesNoBoolean(retrieveText(value))) });
|
|
6
6
|
};
|
|
7
|
-
const retrieveEntry = (value) => {
|
|
7
|
+
const retrieveEntry = (value, options) => {
|
|
8
8
|
if (!isObject(value)) return;
|
|
9
9
|
return trimObject({
|
|
10
|
-
edited: parseSingularOf(value["app:edited"], (value) => parseDate(retrieveText(value))),
|
|
10
|
+
edited: parseSingularOf(value["app:edited"], (value) => parseDate(retrieveText(value), options?.parseDateFn)),
|
|
11
11
|
control: parseSingularOf(value["app:control"], parseControl)
|
|
12
12
|
});
|
|
13
13
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeepOmit } from "../../../common/types.cjs";
|
|
2
2
|
import { Atom } from "../../../feeds/atom/common/types.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/namespaces/atom/common/types.d.ts
|
|
5
5
|
type NsKeys = 'admin' | 'app' | 'arxiv' | 'cc' | 'creativeCommons' | 'dc' | 'dcterms' | 'geo' | 'georss' | 'googleplay' | 'itunes' | 'media' | 'opensearch' | 'pingback' | 'psc' | 'slash' | 'sy' | 'thr' | 'trackback' | 'wfw' | 'yt';
|
|
6
6
|
declare namespace AtomNs {
|
|
7
|
-
type Entry<TDate
|
|
8
|
-
type Feed<TDate
|
|
7
|
+
type Entry<TDate> = DeepOmit<Atom.Entry<TDate>, NsKeys>;
|
|
8
|
+
type Feed<TDate> = DeepOmit<Atom.Feed<TDate>, NsKeys>;
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
11
|
export { AtomNs };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeepOmit } from "../../../common/types.js";
|
|
2
2
|
import { Atom } from "../../../feeds/atom/common/types.js";
|
|
3
3
|
|
|
4
4
|
//#region src/namespaces/atom/common/types.d.ts
|
|
5
5
|
type NsKeys = 'admin' | 'app' | 'arxiv' | 'cc' | 'creativeCommons' | 'dc' | 'dcterms' | 'geo' | 'georss' | 'googleplay' | 'itunes' | 'media' | 'opensearch' | 'pingback' | 'psc' | 'slash' | 'sy' | 'thr' | 'trackback' | 'wfw' | 'yt';
|
|
6
6
|
declare namespace AtomNs {
|
|
7
|
-
type Entry<TDate
|
|
8
|
-
type Feed<TDate
|
|
7
|
+
type Entry<TDate> = DeepOmit<Atom.Entry<TDate>, NsKeys>;
|
|
8
|
+
type Feed<TDate> = DeepOmit<Atom.Feed<TDate>, NsKeys>;
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
11
|
export { AtomNs };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
const require_utils = require("../../../feeds/atom/parse/utils.cjs");
|
|
2
2
|
//#region src/namespaces/atom/parse/utils.ts
|
|
3
|
-
const retrieveEntry = (value) => {
|
|
3
|
+
const retrieveEntry = (value, options) => {
|
|
4
4
|
return require_utils.parseEntry(value, {
|
|
5
|
+
...options,
|
|
5
6
|
prefix: "atom:",
|
|
6
7
|
asNamespace: true
|
|
7
8
|
});
|
|
8
9
|
};
|
|
9
|
-
const retrieveFeed = (value) => {
|
|
10
|
+
const retrieveFeed = (value, options) => {
|
|
10
11
|
return require_utils.parseFeed(value, {
|
|
12
|
+
...options,
|
|
11
13
|
prefix: "atom:",
|
|
12
14
|
asNamespace: true
|
|
13
15
|
});
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { parseEntry, parseFeed } from "../../../feeds/atom/parse/utils.js";
|
|
2
2
|
//#region src/namespaces/atom/parse/utils.ts
|
|
3
|
-
const retrieveEntry = (value) => {
|
|
3
|
+
const retrieveEntry = (value, options) => {
|
|
4
4
|
return parseEntry(value, {
|
|
5
|
+
...options,
|
|
5
6
|
prefix: "atom:",
|
|
6
7
|
asNamespace: true
|
|
7
8
|
});
|
|
8
9
|
};
|
|
9
|
-
const retrieveFeed = (value) => {
|
|
10
|
+
const retrieveFeed = (value, options) => {
|
|
10
11
|
return parseFeed(value, {
|
|
12
|
+
...options,
|
|
11
13
|
prefix: "atom:",
|
|
12
14
|
asNamespace: true
|
|
13
15
|
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { DateLike } from "../../../common/types.cjs";
|
|
2
|
-
|
|
3
1
|
//#region src/namespaces/dc/common/types.d.ts
|
|
4
2
|
declare namespace DcNs {
|
|
5
|
-
type ItemOrFeed<TDate
|
|
3
|
+
type ItemOrFeed<TDate> = {
|
|
6
4
|
titles?: Array<string>;
|
|
7
5
|
creators?: Array<string>;
|
|
8
6
|
subjects?: Array<string>;
|
|
@@ -15,22 +13,9 @@ declare namespace DcNs {
|
|
|
15
13
|
identifiers?: Array<string>;
|
|
16
14
|
sources?: Array<string>;
|
|
17
15
|
languages?: Array<string>;
|
|
18
|
-
relations?: Array<string>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
subject?: string; /** @deprecated Use `descriptions` (array) instead. Dublin Core fields are repeatable. */
|
|
22
|
-
description?: string; /** @deprecated Use `publishers` (array) instead. Dublin Core fields are repeatable. */
|
|
23
|
-
publisher?: string; /** @deprecated Use `contributors` (array) instead. Dublin Core fields are repeatable. */
|
|
24
|
-
contributor?: string; /** @deprecated Use `dates` (array) instead. Dublin Core fields are repeatable. */
|
|
25
|
-
date?: TDate; /** @deprecated Use `types` (array) instead. Dublin Core fields are repeatable. */
|
|
26
|
-
type?: string; /** @deprecated Use `formats` (array) instead. Dublin Core fields are repeatable. */
|
|
27
|
-
format?: string; /** @deprecated Use `identifiers` (array) instead. Dublin Core fields are repeatable. */
|
|
28
|
-
identifier?: string; /** @deprecated Use `sources` (array) instead. Dublin Core fields are repeatable. */
|
|
29
|
-
source?: string; /** @deprecated Use `languages` (array) instead. Dublin Core fields are repeatable. */
|
|
30
|
-
language?: string; /** @deprecated Use `relations` (array) instead. Dublin Core fields are repeatable. */
|
|
31
|
-
relation?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
|
|
32
|
-
coverage?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
|
|
33
|
-
rights?: string;
|
|
16
|
+
relations?: Array<string>;
|
|
17
|
+
coverage?: Array<string>;
|
|
18
|
+
rights?: Array<string>;
|
|
34
19
|
};
|
|
35
20
|
}
|
|
36
21
|
//#endregion
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { DateLike } from "../../../common/types.js";
|
|
2
|
-
|
|
3
1
|
//#region src/namespaces/dc/common/types.d.ts
|
|
4
2
|
declare namespace DcNs {
|
|
5
|
-
type ItemOrFeed<TDate
|
|
3
|
+
type ItemOrFeed<TDate> = {
|
|
6
4
|
titles?: Array<string>;
|
|
7
5
|
creators?: Array<string>;
|
|
8
6
|
subjects?: Array<string>;
|
|
@@ -15,22 +13,9 @@ declare namespace DcNs {
|
|
|
15
13
|
identifiers?: Array<string>;
|
|
16
14
|
sources?: Array<string>;
|
|
17
15
|
languages?: Array<string>;
|
|
18
|
-
relations?: Array<string>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
subject?: string; /** @deprecated Use `descriptions` (array) instead. Dublin Core fields are repeatable. */
|
|
22
|
-
description?: string; /** @deprecated Use `publishers` (array) instead. Dublin Core fields are repeatable. */
|
|
23
|
-
publisher?: string; /** @deprecated Use `contributors` (array) instead. Dublin Core fields are repeatable. */
|
|
24
|
-
contributor?: string; /** @deprecated Use `dates` (array) instead. Dublin Core fields are repeatable. */
|
|
25
|
-
date?: TDate; /** @deprecated Use `types` (array) instead. Dublin Core fields are repeatable. */
|
|
26
|
-
type?: string; /** @deprecated Use `formats` (array) instead. Dublin Core fields are repeatable. */
|
|
27
|
-
format?: string; /** @deprecated Use `identifiers` (array) instead. Dublin Core fields are repeatable. */
|
|
28
|
-
identifier?: string; /** @deprecated Use `sources` (array) instead. Dublin Core fields are repeatable. */
|
|
29
|
-
source?: string; /** @deprecated Use `languages` (array) instead. Dublin Core fields are repeatable. */
|
|
30
|
-
language?: string; /** @deprecated Use `relations` (array) instead. Dublin Core fields are repeatable. */
|
|
31
|
-
relation?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
|
|
32
|
-
coverage?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
|
|
33
|
-
rights?: string;
|
|
16
|
+
relations?: Array<string>;
|
|
17
|
+
coverage?: Array<string>;
|
|
18
|
+
rights?: Array<string>;
|
|
34
19
|
};
|
|
35
20
|
}
|
|
36
21
|
//#endregion
|
|
@@ -3,21 +3,21 @@ const require_utils = require("../../../common/utils.cjs");
|
|
|
3
3
|
const generateItemOrFeed = (itemOrFeed) => {
|
|
4
4
|
if (!require_utils.isObject(itemOrFeed)) return;
|
|
5
5
|
return require_utils.trimObject({
|
|
6
|
-
"dc:title": require_utils.
|
|
7
|
-
"dc:creator": require_utils.
|
|
8
|
-
"dc:subject": require_utils.
|
|
9
|
-
"dc:description": require_utils.
|
|
10
|
-
"dc:publisher": require_utils.
|
|
11
|
-
"dc:contributor": require_utils.
|
|
12
|
-
"dc:date": require_utils.
|
|
13
|
-
"dc:type": require_utils.
|
|
14
|
-
"dc:format": require_utils.
|
|
15
|
-
"dc:identifier": require_utils.
|
|
16
|
-
"dc:source": require_utils.
|
|
17
|
-
"dc:language": require_utils.
|
|
18
|
-
"dc:relation": require_utils.
|
|
19
|
-
"dc:coverage": require_utils.
|
|
20
|
-
"dc:rights": require_utils.
|
|
6
|
+
"dc:title": require_utils.trimArray(itemOrFeed.titles, require_utils.generateCdataString),
|
|
7
|
+
"dc:creator": require_utils.trimArray(itemOrFeed.creators, require_utils.generateCdataString),
|
|
8
|
+
"dc:subject": require_utils.trimArray(itemOrFeed.subjects, require_utils.generateCdataString),
|
|
9
|
+
"dc:description": require_utils.trimArray(itemOrFeed.descriptions, require_utils.generateCdataString),
|
|
10
|
+
"dc:publisher": require_utils.trimArray(itemOrFeed.publishers, require_utils.generateCdataString),
|
|
11
|
+
"dc:contributor": require_utils.trimArray(itemOrFeed.contributors, require_utils.generateCdataString),
|
|
12
|
+
"dc:date": require_utils.trimArray(itemOrFeed.dates, require_utils.generateRfc3339Date),
|
|
13
|
+
"dc:type": require_utils.trimArray(itemOrFeed.types, require_utils.generateCdataString),
|
|
14
|
+
"dc:format": require_utils.trimArray(itemOrFeed.formats, require_utils.generateCdataString),
|
|
15
|
+
"dc:identifier": require_utils.trimArray(itemOrFeed.identifiers, require_utils.generateCdataString),
|
|
16
|
+
"dc:source": require_utils.trimArray(itemOrFeed.sources, require_utils.generateCdataString),
|
|
17
|
+
"dc:language": require_utils.trimArray(itemOrFeed.languages, require_utils.generateCdataString),
|
|
18
|
+
"dc:relation": require_utils.trimArray(itemOrFeed.relations, require_utils.generateCdataString),
|
|
19
|
+
"dc:coverage": require_utils.trimArray(itemOrFeed.coverage, require_utils.generateCdataString),
|
|
20
|
+
"dc:rights": require_utils.trimArray(itemOrFeed.rights, require_utils.generateCdataString)
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateCdataString, generateRfc3339Date, isObject, trimArray, trimObject } from "../../../common/utils.js";
|
|
2
2
|
//#region src/namespaces/dc/generate/utils.ts
|
|
3
3
|
const generateItemOrFeed = (itemOrFeed) => {
|
|
4
4
|
if (!isObject(itemOrFeed)) return;
|
|
5
5
|
return trimObject({
|
|
6
|
-
"dc:title":
|
|
7
|
-
"dc:creator":
|
|
8
|
-
"dc:subject":
|
|
9
|
-
"dc:description":
|
|
10
|
-
"dc:publisher":
|
|
11
|
-
"dc:contributor":
|
|
12
|
-
"dc:date":
|
|
13
|
-
"dc:type":
|
|
14
|
-
"dc:format":
|
|
15
|
-
"dc:identifier":
|
|
16
|
-
"dc:source":
|
|
17
|
-
"dc:language":
|
|
18
|
-
"dc:relation":
|
|
19
|
-
"dc:coverage":
|
|
20
|
-
"dc:rights":
|
|
6
|
+
"dc:title": trimArray(itemOrFeed.titles, generateCdataString),
|
|
7
|
+
"dc:creator": trimArray(itemOrFeed.creators, generateCdataString),
|
|
8
|
+
"dc:subject": trimArray(itemOrFeed.subjects, generateCdataString),
|
|
9
|
+
"dc:description": trimArray(itemOrFeed.descriptions, generateCdataString),
|
|
10
|
+
"dc:publisher": trimArray(itemOrFeed.publishers, generateCdataString),
|
|
11
|
+
"dc:contributor": trimArray(itemOrFeed.contributors, generateCdataString),
|
|
12
|
+
"dc:date": trimArray(itemOrFeed.dates, generateRfc3339Date),
|
|
13
|
+
"dc:type": trimArray(itemOrFeed.types, generateCdataString),
|
|
14
|
+
"dc:format": trimArray(itemOrFeed.formats, generateCdataString),
|
|
15
|
+
"dc:identifier": trimArray(itemOrFeed.identifiers, generateCdataString),
|
|
16
|
+
"dc:source": trimArray(itemOrFeed.sources, generateCdataString),
|
|
17
|
+
"dc:language": trimArray(itemOrFeed.languages, generateCdataString),
|
|
18
|
+
"dc:relation": trimArray(itemOrFeed.relations, generateCdataString),
|
|
19
|
+
"dc:coverage": trimArray(itemOrFeed.coverage, generateCdataString),
|
|
20
|
+
"dc:rights": trimArray(itemOrFeed.rights, generateCdataString)
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_utils = require("../../../common/utils.cjs");
|
|
2
2
|
//#region src/namespaces/dc/parse/utils.ts
|
|
3
|
-
const retrieveItemOrFeed = (value) => {
|
|
3
|
+
const retrieveItemOrFeed = (value, options) => {
|
|
4
4
|
if (!require_utils.isObject(value)) return;
|
|
5
5
|
return require_utils.trimObject({
|
|
6
6
|
titles: require_utils.parseArrayOf(value["dc:title"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
@@ -9,28 +9,15 @@ const retrieveItemOrFeed = (value) => {
|
|
|
9
9
|
descriptions: require_utils.parseArrayOf(value["dc:description"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
10
10
|
publishers: require_utils.parseArrayOf(value["dc:publisher"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
11
11
|
contributors: require_utils.parseArrayOf(value["dc:contributor"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
12
|
-
dates: require_utils.parseArrayOf(value["dc:date"], (value) => require_utils.parseDate(require_utils.retrieveText(value))),
|
|
12
|
+
dates: require_utils.parseArrayOf(value["dc:date"], (value) => require_utils.parseDate(require_utils.retrieveText(value), options?.parseDateFn)),
|
|
13
13
|
types: require_utils.parseArrayOf(value["dc:type"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
14
14
|
formats: require_utils.parseArrayOf(value["dc:format"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
15
15
|
identifiers: require_utils.parseArrayOf(value["dc:identifier"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
16
16
|
sources: require_utils.parseArrayOf(value["dc:source"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
17
17
|
languages: require_utils.parseArrayOf(value["dc:language"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
18
18
|
relations: require_utils.parseArrayOf(value["dc:relation"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
subject: require_utils.parseSingularOf(value["dc:subject"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
22
|
-
description: require_utils.parseSingularOf(value["dc:description"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
23
|
-
publisher: require_utils.parseSingularOf(value["dc:publisher"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
24
|
-
contributor: require_utils.parseSingularOf(value["dc:contributor"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
25
|
-
date: require_utils.parseSingularOf(value["dc:date"], (value) => require_utils.parseDate(require_utils.retrieveText(value))),
|
|
26
|
-
type: require_utils.parseSingularOf(value["dc:type"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
27
|
-
format: require_utils.parseSingularOf(value["dc:format"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
28
|
-
identifier: require_utils.parseSingularOf(value["dc:identifier"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
29
|
-
source: require_utils.parseSingularOf(value["dc:source"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
30
|
-
language: require_utils.parseSingularOf(value["dc:language"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
31
|
-
relation: require_utils.parseSingularOf(value["dc:relation"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
32
|
-
coverage: require_utils.parseSingularOf(value["dc:coverage"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
33
|
-
rights: require_utils.parseSingularOf(value["dc:rights"], (value) => require_utils.parseString(require_utils.retrieveText(value)))
|
|
19
|
+
coverage: require_utils.parseArrayOf(value["dc:coverage"], (value) => require_utils.parseString(require_utils.retrieveText(value))),
|
|
20
|
+
rights: require_utils.parseArrayOf(value["dc:rights"], (value) => require_utils.parseString(require_utils.retrieveText(value)))
|
|
34
21
|
});
|
|
35
22
|
};
|
|
36
23
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isObject, parseArrayOf, parseDate,
|
|
1
|
+
import { isObject, parseArrayOf, parseDate, parseString, retrieveText, trimObject } from "../../../common/utils.js";
|
|
2
2
|
//#region src/namespaces/dc/parse/utils.ts
|
|
3
|
-
const retrieveItemOrFeed = (value) => {
|
|
3
|
+
const retrieveItemOrFeed = (value, options) => {
|
|
4
4
|
if (!isObject(value)) return;
|
|
5
5
|
return trimObject({
|
|
6
6
|
titles: parseArrayOf(value["dc:title"], (value) => parseString(retrieveText(value))),
|
|
@@ -9,28 +9,15 @@ const retrieveItemOrFeed = (value) => {
|
|
|
9
9
|
descriptions: parseArrayOf(value["dc:description"], (value) => parseString(retrieveText(value))),
|
|
10
10
|
publishers: parseArrayOf(value["dc:publisher"], (value) => parseString(retrieveText(value))),
|
|
11
11
|
contributors: parseArrayOf(value["dc:contributor"], (value) => parseString(retrieveText(value))),
|
|
12
|
-
dates: parseArrayOf(value["dc:date"], (value) => parseDate(retrieveText(value))),
|
|
12
|
+
dates: parseArrayOf(value["dc:date"], (value) => parseDate(retrieveText(value), options?.parseDateFn)),
|
|
13
13
|
types: parseArrayOf(value["dc:type"], (value) => parseString(retrieveText(value))),
|
|
14
14
|
formats: parseArrayOf(value["dc:format"], (value) => parseString(retrieveText(value))),
|
|
15
15
|
identifiers: parseArrayOf(value["dc:identifier"], (value) => parseString(retrieveText(value))),
|
|
16
16
|
sources: parseArrayOf(value["dc:source"], (value) => parseString(retrieveText(value))),
|
|
17
17
|
languages: parseArrayOf(value["dc:language"], (value) => parseString(retrieveText(value))),
|
|
18
18
|
relations: parseArrayOf(value["dc:relation"], (value) => parseString(retrieveText(value))),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
subject: parseSingularOf(value["dc:subject"], (value) => parseString(retrieveText(value))),
|
|
22
|
-
description: parseSingularOf(value["dc:description"], (value) => parseString(retrieveText(value))),
|
|
23
|
-
publisher: parseSingularOf(value["dc:publisher"], (value) => parseString(retrieveText(value))),
|
|
24
|
-
contributor: parseSingularOf(value["dc:contributor"], (value) => parseString(retrieveText(value))),
|
|
25
|
-
date: parseSingularOf(value["dc:date"], (value) => parseDate(retrieveText(value))),
|
|
26
|
-
type: parseSingularOf(value["dc:type"], (value) => parseString(retrieveText(value))),
|
|
27
|
-
format: parseSingularOf(value["dc:format"], (value) => parseString(retrieveText(value))),
|
|
28
|
-
identifier: parseSingularOf(value["dc:identifier"], (value) => parseString(retrieveText(value))),
|
|
29
|
-
source: parseSingularOf(value["dc:source"], (value) => parseString(retrieveText(value))),
|
|
30
|
-
language: parseSingularOf(value["dc:language"], (value) => parseString(retrieveText(value))),
|
|
31
|
-
relation: parseSingularOf(value["dc:relation"], (value) => parseString(retrieveText(value))),
|
|
32
|
-
coverage: parseSingularOf(value["dc:coverage"], (value) => parseString(retrieveText(value))),
|
|
33
|
-
rights: parseSingularOf(value["dc:rights"], (value) => parseString(retrieveText(value)))
|
|
19
|
+
coverage: parseArrayOf(value["dc:coverage"], (value) => parseString(retrieveText(value))),
|
|
20
|
+
rights: parseArrayOf(value["dc:rights"], (value) => parseString(retrieveText(value)))
|
|
34
21
|
});
|
|
35
22
|
};
|
|
36
23
|
//#endregion
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { DateLike } from "../../../common/types.cjs";
|
|
2
|
-
|
|
3
1
|
//#region src/namespaces/dcterms/common/types.d.ts
|
|
4
2
|
declare namespace DcTermsNs {
|
|
5
|
-
type ItemOrFeed<TDate
|
|
3
|
+
type ItemOrFeed<TDate> = {
|
|
6
4
|
abstracts?: Array<string>;
|
|
5
|
+
accessRights?: Array<string>;
|
|
7
6
|
accrualMethods?: Array<string>;
|
|
8
7
|
accrualPeriodicities?: Array<string>;
|
|
9
8
|
accrualPolicies?: Array<string>;
|
|
10
9
|
alternatives?: Array<string>;
|
|
11
10
|
audiences?: Array<string>;
|
|
11
|
+
available?: Array<TDate>;
|
|
12
12
|
bibliographicCitations?: Array<string>;
|
|
13
|
+
conformsTo?: Array<string>;
|
|
13
14
|
contributors?: Array<string>;
|
|
14
15
|
coverages?: Array<string>;
|
|
16
|
+
created?: Array<TDate>;
|
|
15
17
|
creators?: Array<string>;
|
|
18
|
+
dateAccepted?: Array<TDate>;
|
|
19
|
+
dateCopyrighted?: Array<TDate>;
|
|
16
20
|
dates?: Array<TDate>;
|
|
21
|
+
dateSubmitted?: Array<TDate>;
|
|
17
22
|
descriptions?: Array<string>;
|
|
18
23
|
educationLevels?: Array<string>;
|
|
19
24
|
extents?: Array<string>;
|
|
@@ -23,75 +28,34 @@ declare namespace DcTermsNs {
|
|
|
23
28
|
hasVersions?: Array<string>;
|
|
24
29
|
identifiers?: Array<string>;
|
|
25
30
|
instructionalMethods?: Array<string>;
|
|
31
|
+
isFormatOf?: Array<string>;
|
|
32
|
+
isPartOf?: Array<string>;
|
|
33
|
+
isReferencedBy?: Array<string>;
|
|
34
|
+
isReplacedBy?: Array<string>;
|
|
35
|
+
isRequiredBy?: Array<string>;
|
|
36
|
+
issued?: Array<TDate>;
|
|
37
|
+
isVersionOf?: Array<string>;
|
|
26
38
|
languages?: Array<string>;
|
|
27
39
|
licenses?: Array<string>;
|
|
28
40
|
mediators?: Array<string>;
|
|
29
41
|
mediums?: Array<string>;
|
|
42
|
+
modified?: Array<TDate>;
|
|
30
43
|
provenances?: Array<string>;
|
|
31
44
|
publishers?: Array<string>;
|
|
45
|
+
references?: Array<string>;
|
|
32
46
|
relations?: Array<string>;
|
|
47
|
+
replaces?: Array<string>;
|
|
48
|
+
requires?: Array<string>;
|
|
49
|
+
rights?: Array<string>;
|
|
33
50
|
rightsHolders?: Array<string>;
|
|
34
51
|
sources?: Array<string>;
|
|
35
52
|
spatials?: Array<string>;
|
|
36
53
|
subjects?: Array<string>;
|
|
54
|
+
tableOfContents?: Array<string>;
|
|
37
55
|
temporals?: Array<string>;
|
|
38
56
|
titles?: Array<string>;
|
|
39
|
-
types?: Array<string>;
|
|
40
|
-
|
|
41
|
-
accessRights?: string; /** @deprecated Use `accrualMethods` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
42
|
-
accrualMethod?: string; /** @deprecated Use `accrualPeriodicities` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
43
|
-
accrualPeriodicity?: string; /** @deprecated Use `accrualPolicies` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
44
|
-
accrualPolicy?: string; /** @deprecated Use `alternatives` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
45
|
-
alternative?: string; /** @deprecated Use `audiences` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
46
|
-
audience?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
47
|
-
available?: TDate; /** @deprecated Use `bibliographicCitations` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
48
|
-
bibliographicCitation?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
49
|
-
conformsTo?: string; /** @deprecated Use `contributors` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
50
|
-
contributor?: string; /** @deprecated Use `coverages` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
51
|
-
coverage?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
52
|
-
created?: TDate; /** @deprecated Use `creators` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
53
|
-
creator?: string; /** @deprecated Use `dates` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
54
|
-
date?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
55
|
-
dateAccepted?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
56
|
-
dateCopyrighted?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
57
|
-
dateSubmitted?: TDate; /** @deprecated Use `descriptions` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
58
|
-
description?: string; /** @deprecated Use `educationLevels` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
59
|
-
educationLevel?: string; /** @deprecated Use `extents` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
60
|
-
extent?: string; /** @deprecated Use `formats` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
61
|
-
format?: string; /** @deprecated Use `hasFormats` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
62
|
-
hasFormat?: string; /** @deprecated Use `hasParts` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
63
|
-
hasPart?: string; /** @deprecated Use `hasVersions` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
64
|
-
hasVersion?: string; /** @deprecated Use `identifiers` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
65
|
-
identifier?: string; /** @deprecated Use `instructionalMethods` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
66
|
-
instructionalMethod?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
67
|
-
isFormatOf?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
68
|
-
isPartOf?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
69
|
-
isReferencedBy?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
70
|
-
isReplacedBy?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
71
|
-
isRequiredBy?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
72
|
-
issued?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
73
|
-
isVersionOf?: string; /** @deprecated Use `languages` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
74
|
-
language?: string; /** @deprecated Use `licenses` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
75
|
-
license?: string; /** @deprecated Use `mediators` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
76
|
-
mediator?: string; /** @deprecated Use `mediums` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
77
|
-
medium?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
78
|
-
modified?: TDate; /** @deprecated Use `provenances` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
79
|
-
provenance?: string; /** @deprecated Use `publishers` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
80
|
-
publisher?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
81
|
-
references?: string; /** @deprecated Use `relations` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
82
|
-
relation?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
83
|
-
replaces?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
84
|
-
requires?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
85
|
-
rights?: string; /** @deprecated Use `rightsHolders` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
86
|
-
rightsHolder?: string; /** @deprecated Use `sources` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
87
|
-
source?: string; /** @deprecated Use `spatials` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
88
|
-
spatial?: string; /** @deprecated Use `subjects` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
89
|
-
subject?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
90
|
-
tableOfContents?: string; /** @deprecated Use `temporals` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
91
|
-
temporal?: string; /** @deprecated Use `titles` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
92
|
-
title?: string; /** @deprecated Use `types` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
93
|
-
type?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
94
|
-
valid?: TDate;
|
|
57
|
+
types?: Array<string>;
|
|
58
|
+
valid?: Array<TDate>;
|
|
95
59
|
};
|
|
96
60
|
}
|
|
97
61
|
//#endregion
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { DateLike } from "../../../common/types.js";
|
|
2
|
-
|
|
3
1
|
//#region src/namespaces/dcterms/common/types.d.ts
|
|
4
2
|
declare namespace DcTermsNs {
|
|
5
|
-
type ItemOrFeed<TDate
|
|
3
|
+
type ItemOrFeed<TDate> = {
|
|
6
4
|
abstracts?: Array<string>;
|
|
5
|
+
accessRights?: Array<string>;
|
|
7
6
|
accrualMethods?: Array<string>;
|
|
8
7
|
accrualPeriodicities?: Array<string>;
|
|
9
8
|
accrualPolicies?: Array<string>;
|
|
10
9
|
alternatives?: Array<string>;
|
|
11
10
|
audiences?: Array<string>;
|
|
11
|
+
available?: Array<TDate>;
|
|
12
12
|
bibliographicCitations?: Array<string>;
|
|
13
|
+
conformsTo?: Array<string>;
|
|
13
14
|
contributors?: Array<string>;
|
|
14
15
|
coverages?: Array<string>;
|
|
16
|
+
created?: Array<TDate>;
|
|
15
17
|
creators?: Array<string>;
|
|
18
|
+
dateAccepted?: Array<TDate>;
|
|
19
|
+
dateCopyrighted?: Array<TDate>;
|
|
16
20
|
dates?: Array<TDate>;
|
|
21
|
+
dateSubmitted?: Array<TDate>;
|
|
17
22
|
descriptions?: Array<string>;
|
|
18
23
|
educationLevels?: Array<string>;
|
|
19
24
|
extents?: Array<string>;
|
|
@@ -23,75 +28,34 @@ declare namespace DcTermsNs {
|
|
|
23
28
|
hasVersions?: Array<string>;
|
|
24
29
|
identifiers?: Array<string>;
|
|
25
30
|
instructionalMethods?: Array<string>;
|
|
31
|
+
isFormatOf?: Array<string>;
|
|
32
|
+
isPartOf?: Array<string>;
|
|
33
|
+
isReferencedBy?: Array<string>;
|
|
34
|
+
isReplacedBy?: Array<string>;
|
|
35
|
+
isRequiredBy?: Array<string>;
|
|
36
|
+
issued?: Array<TDate>;
|
|
37
|
+
isVersionOf?: Array<string>;
|
|
26
38
|
languages?: Array<string>;
|
|
27
39
|
licenses?: Array<string>;
|
|
28
40
|
mediators?: Array<string>;
|
|
29
41
|
mediums?: Array<string>;
|
|
42
|
+
modified?: Array<TDate>;
|
|
30
43
|
provenances?: Array<string>;
|
|
31
44
|
publishers?: Array<string>;
|
|
45
|
+
references?: Array<string>;
|
|
32
46
|
relations?: Array<string>;
|
|
47
|
+
replaces?: Array<string>;
|
|
48
|
+
requires?: Array<string>;
|
|
49
|
+
rights?: Array<string>;
|
|
33
50
|
rightsHolders?: Array<string>;
|
|
34
51
|
sources?: Array<string>;
|
|
35
52
|
spatials?: Array<string>;
|
|
36
53
|
subjects?: Array<string>;
|
|
54
|
+
tableOfContents?: Array<string>;
|
|
37
55
|
temporals?: Array<string>;
|
|
38
56
|
titles?: Array<string>;
|
|
39
|
-
types?: Array<string>;
|
|
40
|
-
|
|
41
|
-
accessRights?: string; /** @deprecated Use `accrualMethods` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
42
|
-
accrualMethod?: string; /** @deprecated Use `accrualPeriodicities` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
43
|
-
accrualPeriodicity?: string; /** @deprecated Use `accrualPolicies` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
44
|
-
accrualPolicy?: string; /** @deprecated Use `alternatives` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
45
|
-
alternative?: string; /** @deprecated Use `audiences` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
46
|
-
audience?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
47
|
-
available?: TDate; /** @deprecated Use `bibliographicCitations` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
48
|
-
bibliographicCitation?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
49
|
-
conformsTo?: string; /** @deprecated Use `contributors` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
50
|
-
contributor?: string; /** @deprecated Use `coverages` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
51
|
-
coverage?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
52
|
-
created?: TDate; /** @deprecated Use `creators` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
53
|
-
creator?: string; /** @deprecated Use `dates` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
54
|
-
date?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
55
|
-
dateAccepted?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
56
|
-
dateCopyrighted?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
57
|
-
dateSubmitted?: TDate; /** @deprecated Use `descriptions` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
58
|
-
description?: string; /** @deprecated Use `educationLevels` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
59
|
-
educationLevel?: string; /** @deprecated Use `extents` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
60
|
-
extent?: string; /** @deprecated Use `formats` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
61
|
-
format?: string; /** @deprecated Use `hasFormats` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
62
|
-
hasFormat?: string; /** @deprecated Use `hasParts` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
63
|
-
hasPart?: string; /** @deprecated Use `hasVersions` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
64
|
-
hasVersion?: string; /** @deprecated Use `identifiers` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
65
|
-
identifier?: string; /** @deprecated Use `instructionalMethods` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
66
|
-
instructionalMethod?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
67
|
-
isFormatOf?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
68
|
-
isPartOf?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
69
|
-
isReferencedBy?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
70
|
-
isReplacedBy?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
71
|
-
isRequiredBy?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
72
|
-
issued?: TDate; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
73
|
-
isVersionOf?: string; /** @deprecated Use `languages` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
74
|
-
language?: string; /** @deprecated Use `licenses` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
75
|
-
license?: string; /** @deprecated Use `mediators` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
76
|
-
mediator?: string; /** @deprecated Use `mediums` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
77
|
-
medium?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
78
|
-
modified?: TDate; /** @deprecated Use `provenances` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
79
|
-
provenance?: string; /** @deprecated Use `publishers` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
80
|
-
publisher?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
81
|
-
references?: string; /** @deprecated Use `relations` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
82
|
-
relation?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
83
|
-
replaces?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
84
|
-
requires?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
85
|
-
rights?: string; /** @deprecated Use `rightsHolders` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
86
|
-
rightsHolder?: string; /** @deprecated Use `sources` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
87
|
-
source?: string; /** @deprecated Use `spatials` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
88
|
-
spatial?: string; /** @deprecated Use `subjects` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
89
|
-
subject?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
90
|
-
tableOfContents?: string; /** @deprecated Use `temporals` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
91
|
-
temporal?: string; /** @deprecated Use `titles` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
92
|
-
title?: string; /** @deprecated Use `types` (array) instead. Dublin Core Terms fields are repeatable. */
|
|
93
|
-
type?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
|
|
94
|
-
valid?: TDate;
|
|
57
|
+
types?: Array<string>;
|
|
58
|
+
valid?: Array<TDate>;
|
|
95
59
|
};
|
|
96
60
|
}
|
|
97
61
|
//#endregion
|