@piveau/dpi 0.1.0-beta.69 → 0.1.0-beta.70

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.
@@ -13,6 +13,13 @@ const u = async (a) => {
13
13
  } catch (e) {
14
14
  throw console.error("Error fetching Dataset categories:", e), e;
15
15
  }
16
+ }, h = async (a) => {
17
+ try {
18
+ let e = `${a}vocabularies/access-right`;
19
+ return (await c.get(e)).data.result.results;
20
+ } catch (e) {
21
+ throw console.error("Error fetching Dataset categories:", e), e;
22
+ }
16
23
  }, d = async (a) => {
17
24
  try {
18
25
  let e = `${a}vocabularies/iana-media-types`;
@@ -22,7 +29,7 @@ const u = async (a) => {
22
29
  } catch (e) {
23
30
  throw console.error("Error fetching file types:", e), e;
24
31
  }
25
- }, h = async (a) => {
32
+ }, p = async (a) => {
26
33
  try {
27
34
  let e = `${a}vocabularies/file-type`;
28
35
  return (await c.get(e, {
@@ -56,12 +63,12 @@ const u = async (a) => {
56
63
  } catch (l) {
57
64
  throw console.error("Error fetching Dataset categories:", l), l;
58
65
  }
59
- }, p = async (a, e) => (await n(e)).map((l) => {
66
+ }, y = async (a, e) => (await n(e)).map((l) => {
60
67
  const t = l.list.filter(
61
68
  (s) => s.alt_label && s.alt_label.de && s.alt_label.de.includes(a)
62
69
  );
63
70
  return { ...l, list: t };
64
- }).filter((l) => l.list.length > 0), y = async (a, e, r) => {
71
+ }).filter((l) => l.list.length > 0), f = async (a, e, r) => {
65
72
  let o = [];
66
73
  try {
67
74
  let l = `${e}vocabularies/${r}`;
@@ -69,7 +76,7 @@ const u = async (a) => {
69
76
  } catch (l) {
70
77
  throw console.error("Error fetching Dataset categories:", l), l;
71
78
  }
72
- }, f = async (a) => {
79
+ }, b = async (a) => {
73
80
  try {
74
81
  let e = `${a}vocabularies/planned-availability`;
75
82
  return (await c.get(e)).data.result.results.map((o) => ({
@@ -80,7 +87,7 @@ const u = async (a) => {
80
87
  } catch (e) {
81
88
  throw console.error("Error fetching planned availability:", e), e;
82
89
  }
83
- }, b = async (a, e = "de") => {
90
+ }, v = async (a, e = "de") => {
84
91
  try {
85
92
  let r = `${a}vocabularies/language`, l = (await c.get(r)).data.result.results.map((t) => ({
86
93
  value: t.id,
@@ -91,7 +98,7 @@ const u = async (a) => {
91
98
  } catch (r) {
92
99
  throw console.error("Error fetching languages:", r), r;
93
100
  }
94
- }, v = async (a, e = "de") => {
101
+ }, w = async (a, e = "de") => {
95
102
  try {
96
103
  let r = `${a}vocabularies/licence`;
97
104
  return (await c.get(r)).data.result.results.map((t) => {
@@ -106,7 +113,7 @@ const u = async (a) => {
106
113
  } catch (r) {
107
114
  throw console.error("Error fetching licenses:", r), r;
108
115
  }
109
- }, w = async (a, e = "de") => {
116
+ }, $ = async (a, e = "de") => {
110
117
  try {
111
118
  let r = `${a}vocabularies/adms`;
112
119
  return (await c.get(r)).data.result.results.filter(
@@ -119,7 +126,7 @@ const u = async (a) => {
119
126
  } catch (r) {
120
127
  throw console.error("Error fetching dataset status:", r), r;
121
128
  }
122
- }, $ = async (a, e = "en") => {
129
+ }, m = async (a, e = "en") => {
123
130
  try {
124
131
  let r = `${a}vocabularies/spdx-checksum-algorithm`;
125
132
  return (await c.get(r)).data.result.results.map((t) => ({
@@ -132,16 +139,17 @@ const u = async (a) => {
132
139
  }
133
140
  };
134
141
  export {
135
- p as filterGeocodingURIs,
136
- $ as getChecksumAlgorithms,
142
+ y as filterGeocodingURIs,
143
+ h as getAccessRights,
144
+ m as getChecksumAlgorithms,
137
145
  g as getDatasetCategories,
138
- w as getDatasetStatus,
146
+ $ as getDatasetStatus,
139
147
  d as getFileTypes,
140
- h as getFormatTypes,
148
+ p as getFormatTypes,
141
149
  n as getGeocodingURIs,
142
150
  u as getHvdCategories,
143
- b as getLanguages,
144
- v as getLicenses,
145
- y as getOptionalURIs,
146
- f as getPlannedAvailability
151
+ v as getLanguages,
152
+ w as getLicenses,
153
+ f as getOptionalURIs,
154
+ b as getPlannedAvailability
147
155
  };