@tekkare/auriga 0.2.219 → 0.2.220
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/dist/module.json
CHANGED
|
@@ -62,7 +62,6 @@ export default defineComponent({
|
|
|
62
62
|
uuids: { type: Array },
|
|
63
63
|
index: { type: String },
|
|
64
64
|
authKey: { type: String },
|
|
65
|
-
cluster: { type: String, default: "new" },
|
|
66
65
|
showCountry: { type: Boolean, default: true },
|
|
67
66
|
sourceToOpen: { type: String, default: null },
|
|
68
67
|
lang: { type: String, default: "en" }
|
|
@@ -141,8 +140,7 @@ export default defineComponent({
|
|
|
141
140
|
}
|
|
142
141
|
async function queryElastic({
|
|
143
142
|
index,
|
|
144
|
-
customQuery
|
|
145
|
-
cluster
|
|
143
|
+
customQuery
|
|
146
144
|
}) {
|
|
147
145
|
const esResults = {
|
|
148
146
|
results: [],
|
|
@@ -161,10 +159,10 @@ export default defineComponent({
|
|
|
161
159
|
sort: [],
|
|
162
160
|
track_total_hits: true
|
|
163
161
|
};
|
|
164
|
-
await fetch(
|
|
162
|
+
await fetch(`https://search.openinnovationprogram.com/${index}/_search`, {
|
|
165
163
|
method: "POST",
|
|
166
164
|
headers: {
|
|
167
|
-
|
|
165
|
+
authorization: `ApiKey ${props.authKey}`,
|
|
168
166
|
"Content-Type": "application/json"
|
|
169
167
|
},
|
|
170
168
|
body: JSON.stringify(query)
|
|
@@ -178,29 +176,6 @@ export default defineComponent({
|
|
|
178
176
|
});
|
|
179
177
|
return esResults;
|
|
180
178
|
}
|
|
181
|
-
const setFetchUrl = (cluster = "default", index) => {
|
|
182
|
-
switch (cluster) {
|
|
183
|
-
case "old":
|
|
184
|
-
return `https://4c565382f4b24aa0ac703379841bd608.eu-central-1.aws.cloud.es.io:443/${index}/_search`;
|
|
185
|
-
case "new":
|
|
186
|
-
case "default":
|
|
187
|
-
return `https://search.openinnovationprogram.com/${index}/_search`;
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
const setFetchHeaders = (cluster = "default") => {
|
|
191
|
-
switch (cluster) {
|
|
192
|
-
case "old":
|
|
193
|
-
return {
|
|
194
|
-
authorization: `Basic ${props.authKey}`
|
|
195
|
-
};
|
|
196
|
-
case "new":
|
|
197
|
-
case "default":
|
|
198
|
-
default:
|
|
199
|
-
return {
|
|
200
|
-
authorization: `ApiKey ${props.authKey}`
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
179
|
function buildFilters(fields, uuids) {
|
|
205
180
|
const filters = [];
|
|
206
181
|
if (fields && fields.length > 0) {
|
|
@@ -11,10 +11,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
11
|
authKey: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
};
|
|
14
|
-
cluster: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
14
|
showCountry: {
|
|
19
15
|
type: BooleanConstructor;
|
|
20
16
|
default: boolean;
|
|
@@ -61,10 +57,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
57
|
authKey: {
|
|
62
58
|
type: StringConstructor;
|
|
63
59
|
};
|
|
64
|
-
cluster: {
|
|
65
|
-
type: StringConstructor;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
60
|
showCountry: {
|
|
69
61
|
type: BooleanConstructor;
|
|
70
62
|
default: boolean;
|
|
@@ -81,7 +73,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
81
73
|
onUpdateSources?: ((...args: any[]) => any) | undefined;
|
|
82
74
|
}>, {
|
|
83
75
|
lang: string;
|
|
84
|
-
cluster: string;
|
|
85
76
|
showCountry: boolean;
|
|
86
77
|
sourceToOpen: string;
|
|
87
78
|
}, {}, {
|