feedsmith 2.8.0 → 2.9.0

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.
Files changed (58) hide show
  1. package/README.md +8 -1
  2. package/dist/common/parse.cjs +3 -3
  3. package/dist/common/parse.js +11 -11
  4. package/dist/common/types.d.cts +2 -1
  5. package/dist/common/types.d.ts +2 -1
  6. package/dist/common/utils.cjs +24 -12
  7. package/dist/common/utils.js +24 -12
  8. package/dist/feeds/atom/common/types.d.cts +0 -1
  9. package/dist/feeds/atom/common/types.d.ts +0 -1
  10. package/dist/feeds/atom/detect/index.cjs +2 -1
  11. package/dist/feeds/atom/detect/index.js +2 -1
  12. package/dist/feeds/atom/generate/index.cjs +1 -1
  13. package/dist/feeds/atom/generate/index.js +1 -1
  14. package/dist/feeds/atom/generate/utils.cjs +10 -10
  15. package/dist/feeds/atom/generate/utils.js +29 -29
  16. package/dist/feeds/atom/parse/index.cjs +1 -1
  17. package/dist/feeds/atom/parse/index.js +1 -1
  18. package/dist/feeds/atom/parse/utils.cjs +3 -11
  19. package/dist/feeds/atom/parse/utils.js +17 -25
  20. package/dist/feeds/json/parse/index.cjs +1 -1
  21. package/dist/feeds/json/parse/index.js +1 -1
  22. package/dist/feeds/rdf/detect/index.cjs +13 -2
  23. package/dist/feeds/rdf/detect/index.js +13 -2
  24. package/dist/feeds/rdf/parse/index.cjs +1 -1
  25. package/dist/feeds/rdf/parse/index.js +1 -1
  26. package/dist/feeds/rdf/parse/utils.cjs +2 -2
  27. package/dist/feeds/rdf/parse/utils.js +12 -12
  28. package/dist/feeds/rss/generate/index.cjs +1 -1
  29. package/dist/feeds/rss/generate/index.js +1 -1
  30. package/dist/feeds/rss/generate/utils.cjs +5 -5
  31. package/dist/feeds/rss/generate/utils.js +54 -54
  32. package/dist/feeds/rss/parse/index.cjs +1 -1
  33. package/dist/feeds/rss/parse/index.js +1 -1
  34. package/dist/feeds/rss/parse/utils.cjs +2 -2
  35. package/dist/feeds/rss/parse/utils.js +51 -51
  36. package/dist/namespaces/atom/common/types.d.cts +4 -3
  37. package/dist/namespaces/atom/common/types.d.ts +4 -3
  38. package/dist/namespaces/atom/generate/utils.cjs +4 -4
  39. package/dist/namespaces/atom/generate/utils.js +6 -6
  40. package/dist/namespaces/dc/common/types.d.cts +15 -30
  41. package/dist/namespaces/dc/common/types.d.ts +15 -30
  42. package/dist/namespaces/dcterms/common/types.d.cts +55 -110
  43. package/dist/namespaces/dcterms/common/types.d.ts +55 -110
  44. package/dist/namespaces/itunes/common/types.d.cts +7 -14
  45. package/dist/namespaces/itunes/common/types.d.ts +7 -14
  46. package/dist/namespaces/media/common/types.d.cts +1 -2
  47. package/dist/namespaces/media/common/types.d.ts +1 -2
  48. package/dist/namespaces/podcast/common/types.d.cts +9 -12
  49. package/dist/namespaces/podcast/common/types.d.ts +9 -12
  50. package/dist/namespaces/podcast/generate/utils.cjs +5 -2
  51. package/dist/namespaces/podcast/generate/utils.js +5 -2
  52. package/dist/namespaces/podcast/parse/utils.cjs +5 -2
  53. package/dist/namespaces/podcast/parse/utils.js +5 -2
  54. package/dist/namespaces/prism/common/types.d.cts +8 -16
  55. package/dist/namespaces/prism/common/types.d.ts +8 -16
  56. package/dist/opml/generate/index.cjs +1 -1
  57. package/dist/opml/generate/index.js +1 -1
  58. package/package.json +6 -8
