@piveau/dpi 0.1.0-beta.43 → 0.1.0-beta.45

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.
@@ -16,10 +16,20 @@ const u = async (a) => {
16
16
  }, d = async (a) => {
17
17
  try {
18
18
  let e = `${a}vocabularies/iana-media-types`;
19
- const t = await c.get(e, {
19
+ const r = await c.get(e, {
20
20
  headers: { Accept: "application/json" }
21
21
  });
22
- return console.log(t.data.result), t.data.result;
22
+ return console.log(r.data.result), r.data.result;
23
+ } catch (e) {
24
+ throw console.error("Error fetching file types:", e), e;
25
+ }
26
+ }, h = async (a) => {
27
+ try {
28
+ let e = `${a}vocabularies/file-type`;
29
+ const r = await c.get(e, {
30
+ headers: { Accept: "application/json" }
31
+ });
32
+ return console.log(r.data.result), r.data.result;
23
33
  } catch (e) {
24
34
  throw console.error("Error fetching file types:", e), e;
25
35
  }
@@ -31,37 +41,37 @@ const u = async (a) => {
31
41
  "municipality-key",
32
42
  "regional-key",
33
43
  "state-key"
34
- ], t = [], l = [];
44
+ ], r = [], l = [];
35
45
  try {
36
46
  let s = `${a}vocabularies/political-geocoding-level`;
37
- const r = await c.get(s);
38
- for (let o = 0; o < r.data.result.results.length; o++)
47
+ const t = await c.get(s);
48
+ for (let o = 0; o < t.data.result.results.length; o++)
39
49
  l.push(
40
50
  await c.get(
41
51
  `${a}vocabularies/political-geocoding-` + e[o]
42
52
  )
43
- ), t.push({
53
+ ), r.push({
44
54
  headers: e[o],
45
55
  list: l[o].data.result.results
46
56
  });
47
- return t;
57
+ return r;
48
58
  } catch (s) {
49
59
  throw console.error("Error fetching Dataset categories:", s), s;
50
60
  }
51
- }, h = async (a, e) => (await n(e)).map((s) => {
52
- const r = s.list.filter(
61
+ }, p = async (a, e) => (await n(e)).map((s) => {
62
+ const t = s.list.filter(
53
63
  (o) => o.alt_label && o.alt_label.de && o.alt_label.de.includes(a)
54
64
  );
55
- return { ...s, list: r };
56
- }).filter((s) => s.list.length > 0), p = async (a, e, t) => {
65
+ return { ...s, list: t };
66
+ }).filter((s) => s.list.length > 0), y = async (a, e, r) => {
57
67
  let l = [];
58
68
  try {
59
- let s = `${e}vocabularies/${t}`;
69
+ let s = `${e}vocabularies/${r}`;
60
70
  return l = (await c.get(s)).data.result.results, l;
61
71
  } catch (s) {
62
72
  throw console.error("Error fetching Dataset categories:", s), s;
63
73
  }
64
- }, y = async (a) => {
74
+ }, b = async (a) => {
65
75
  try {
66
76
  let e = `${a}vocabularies/planned-availability`;
67
77
  return (await c.get(e)).data.result.results.map((l) => ({
@@ -72,65 +82,66 @@ const u = async (a) => {
72
82
  } catch (e) {
73
83
  throw console.error("Error fetching planned availability:", e), e;
74
84
  }
75
- }, b = async (a, e = "de") => {
85
+ }, f = async (a, e = "de") => {
76
86
  try {
77
- let t = `${a}vocabularies/language`, s = (await c.get(t)).data.result.results.map((r) => ({
78
- value: r.id,
79
- label: `${r.pref_label[e] || r.pref_label.en || r.id} (${r.id})`,
80
- uri: r.resource
87
+ let r = `${a}vocabularies/language`, s = (await c.get(r)).data.result.results.map((t) => ({
88
+ value: t.id,
89
+ label: `${t.pref_label[e] || t.pref_label.en || t.id} (${t.id})`,
90
+ uri: t.resource
81
91
  }));
82
- return s.sort((r, o) => r.label.localeCompare(o.label, e)), s;
83
- } catch (t) {
84
- throw console.error("Error fetching languages:", t), t;
92
+ return s.sort((t, o) => t.label.localeCompare(o.label, e)), s;
93
+ } catch (r) {
94
+ throw console.error("Error fetching languages:", r), r;
85
95
  }
86
- }, f = async (a, e = "de") => {
96
+ }, v = async (a, e = "de") => {
87
97
  try {
88
- let t = `${a}vocabularies/licence`;
89
- return (await c.get(t)).data.result.results.map((r) => {
98
+ let r = `${a}vocabularies/licence`;
99
+ return (await c.get(r)).data.result.results.map((t) => {
90
100
  var o;
91
101
  return {
92
- value: r.id,
93
- label: r.pref_label[e] || r.pref_label.en || r.id,
94
- homepage: ((o = r.extensions) == null ? void 0 : o.foaf_homepage) || null,
95
- uri: r.resource
102
+ value: t.id,
103
+ label: t.pref_label[e] || t.pref_label.en || t.id,
104
+ homepage: ((o = t.extensions) == null ? void 0 : o.foaf_homepage) || null,
105
+ uri: t.resource
96
106
  };
97
107
  });
98
- } catch (t) {
99
- throw console.error("Error fetching licenses:", t), t;
108
+ } catch (r) {
109
+ throw console.error("Error fetching licenses:", r), r;
100
110
  }
101
- }, v = async (a, e = "de") => {
111
+ }, w = async (a, e = "de") => {
102
112
  try {
103
- let t = `${a}vocabularies/dataset-status`;
104
- return (await c.get(t)).data.result.results.map((r) => ({
105
- value: r.id,
106
- label: r.pref_label[e] || r.pref_label.en || r.id,
107
- resource: r.resource || null
113
+ let r = `${a}vocabularies/dataset-status`;
114
+ return (await c.get(r)).data.result.results.map((t) => ({
115
+ value: t.id,
116
+ label: t.pref_label[e] || t.pref_label.en || t.id,
117
+ resource: t.resource || null
108
118
  }));
109
- } catch (t) {
110
- throw console.error("Error fetching dataset status:", t), t;
119
+ } catch (r) {
120
+ throw console.error("Error fetching dataset status:", r), r;
111
121
  }
112
- }, w = async (a, e = "en") => {
122
+ }, $ = async (a, e = "en") => {
113
123
  try {
114
- let t = `${a}vocabularies/spdx-checksum-algorithm`;
115
- return (await c.get(t)).data.result.results.map((r) => ({
116
- value: r.id,
117
- label: r.pref_label[e] || r.pref_label.en || r.id,
118
- resource: r.resource || null
124
+ let r = `${a}vocabularies/spdx-checksum-algorithm`;
125
+ return (await c.get(r)).data.result.results.map((t) => ({
126
+ value: t.id,
127
+ label: t.pref_label[e] || t.pref_label.en || t.id,
128
+ resource: t.resource || null
119
129
  }));
120
- } catch (t) {
121
- throw console.error("Error fetching checksum algorithms:", t), t;
130
+ } catch (r) {
131
+ throw console.error("Error fetching checksum algorithms:", r), r;
122
132
  }
123
133
  };
124
134
  export {
125
- h as filterGeocodingURIs,
126
- w as getChecksumAlgorithms,
135
+ p as filterGeocodingURIs,
136
+ $ as getChecksumAlgorithms,
127
137
  g as getDatasetCategories,
128
- v as getDatasetStatus,
138
+ w as getDatasetStatus,
129
139
  d as getFileTypes,
140
+ h as getFormatTypes,
130
141
  n as getGeocodingURIs,
131
142
  u as getHvdCategories,
132
- b as getLanguages,
133
- f as getLicenses,
134
- p as getOptionalURIs,
135
- y as getPlannedAvailability
143
+ f as getLanguages,
144
+ v as getLicenses,
145
+ y as getOptionalURIs,
146
+ b as getPlannedAvailability
136
147
  };
@@ -51,17 +51,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
51
51
  var i, r;
52
52
  const e = (r = (i = h.value) == null ? void 0 : i.Discoverability) == null ? void 0 : r.discoverabilityPage;
53
53
  return !e || !Array.isArray(e) ? !1 : e.filter((v) => v.id && v.label).length > 0;
54
- }), D = () => t.activeSection === "findabilityHvd" && !E.value ? (l.value = !0, !1) : (l.value = !1, !0), J = () => t.activeSection === "essentials" && p.value && !p.value.isValid ? (l.value = !0, !1) : (l.value = !1, !0), K = () => t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (l.value = !0, !1) : (l.value = !1, !0), I = () => {
55
- if (t.activeSection === "findabilityHvd")
56
- return D();
57
- if (t.activeSection === "essentials")
58
- return J();
59
- if (t.activeSection === "coverage") {
60
- debugger;
61
- return K();
62
- }
63
- return l.value = !1, !0;
64
- }, F = k(() => t.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : t.activeSection === "essentials" && p.value && !p.value.isValid ? p.value.getValidationErrorMessages() : t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), H = () => {
54
+ }), D = () => t.activeSection === "findabilityHvd" && !E.value ? (l.value = !0, !1) : (l.value = !1, !0), J = () => t.activeSection === "essentials" && p.value && !p.value.isValid ? (l.value = !0, !1) : (l.value = !1, !0), K = () => t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (l.value = !0, !1) : (l.value = !1, !0), I = () => t.activeSection === "findabilityHvd" ? D() : t.activeSection === "essentials" ? J() : t.activeSection === "coverage" ? K() : (l.value = !1, !0), F = k(() => t.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : t.activeSection === "essentials" && p.value && !p.value.isValid ? p.value.getValidationErrorMessages() : t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), H = () => {
65
55
  I() && T();
66
56
  }, T = () => {
67
57
  l.value = !1, R("close");
@@ -212,7 +202,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
212
202
  ]);
213
203
  };
214
204
  }
215
- }, Ne = /* @__PURE__ */ le(ye, [["__scopeId", "data-v-245bdb9c"]]);
205
+ }, Ne = /* @__PURE__ */ le(ye, [["__scopeId", "data-v-37fe91ab"]]);
216
206
  export {
217
207
  Ne as default
218
208
  };