@sinequa/atomic 0.0.129 → 0.0.134
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/atomic.js +352 -295
- package/dist/atomic.umd.cjs +1 -1
- package/dist/types/api-endpoints.d.ts +1 -1
- package/dist/types/api-endpoints.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/user-profile/user-profile.d.ts +31 -0
- package/dist/types/user-profile/user-profile.d.ts.map +1 -0
- package/dist/web-api/helpers/methods/patch.d.ts.map +1 -1
- package/dist/web-api/index.d.ts +1 -0
- package/dist/web-api/index.d.ts.map +1 -1
- package/dist/web-api/v1/fetch-principal.d.ts +55 -0
- package/dist/web-api/v1/fetch-principal.d.ts.map +1 -1
- package/dist/web-api/v2/fetch-user-profile.d.ts +50 -0
- package/dist/web-api/v2/fetch-user-profile.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/atomic.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Y = (e, t, r) =>
|
|
4
|
-
function
|
|
1
|
+
var le = Object.defineProperty;
|
|
2
|
+
var ue = (e, t, r) => t in e ? le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var Y = (e, t, r) => ue(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
function _(e) {
|
|
5
5
|
const t = new CustomEvent("authenticated", {
|
|
6
6
|
bubbles: !0,
|
|
7
7
|
cancelable: !1,
|
|
@@ -34,22 +34,22 @@ class K extends b {
|
|
|
34
34
|
super(t, 500), this.name = "ServerError";
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
class
|
|
37
|
+
class de extends b {
|
|
38
38
|
constructor(t = "Request timed out") {
|
|
39
39
|
super(t, 408), this.name = "TimeoutError";
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
class
|
|
42
|
+
class V extends b {
|
|
43
43
|
constructor(t = "Unauthorized access") {
|
|
44
44
|
super(t, 401), this.name = "UnauthorizedError";
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
function
|
|
47
|
+
const fe = /.*\:\(?([><=\d\-\.AND ]+)\)?/;
|
|
48
|
+
function ct(e, t) {
|
|
49
49
|
var a;
|
|
50
50
|
return !(e != null && e.items) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.length) === 0 ? [] : e.items.reduce((s, i) => {
|
|
51
51
|
if (!i.value || i.value === "") return s;
|
|
52
|
-
const o =
|
|
52
|
+
const o = he(i, e.column);
|
|
53
53
|
return s.push({
|
|
54
54
|
operator: o.operator,
|
|
55
55
|
value: o.value,
|
|
@@ -60,8 +60,8 @@ function nt(e, t) {
|
|
|
60
60
|
}), s;
|
|
61
61
|
}, []);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
const r = t, n = e.value.match(
|
|
63
|
+
function he(e, t) {
|
|
64
|
+
const r = t, n = e.value.match(fe);
|
|
65
65
|
if (n != null && n[1]) {
|
|
66
66
|
const s = (n == null ? void 0 : n[1].split(" AND ")).map((i) => {
|
|
67
67
|
const o = i.indexOf(">=") !== -1 ? "gte" : "lt";
|
|
@@ -76,13 +76,13 @@ function fe(e, t) {
|
|
|
76
76
|
}
|
|
77
77
|
return { field: r, operator: "eq", value: e.value, display: e.display };
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function it(e, t, r) {
|
|
80
80
|
return e.valuesAreExpressions ? t.display === r.display : t.value === r.value;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return e.items && (e.items = e.items.map((t) =>
|
|
82
|
+
function me(e) {
|
|
83
|
+
return e.items && (e.items = e.items.map((t) => me(t))), e.items && e.items.some((t) => t.$selected || t.$opened) && (e.$opened = !0), e;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function lt(e, t) {
|
|
86
86
|
const r = [];
|
|
87
87
|
if (e.length > 0) {
|
|
88
88
|
const n = /* @__PURE__ */ new Map(), s = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g, ""), i = new RegExp("\\b" + s, "i");
|
|
@@ -112,18 +112,18 @@ function re(e, t, r, n, a, s, i) {
|
|
|
112
112
|
}
|
|
113
113
|
c.length < n.length && (l.hasChildren = !0, re(l.items, t, c, n, a, s + 1, i));
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ut(e, t) {
|
|
116
116
|
return e.reduce((r, n) => (t(n) ? r.true.push(n) : r.false.push(n), r), { true: [], false: [] });
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const we = /(([\+\-])?\(([^\)]+)\))|(([\+\-])?\[([^\]]+)\])|(([\+\-])?\"([^\"]+)\")|(([\+\-])?\/([^\/]+)\/)|(([\+\-])?(\S+))/g, _e = 2, Z = 3, ge = 5, E = 6, Se = 8, T = 9, pe = 11, ee = 12, ke = 14, te = 15;
|
|
119
119
|
function I(e) {
|
|
120
120
|
if (!e) return [];
|
|
121
|
-
const t = [], r = e.matchAll(
|
|
121
|
+
const t = [], r = e.matchAll(we);
|
|
122
122
|
for (let n of r)
|
|
123
|
-
n[Z] ? t.push({ type: "group", value: n[Z], op: n[_e] }) : n[E] ? t.push({ type: "adjacent", value: n[E], op: n[
|
|
123
|
+
n[Z] ? t.push({ type: "group", value: n[Z], op: n[_e] }) : n[E] ? t.push({ type: "adjacent", value: n[E], op: n[ge] }) : n[T] ? t.push({ type: "exact", value: n[T], op: n[Se] }) : n[ee] ? t.push({ type: "regex", value: n[ee], op: n[pe] }) : n[te] && t.push({ type: "token", value: n[te], op: n[ke] });
|
|
124
124
|
return t;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function G(e) {
|
|
127
127
|
return e.map((t) => {
|
|
128
128
|
const r = t.op || "";
|
|
129
129
|
switch (t.type) {
|
|
@@ -140,28 +140,28 @@ function j(e) {
|
|
|
140
140
|
}
|
|
141
141
|
}).join(" ");
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function dt(e, t, r) {
|
|
144
144
|
let n = I(e);
|
|
145
145
|
for (let a of t)
|
|
146
146
|
n.push({ type: "adjacent", value: a, op: r });
|
|
147
|
-
return
|
|
147
|
+
return G(n);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ft(e, t) {
|
|
150
150
|
const r = I(t), n = r.findIndex((a) => a.value === e);
|
|
151
|
-
return n !== -1 ? (r.splice(n, 1), t =
|
|
151
|
+
return n !== -1 ? (r.splice(n, 1), t = G(r)) : t;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function ht(e) {
|
|
154
154
|
const t = I(e).filter((r) => r.type !== "adjacent");
|
|
155
|
-
return
|
|
155
|
+
return G(t);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function mt(e) {
|
|
158
158
|
return I(e).filter((t) => t.type === "adjacent").map((t) => t.value);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: a, unit: s, isFuture: i } =
|
|
160
|
+
function wt(e, t, r) {
|
|
161
|
+
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: a, unit: s, isFuture: i } = ve(t, r);
|
|
162
162
|
return n.format(a * (i ? 1 : -1), s);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ve(e, t) {
|
|
165
165
|
const r = new Date(e), n = t ? new Date(t) : /* @__PURE__ */ new Date(), a = Math.abs(n.getTime() - r.getTime());
|
|
166
166
|
return {
|
|
167
167
|
offset: Math.floor(a / (1e3 * 60 * 60 * 24)),
|
|
@@ -169,11 +169,11 @@ function pe(e, t) {
|
|
|
169
169
|
isFuture: r > n
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function _t(e) {
|
|
173
173
|
const t = e.target;
|
|
174
174
|
return t && t.nodeName !== "INPUT" && t.nodeName !== "TEXTAREA";
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function gt(e) {
|
|
177
177
|
if (e === void 0) return;
|
|
178
178
|
const { q: t, f: r, p: n, s: a, t: s, n: i, b: o } = R(e), [c] = e.split("?");
|
|
179
179
|
return {
|
|
@@ -187,14 +187,14 @@ function ht(e) {
|
|
|
187
187
|
basket: o
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function St(e) {
|
|
191
191
|
if (!e) return "";
|
|
192
192
|
const { text: t, filters: r, page: n, sort: a, tab: s, name: i, basket: o } = e, c = {};
|
|
193
193
|
t && (c.q = t), r && (c.f = JSON.stringify(r)), n && (c.p = n.toString()), a && (c.s = a), s && (c.t = s), i && (c.n = i), o && (c.b = o);
|
|
194
194
|
const l = new URLSearchParams(c).toString();
|
|
195
195
|
return l || "";
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function pt(e) {
|
|
198
198
|
if (e === void 0) return [];
|
|
199
199
|
const { f: t } = R(e);
|
|
200
200
|
return ne(t);
|
|
@@ -213,23 +213,23 @@ function R(e) {
|
|
|
213
213
|
const r = new URLSearchParams(t);
|
|
214
214
|
return Object.fromEntries(r);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function kt(e) {
|
|
217
217
|
const { q: t = "" } = R(e);
|
|
218
218
|
return t;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function vt(e) {
|
|
221
221
|
const { id: t } = R(e);
|
|
222
222
|
return decodeURIComponent(t);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function bt(e) {
|
|
225
225
|
const { p: t = "0" } = R(e);
|
|
226
226
|
return parseInt(t, 10);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Ct(e) {
|
|
229
229
|
const { t } = R(e);
|
|
230
230
|
return t;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Rt(e, t) {
|
|
233
233
|
if (!e)
|
|
234
234
|
return e;
|
|
235
235
|
let r = 0;
|
|
@@ -271,7 +271,7 @@ function B(e, t, r) {
|
|
|
271
271
|
lang2: -1
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function xt(e, t) {
|
|
275
275
|
const { useLocale: r, useLocaleAsPrefix: n, indexFile: a, path: s, folder: i } = t, o = r ? `${e}/` : null, c = n ? `${e}.${a}` : a ?? "";
|
|
276
276
|
return [s, i, `${o || ""}${c}`].filter((l) => l !== void 0).join("/");
|
|
277
277
|
}
|
|
@@ -283,7 +283,7 @@ function O(e) {
|
|
|
283
283
|
});
|
|
284
284
|
dispatchEvent(t);
|
|
285
285
|
}
|
|
286
|
-
const
|
|
286
|
+
const Pt = {
|
|
287
287
|
success: (e, t) => {
|
|
288
288
|
O({
|
|
289
289
|
type: "success",
|
|
@@ -314,17 +314,17 @@ const bt = {
|
|
|
314
314
|
}
|
|
315
315
|
};
|
|
316
316
|
var ae = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e[e.NONE = 4] = "NONE", e))(ae || {});
|
|
317
|
-
let
|
|
317
|
+
let U = {
|
|
318
318
|
level: 1,
|
|
319
319
|
enableConsoleOutput: !0
|
|
320
320
|
};
|
|
321
|
-
function
|
|
322
|
-
|
|
321
|
+
function Lt(e) {
|
|
322
|
+
U = { ...U, ...e };
|
|
323
323
|
}
|
|
324
324
|
function D(e, t, r) {
|
|
325
|
-
if (e <
|
|
325
|
+
if (e < U.level) return;
|
|
326
326
|
const a = `${`[${ae[e]}]`} ${t}`;
|
|
327
|
-
if (
|
|
327
|
+
if (U.enableConsoleOutput)
|
|
328
328
|
switch (e) {
|
|
329
329
|
case 0:
|
|
330
330
|
console.debug(a, r || "");
|
|
@@ -343,7 +343,7 @@ function D(e, t, r) {
|
|
|
343
343
|
function x(e, t) {
|
|
344
344
|
D(0, e, t);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function p(e, t) {
|
|
347
347
|
D(1, e, t);
|
|
348
348
|
}
|
|
349
349
|
function P(e, t) {
|
|
@@ -354,7 +354,7 @@ function h(e, t) {
|
|
|
354
354
|
}
|
|
355
355
|
async function C(e, t = "json") {
|
|
356
356
|
const r = e.headers.get("sinequa-jwt-refresh");
|
|
357
|
-
if (r !== null &&
|
|
357
|
+
if (r !== null && $(r), e.status === 200)
|
|
358
358
|
switch (t) {
|
|
359
359
|
case "arraybuffer":
|
|
360
360
|
return await e.arrayBuffer();
|
|
@@ -369,7 +369,7 @@ async function C(e, t = "json") {
|
|
|
369
369
|
if (d.userOverrideActive)
|
|
370
370
|
throw P("Unauthorized access attempt with user override", {
|
|
371
371
|
endpoint: e.url
|
|
372
|
-
}), new
|
|
372
|
+
}), new V("Unauthorized... User override failed.");
|
|
373
373
|
return await q(e, 401);
|
|
374
374
|
}
|
|
375
375
|
return e.status === 500 ? (h("Server error occurred", { endpoint: e.url }), await q(e, 500)) : (P(`Unexpected response status: ${e.status}`, {
|
|
@@ -384,7 +384,7 @@ async function q(e, t) {
|
|
|
384
384
|
value: void 0
|
|
385
385
|
};
|
|
386
386
|
if (n || !a)
|
|
387
|
-
throw t === 401 ? new
|
|
387
|
+
throw t === 401 ? new V() : t === 500 ? new K() : new b(`Request failed with status ${t}`, t);
|
|
388
388
|
const s = JSON.parse(new TextDecoder().decode(a));
|
|
389
389
|
throw new Error(
|
|
390
390
|
s.errorMessage || s.message || `Request failed with status ${t}`,
|
|
@@ -396,13 +396,13 @@ async function q(e, t) {
|
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
398
|
} catch (n) {
|
|
399
|
-
throw n instanceof b ? n : t === 401 ? new
|
|
399
|
+
throw n instanceof b ? n : t === 401 ? new V(n.message) : t === 500 ? new K(n.message) : new b(
|
|
400
400
|
n.message ?? `Request failed with status ${t}`,
|
|
401
401
|
t
|
|
402
402
|
);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
async function
|
|
405
|
+
async function yt(e, t, r) {
|
|
406
406
|
const n = L(r == null ? void 0 : r.headers), { backendUrl: a } = d, s = t ? `?${new URLSearchParams(t)}` : "", i = a ? `${a}/${e}${s}` : `${e}${s}`;
|
|
407
407
|
x(`Making DELETE request to: ${i}`);
|
|
408
408
|
try {
|
|
@@ -416,7 +416,7 @@ async function Rt(e, t, r) {
|
|
|
416
416
|
throw h("Error making DELETE request:", o), o;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
async function
|
|
419
|
+
async function S(e, t, r) {
|
|
420
420
|
const n = L(r == null ? void 0 : r.headers), { backendUrl: a } = d, s = t ? `?${new URLSearchParams(t)}` : "";
|
|
421
421
|
e.startsWith("plugin") && (e = `api/v1/${e}`);
|
|
422
422
|
const i = a ? `${a}/${e}${s}` : `${e}${s}`;
|
|
@@ -433,8 +433,10 @@ async function p(e, t, r) {
|
|
|
433
433
|
throw h("Error making GET request:", o), o;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
async function
|
|
437
|
-
const n = L(r == null ? void 0 : r.headers)
|
|
436
|
+
async function be(e, t, r) {
|
|
437
|
+
const n = L(r == null ? void 0 : r.headers);
|
|
438
|
+
n.append("content-type", "application/json");
|
|
439
|
+
const { app: a, backendUrl: s } = d, i = {
|
|
438
440
|
app: a,
|
|
439
441
|
...t,
|
|
440
442
|
locale: t.locale || navigator.language,
|
|
@@ -480,7 +482,7 @@ async function u(e, t, r) {
|
|
|
480
482
|
throw h("Error making POST request:", c), c;
|
|
481
483
|
}
|
|
482
484
|
}
|
|
483
|
-
async function
|
|
485
|
+
async function Ot(e, t, r) {
|
|
484
486
|
const n = L(r == null ? void 0 : r.headers), { app: a, backendUrl: s } = d, i = {
|
|
485
487
|
app: a,
|
|
486
488
|
...t,
|
|
@@ -501,10 +503,10 @@ async function Pt(e, t, r) {
|
|
|
501
503
|
throw h("Error making PUT request:", c), c;
|
|
502
504
|
}
|
|
503
505
|
}
|
|
504
|
-
function
|
|
506
|
+
function Ut(e) {
|
|
505
507
|
const t = new AbortController(), { signal: r } = t;
|
|
506
508
|
return e && setTimeout(() => {
|
|
507
|
-
r.aborted || t.abort(new
|
|
509
|
+
r.aborted || t.abort(new de(`Request timed out after ${e}ms`));
|
|
508
510
|
}, e), { controller: t, signal: r };
|
|
509
511
|
}
|
|
510
512
|
function se(e) {
|
|
@@ -512,17 +514,17 @@ function se(e) {
|
|
|
512
514
|
const t = new Date(e);
|
|
513
515
|
return Number.isNaN(t.getTime()) ? void 0 : t;
|
|
514
516
|
}
|
|
515
|
-
function
|
|
517
|
+
function $t(e) {
|
|
516
518
|
const t = se(e);
|
|
517
519
|
return !!t && t.getTime() <= Date.now();
|
|
518
520
|
}
|
|
519
|
-
function
|
|
521
|
+
function It(e, t = 7) {
|
|
520
522
|
const r = se(e);
|
|
521
523
|
if (!r) return !1;
|
|
522
524
|
const n = Date.now(), a = n + t * 24 * 60 * 60 * 1e3, s = r.getTime();
|
|
523
525
|
return s > n && s <= a;
|
|
524
526
|
}
|
|
525
|
-
async function
|
|
527
|
+
async function Dt(e, t = 0, r = 1e3) {
|
|
526
528
|
let n;
|
|
527
529
|
for (let a = 0; a <= t; a++)
|
|
528
530
|
try {
|
|
@@ -534,7 +536,7 @@ async function $t(e, t = 0, r = 1e3) {
|
|
|
534
536
|
}
|
|
535
537
|
throw n;
|
|
536
538
|
}
|
|
537
|
-
function
|
|
539
|
+
function At(e, t, r) {
|
|
538
540
|
var s, i, o, c;
|
|
539
541
|
if (!e || !t) return;
|
|
540
542
|
if (r) {
|
|
@@ -554,9 +556,9 @@ function Ut(e, t, r) {
|
|
|
554
556
|
if (a) return a[0];
|
|
555
557
|
}
|
|
556
558
|
var v = /* @__PURE__ */ ((e) => (e.None = "None", e.Search_FirstPage = "Search_FirstPage", e.Search_Text = "Search_Text", e.Search_Refine = "Search_Refine", e.Search_Select_Item = "Search_Select_Item", e.Search_Select_Custom = "Search_Select_Custom", e.Search_Select_Concept = "Search_Select_Concept", e.Search_Select_Correction = "Search_Select_Correction", e.Search_GotoPage = "Search_GotoPage", e.Search_GotoTab = "Search_GotoTab", e.Search_DisplayResult = "Search_DisplayResult", e.Search_RemoveResult = "Search_RemoveResult", e.Search_RemoveAdvanced = "Search_RemoveAdvanced", e.Search_SavedQuery = "Search_SavedQuery", e.Search_WebService = "Search_WebService", e.Search_DidYouMean_Original = "Search_DidYouMean_Original", e.Search_DidYouMean_Correction = "Search_DidYouMean_Correction", e.Search_ExportCSV = "Search_ExportCSV", e.Search_SavedQuery_ExportCSV = "Search_SavedQuery_ExportCSV", e.Search_Selection_ExportCSV = "Search_Selection_ExportCSV", e.Search_AlertQuery = "Search_AlertQuery", e.Search_Select_AnalyticsItem = "Search_Select_AnalyticsItem", e.Search_Sort = "Search_Sort", e.Search_Exit_Logout = "Search_Exit_Logout", e.Search_Timeline_Usage = "Search_Timeline_Usage", e.Search_AutoComplete = "Search_Autocomplete", e.Search_Login_Success = "Login_Success_Form", e.Search_QueryIntent_Detected = "Search_QueryIntent_Detected", e.SavedQuery_Add = "SavedQuery_Add", e.SavedQuery_Delete = "SavedQuery_Delete", e.SavedQuery_DeleteAll = "SavedQuery_DeleteAll", e.SavedQuery_Rename = "SavedQuery_Rename", e.Alert_Edit = "Alert_Edit", e.Alert_Delete = "Alert_Delete", e.Alert_DeleteAll = "Alert_DeleteAll", e.Link_Display = "Link_Display", e.Link_Click = "Link_Click", e.Basket_Add = "Basket_Add", e.Basket_Delete = "Basket_Delete", e.Basket_DeleteAll = "Basket_DeleteAll", e.Basket_Rename = "Basket_Rename", e.Basket_AddDoc = "Basket_AddDoc", e.Basket_RemoveDoc = "Basket_RemoveDoc", e.Basket_Open = "Basket_Open", e.Basket_ExportCSV = "Basket_ExportCSV", e.Label_Add = "Label_Add", e.Label_Delete = "Label_Delete", e.Label_Rename = "Label_Rename", e.Label_Open = "Label_Open", e.Label_AddDoc = "Label_AddDoc", e.Label_RemoveDoc = "Label_RemoveDoc", e.Label_ExportCSV = "Label_ExportCSV", e.Label_Menu_ExportCSV = "Label_Menu_ExportCSV", e.Rating_Set = "Rating_Set", e.Rating_Delete = "Rating_Delete", e.Doc_Preview = "Doc_Preview", e.Doc_CacheHtml = "Doc_CacheHtml", e.Doc_CachePdf = "Doc_CachePdf", e.Doc_CacheOriginal = "Doc_CacheOriginal", e.Doc_Url1 = "Doc_Url1", e.Doc_Url2 = "Doc_Url2", e.Preview_Close = "Preview_Close", e.Click_ResultLink = "Click_ResultLink", e.Click_ResultLink1 = "Click_ResultLink1", e.Click_ResultLink2 = "Click_ResultLink2", e.Click_ResultLink3 = "Click_ResultLink3", e.Click_ResultLink4 = "Click_ResultLink4", e.Click_ResultLink5 = "Click_ResultLink5", e.Click_ResultLink6 = "Click_ResultLink6", e.Click_ResultLink7 = "Click_ResultLink7", e.Click_ResultLink8 = "Click_ResultLink8", e.Click_ResultLink9 = "Click_ResultLink9", e.Click_ResultLink10 = "Click_ResultLink10", e.Click_PreviewLink1 = "Click_PreviewLink1", e.Click_PreviewLink2 = "Click_PreviewLink2", e.Click_PreviewLink3 = "Click_PreviewLink3", e.Click_PreviewLink4 = "Click_PreviewLink4", e.Click_PreviewLink5 = "Click_PreviewLink5", e.Click_PreviewLink6 = "Click_PreviewLink6", e.Click_PreviewLink7 = "Click_PreviewLink7", e.Click_PreviewLink8 = "Click_PreviewLink8", e.Click_PreviewLink9 = "Click_PreviewLink9", e.Click_PreviewLink10 = "Click_PreviewLink10", e.RFM_ClickSet = "RFM_ClickSet", e.RFM_ClickReset = "RFM_ClickReset", e.RFM_Like = "RFM_Like", e.RFM_LikeReset = "RFM_LikeReset", e.RFM_Dislike = "RFM_Dislike", e.RFM_Important = "RFM_Important", e.RFM_ImportantReset = "RFM_ImportantReset", e.RFM_Ban = "RFM_Ban", e.Navigation_Exit = "Navigation_Exit", e.Navigation_Return = "Navigation_Return", e.Navigation_Route = "Navigation_Route", e.Answer_Display = "Answer_Display", e.Answer_Click = "Answer_Click", e.Answer_Result = "Answer_Result", e.Answer_Liked = "Answer_Liked", e.Answer_Disliked = "Answer_Disliked", e.Answer_Liked_Cancelled = "Answer_Liked_Cancelled", e.Answer_Disliked_Cancelled = "Answer_Disliked_Cancelled", e.TopPassages_Display = "TopPassages_Display", e.TopPassages_Click = "TopPassages_Click", e.UserSettings_Reset = "UserSettings_Reset", e))(v || {}), m = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.bool = 1] = "bool", e[e.date = 2] = "date", e[e.dateTime = 3] = "dateTime", e[e.time = 4] = "time", e[e.unsigned = 5] = "unsigned", e[e.integer = 6] = "integer", e[e.float = 7] = "float", e[e.double = 8] = "double", e[e.dates = 9] = "dates", e[e.dateTimes = 10] = "dateTimes", e[e.times = 11] = "times", e[e.varchar = 12] = "varchar", e[e.binary = 13] = "binary", e[e.string = 14] = "string", e[e.csv = 15] = "csv", e))(m || {}), g = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.a = 2053] = "a", e[e.c = 4] = "c", e[e.d = 8] = "d", e[e.e = 2068] = "e", e[e.i = 256] = "i", e[e.l = 2052] = "l", e[e.n = 8192] = "n", e[e.t = 524292] = "t", e[e.x = 8388608] = "x", e[e.z = 33554432] = "z", e[e.f_ordinal = 8192] = "f_ordinal", e[e.f_multidates = 8192] = "f_multidates", e[e.f_varchar = 33554432] = "f_varchar", e[e.f_binary = 33562624] = "f_binary", e[e.f_string = 33562888] = "f_string", e[e.f_csv = 42477853] = "f_csv", e[e.f_overridable = 33554696] = "f_overridable", e))(g || {});
|
|
557
|
-
const
|
|
558
|
-
var
|
|
559
|
-
function
|
|
559
|
+
const Nt = "1.0";
|
|
560
|
+
var Ce = /* @__PURE__ */ ((e) => (e[e.Original = 0] = "Original", e[e.Corrected = 1] = "Corrected", e))(Ce || {}), Re = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.positiveRate = 1] = "positiveRate", e[e.mainlyPosRate = 2] = "mainlyPosRate", e[e.unrate = 4] = "unrate", e[e.mainlyNegRate = 8] = "mainlyNegRate", e[e.negativeRate = 16] = "negativeRate", e[e.all = 31] = "all", e[e.positiveOnly = 7] = "positiveOnly", e[e.negativeOnly = 28] = "negativeOnly", e[e.personalAll = 21] = "personalAll", e[e.personalPosOnly = 5] = "personalPosOnly", e[e.personalNegOnly = 20] = "personalNegOnly", e))(Re || {});
|
|
561
|
+
function xe(e) {
|
|
560
562
|
if (!e)
|
|
561
563
|
return m.none;
|
|
562
564
|
switch (e.toLocaleLowerCase()) {
|
|
@@ -595,7 +597,7 @@ function Ce(e) {
|
|
|
595
597
|
return m.none;
|
|
596
598
|
}
|
|
597
599
|
}
|
|
598
|
-
function
|
|
600
|
+
function Pe(e) {
|
|
599
601
|
switch (e) {
|
|
600
602
|
case "a":
|
|
601
603
|
return g.a;
|
|
@@ -621,15 +623,15 @@ function Re(e) {
|
|
|
621
623
|
return g.none;
|
|
622
624
|
}
|
|
623
625
|
}
|
|
624
|
-
function
|
|
626
|
+
function Le(e) {
|
|
625
627
|
let t = g.none;
|
|
626
628
|
if (e)
|
|
627
629
|
for (const r of e)
|
|
628
|
-
t |=
|
|
630
|
+
t |= Pe(r);
|
|
629
631
|
return t;
|
|
630
632
|
}
|
|
631
|
-
function
|
|
632
|
-
const a =
|
|
633
|
+
function w(e, t, r, n) {
|
|
634
|
+
const a = xe(t), s = Le(r || "");
|
|
633
635
|
return {
|
|
634
636
|
name: e,
|
|
635
637
|
type: t,
|
|
@@ -639,26 +641,26 @@ function _(e, t, r, n) {
|
|
|
639
641
|
aliases: n
|
|
640
642
|
};
|
|
641
643
|
}
|
|
642
|
-
const
|
|
643
|
-
id:
|
|
644
|
-
text:
|
|
645
|
-
documentlanguages:
|
|
646
|
-
databasealias:
|
|
647
|
-
globalrelevance:
|
|
648
|
-
matchingpartnames:
|
|
649
|
-
matchlocations:
|
|
650
|
-
matchlocationsperpartname:
|
|
644
|
+
const Ft = {
|
|
645
|
+
id: w("id", "string"),
|
|
646
|
+
text: w("text", "varchar"),
|
|
647
|
+
documentlanguages: w("documentlanguages", "csv", "ci", ["language"]),
|
|
648
|
+
databasealias: w("databasealias", "varchar"),
|
|
649
|
+
globalrelevance: w("globalrelevance", "double"),
|
|
650
|
+
matchingpartnames: w("matchingpartnames", "csv"),
|
|
651
|
+
matchlocations: w("matchlocations", "csv"),
|
|
652
|
+
matchlocationsperpartname: w("matchlocationsperpartname", "varchar"),
|
|
651
653
|
// json
|
|
652
|
-
extracts:
|
|
653
|
-
extractsperpartname:
|
|
654
|
+
extracts: w("extracts", "csv"),
|
|
655
|
+
extractsperpartname: w("extractsperpartname", "varchar"),
|
|
654
656
|
// json
|
|
655
|
-
extractslocations:
|
|
656
|
-
documentweight:
|
|
657
|
-
groupcount:
|
|
658
|
-
accesslists:
|
|
657
|
+
extractslocations: w("extractslocations", "csv"),
|
|
658
|
+
documentweight: w("documentweight", "varchar"),
|
|
659
|
+
groupcount: w("groupcount", "integer"),
|
|
660
|
+
accesslists: w("accesslists", "varchar", void 0, ["accessLists"])
|
|
659
661
|
// json
|
|
660
662
|
};
|
|
661
|
-
function
|
|
663
|
+
function Bt(e, t) {
|
|
662
664
|
let r = e[t];
|
|
663
665
|
return r === void 0 ? [] : (typeof r == "string" && (r = String(r).split(",")), Array.isArray(r) ? r.map((n) => {
|
|
664
666
|
if (typeof n == "string") return n.trim();
|
|
@@ -666,7 +668,7 @@ function At(e, t) {
|
|
|
666
668
|
return n.display.trim();
|
|
667
669
|
}).filter((n) => n !== void 0) : [String(r).trim()]);
|
|
668
670
|
}
|
|
669
|
-
function
|
|
671
|
+
function qt(e, t) {
|
|
670
672
|
let r = e[t];
|
|
671
673
|
if (r === void 0) return [];
|
|
672
674
|
if (typeof r == "string" && (r = String(r).split(",")), Array.isArray(r))
|
|
@@ -686,26 +688,26 @@ function Nt(e, t) {
|
|
|
686
688
|
function A(e) {
|
|
687
689
|
return e !== null && typeof e == "object";
|
|
688
690
|
}
|
|
689
|
-
function
|
|
691
|
+
function ye(e) {
|
|
690
692
|
return A(e) && Object.prototype.toString.call(e) === "[object ArrayBuffer]";
|
|
691
693
|
}
|
|
692
|
-
function
|
|
694
|
+
function Oe(e) {
|
|
693
695
|
return A(e) && Object.prototype.toString.call(e) === "[object Blob]";
|
|
694
696
|
}
|
|
695
|
-
function
|
|
697
|
+
function Ue(e) {
|
|
696
698
|
return typeof e == "string";
|
|
697
699
|
}
|
|
698
|
-
function
|
|
699
|
-
return (A(e) || Array.isArray(e)) && !
|
|
700
|
+
function Qt(e) {
|
|
701
|
+
return (A(e) || Array.isArray(e)) && !ye(e) && !Oe(e) && !Ue(e);
|
|
700
702
|
}
|
|
701
|
-
function
|
|
703
|
+
function $e(e = !0) {
|
|
702
704
|
let t = Date.now();
|
|
703
705
|
return (e ? "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" : "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g, (n) => {
|
|
704
706
|
const a = (t + Math.random() * 16) % 16 | 0;
|
|
705
707
|
return t = Math.floor(t / 16), (n === "x" ? a : a & 3 | 8).toString(16);
|
|
706
708
|
});
|
|
707
709
|
}
|
|
708
|
-
function
|
|
710
|
+
function jt(e) {
|
|
709
711
|
if (!e)
|
|
710
712
|
return "``";
|
|
711
713
|
if (e = String(e), e.search(/[\\`]/) === -1)
|
|
@@ -717,7 +719,7 @@ function Bt(e) {
|
|
|
717
719
|
}
|
|
718
720
|
return t.push("`"), t.join("");
|
|
719
721
|
}
|
|
720
|
-
function
|
|
722
|
+
function Vt(e) {
|
|
721
723
|
if (typeof crypto < "u" && crypto.subtle && typeof crypto.subtle.digest == "function")
|
|
722
724
|
try {
|
|
723
725
|
return crypto.subtle.digest("SHA-512", new TextEncoder().encode(e)).then((t) => Array.prototype.map.call(new Uint8Array(t), (r) => ("00" + r.toString(16)).slice(-2)).join("")).catch(() => Promise.resolve(Q(e)));
|
|
@@ -733,12 +735,12 @@ function Q(e) {
|
|
|
733
735
|
const a = n.toString(16).padStart(8, "0"), s = ((n ^ 2863311530) >>> 0).toString(16).padStart(8, "0"), i = ((n ^ 1431655765) >>> 0).toString(16).padStart(8, "0"), o = ((n ^ 3435973836) >>> 0).toString(16).padStart(8, "0"), c = a + s + i + o;
|
|
734
736
|
return (c + c + c + c).substring(0, 128);
|
|
735
737
|
}
|
|
736
|
-
let
|
|
738
|
+
let j, oe;
|
|
737
739
|
function y(e, t = !0) {
|
|
738
|
-
let r =
|
|
739
|
-
r && (
|
|
740
|
+
let r = Ie(e.$auditRecord);
|
|
741
|
+
r && (De(r), t && Ae(r)), e.$auditRecord = r;
|
|
740
742
|
}
|
|
741
|
-
function
|
|
743
|
+
function Ie(e) {
|
|
742
744
|
if (!e)
|
|
743
745
|
return;
|
|
744
746
|
let t;
|
|
@@ -752,35 +754,35 @@ function $e(e) {
|
|
|
752
754
|
}
|
|
753
755
|
return { auditEvents: t };
|
|
754
756
|
}
|
|
755
|
-
function
|
|
757
|
+
function De(e) {
|
|
756
758
|
var r;
|
|
757
|
-
const t =
|
|
759
|
+
const t = Ne();
|
|
758
760
|
return (r = e.auditEvents) == null || r.forEach((n) => {
|
|
759
761
|
n.detail || (n.detail = {}), n.detail.sessionid = t;
|
|
760
762
|
}), e;
|
|
761
763
|
}
|
|
762
|
-
function
|
|
764
|
+
function Ae(e) {
|
|
763
765
|
var r;
|
|
764
766
|
const t = typeof window < "u" ? decodeURIComponent(window.location.href) : "http://localhost";
|
|
765
767
|
return (r = e == null ? void 0 : e.auditEvents) == null || r.forEach((n) => {
|
|
766
768
|
n.detail || (n.detail = {}), n.detail.url = t;
|
|
767
769
|
}), e;
|
|
768
770
|
}
|
|
769
|
-
function
|
|
770
|
-
return (!
|
|
771
|
+
function Ne() {
|
|
772
|
+
return (!j || Fe()) && (j = $e()), oe = /* @__PURE__ */ new Date(), j;
|
|
771
773
|
}
|
|
772
|
-
function
|
|
774
|
+
function Fe() {
|
|
773
775
|
return (/* @__PURE__ */ new Date()).getTime() - oe.getTime() > 10 * 60 * 1e3;
|
|
774
776
|
}
|
|
775
|
-
async function
|
|
777
|
+
async function Be(e, t = !0) {
|
|
776
778
|
const r = {
|
|
777
779
|
event: v.None,
|
|
778
780
|
$auditRecord: e
|
|
779
781
|
};
|
|
780
782
|
return y(r, t), u("api/v1/audit.notify", r);
|
|
781
783
|
}
|
|
782
|
-
const
|
|
783
|
-
async function
|
|
784
|
+
const Gt = { notify: Be };
|
|
785
|
+
async function zt(e, t, r) {
|
|
784
786
|
var f;
|
|
785
787
|
const n = ((f = e.items) == null ? void 0 : f.length) || 0, a = 10, s = {
|
|
786
788
|
query: { ...t, action: "aggregate", aggregations: { [e.name]: { skip: n, count: a } } },
|
|
@@ -790,18 +792,18 @@ async function Vt(e, t, r) {
|
|
|
790
792
|
const i = await u("api/v1/query", s), o = await C(i), { aggregations: c } = o, l = c[0];
|
|
791
793
|
return l.$hasMore = l.items.length > a, l.items = [...e.items, ...l.items], Promise.resolve(l);
|
|
792
794
|
}
|
|
793
|
-
async function
|
|
795
|
+
async function Ht() {
|
|
794
796
|
const { app: e } = d, t = new URLSearchParams({ app: e || "" });
|
|
795
|
-
return
|
|
797
|
+
return S("api/v1/app", t);
|
|
796
798
|
}
|
|
797
|
-
async function
|
|
799
|
+
async function qe() {
|
|
798
800
|
const { app: e } = d, t = new URLSearchParams({
|
|
799
801
|
app: e || "",
|
|
800
802
|
preLogin: "true"
|
|
801
803
|
});
|
|
802
|
-
return
|
|
804
|
+
return S("api/v1/app", t);
|
|
803
805
|
}
|
|
804
|
-
function
|
|
806
|
+
function Jt() {
|
|
805
807
|
let { backendUrl: e, app: t, useCredentials: r } = d;
|
|
806
808
|
if (typeof window < "u") {
|
|
807
809
|
if (e || (e = window.location.origin), !t) {
|
|
@@ -824,7 +826,7 @@ function jt() {
|
|
|
824
826
|
autoSAMLProvider: void 0,
|
|
825
827
|
bearerToken: void 0,
|
|
826
828
|
useSAML: void 0
|
|
827
|
-
}), Promise.resolve({})) :
|
|
829
|
+
}), Promise.resolve({})) : qe().then((n) => {
|
|
828
830
|
const { autoOAuthProvider: a, autoSAMLProvider: s } = d, i = !a && !n.autoOAuthProvider && !s && !n.autoSAMLProvider;
|
|
829
831
|
return k({
|
|
830
832
|
...d,
|
|
@@ -837,20 +839,20 @@ function jt() {
|
|
|
837
839
|
throw h("atomic:fetchAppPreLogin error", n), n;
|
|
838
840
|
});
|
|
839
841
|
}
|
|
840
|
-
async function
|
|
842
|
+
async function Wt(e, t, r = {}) {
|
|
841
843
|
const n = `api/v1/search.dataset/${e}/${t}`, a = await u(n, { parameters: r }), s = t[0].toLowerCase() + t.slice(1), i = a.datasets[s];
|
|
842
844
|
if ("errorCode" in i && "errorMessage" in i)
|
|
843
845
|
throw new Error(i.errorMessage);
|
|
844
846
|
return i;
|
|
845
847
|
}
|
|
846
|
-
async function
|
|
848
|
+
async function Xt(e, t) {
|
|
847
849
|
const r = `api/v1/search.dataset/${e}`, { parameters: n = {}, datasets: a = [] } = t;
|
|
848
850
|
return (await u(r, { parameters: n, datasets: a })).datasets;
|
|
849
851
|
}
|
|
850
|
-
async function
|
|
851
|
-
return await
|
|
852
|
+
async function Mt(e) {
|
|
853
|
+
return await S(`api/v1/search.dataset/${e}`);
|
|
852
854
|
}
|
|
853
|
-
async function
|
|
855
|
+
async function Yt(e, t = !0, r) {
|
|
854
856
|
try {
|
|
855
857
|
return (await u("api/v1/labels", {
|
|
856
858
|
action: "list",
|
|
@@ -863,18 +865,18 @@ async function Wt(e, t = !0, r) {
|
|
|
863
865
|
throw h("Error in fetchLabels", n), n;
|
|
864
866
|
}
|
|
865
867
|
}
|
|
866
|
-
async function
|
|
868
|
+
async function Qe() {
|
|
867
869
|
try {
|
|
868
870
|
const { app: e = "" } = d, t = new URLSearchParams({
|
|
869
871
|
app: e,
|
|
870
872
|
action: "getUserRights"
|
|
871
873
|
});
|
|
872
|
-
return
|
|
874
|
+
return S("api/v1/labels", t);
|
|
873
875
|
} catch (e) {
|
|
874
876
|
throw h("Error in getUserRights", e), e;
|
|
875
877
|
}
|
|
876
878
|
}
|
|
877
|
-
async function
|
|
879
|
+
async function je(e, t, r = !0) {
|
|
878
880
|
try {
|
|
879
881
|
const n = {
|
|
880
882
|
action: "add",
|
|
@@ -905,7 +907,7 @@ async function qe(e, t, r = !0) {
|
|
|
905
907
|
throw h("Error in add", n), n;
|
|
906
908
|
}
|
|
907
909
|
}
|
|
908
|
-
async function
|
|
910
|
+
async function Ve(e, t, r = !0) {
|
|
909
911
|
try {
|
|
910
912
|
const n = {
|
|
911
913
|
action: "remove",
|
|
@@ -936,7 +938,7 @@ async function Qe(e, t, r = !0) {
|
|
|
936
938
|
throw h("Error in remove", n), n;
|
|
937
939
|
}
|
|
938
940
|
}
|
|
939
|
-
async function
|
|
941
|
+
async function Ge(e, t, r = !0) {
|
|
940
942
|
try {
|
|
941
943
|
const n = {
|
|
942
944
|
action: "rename",
|
|
@@ -957,7 +959,7 @@ async function Ve(e, t, r = !0) {
|
|
|
957
959
|
throw h("Error in rename", n), n;
|
|
958
960
|
}
|
|
959
961
|
}
|
|
960
|
-
async function
|
|
962
|
+
async function ze(e, t = !0) {
|
|
961
963
|
try {
|
|
962
964
|
const r = {
|
|
963
965
|
action: "delete",
|
|
@@ -976,7 +978,7 @@ async function Ge(e, t = !0) {
|
|
|
976
978
|
throw h("Error in deleteLabels", r), r;
|
|
977
979
|
}
|
|
978
980
|
}
|
|
979
|
-
async function
|
|
981
|
+
async function He(e, t, r = !0) {
|
|
980
982
|
try {
|
|
981
983
|
const n = {
|
|
982
984
|
action: "bulkAdd",
|
|
@@ -997,7 +999,7 @@ async function je(e, t, r = !0) {
|
|
|
997
999
|
throw h("Error in bulkAdd", n), n;
|
|
998
1000
|
}
|
|
999
1001
|
}
|
|
1000
|
-
async function
|
|
1002
|
+
async function Je(e, t, r = !0) {
|
|
1001
1003
|
try {
|
|
1002
1004
|
const n = {
|
|
1003
1005
|
action: "bulkRemove",
|
|
@@ -1018,16 +1020,16 @@ async function ze(e, t, r = !0) {
|
|
|
1018
1020
|
throw h("Error in bulkRemove", n), n;
|
|
1019
1021
|
}
|
|
1020
1022
|
}
|
|
1021
|
-
const
|
|
1022
|
-
getUserRights:
|
|
1023
|
-
add:
|
|
1024
|
-
remove:
|
|
1025
|
-
rename:
|
|
1026
|
-
delete:
|
|
1027
|
-
bulkAdd:
|
|
1028
|
-
bulkRemove:
|
|
1023
|
+
const Kt = {
|
|
1024
|
+
getUserRights: Qe,
|
|
1025
|
+
add: je,
|
|
1026
|
+
remove: Ve,
|
|
1027
|
+
rename: Ge,
|
|
1028
|
+
delete: ze,
|
|
1029
|
+
bulkAdd: He,
|
|
1030
|
+
bulkRemove: Je
|
|
1029
1031
|
};
|
|
1030
|
-
async function
|
|
1032
|
+
async function Zt(e, t) {
|
|
1031
1033
|
if (typeof window > "u")
|
|
1032
1034
|
return u("api/v1/preview", {
|
|
1033
1035
|
action: "get",
|
|
@@ -1042,7 +1044,7 @@ async function Mt(e, t) {
|
|
|
1042
1044
|
browserUrl: r
|
|
1043
1045
|
});
|
|
1044
1046
|
}
|
|
1045
|
-
async function
|
|
1047
|
+
async function Et(e) {
|
|
1046
1048
|
const t = new Headers();
|
|
1047
1049
|
t.append("content-type", "text");
|
|
1048
1050
|
const r = await fetch(
|
|
@@ -1054,15 +1056,50 @@ async function Yt(e) {
|
|
|
1054
1056
|
);
|
|
1055
1057
|
C(r);
|
|
1056
1058
|
}
|
|
1057
|
-
async function
|
|
1059
|
+
async function ce() {
|
|
1058
1060
|
const e = new URLSearchParams({
|
|
1059
1061
|
action: "get",
|
|
1060
1062
|
noAutoAuthentication: "true"
|
|
1061
1063
|
});
|
|
1062
|
-
return
|
|
1064
|
+
return S("api/v1/principal", e);
|
|
1063
1065
|
}
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
+
async function We(e) {
|
|
1067
|
+
const t = {
|
|
1068
|
+
noAutoAuthentication: "true",
|
|
1069
|
+
...e
|
|
1070
|
+
}, r = new URLSearchParams();
|
|
1071
|
+
return Object.entries(t).forEach(([n, a]) => {
|
|
1072
|
+
a !== void 0 && r.append(n, String(a));
|
|
1073
|
+
}), S("api/v1/principal/list", r);
|
|
1074
|
+
}
|
|
1075
|
+
async function Xe(e) {
|
|
1076
|
+
if (!e)
|
|
1077
|
+
return Promise.reject(new Error("userid is required"));
|
|
1078
|
+
const t = new URLSearchParams({
|
|
1079
|
+
action: "userid",
|
|
1080
|
+
noAutoAuthentication: "true",
|
|
1081
|
+
userid: e
|
|
1082
|
+
});
|
|
1083
|
+
return S("api/v1/principal", t);
|
|
1084
|
+
}
|
|
1085
|
+
async function Me(e) {
|
|
1086
|
+
if (e.length === 0)
|
|
1087
|
+
return Promise.reject(new Error("userids is required"));
|
|
1088
|
+
const t = new URLSearchParams({
|
|
1089
|
+
noAutoAuthentication: "true",
|
|
1090
|
+
userids: [...e].join(",")
|
|
1091
|
+
});
|
|
1092
|
+
return S("api/v1/principal/userids", t);
|
|
1093
|
+
}
|
|
1094
|
+
const Tt = {
|
|
1095
|
+
principal: {
|
|
1096
|
+
get: ce,
|
|
1097
|
+
list: We,
|
|
1098
|
+
userid: Xe,
|
|
1099
|
+
userids: Me
|
|
1100
|
+
}
|
|
1101
|
+
}, ie = 11;
|
|
1102
|
+
async function er(e, t, r) {
|
|
1066
1103
|
var i;
|
|
1067
1104
|
const a = await u("api/v1/query", {
|
|
1068
1105
|
query: e,
|
|
@@ -1070,12 +1107,12 @@ async function Kt(e, t, r) {
|
|
|
1070
1107
|
queryIntentData: r
|
|
1071
1108
|
});
|
|
1072
1109
|
a.aggregations.forEach((o) => {
|
|
1073
|
-
o.$hasMore = !1, !o.isDistribution && !o.isTree && o.items && (o.$hasMore = o.items.length ===
|
|
1110
|
+
o.$hasMore = !1, !o.isDistribution && !o.isTree && o.items && (o.$hasMore = o.items.length === ie), o.isTree && o.items && z(o);
|
|
1074
1111
|
}), (i = a.records) == null || i.map((o) => Object.assign(o, { value: o.title, type: "default" }));
|
|
1075
1112
|
const s = { ...a, nextPage: a.page < Math.ceil(a.rowCount / a.pageSize) ? a.page + 1 : void 0, previousPage: a.page > 1 ? a.page - 1 : void 0 };
|
|
1076
1113
|
return Promise.resolve(s);
|
|
1077
1114
|
}
|
|
1078
|
-
async function
|
|
1115
|
+
async function tr(e, t, r) {
|
|
1079
1116
|
const { app: n = "" } = d, a = {
|
|
1080
1117
|
methods: [],
|
|
1081
1118
|
mode: t,
|
|
@@ -1091,7 +1128,7 @@ async function Zt(e, t, r) {
|
|
|
1091
1128
|
const s = await u("api/v1/multi", a);
|
|
1092
1129
|
s.results.forEach((o) => {
|
|
1093
1130
|
o.aggregations.forEach((c) => {
|
|
1094
|
-
c.$hasMore = !1, !c.isDistribution && !c.isTree && c.items && (c.$hasMore = c.items.length ===
|
|
1131
|
+
c.$hasMore = !1, !c.isDistribution && !c.isTree && c.items && (c.$hasMore = c.items.length === ie), c.isTree && z(c);
|
|
1095
1132
|
});
|
|
1096
1133
|
}), s.results.forEach((o) => {
|
|
1097
1134
|
var c;
|
|
@@ -1107,7 +1144,7 @@ function z(e, t = "", r = 0) {
|
|
|
1107
1144
|
n.push({ path: s, level: i }), a.$path = s, a.$level = i, a.hasChildren ? n = n.concat(z(a, s, i)) : a.hasChildren = !1;
|
|
1108
1145
|
}), n;
|
|
1109
1146
|
}
|
|
1110
|
-
async function
|
|
1147
|
+
async function rr({ model: e, appName: t, query: r, article: n }) {
|
|
1111
1148
|
const { webservice: a, format: s, maxcount: i, exportedColumns: o, export: c } = e, l = {
|
|
1112
1149
|
app: t,
|
|
1113
1150
|
webservice: a,
|
|
@@ -1127,13 +1164,13 @@ async function Et({ model: e, appName: t, query: r, article: n }) {
|
|
|
1127
1164
|
};
|
|
1128
1165
|
return y(l), await u("api/v1/search.queryexport", l, { responseType: "blob" });
|
|
1129
1166
|
}
|
|
1130
|
-
async function
|
|
1167
|
+
async function nr(e) {
|
|
1131
1168
|
const r = await u("api/v1/queryintent", {
|
|
1132
1169
|
query: e
|
|
1133
1170
|
});
|
|
1134
1171
|
return r == null ? void 0 : r.intents;
|
|
1135
1172
|
}
|
|
1136
|
-
async function
|
|
1173
|
+
async function ar(e, t, r) {
|
|
1137
1174
|
return (await u(
|
|
1138
1175
|
"api/v1/similardocuments",
|
|
1139
1176
|
{
|
|
@@ -1145,7 +1182,7 @@ async function er(e, t, r) {
|
|
|
1145
1182
|
{ signal: r }
|
|
1146
1183
|
)).data;
|
|
1147
1184
|
}
|
|
1148
|
-
async function
|
|
1185
|
+
async function sr(e, t) {
|
|
1149
1186
|
var a;
|
|
1150
1187
|
const n = await u("api/v1/query.links", {
|
|
1151
1188
|
webservice: e,
|
|
@@ -1153,7 +1190,7 @@ async function tr(e, t) {
|
|
|
1153
1190
|
});
|
|
1154
1191
|
return (a = n == null ? void 0 : n.links) == null ? void 0 : a.map((s) => ({ ...s, query: t }));
|
|
1155
1192
|
}
|
|
1156
|
-
async function
|
|
1193
|
+
async function or(e, t, r, n, a) {
|
|
1157
1194
|
const { app: s } = d, i = {
|
|
1158
1195
|
app: s || "",
|
|
1159
1196
|
suggestQuery: e,
|
|
@@ -1168,7 +1205,7 @@ async function rr(e, t, r, n, a) {
|
|
|
1168
1205
|
throw console.error("Error fetching suggestions:", o), o;
|
|
1169
1206
|
}
|
|
1170
1207
|
}
|
|
1171
|
-
async function
|
|
1208
|
+
async function cr(e, t, r, n) {
|
|
1172
1209
|
const { app: a } = d;
|
|
1173
1210
|
return (await u("api/v1/suggestquery", {
|
|
1174
1211
|
app: a || "",
|
|
@@ -1178,7 +1215,7 @@ async function nr(e, t, r, n) {
|
|
|
1178
1215
|
kinds: n
|
|
1179
1216
|
})).suggests;
|
|
1180
1217
|
}
|
|
1181
|
-
async function
|
|
1218
|
+
async function ir(e, t) {
|
|
1182
1219
|
if (!t) return Promise.resolve([]);
|
|
1183
1220
|
const { app: r } = d;
|
|
1184
1221
|
return (await u("api/v1/suggestfield", {
|
|
@@ -1188,7 +1225,7 @@ async function ar(e, t) {
|
|
|
1188
1225
|
fields: t
|
|
1189
1226
|
})).suggests;
|
|
1190
1227
|
}
|
|
1191
|
-
async function
|
|
1228
|
+
async function lr(e, t, r, n, a, s) {
|
|
1192
1229
|
return u("api/v1/doc.textchunks", {
|
|
1193
1230
|
id: e,
|
|
1194
1231
|
textChunks: t,
|
|
@@ -1198,14 +1235,14 @@ async function sr(e, t, r, n, a, s) {
|
|
|
1198
1235
|
rightSentencesCount: s
|
|
1199
1236
|
});
|
|
1200
1237
|
}
|
|
1201
|
-
async function
|
|
1238
|
+
async function ur() {
|
|
1202
1239
|
const { app: e } = d, t = new URLSearchParams({
|
|
1203
1240
|
app: e || "",
|
|
1204
1241
|
action: "load"
|
|
1205
1242
|
});
|
|
1206
|
-
return
|
|
1243
|
+
return S("api/v1/usersettings", t);
|
|
1207
1244
|
}
|
|
1208
|
-
async function
|
|
1245
|
+
async function Ye(e, t) {
|
|
1209
1246
|
const r = {
|
|
1210
1247
|
action: "save",
|
|
1211
1248
|
userSettings: e,
|
|
@@ -1213,7 +1250,7 @@ async function Je(e, t) {
|
|
|
1213
1250
|
};
|
|
1214
1251
|
return y(r), u("api/v1/usersettings", r);
|
|
1215
1252
|
}
|
|
1216
|
-
async function
|
|
1253
|
+
async function dr(e, t) {
|
|
1217
1254
|
const n = {
|
|
1218
1255
|
action: "patch",
|
|
1219
1256
|
userSettings: e,
|
|
@@ -1221,23 +1258,36 @@ async function cr(e, t) {
|
|
|
1221
1258
|
};
|
|
1222
1259
|
return y(n), u("api/v1/usersettings", n);
|
|
1223
1260
|
}
|
|
1224
|
-
async function
|
|
1225
|
-
return
|
|
1261
|
+
async function fr() {
|
|
1262
|
+
return Ye({}, { type: "UserSettings_Reset" });
|
|
1226
1263
|
}
|
|
1227
|
-
async function
|
|
1264
|
+
async function hr(e, t) {
|
|
1228
1265
|
return u("api/v2/security/password/change", { newPassword: e, currentPassword: t });
|
|
1229
1266
|
}
|
|
1230
|
-
async function
|
|
1267
|
+
async function mr(e) {
|
|
1231
1268
|
const t = "api/v2/security/password/ask-reset-email", n = {
|
|
1232
1269
|
changePasswordRedirectUrl: `${window.location.origin}/login?mode=changepassword`,
|
|
1233
1270
|
userName: e
|
|
1234
1271
|
};
|
|
1235
1272
|
return u(t, n);
|
|
1236
1273
|
}
|
|
1237
|
-
async function
|
|
1238
|
-
return await
|
|
1274
|
+
async function wr(e) {
|
|
1275
|
+
return await S(`api/v2/user-profile/${e}`);
|
|
1276
|
+
}
|
|
1277
|
+
async function _r(e) {
|
|
1278
|
+
return await u("api/v2/user-profile", e);
|
|
1239
1279
|
}
|
|
1240
|
-
|
|
1280
|
+
async function gr(e, t, r) {
|
|
1281
|
+
var a;
|
|
1282
|
+
return await be(
|
|
1283
|
+
`api/v2/user-profile/${(a = e.data) == null ? void 0 : a.id}/${t}/${r}`,
|
|
1284
|
+
e
|
|
1285
|
+
);
|
|
1286
|
+
}
|
|
1287
|
+
async function Sr() {
|
|
1288
|
+
return await S("api/v2/version");
|
|
1289
|
+
}
|
|
1290
|
+
const Ke = async () => {
|
|
1241
1291
|
const { autoOAuthProvider: e } = d;
|
|
1242
1292
|
if (typeof window > "u")
|
|
1243
1293
|
return u("security.oauth", {
|
|
@@ -1261,7 +1311,7 @@ const We = async () => {
|
|
|
1261
1311
|
} catch (r) {
|
|
1262
1312
|
throw console.error("Failed to authenticate with OAuth", r), r;
|
|
1263
1313
|
}
|
|
1264
|
-
},
|
|
1314
|
+
}, Ze = async () => {
|
|
1265
1315
|
const { autoSAMLProvider: e } = d;
|
|
1266
1316
|
if (typeof window > "u")
|
|
1267
1317
|
return u("security.saml", {
|
|
@@ -1300,35 +1350,35 @@ const We = async () => {
|
|
|
1300
1350
|
this.store = {};
|
|
1301
1351
|
}
|
|
1302
1352
|
}, J = H;
|
|
1303
|
-
function
|
|
1353
|
+
function Ee(e) {
|
|
1304
1354
|
return typeof window > "u" || !window.localStorage ? H.getItem(e) : window.localStorage.getItem(e);
|
|
1305
1355
|
}
|
|
1306
|
-
function
|
|
1356
|
+
function Te(e) {
|
|
1307
1357
|
typeof window > "u" || !window.localStorage ? H.removeItem(e) : window.localStorage.removeItem(e);
|
|
1308
1358
|
}
|
|
1309
|
-
function
|
|
1359
|
+
function et(e) {
|
|
1310
1360
|
return typeof window > "u" || !window.sessionStorage ? J.getItem(e) : window.sessionStorage.getItem(e);
|
|
1311
1361
|
}
|
|
1312
|
-
function
|
|
1362
|
+
function tt(e, t) {
|
|
1313
1363
|
typeof window > "u" || !window.sessionStorage ? J.setItem(e, t) : window.sessionStorage.setItem(e, t);
|
|
1314
1364
|
}
|
|
1315
|
-
function
|
|
1365
|
+
function rt(e) {
|
|
1316
1366
|
typeof window > "u" || !window.sessionStorage ? J.removeItem(e) : window.sessionStorage.removeItem(e);
|
|
1317
1367
|
}
|
|
1318
|
-
const
|
|
1368
|
+
const $ = (e) => tt(
|
|
1319
1369
|
"sinequa-credentials",
|
|
1320
1370
|
JSON.stringify({ data: { csrfToken: e } })
|
|
1321
|
-
),
|
|
1371
|
+
), nt = async () => {
|
|
1322
1372
|
try {
|
|
1323
|
-
const e = await
|
|
1373
|
+
const e = await S(
|
|
1324
1374
|
"api/v1/challenge?action=getCsrfToken&suppressErrors=true"
|
|
1325
1375
|
);
|
|
1326
|
-
return e != null && e.csrfToken ? (
|
|
1376
|
+
return e != null && e.csrfToken ? ($(e.csrfToken), e.csrfToken) : null;
|
|
1327
1377
|
} catch (e) {
|
|
1328
1378
|
throw h("Failed to get CSRF token", e), e;
|
|
1329
1379
|
}
|
|
1330
1380
|
};
|
|
1331
|
-
async function
|
|
1381
|
+
async function at(e) {
|
|
1332
1382
|
if (e) {
|
|
1333
1383
|
const { username: t, password: r } = e, n = {
|
|
1334
1384
|
action: "get",
|
|
@@ -1343,7 +1393,7 @@ async function et(e) {
|
|
|
1343
1393
|
"api/v1/security.webtoken",
|
|
1344
1394
|
n
|
|
1345
1395
|
);
|
|
1346
|
-
return a != null && a.csrfToken ? (
|
|
1396
|
+
return a != null && a.csrfToken ? ($(a.csrfToken), a.csrfToken) : null;
|
|
1347
1397
|
} catch (a) {
|
|
1348
1398
|
throw console.error("Failed to get JWT", a), a;
|
|
1349
1399
|
}
|
|
@@ -1367,7 +1417,7 @@ async function et(e) {
|
|
|
1367
1417
|
t,
|
|
1368
1418
|
{ headers: n }
|
|
1369
1419
|
);
|
|
1370
|
-
return a.csrfToken ? (
|
|
1420
|
+
return a.csrfToken ? ($(a.csrfToken), a.csrfToken) : null;
|
|
1371
1421
|
} catch (a) {
|
|
1372
1422
|
throw console.error("Failed to get JWT without credentials", a), a;
|
|
1373
1423
|
}
|
|
@@ -1375,22 +1425,22 @@ async function et(e) {
|
|
|
1375
1425
|
}
|
|
1376
1426
|
const W = () => {
|
|
1377
1427
|
var r;
|
|
1378
|
-
const e =
|
|
1428
|
+
const e = et("sinequa-credentials");
|
|
1379
1429
|
if (e)
|
|
1380
1430
|
try {
|
|
1381
1431
|
const a = (r = JSON.parse(e).data) == null ? void 0 : r.csrfToken;
|
|
1382
1432
|
if (a !== void 0) return a;
|
|
1383
1433
|
} catch {
|
|
1384
1434
|
}
|
|
1385
|
-
const t =
|
|
1435
|
+
const t = Ee("csrfToken");
|
|
1386
1436
|
return t !== null ? t : null;
|
|
1387
|
-
},
|
|
1437
|
+
}, pr = async (e) => {
|
|
1388
1438
|
if (e)
|
|
1389
|
-
|
|
1439
|
+
p("Attempting authentication using credentials"), k({ useCredentials: !0, useSSO: !1 });
|
|
1390
1440
|
else {
|
|
1391
1441
|
let o = null;
|
|
1392
1442
|
try {
|
|
1393
|
-
|
|
1443
|
+
p("Attempting to retrieve CSRF token from the backend"), o = await nt(), x("CSRF token retrieval result", o ? "success" : "failed");
|
|
1394
1444
|
} catch (c) {
|
|
1395
1445
|
h("Failed to retrieve CSRF token", c);
|
|
1396
1446
|
}
|
|
@@ -1398,170 +1448,177 @@ const W = () => {
|
|
|
1398
1448
|
if (o === null) {
|
|
1399
1449
|
const { autoOAuthProvider: c, autoSAMLProvider: l, useSAML: f } = d;
|
|
1400
1450
|
if (c && !f)
|
|
1401
|
-
return
|
|
1451
|
+
return p("Initiating OAuth authentication flow"), await Ke(), P("OAuth authentication flow did not redirect as expected"), _(!1), !1;
|
|
1402
1452
|
if (l)
|
|
1403
|
-
return
|
|
1404
|
-
|
|
1453
|
+
return p("Initiating SAML authentication flow"), await Ze(), P("SAML authentication flow did not redirect as expected"), _(!1), !1;
|
|
1454
|
+
p(
|
|
1405
1455
|
"No direct authentication method available, will try SSO then credentials"
|
|
1406
1456
|
), k({ useCredentials: !0, useSSO: !0 });
|
|
1407
1457
|
} else
|
|
1408
|
-
return
|
|
1458
|
+
return p("User authenticated via existing token"), _(!0), !0;
|
|
1409
1459
|
} catch (c) {
|
|
1410
|
-
throw h("Unexpected error during authentication", c),
|
|
1460
|
+
throw h("Unexpected error during authentication", c), _(!1), c;
|
|
1411
1461
|
}
|
|
1412
1462
|
}
|
|
1413
1463
|
if (d.useCredentials && d.useSSO)
|
|
1414
1464
|
try {
|
|
1415
|
-
if (
|
|
1416
|
-
return
|
|
1465
|
+
if (p("Checking if user is authenticated via SSO"), await ce())
|
|
1466
|
+
return p("User authenticated using SSO"), k({ useCredentials: !1, useSSO: !0 }), _(!0), !0;
|
|
1417
1467
|
} catch (o) {
|
|
1418
1468
|
if ((o == null ? void 0 : o.status) === 401)
|
|
1419
|
-
return
|
|
1420
|
-
throw h("SSO authentication failed with unexpected error", o),
|
|
1469
|
+
return p("SSO authentication failed with 401, falling back to credentials"), k({ useCredentials: !0, useSSO: !1 }), !1;
|
|
1470
|
+
throw h("SSO authentication failed with unexpected error", o), _(!1), h;
|
|
1421
1471
|
}
|
|
1422
1472
|
const { useSSO: r } = d, n = W();
|
|
1423
1473
|
if (n && n !== null || r)
|
|
1424
|
-
return
|
|
1474
|
+
return p("user already authenticated", n), k({ isRedirectUrl: !1 }), _(!0), !0;
|
|
1425
1475
|
const { useCredentials: a } = d, { username: s, password: i } = e || {};
|
|
1426
1476
|
if (a && !s && !i)
|
|
1427
|
-
return h("Credentials are required for authentication"),
|
|
1477
|
+
return h("Credentials are required for authentication"), _(!1), !1;
|
|
1428
1478
|
if (s && i)
|
|
1429
1479
|
try {
|
|
1430
|
-
|
|
1480
|
+
p("authentication using credentials..."), k({ useCredentials: !0, useSSO: !1 });
|
|
1431
1481
|
const { userOverrideActive: o, useroverride: c } = d;
|
|
1432
|
-
return k({ userOverrideActive: !1, useroverride: void 0 }), await
|
|
1482
|
+
return k({ userOverrideActive: !1, useroverride: void 0 }), await at({ username: s, password: i }), k({ userOverrideActive: o, useroverride: c }), _(!0), !0;
|
|
1433
1483
|
} catch (o) {
|
|
1434
|
-
throw
|
|
1484
|
+
throw _(!1), o;
|
|
1435
1485
|
}
|
|
1436
|
-
return
|
|
1486
|
+
return _(!1), h(
|
|
1437
1487
|
"No authentication method available. Please provide credentials or configure OAuth/SAML."
|
|
1438
1488
|
), !1;
|
|
1439
|
-
},
|
|
1489
|
+
}, st = async () => {
|
|
1440
1490
|
const e = new URLSearchParams({
|
|
1441
1491
|
action: "deleteWebTokenCookie",
|
|
1442
1492
|
noUserOverride: "true",
|
|
1443
1493
|
noAutoAuthentication: "true"
|
|
1444
1494
|
});
|
|
1445
|
-
return
|
|
1446
|
-
},
|
|
1495
|
+
return S("api/v1/challenge", e);
|
|
1496
|
+
}, kr = async () => {
|
|
1447
1497
|
const { useCredentials: e, userOverrideActive: t } = d;
|
|
1448
|
-
|
|
1449
|
-
},
|
|
1498
|
+
Te("csrfToken"), rt("sinequa-credentials"), e && !t ? (await st()).methodresult === "ok" ? _(!1) : console.error("logout failed") : _(!1);
|
|
1499
|
+
}, vr = () => !!W();
|
|
1450
1500
|
export {
|
|
1501
|
+
Tt as API,
|
|
1451
1502
|
b as ApiError,
|
|
1452
|
-
|
|
1503
|
+
Gt as Audit,
|
|
1453
1504
|
v as AuditEventType,
|
|
1454
|
-
|
|
1505
|
+
Ce as DidYouMeanKind,
|
|
1455
1506
|
m as EngineType,
|
|
1456
1507
|
g as EngineTypeModifier,
|
|
1457
1508
|
ae as LogLevel,
|
|
1458
|
-
|
|
1459
|
-
|
|
1509
|
+
Nt as MINIMUM_COMPATIBLE_SERVER_API_VERSION,
|
|
1510
|
+
Re as RFMDisplay,
|
|
1460
1511
|
K as ServerError,
|
|
1461
|
-
|
|
1462
|
-
|
|
1512
|
+
de as TimeoutError,
|
|
1513
|
+
V as UnauthorizedError,
|
|
1463
1514
|
y as addAuditAdditionalInfo,
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1515
|
+
dt as addConcepts,
|
|
1516
|
+
De as addSessionId,
|
|
1517
|
+
Ae as addUrl,
|
|
1518
|
+
fe as aggItemRegex,
|
|
1519
|
+
it as aggregationItemStrictCompare,
|
|
1520
|
+
Jt as appInitializerFn,
|
|
1521
|
+
ut as bisect,
|
|
1471
1522
|
z as buildPathsAndLevels,
|
|
1472
|
-
|
|
1523
|
+
Lt as configureLogger,
|
|
1473
1524
|
L as createHeaders,
|
|
1474
|
-
|
|
1525
|
+
Ut as createTimeoutController,
|
|
1526
|
+
_r as createUserProfile,
|
|
1475
1527
|
x as debug,
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1528
|
+
yt as del,
|
|
1529
|
+
fr as deleteUserSettings,
|
|
1530
|
+
st as deleteWebTokenCookie,
|
|
1531
|
+
_ as emitAuthenticatedEvent,
|
|
1480
1532
|
h as error,
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
ar as
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1533
|
+
jt as escapeExpr,
|
|
1534
|
+
It as expiresSoon,
|
|
1535
|
+
Ft as extraColumns,
|
|
1536
|
+
zt as fetchAggregation,
|
|
1537
|
+
Ht as fetchApp,
|
|
1538
|
+
qe as fetchAppPreLogin,
|
|
1539
|
+
tr as fetchBulkQuery,
|
|
1540
|
+
hr as fetchChangePassword,
|
|
1541
|
+
Wt as fetchDataset,
|
|
1542
|
+
Mt as fetchDatasetList,
|
|
1543
|
+
Xt as fetchDatasets,
|
|
1544
|
+
Yt as fetchLabels,
|
|
1545
|
+
Zt as fetchPreview,
|
|
1546
|
+
Et as fetchPreviewUrl,
|
|
1547
|
+
ce as fetchPrincipal,
|
|
1548
|
+
We as fetchPrincipalList,
|
|
1549
|
+
Xe as fetchPrincipalUserid,
|
|
1550
|
+
Me as fetchPrincipalUserids,
|
|
1551
|
+
er as fetchQuery,
|
|
1552
|
+
rr as fetchQueryExport,
|
|
1553
|
+
nr as fetchQueryIntent,
|
|
1554
|
+
mr as fetchSendPasswordResetEmail,
|
|
1555
|
+
ar as fetchSimilarDocuments,
|
|
1556
|
+
sr as fetchSponsoredLinks,
|
|
1557
|
+
or as fetchSuggest,
|
|
1558
|
+
ir as fetchSuggestField,
|
|
1559
|
+
cr as fetchSuggestQuery,
|
|
1560
|
+
lr as fetchTextChunks,
|
|
1561
|
+
wr as fetchUserProfile,
|
|
1562
|
+
ur as fetchUserSettings,
|
|
1563
|
+
Sr as fetchVersion,
|
|
1564
|
+
S as get,
|
|
1565
|
+
mt as getConcepts,
|
|
1566
|
+
nt as getCsrfToken,
|
|
1511
1567
|
ne as getFiltersFromURI,
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1568
|
+
pt as getFiltersFromUrl,
|
|
1569
|
+
xt as getHelpIndexUrl,
|
|
1570
|
+
vt as getIdFromUrl,
|
|
1571
|
+
at as getJWToken,
|
|
1572
|
+
Bt as getMetadata,
|
|
1573
|
+
qt as getMetadataWithValues,
|
|
1574
|
+
ve as getOffsetFromDates,
|
|
1575
|
+
bt as getQueryPageFromUrl,
|
|
1576
|
+
gt as getQueryParamsFromUrl,
|
|
1577
|
+
Ct as getQueryTabFromUrl,
|
|
1578
|
+
kt as getQueryTextFromUrl,
|
|
1579
|
+
wt as getRelativeDate,
|
|
1524
1580
|
W as getToken,
|
|
1525
|
-
|
|
1581
|
+
St as getUrlParamsFromQueryParams,
|
|
1526
1582
|
d as globalConfig,
|
|
1527
|
-
|
|
1583
|
+
$e as guid,
|
|
1528
1584
|
C as handleResponse,
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1585
|
+
p as info,
|
|
1586
|
+
ye as isArrayBuffer,
|
|
1587
|
+
vr as isAuthenticated,
|
|
1588
|
+
Oe as isBlob,
|
|
1589
|
+
$t as isExpired,
|
|
1590
|
+
Qt as isJsonable,
|
|
1591
|
+
_t as isNotInputEvent,
|
|
1536
1592
|
A as isObject,
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1593
|
+
Ue as isString,
|
|
1594
|
+
Kt as labels,
|
|
1595
|
+
pr as login,
|
|
1596
|
+
kr as logout,
|
|
1597
|
+
w as makeColumn,
|
|
1598
|
+
Pt as notify,
|
|
1599
|
+
me as openParentNodes,
|
|
1544
1600
|
I as parseText,
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1601
|
+
he as parseValueAndOperatorFromItem,
|
|
1602
|
+
be as patch,
|
|
1603
|
+
gr as patchUserProfile,
|
|
1604
|
+
dr as patchUserSettings,
|
|
1548
1605
|
u as post,
|
|
1549
|
-
|
|
1606
|
+
Ot as put,
|
|
1550
1607
|
R as queryParamsFromUrl,
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1608
|
+
ft as removeConcept,
|
|
1609
|
+
ht as removeConcepts,
|
|
1610
|
+
At as resolveToColumnName,
|
|
1611
|
+
G as rewriteText,
|
|
1612
|
+
Ye as saveUserSettings,
|
|
1556
1613
|
k as setGlobalConfig,
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1614
|
+
$ as setToken,
|
|
1615
|
+
Vt as sha512,
|
|
1616
|
+
lt as suggestionsToTreeAggregationNodes,
|
|
1617
|
+
Rt as sysLang,
|
|
1561
1618
|
se as toDate,
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1619
|
+
ct as translateAggregationToDateOptions,
|
|
1620
|
+
Ke as tryOAuthAuthentication,
|
|
1621
|
+
Ze as trySAMLAuthentication,
|
|
1565
1622
|
P as warn,
|
|
1566
|
-
|
|
1623
|
+
Dt as withRetry
|
|
1567
1624
|
};
|