@@ -6,27 +6,27 @@ import { retrieveItemOrFeed as retrieveItemOrFeed$2 } from "../../../namespaces/
6
6
  import { retrieveItemOrFeed as retrieveItemOrFeed$3 } from "../../../namespaces/dcterms/parse/utils.js";
7
7
  import { retrieveItemOrFeed as retrieveItemOrFeed$4 } from "../../../namespaces/geo/parse/utils.js";
8
8
  import { retrieveItemOrFeed as retrieveItemOrFeed$5 } from "../../../namespaces/georss/parse/utils.js";
9
- import { retrieveFeed as retrieveFeed$5, retrieveItem as retrieveItem$2 } from "../../../namespaces/googleplay/parse/utils.js";
10
- import { retrieveFeed as retrieveFeed$6, retrieveItem as retrieveItem$3 } from "../../../namespaces/itunes/parse/utils.js";
9
+ import { retrieveFeed as retrieveFeed$2, retrieveItem } from "../../../namespaces/googleplay/parse/utils.js";
10
+ import { retrieveFeed as retrieveFeed$3, retrieveItem as retrieveItem$1 } from "../../../namespaces/itunes/parse/utils.js";
11
11
  import { retrieveItemOrFeed as retrieveItemOrFeed$6 } from "../../../namespaces/media/parse/utils.js";
12
- import { retrieveFeed as retrieveFeed$7 } from "../../../namespaces/opensearch/parse/utils.js";
13
- import { retrieveFeed as retrieveFeed$8, retrieveItem as retrieveItem$4 } from "../../../namespaces/pingback/parse/utils.js";
14
- import { retrieveItem as retrieveItem$7 } from "../../../namespaces/psc/parse/utils.js";
15
- import { retrieveItem as retrieveItem$9 } from "../../../namespaces/slash/parse/utils.js";
16
- import { retrieveFeed as retrieveFeed$14 } from "../../../namespaces/sy/parse/utils.js";
17
- import { retrieveItem as retrieveItem$12 } from "../../../namespaces/thr/parse/utils.js";
18
- import { retrieveItem as retrieveItem$13 } from "../../../namespaces/trackback/parse/utils.js";
19
- import { retrieveItem as retrieveItem$14 } from "../../../namespaces/wfw/parse/utils.js";
20
- import { retrieveEntry, retrieveFeed as retrieveFeed$2 } from "../../../namespaces/atom/parse/utils.js";
21
- import { retrieveItem as retrieveItem$1 } from "../../../namespaces/content/parse/utils.js";
22
- import { retrieveFeed, retrieveItem } from "../../../namespaces/acast/parse/utils.js";
23
- import { retrieveFeed as retrieveFeed$3 } from "../../../namespaces/blogchannel/parse/utils.js";
24
- import { retrieveFeed as retrieveFeed$4 } from "../../../namespaces/feedpress/parse/utils.js";
25
- import { retrieveFeed as retrieveFeed$9, retrieveItem as retrieveItem$5 } from "../../../namespaces/podcast/parse/utils.js";
26
- import { retrieveFeed as retrieveFeed$10, retrieveItem as retrieveItem$6 } from "../../../namespaces/prism/parse/utils.js";
27
- import { retrieveFeed as retrieveFeed$11, retrieveItem as retrieveItem$8 } from "../../../namespaces/rawvoice/parse/utils.js";
28
- import { retrieveFeed as retrieveFeed$12, retrieveItem as retrieveItem$10 } from "../../../namespaces/source/parse/utils.js";
29
- import { retrieveFeed as retrieveFeed$13, retrieveItem as retrieveItem$11 } from "../../../namespaces/spotify/parse/utils.js";
12
+ import { retrieveFeed as retrieveFeed$4 } from "../../../namespaces/opensearch/parse/utils.js";
13
+ import { retrieveFeed as retrieveFeed$5, retrieveItem as retrieveItem$2 } from "../../../namespaces/pingback/parse/utils.js";
14
+ import { retrieveItem as retrieveItem$3 } from "../../../namespaces/psc/parse/utils.js";
15
+ import { retrieveItem as retrieveItem$4 } from "../../../namespaces/slash/parse/utils.js";
16
+ import { retrieveFeed as retrieveFeed$6 } from "../../../namespaces/sy/parse/utils.js";
17
+ import { retrieveItem as retrieveItem$5 } from "../../../namespaces/thr/parse/utils.js";
18
+ import { retrieveItem as retrieveItem$6 } from "../../../namespaces/trackback/parse/utils.js";
19
+ import { retrieveItem as retrieveItem$7 } from "../../../namespaces/wfw/parse/utils.js";
20
+ import { retrieveEntry, retrieveFeed as retrieveFeed$7 } from "../../../namespaces/atom/parse/utils.js";
21
+ import { retrieveItem as retrieveItem$8 } from "../../../namespaces/content/parse/utils.js";
22
+ import { retrieveFeed as retrieveFeed$8, retrieveItem as retrieveItem$9 } from "../../../namespaces/acast/parse/utils.js";
23
+ import { retrieveFeed as retrieveFeed$9 } from "../../../namespaces/blogchannel/parse/utils.js";
24
+ import { retrieveFeed as retrieveFeed$10 } from "../../../namespaces/feedpress/parse/utils.js";
25
+ import { retrieveFeed as retrieveFeed$11, retrieveItem as retrieveItem$10 } from "../../../namespaces/podcast/parse/utils.js";
26
+ import { retrieveFeed as retrieveFeed$12, retrieveItem as retrieveItem$11 } from "../../../namespaces/prism/parse/utils.js";
27
+ import { retrieveFeed as retrieveFeed$13, retrieveItem as retrieveItem$12 } from "../../../namespaces/rawvoice/parse/utils.js";
28
+ import { retrieveFeed as retrieveFeed$14, retrieveItem as retrieveItem$13 } from "../../../namespaces/source/parse/utils.js";
29
+ import { retrieveFeed as retrieveFeed$15, retrieveItem as retrieveItem$14 } from "../../../namespaces/spotify/parse/utils.js";
30
30
 
31
31
  //#region src/feeds/rss/parse/utils.ts
32
32
  const parsePerson = (value) => {
@@ -111,26 +111,26 @@ const parseItem = (value) => {
111
111
  atom: namespaces.has("atom") ? retrieveEntry(value) : void 0,
112
112
  cc: namespaces.has("cc") ? retrieveItemOrFeed(value) : void 0,
113
113
  dc: namespaces.has("dc") ? retrieveItemOrFeed$2(value) : void 0,
114
- content: namespaces.has("content") ? retrieveItem$1(value) : void 0,
114
+ content: namespaces.has("content") ? retrieveItem$8(value) : void 0,
115
115
  creativeCommons: namespaces.has("creativecommons") ? retrieveItemOrFeed$1(value) : void 0,
116
- slash: namespaces.has("slash") ? retrieveItem$9(value) : void 0,
117
- itunes: namespaces.has("itunes") ? retrieveItem$3(value) : void 0,
118
- podcast: namespaces.has("podcast") ? retrieveItem$5(value) : void 0,
119
- psc: namespaces.has("psc") ? retrieveItem$7(value) : void 0,
120
- googleplay: namespaces.has("googleplay") ? retrieveItem$2(value) : void 0,
116
+ slash: namespaces.has("slash") ? retrieveItem$4(value) : void 0,
117
+ itunes: namespaces.has("itunes") ? retrieveItem$1(value) : void 0,
118
+ podcast: namespaces.has("podcast") ? retrieveItem$10(value) : void 0,
119
+ psc: namespaces.has("psc") ? retrieveItem$3(value) : void 0,
120
+ googleplay: namespaces.has("googleplay") ? retrieveItem(value) : void 0,
121
121
  media: namespaces.has("media") ? retrieveItemOrFeed$6(value) : void 0,
122
122
  georss: namespaces.has("georss") ? retrieveItemOrFeed$5(value) : void 0,
123
123
  geo: namespaces.has("geo") ? retrieveItemOrFeed$4(value) : void 0,
124
- thr: namespaces.has("thr") ? retrieveItem$12(value) : void 0,
124
+ thr: namespaces.has("thr") ? retrieveItem$5(value) : void 0,
125
125
  dcterms: namespaces.has("dcterms") ? retrieveItemOrFeed$3(value) : void 0,
126
- prism: namespaces.has("prism") ? retrieveItem$6(value) : void 0,
127
- wfw: namespaces.has("wfw") ? retrieveItem$14(value) : void 0,
128
- sourceNs: namespaces.has("source") ? retrieveItem$10(value) : void 0,
129
- rawvoice: namespaces.has("rawvoice") ? retrieveItem$8(value) : void 0,
130
- spotify: namespaces.has("spotify") ? retrieveItem$11(value) : void 0,
131
- pingback: namespaces.has("pingback") ? retrieveItem$4(value) : void 0,
132
- trackback: namespaces.has("trackback") ? retrieveItem$13(value) : void 0,
133
- acast: namespaces.has("acast") ? retrieveItem(value) : void 0
126
+ prism: namespaces.has("prism") ? retrieveItem$11(value) : void 0,
127
+ wfw: namespaces.has("wfw") ? retrieveItem$7(value) : void 0,
128
+ sourceNs: namespaces.has("source") ? retrieveItem$13(value) : void 0,
129
+ rawvoice: namespaces.has("rawvoice") ? retrieveItem$12(value) : void 0,
130
+ spotify: namespaces.has("spotify") ? retrieveItem$14(value) : void 0,
131
+ pingback: namespaces.has("pingback") ? retrieveItem$2(value) : void 0,
132
+ trackback: namespaces.has("trackback") ? retrieveItem$6(value) : void 0,
133
+ acast: namespaces.has("acast") ? retrieveItem$9(value) : void 0
134
134
  });
135
135
  };
136
136
  const parseFeed = (value, options) => {
@@ -157,33 +157,33 @@ const parseFeed = (value, options) => {
157
157
  skipHours: parseSingularOf(value.skiphours, parseSkipHours),
158
158
  skipDays: parseSingularOf(value.skipdays, parseSkipDays),
159
159
  items: parseArrayOf(value.item, parseItem, options?.maxItems),
160
- atom: namespaces.has("atom") ? retrieveFeed$2(value) : void 0,
160
+ atom: namespaces.has("atom") ? retrieveFeed$7(value) : void 0,
161
161
  cc: namespaces.has("cc") ? retrieveItemOrFeed(value) : void 0,
162
162
  dc: namespaces.has("dc") ? retrieveItemOrFeed$2(value) : void 0,
163
- sy: namespaces.has("sy") ? retrieveFeed$14(value) : void 0,
164
- itunes: namespaces.has("itunes") ? retrieveFeed$6(value) : void 0,
165
- podcast: namespaces.has("podcast") ? retrieveFeed$9(value) : void 0,
166
- googleplay: namespaces.has("googleplay") ? retrieveFeed$5(value) : void 0,
163
+ sy: namespaces.has("sy") ? retrieveFeed$6(value) : void 0,
164
+ itunes: namespaces.has("itunes") ? retrieveFeed$3(value) : void 0,
165
+ podcast: namespaces.has("podcast") ? retrieveFeed$11(value) : void 0,
166
+ googleplay: namespaces.has("googleplay") ? retrieveFeed$2(value) : void 0,
167
167
  media: namespaces.has("media") ? retrieveItemOrFeed$6(value) : void 0,
168
168
  georss: namespaces.has("georss") ? retrieveItemOrFeed$5(value) : void 0,
169
169
  geo: namespaces.has("geo") ? retrieveItemOrFeed$4(value) : void 0,
170
170
  dcterms: namespaces.has("dcterms") ? retrieveItemOrFeed$3(value) : void 0,
171
- prism: namespaces.has("prism") ? retrieveFeed$10(value) : void 0,
171
+ prism: namespaces.has("prism") ? retrieveFeed$12(value) : void 0,
172
172
  creativeCommons: namespaces.has("creativecommons") ? retrieveItemOrFeed$1(value) : void 0,
173
- feedpress: namespaces.has("feedpress") ? retrieveFeed$4(value) : void 0,
174
- opensearch: namespaces.has("opensearch") ? retrieveFeed$7(value) : void 0,
173
+ feedpress: namespaces.has("feedpress") ? retrieveFeed$10(value) : void 0,
174
+ opensearch: namespaces.has("opensearch") ? retrieveFeed$4(value) : void 0,
175
175
  admin: namespaces.has("admin") ? retrieveFeed$1(value) : void 0,
176
- sourceNs: namespaces.has("source") ? retrieveFeed$12(value) : void 0,
177
- blogChannel: namespaces.has("blogchannel") ? retrieveFeed$3(value) : void 0,
178
- rawvoice: namespaces.has("rawvoice") ? retrieveFeed$11(value) : void 0,
179
- spotify: namespaces.has("spotify") ? retrieveFeed$13(value) : void 0,
180
- pingback: namespaces.has("pingback") ? retrieveFeed$8(value) : void 0,
181
- acast: namespaces.has("acast") ? retrieveFeed(value) : void 0
176
+ sourceNs: namespaces.has("source") ? retrieveFeed$14(value) : void 0,
177
+ blogChannel: namespaces.has("blogchannel") ? retrieveFeed$9(value) : void 0,
178
+ rawvoice: namespaces.has("rawvoice") ? retrieveFeed$13(value) : void 0,
179
+ spotify: namespaces.has("spotify") ? retrieveFeed$15(value) : void 0,
180
+ pingback: namespaces.has("pingback") ? retrieveFeed$5(value) : void 0,
181
+ acast: namespaces.has("acast") ? retrieveFeed$8(value) : void 0
182
182
  });
183
183
  };
184
- const retrieveFeed$15 = (value, options) => {
184
+ const retrieveFeed = (value, options) => {
185
185
  return parseSingularOf(value?.rss?.channel, (value$1) => parseFeed(value$1, options));
186
186
  };
187
187
 
188
188
  //#endregion
189
- export { retrieveFeed$15 as retrieveFeed };
189
+ export { retrieveFeed };
@@ -1,10 +1,11 @@
1
- import { DateLike } from "../../../common/types.cjs";
1
+ import { DateLike, 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
+ type NsKeys = 'admin' | 'app' | 'arxiv' | 'cc' | 'creativeCommons' | 'dc' | 'dcterms' | 'geo' | 'georss' | 'googleplay' | 'itunes' | 'media' | 'opensearch' | 'pingback' | 'psc' | 'slash' | 'sy' | 'thr' | 'trackback' | 'wfw' | 'yt';
5
6
  declare namespace AtomNs {
6
- type Entry<TDate extends DateLike> = Partial<Atom.Entry<TDate>>;
7
- type Feed<TDate extends DateLike> = Partial<Atom.Feed<TDate>>;
7
+ type Entry<TDate extends DateLike> = Partial<DeepOmit<Atom.Entry<TDate>, NsKeys>>;
8
+ type Feed<TDate extends DateLike> = Partial<DeepOmit<Atom.Feed<TDate>, NsKeys>>;
8
9
  }
9
10
  //#endregion
10
11
  export { AtomNs };
@@ -1,10 +1,11 @@
1
- import { DateLike } from "../../../common/types.js";
1
+ import { DateLike, 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
+ type NsKeys = 'admin' | 'app' | 'arxiv' | 'cc' | 'creativeCommons' | 'dc' | 'dcterms' | 'geo' | 'georss' | 'googleplay' | 'itunes' | 'media' | 'opensearch' | 'pingback' | 'psc' | 'slash' | 'sy' | 'thr' | 'trackback' | 'wfw' | 'yt';
5
6
  declare namespace AtomNs {
6
- type Entry<TDate extends DateLike> = Partial<Atom.Entry<TDate>>;
7
- type Feed<TDate extends DateLike> = Partial<Atom.Feed<TDate>>;
7
+ type Entry<TDate extends DateLike> = Partial<DeepOmit<Atom.Entry<TDate>, NsKeys>>;
8
+ type Feed<TDate extends DateLike> = Partial<DeepOmit<Atom.Feed<TDate>, NsKeys>>;
8
9
  }
9
10
  //#endregion
10
11
  export { AtomNs };
@@ -1,13 +1,13 @@
1
1
  const require_utils = require('../../../feeds/atom/generate/utils.cjs');
2
2
 
3
3
  //#region src/namespaces/atom/generate/utils.ts
4
- const generateEntry$1 = (entry) => {
4
+ const generateEntry = (entry) => {
5
5
  return require_utils.generateEntry(entry, {
6
6
  prefix: "atom:",
7
7
  asNamespace: true
8
8
  });
9
9
  };
10
- const generateFeed$1 = (feed) => {
10
+ const generateFeed = (feed) => {
11
11
  return require_utils.generateFeed(feed, {
12
12
  prefix: "atom:",
13
13
  asNamespace: true
@@ -15,5 +15,5 @@ const generateFeed$1 = (feed) => {
15
15
  };
16
16
 
17
17
  //#endregion
18
- exports.generateEntry = generateEntry$1;
19
- exports.generateFeed = generateFeed$1;
18
+ exports.generateEntry = generateEntry;
19
+ exports.generateFeed = generateFeed;
@@ -1,18 +1,18 @@
1
- import { generateEntry, generateFeed } from "../../../feeds/atom/generate/utils.js";
1
+ import { generateEntry as generateEntry$1, generateFeed as generateFeed$1 } from "../../../feeds/atom/generate/utils.js";
2
2
 
3
3
  //#region src/namespaces/atom/generate/utils.ts
4
- const generateEntry$1 = (entry) => {
5
- return generateEntry(entry, {
4
+ const generateEntry = (entry) => {
5
+ return generateEntry$1(entry, {
6
6
  prefix: "atom:",
7
7
  asNamespace: true
8
8
  });
9
9
  };
10
- const generateFeed$1 = (feed) => {
11
- return generateFeed(feed, {
10
+ const generateFeed = (feed) => {
11
+ return generateFeed$1(feed, {
12
12
  prefix: "atom:",
13
13
  asNamespace: true
14
14
  })?.feed;
15
15
  };
16
16
 
17
17
  //#endregion
18
- export { generateEntry$1 as generateEntry, generateFeed$1 as generateFeed };
18
+ export { generateEntry, generateFeed };
@@ -15,36 +15,21 @@ declare namespace DcNs {
15
15
  identifiers?: Array<string>;
16
16
  sources?: Array<string>;
17
17
  languages?: Array<string>;
18
- relations?: Array<string>;
19
- /** @deprecated Use `titles` (array) instead. Dublin Core fields are repeatable. */
20
- title?: string;
21
- /** @deprecated Use `creators` (array) instead. Dublin Core fields are repeatable. */
22
- creator?: string;
23
- /** @deprecated Use `subjects` (array) instead. Dublin Core fields are repeatable. */
24
- subject?: string;
25
- /** @deprecated Use `descriptions` (array) instead. Dublin Core fields are repeatable. */
26
- description?: string;
27
- /** @deprecated Use `publishers` (array) instead. Dublin Core fields are repeatable. */
28
- publisher?: string;
29
- /** @deprecated Use `contributors` (array) instead. Dublin Core fields are repeatable. */
30
- contributor?: string;
31
- /** @deprecated Use `dates` (array) instead. Dublin Core fields are repeatable. */
32
- date?: TDate;
33
- /** @deprecated Use `types` (array) instead. Dublin Core fields are repeatable. */
34
- type?: string;
35
- /** @deprecated Use `formats` (array) instead. Dublin Core fields are repeatable. */
36
- format?: string;
37
- /** @deprecated Use `identifiers` (array) instead. Dublin Core fields are repeatable. */
38
- identifier?: string;
39
- /** @deprecated Use `sources` (array) instead. Dublin Core fields are repeatable. */
40
- source?: string;
41
- /** @deprecated Use `languages` (array) instead. Dublin Core fields are repeatable. */
42
- language?: string;
43
- /** @deprecated Use `relations` (array) instead. Dublin Core fields are repeatable. */
44
- relation?: string;
45
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
46
- coverage?: string;
47
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
18
+ relations?: Array<string>; /** @deprecated Use `titles` (array) instead. Dublin Core fields are repeatable. */
19
+ title?: string; /** @deprecated Use `creators` (array) instead. Dublin Core fields are repeatable. */
20
+ creator?: string; /** @deprecated Use `subjects` (array) instead. Dublin Core fields are repeatable. */
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. */
48
33
  rights?: string;
49
34
  };
50
35
  }
@@ -15,36 +15,21 @@ declare namespace DcNs {
15
15
  identifiers?: Array<string>;
16
16
  sources?: Array<string>;
17
17
  languages?: Array<string>;
18
- relations?: Array<string>;
19
- /** @deprecated Use `titles` (array) instead. Dublin Core fields are repeatable. */
20
- title?: string;
21
- /** @deprecated Use `creators` (array) instead. Dublin Core fields are repeatable. */
22
- creator?: string;
23
- /** @deprecated Use `subjects` (array) instead. Dublin Core fields are repeatable. */
24
- subject?: string;
25
- /** @deprecated Use `descriptions` (array) instead. Dublin Core fields are repeatable. */
26
- description?: string;
27
- /** @deprecated Use `publishers` (array) instead. Dublin Core fields are repeatable. */
28
- publisher?: string;
29
- /** @deprecated Use `contributors` (array) instead. Dublin Core fields are repeatable. */
30
- contributor?: string;
31
- /** @deprecated Use `dates` (array) instead. Dublin Core fields are repeatable. */
32
- date?: TDate;
33
- /** @deprecated Use `types` (array) instead. Dublin Core fields are repeatable. */
34
- type?: string;
35
- /** @deprecated Use `formats` (array) instead. Dublin Core fields are repeatable. */
36
- format?: string;
37
- /** @deprecated Use `identifiers` (array) instead. Dublin Core fields are repeatable. */
38
- identifier?: string;
39
- /** @deprecated Use `sources` (array) instead. Dublin Core fields are repeatable. */
40
- source?: string;
41
- /** @deprecated Use `languages` (array) instead. Dublin Core fields are repeatable. */
42
- language?: string;
43
- /** @deprecated Use `relations` (array) instead. Dublin Core fields are repeatable. */
44
- relation?: string;
45
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
46
- coverage?: string;
47
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core fields are repeatable. */
18
+ relations?: Array<string>; /** @deprecated Use `titles` (array) instead. Dublin Core fields are repeatable. */
19
+ title?: string; /** @deprecated Use `creators` (array) instead. Dublin Core fields are repeatable. */
20
+ creator?: string; /** @deprecated Use `subjects` (array) instead. Dublin Core fields are repeatable. */
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. */
48
33
  rights?: string;
49
34
  };
50
35
  }
@@ -36,116 +36,61 @@ declare namespace DcTermsNs {
36
36
  subjects?: Array<string>;
37
37
  temporals?: Array<string>;
38
38
  titles?: Array<string>;
39
- types?: Array<string>;
40
- /** @deprecated Use `abstracts` (array) instead. Dublin Core Terms fields are repeatable. */
41
- abstract?: string;
42
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
43
- accessRights?: string;
44
- /** @deprecated Use `accrualMethods` (array) instead. Dublin Core Terms fields are repeatable. */
45
- accrualMethod?: string;
46
- /** @deprecated Use `accrualPeriodicities` (array) instead. Dublin Core Terms fields are repeatable. */
47
- accrualPeriodicity?: string;
48
- /** @deprecated Use `accrualPolicies` (array) instead. Dublin Core Terms fields are repeatable. */
49
- accrualPolicy?: string;
50
- /** @deprecated Use `alternatives` (array) instead. Dublin Core Terms fields are repeatable. */
51
- alternative?: string;
52
- /** @deprecated Use `audiences` (array) instead. Dublin Core Terms fields are repeatable. */
53
- audience?: string;
54
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
55
- available?: TDate;
56
- /** @deprecated Use `bibliographicCitations` (array) instead. Dublin Core Terms fields are repeatable. */
57
- bibliographicCitation?: string;
58
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
59
- conformsTo?: string;
60
- /** @deprecated Use `contributors` (array) instead. Dublin Core Terms fields are repeatable. */
61
- contributor?: string;
62
- /** @deprecated Use `coverages` (array) instead. Dublin Core Terms fields are repeatable. */
63
- coverage?: string;
64
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
65
- created?: TDate;
66
- /** @deprecated Use `creators` (array) instead. Dublin Core Terms fields are repeatable. */
67
- creator?: string;
68
- /** @deprecated Use `dates` (array) instead. Dublin Core Terms fields are repeatable. */
69
- date?: TDate;
70
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
71
- dateAccepted?: TDate;
72
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
73
- dateCopyrighted?: TDate;
74
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
75
- dateSubmitted?: TDate;
76
- /** @deprecated Use `descriptions` (array) instead. Dublin Core Terms fields are repeatable. */
77
- description?: string;
78
- /** @deprecated Use `educationLevels` (array) instead. Dublin Core Terms fields are repeatable. */
79
- educationLevel?: string;
80
- /** @deprecated Use `extents` (array) instead. Dublin Core Terms fields are repeatable. */
81
- extent?: string;
82
- /** @deprecated Use `formats` (array) instead. Dublin Core Terms fields are repeatable. */
83
- format?: string;
84
- /** @deprecated Use `hasFormats` (array) instead. Dublin Core Terms fields are repeatable. */
85
- hasFormat?: string;
86
- /** @deprecated Use `hasParts` (array) instead. Dublin Core Terms fields are repeatable. */
87
- hasPart?: string;
88
- /** @deprecated Use `hasVersions` (array) instead. Dublin Core Terms fields are repeatable. */
89
- hasVersion?: string;
90
- /** @deprecated Use `identifiers` (array) instead. Dublin Core Terms fields are repeatable. */
91
- identifier?: string;
92
- /** @deprecated Use `instructionalMethods` (array) instead. Dublin Core Terms fields are repeatable. */
93
- instructionalMethod?: string;
94
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
95
- isFormatOf?: string;
96
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
97
- isPartOf?: string;
98
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
99
- isReferencedBy?: string;
100
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
101
- isReplacedBy?: string;
102
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
103
- isRequiredBy?: string;
104
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
105
- issued?: TDate;
106
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
107
- isVersionOf?: string;
108
- /** @deprecated Use `languages` (array) instead. Dublin Core Terms fields are repeatable. */
109
- language?: string;
110
- /** @deprecated Use `licenses` (array) instead. Dublin Core Terms fields are repeatable. */
111
- license?: string;
112
- /** @deprecated Use `mediators` (array) instead. Dublin Core Terms fields are repeatable. */
113
- mediator?: string;
114
- /** @deprecated Use `mediums` (array) instead. Dublin Core Terms fields are repeatable. */
115
- medium?: string;
116
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
117
- modified?: TDate;
118
- /** @deprecated Use `provenances` (array) instead. Dublin Core Terms fields are repeatable. */
119
- provenance?: string;
120
- /** @deprecated Use `publishers` (array) instead. Dublin Core Terms fields are repeatable. */
121
- publisher?: string;
122
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
123
- references?: string;
124
- /** @deprecated Use `relations` (array) instead. Dublin Core Terms fields are repeatable. */
125
- relation?: string;
126
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
127
- replaces?: string;
128
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
129
- requires?: string;
130
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
131
- rights?: string;
132
- /** @deprecated Use `rightsHolders` (array) instead. Dublin Core Terms fields are repeatable. */
133
- rightsHolder?: string;
134
- /** @deprecated Use `sources` (array) instead. Dublin Core Terms fields are repeatable. */
135
- source?: string;
136
- /** @deprecated Use `spatials` (array) instead. Dublin Core Terms fields are repeatable. */
137
- spatial?: string;
138
- /** @deprecated Use `subjects` (array) instead. Dublin Core Terms fields are repeatable. */
139
- subject?: string;
140
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
141
- tableOfContents?: string;
142
- /** @deprecated Use `temporals` (array) instead. Dublin Core Terms fields are repeatable. */
143
- temporal?: string;
144
- /** @deprecated Use `titles` (array) instead. Dublin Core Terms fields are repeatable. */
145
- title?: string;
146
- /** @deprecated Use `types` (array) instead. Dublin Core Terms fields are repeatable. */
147
- type?: string;
148
- /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
39
+ types?: Array<string>; /** @deprecated Use `abstracts` (array) instead. Dublin Core Terms fields are repeatable. */
40
+ abstract?: string; /** @deprecated This field type will be changed to array in the next major version of the package. Dublin Core Terms fields are repeatable. */
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. */
149
94
  valid?: TDate;
150
95
  };
151
96
  }