@sinequa/atomic 2.3.1 → 2.4.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.
- package/README.md +406 -343
- package/dist/atomic.cjs +1 -1
- package/dist/atomic.js +2 -2
- package/dist/authentication/events/emit-authenticated-event.d.ts.map +1 -1
- package/dist/authentication/session/logout.d.ts.map +1 -1
- package/dist/authentication/session/signed-out-guard.d.ts +23 -0
- package/dist/authentication/session/signed-out-guard.d.ts.map +1 -0
- package/dist/client/create-api.d.ts +1 -1
- package/dist/configurations/auth-mode.d.ts +2 -2
- package/dist/configurations/global.config.d.ts +33 -2
- package/dist/configurations/global.config.d.ts.map +1 -1
- package/dist/helpers/aggregation-count.d.ts +68 -0
- package/dist/helpers/aggregation-count.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/utils.d.ts +29 -4
- package/dist/helpers/utils.d.ts.map +1 -1
- package/dist/spfx/index.cjs +1 -1
- package/dist/spfx/index.js +2 -2
- package/dist/{src-BzPBKdDO.js → src-DQM5GZF-.js} +693 -658
- package/dist/src-yvCcJDJS.cjs +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/web-api/helpers/methods/send-request.d.ts +0 -4
- package/dist/web-api/helpers/methods/send-request.d.ts.map +1 -1
- package/dist/web-api/v1/fetch-aggregation.d.ts +26 -5
- package/dist/web-api/v1/fetch-aggregation.d.ts.map +1 -1
- package/dist/web-api/v1/fetch-audit.d.ts +7 -0
- package/dist/web-api/v1/fetch-audit.d.ts.map +1 -1
- package/dist/web-api/v1/fetch-query.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/src-DeaVS0Tt.cjs +0 -1
package/dist/atomic.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./src-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./src-yvCcJDJS.cjs");exports.API=e.ct,exports.ApiError=e.Vn,exports.Audit=e.Tt,exports.AuditEventType=e.Qt,exports.AuthMode=e.Qn,exports.DEFAULT_AGGREGATION_COUNT=e.en,exports.DidYouMeanKind=e.Jt,exports.EngineType=e.Zt,exports.EngineTypeModifier=e.Xt,exports.LogLevel=e.ir,exports.MINIMUM_COMPATIBLE_SERVER_API_VERSION=e.Yt,exports.RFMDisplay=e.qt,exports.ServerError=e.Rn,exports.TimeoutError=e.jn,exports.UnauthorizedError=e.Bn,exports.addAuditAdditionalInfo=e.Et,exports.addConcepts=e.g,exports.addSessionId=e.Dt,exports.addUrl=e.Ot,exports.aggItemRegex=e.C,exports.aggregationHasMore=e.tn,exports.aggregationItemStrictCompare=e.w,exports.appInitializerFn=e.rn,exports.applyConfig=e.Yn,exports.assertNever=e.Sn,exports.bisect=e.S,exports.buildPathsAndLevels=e.at,exports.clearSessionTokens=e.hn,exports.configureLogger=e.ar,exports.createAtomicClient=e.k,exports.createContainer=e.L,exports.createHeaders=e.Hn,exports.createHeadersWithContext=e.Un,exports.createTimeoutController=e.An,exports.createUserProfile=e.M,Object.defineProperty(exports,"debug",{enumerable:!0,get:function(){return e.or}}),exports.del=e.dn,exports.delWithContext=e.fn,exports.deleteContainerDocuments=e.R,exports.deleteContainers=e.z,exports.deleteUserProfileProperty=e.N,exports.deleteUserSettings=e.G,exports.deleteWebTokenCookie=e._n,exports.detectAuthMode=e.Dn,exports.emitAuthenticatedEvent=e.Gn,Object.defineProperty(exports,"error",{enumerable:!0,get:function(){return e.sr}}),exports.escapeExpr=e.kt,exports.expiresSoon=e.gt,exports.extraColumns=e.Gt,exports.fetchAggregation=e.wt,exports.fetchApp=e.in,exports.fetchAppPreLogin=e.an,exports.fetchBulkQuery=e.ot,exports.fetchChangePassword=e.W,exports.fetchDataset=e.xt,exports.fetchDatasetList=e.St,exports.fetchDatasets=e.Ct,exports.fetchLabels=e.yt,exports.fetchPreview=e.pt,exports.fetchPreviewUrl=e.mt,exports.fetchPrincipal=e.lt,exports.fetchPrincipalList=e.ut,exports.fetchPrincipalUserid=e.dt,exports.fetchPrincipalUserids=e.ft,exports.fetchQuery=e.st,exports.fetchQueryExport=e.it,exports.fetchQueryIntent=e.rt,exports.fetchSendPasswordResetEmail=e.I,exports.fetchSimilarDocuments=e.tt,exports.fetchSponsoredLinks=e.et,exports.fetchSuggest=e.X,exports.fetchSuggestField=e.Z,exports.fetchSuggestQuery=e.Q,exports.fetchTextChunks=e.Y,exports.fetchUserProfile=e.P,exports.fetchUserSettings=e.K,exports.fetchVersion=e.j,exports.filter=e.Ut,exports.get=e.Tn,exports.getConcepts=e._,exports.getContainer=e.B,exports.getCsrfToken=e.wn,exports.getDefaultClient=e.A,exports.getFiltersFromURI=e.r,exports.getFiltersFromUrl=e.i,exports.getHelpIndexUrl=e.t,exports.getIdFromUrl=e.a,exports.getJWToken=e.bn,exports.getMetadata=e.Vt,exports.getMetadataWithValues=e.Ht,exports.getOffsetFromDates=e.m,exports.getQueryPageFromUrl=e.o,exports.getQueryParamsFromUrl=e.s,exports.getQueryTabFromUrl=e.c,exports.getQueryTextFromUrl=e.l,exports.getRelativeDate=e.h,exports.getTime=e.At,exports.getToken=e.Wn,exports.getUrlParamsFromQueryParams=e.u,exports.getWithContext=e.En,exports.globalConfig=e.Xn,exports.guid=e.jt,exports.handleResponse=e.In,exports.handleResponseWithContext=e.Ln,exports.hasSession=e.Cn,exports.hashString=e.Mt,Object.defineProperty(exports,"info",{enumerable:!0,get:function(){return e.cr}}),exports.initializeAppConfig=e.on,exports.isArrayBuffer=e.Nt,exports.isAuthenticated=e.pn,exports.isBlob=e.Pt,exports.isDate=e.Ft,exports.isExpired=e._t,exports.isExternalAuthMode=e.$n,exports.isJsonable=e.It,exports.isNotInputEvent=e.p,exports.isObject=e.Lt,exports.isRedirectPending=e.mn,exports.isString=e.Rt,exports.labels=e.bt,exports.legacyBooleansToAuthMode=e.er,exports.legacyFilterToFilter=e.Wt,exports.listContainerDocuments=e.V,exports.listContainers=e.H,exports.login=e.vn,exports.logout=e.gn,exports.makeColumn=e.Kt,exports.notify=e.f,exports.onAuthEvent=e.ur,exports.openParentNodes=e.T,exports.parseText=e.v,exports.parseValueAndOperatorFromItem=e.E,exports.patch=e.ln,exports.patchUserProfile=e.F,exports.patchUserSettings=e.q,exports.patchWithContext=e.un,exports.post=e.Mn,exports.postWithContext=e.Nn,exports.put=e.sn,exports.putWithContext=e.cn,exports.queryParamsFromUrl=e.d,exports.removeConcept=e.y,exports.removeConcepts=e.b,exports.requestWebTokenSession=e.xn,exports.resolveAggregationCount=e.nn,exports.resolveBearerToken=e.tr,exports.resolveNoAutoAuthentication=e.Pn,exports.resolveNoAutoAuthenticationWithContext=e.Fn,exports.resolveOAuthProvider=e.nr,exports.resolveSAMLProvider=e.rr,exports.resolveToColumnName=e.$t,exports.resultPages=e.Bt,exports.rewriteText=e.x,exports.saveUserSettings=e.J,exports.searchPrincipals=e.nt,exports.setGlobalConfig=e.Zn,exports.setToken=e.zn,exports.sha512=e.zt,exports.suggestionsToTreeAggregationNodes=e.D,exports.sysLang=e.n,exports.toDate=e.vt,exports.toSqlValue=e.$,exports.translateAggregationToDateOptions=e.O,exports.tryAutoAuthentication=e.yn,exports.tryOAuthAuthentication=e.kn,exports.trySAMLAuthentication=e.On,exports.updateContainer=e.U,Object.defineProperty(exports,"warn",{enumerable:!0,get:function(){return e.lr}}),exports.withRetry=e.ht;
|
package/dist/atomic.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, Bt as c, C as l, Cn as u, Ct as d, D as f, Dn as p, Dt as m, E as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, Gt as C, H as w,
|
|
2
|
-
export {
|
|
1
|
+
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, Bt as c, C as l, Cn as u, Ct as d, D as f, Dn as p, Dt as m, E as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, Gt as C, H as w, Hn as T, Ht as E, I as D, In as O, It as k, J as A, Jt as j, K as M, Kt as N, L as P, Ln as F, Lt as I, M as L, Mn as R, Mt as z, N as B, Nn as V, Nt as H, O as U, On as W, Ot as G, P as K, Pn as q, Pt as J, Q as Y, Qn as X, Qt as Z, R as Q, Rn as $, Rt as ee, S as te, Sn as ne, St as re, T as ie, Tn as ae, Tt as oe, U as se, Un as ce, Ut as le, V as ue, Vn as de, Vt as fe, W as pe, Wn as me, Wt as he, X as ge, Xn as _e, Xt as ve, Y as ye, Yn as be, Yt as xe, Z as Se, Zn as Ce, Zt as we, _ as Te, _n as Ee, _t as De, a as Oe, an as ke, ar as Ae, at as je, b as Me, bn as Ne, bt as Pe, c as Fe, cn as Ie, cr as Le, ct as Re, d as ze, dn as Be, dt as Ve, en as He, er as Ue, et as We, f as Ge, fn as Ke, ft as qe, g as Je, gn as Ye, gt as Xe, h as Ze, hn as Qe, ht as $e, i as et, in as tt, ir as nt, it as rt, j as it, jn as at, jt as ot, k as st, kn as ct, kt as lt, l as ut, ln as dt, lr as ft, lt as pt, m as mt, mn as ht, mt as gt, n as _t, nn as vt, nr as yt, nt as bt, o as xt, on as St, or as Ct, ot as wt, p as Tt, pn as Et, pt as Dt, q as Ot, qt as kt, r as At, rn as jt, rr as Mt, rt as Nt, s as Pt, sn as Ft, sr as It, st as Lt, t as Rt, tn as zt, tr as Bt, tt as Vt, u as Ht, un as Ut, ur as Wt, ut as Gt, v as Kt, vn as qt, vt as Jt, w as Yt, wn as Xt, wt as Zt, x as Qt, xn as $t, xt as en, y as tn, yn as nn, yt as rn, z as an, zn as on, zt as sn } from "./src-DQM5GZF-.js";
|
|
2
|
+
export { Re as API, de as ApiError, oe as Audit, Z as AuditEventType, X as AuthMode, He as DEFAULT_AGGREGATION_COUNT, j as DidYouMeanKind, we as EngineType, ve as EngineTypeModifier, nt as LogLevel, xe as MINIMUM_COMPATIBLE_SERVER_API_VERSION, kt as RFMDisplay, $ as ServerError, at as TimeoutError, s as UnauthorizedError, _ as addAuditAdditionalInfo, Je as addConcepts, m as addSessionId, G as addUrl, l as aggItemRegex, zt as aggregationHasMore, Yt as aggregationItemStrictCompare, jt as appInitializerFn, be as applyConfig, ne as assertNever, te as bisect, je as buildPathsAndLevels, Qe as clearSessionTokens, Ae as configureLogger, st as createAtomicClient, P as createContainer, T as createHeaders, ce as createHeadersWithContext, i as createTimeoutController, L as createUserProfile, Ct as debug, Be as del, Ke as delWithContext, Q as deleteContainerDocuments, an as deleteContainers, B as deleteUserProfileProperty, x as deleteUserSettings, Ee as deleteWebTokenCookie, p as detectAuthMode, S as emitAuthenticatedEvent, It as error, lt as escapeExpr, Xe as expiresSoon, C as extraColumns, Zt as fetchAggregation, tt as fetchApp, ke as fetchAppPreLogin, wt as fetchBulkQuery, pe as fetchChangePassword, en as fetchDataset, re as fetchDatasetList, d as fetchDatasets, rn as fetchLabels, Dt as fetchPreview, gt as fetchPreviewUrl, pt as fetchPrincipal, Gt as fetchPrincipalList, Ve as fetchPrincipalUserid, qe as fetchPrincipalUserids, Lt as fetchQuery, rt as fetchQueryExport, Nt as fetchQueryIntent, D as fetchSendPasswordResetEmail, Vt as fetchSimilarDocuments, We as fetchSponsoredLinks, ge as fetchSuggest, Se as fetchSuggestField, Y as fetchSuggestQuery, ye as fetchTextChunks, K as fetchUserProfile, M as fetchUserSettings, it as fetchVersion, le as filter, ae as get, Te as getConcepts, o as getContainer, Xt as getCsrfToken, r as getDefaultClient, At as getFiltersFromURI, et as getFiltersFromUrl, Rt as getHelpIndexUrl, Oe as getIdFromUrl, Ne as getJWToken, fe as getMetadata, E as getMetadataWithValues, mt as getOffsetFromDates, xt as getQueryPageFromUrl, Pt as getQueryParamsFromUrl, Fe as getQueryTabFromUrl, ut as getQueryTextFromUrl, Ze as getRelativeDate, a as getTime, me as getToken, Ht as getUrlParamsFromQueryParams, g as getWithContext, _e as globalConfig, ot as guid, O as handleResponse, F as handleResponseWithContext, u as hasSession, z as hashString, Le as info, St as initializeAppConfig, H as isArrayBuffer, Et as isAuthenticated, J as isBlob, b as isDate, De as isExpired, t as isExternalAuthMode, k as isJsonable, Tt as isNotInputEvent, I as isObject, ht as isRedirectPending, ee as isString, Pe as labels, Ue as legacyBooleansToAuthMode, he as legacyFilterToFilter, ue as listContainerDocuments, w as listContainers, qt as login, Ye as logout, N as makeColumn, Ge as notify, Wt as onAuthEvent, ie as openParentNodes, Kt as parseText, h as parseValueAndOperatorFromItem, dt as patch, v as patchUserProfile, Ot as patchUserSettings, Ut as patchWithContext, R as post, V as postWithContext, Ft as put, Ie as putWithContext, ze as queryParamsFromUrl, tn as removeConcept, Me as removeConcepts, $t as requestWebTokenSession, vt as resolveAggregationCount, Bt as resolveBearerToken, q as resolveNoAutoAuthentication, y as resolveNoAutoAuthenticationWithContext, yt as resolveOAuthProvider, Mt as resolveSAMLProvider, n as resolveToColumnName, c as resultPages, Qt as rewriteText, A as saveUserSettings, bt as searchPrincipals, Ce as setGlobalConfig, on as setToken, sn as sha512, f as suggestionsToTreeAggregationNodes, _t as sysLang, Jt as toDate, e as toSqlValue, U as translateAggregationToDateOptions, nn as tryAutoAuthentication, ct as tryOAuthAuthentication, W as trySAMLAuthentication, se as updateContainer, ft as warn, $e as withRetry };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-authenticated-event.d.ts","sourceRoot":"","sources":["../../../src/authentication/events/emit-authenticated-event.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"emit-authenticated-event.d.ts","sourceRoot":"","sources":["../../../src/authentication/events/emit-authenticated-event.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAC;AAGrC;;;GAGG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,aAAa,EAClB,aAAa,EAAE,OAAO,QA4BvB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,OAAO,QAE5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../src/authentication/session/logout.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAKnB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../src/authentication/session/logout.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAKnB,MAAM,6BAA6B,CAAC;AAQrC;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,aAAa,GACjB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAgC7B;AAED,6BAA6B;AAC7B,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE1D;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAatE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AtomicContext } from "../../client/atomic-context";
|
|
2
|
+
/**
|
|
3
|
+
* Records that this context's user signed out on purpose. Called by `logout()`, and only by it —
|
|
4
|
+
* `clearSessionTokens()` also runs as a pre-flight reset before a silent re-authentication, where
|
|
5
|
+
* suppressing recovery would be exactly wrong.
|
|
6
|
+
*/
|
|
7
|
+
export declare function markSignedOutWithContext(ctx: AtomicContext): void;
|
|
8
|
+
/**
|
|
9
|
+
* Whether this context is in the window between a deliberate logout and the next authentication.
|
|
10
|
+
*
|
|
11
|
+
* @see markSignedOutWithContext
|
|
12
|
+
*/
|
|
13
|
+
export declare function isSignedOutWithContext(ctx: AtomicContext): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Ends that window: a session exists again, so a later `401` is an ordinary expiry to recover from.
|
|
16
|
+
*
|
|
17
|
+
* Called from `emitAuthenticatedEventWithContext(ctx, true)` — the one thing every successful
|
|
18
|
+
* authentication path has in common (credentials, bearer, an already-live session, an ambient SSO
|
|
19
|
+
* handshake). Clearing it at each of those call sites instead would leave the next path added to
|
|
20
|
+
* `login()` silently signed out for the rest of the page's life.
|
|
21
|
+
*/
|
|
22
|
+
export declare function clearSignedOutWithContext(ctx: AtomicContext): void;
|
|
23
|
+
//# sourceMappingURL=signed-out-guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signed-out-guard.d.ts","sourceRoot":"","sources":["../../../src/authentication/session/signed-out-guard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAuBjE;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAEjE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAElE;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAElE"}
|
|
@@ -38,7 +38,7 @@ export declare function createApi(ctx: AtomicContext): {
|
|
|
38
38
|
query: import("..").Query;
|
|
39
39
|
article?: import("..").Article;
|
|
40
40
|
}) => Promise<Response>;
|
|
41
|
-
aggregate: (aggregation: import("..").Aggregation, query: import("..").Query, audit?: import("..").AuditEvents | undefined) => Promise<import("..").Aggregation>;
|
|
41
|
+
aggregate: (aggregation: import("..").Aggregation, query: import("..").Query, audit?: import("..").AuditEvents | undefined, count?: number | undefined) => Promise<import("..").Aggregation>;
|
|
42
42
|
sponsoredLinks: (webservice: string, query: import("..").Query) => Promise<import("..").LinkResult[]>;
|
|
43
43
|
similarDocuments: (documentId: string, queryName: string, signal?: AbortSignal | undefined) => Promise<import("..").Article[]>;
|
|
44
44
|
};
|
|
@@ -43,8 +43,8 @@ export declare const AuthMode: {
|
|
|
43
43
|
* @param token - The Sinequa access token, sent as `Authorization: Bearer <token>`.
|
|
44
44
|
* @param options.sessionCookie - Whether to also open a **server session** by exchanging the token
|
|
45
45
|
* through `security.webtoken` (`tokenInCookie`). Defaults to `true`, and a server that refuses
|
|
46
|
-
* the exchange falls back to the header alone — see {@link AuthMode} and
|
|
47
|
-
*
|
|
46
|
+
* the exchange falls back to the header alone — see {@link AuthMode} and `docs/auth/bearer.mdx`.
|
|
47
|
+
* Pass `false` for a headless, server-to-server consumer:
|
|
48
48
|
* there is no browser to load anything on its own, so the roundtrip buys nothing.
|
|
49
49
|
*/
|
|
50
50
|
readonly bearer: (token: string, options?: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AggregationCounts } from "../helpers/aggregation-count";
|
|
2
|
+
import { type LogLevel } from "../utils/logger";
|
|
2
3
|
import { type AuthMode as AuthModeType } from "./auth-mode";
|
|
3
4
|
import type { AuthOptions } from "./auth-options";
|
|
4
5
|
/**
|
|
@@ -16,7 +17,6 @@ export type AppGlobalConfig<T extends Record<string, unknown> = {}> = {
|
|
|
16
17
|
autoOAuthProvider: string;
|
|
17
18
|
autoSAMLProvider: string;
|
|
18
19
|
bearerToken: string;
|
|
19
|
-
loginPath: string;
|
|
20
20
|
userOverride: {
|
|
21
21
|
username: string;
|
|
22
22
|
domain: string;
|
|
@@ -31,13 +31,44 @@ export type AppGlobalConfig<T extends Record<string, unknown> = {}> = {
|
|
|
31
31
|
* when not configured, so the server keeps applying its own default.
|
|
32
32
|
*/
|
|
33
33
|
uiLanguage: string;
|
|
34
|
+
/**
|
|
35
|
+
* The number of values the server returns per aggregation, keyed by aggregation name — the
|
|
36
|
+
* administrator's `CCAggregation.count`, which no query response repeats.
|
|
37
|
+
*
|
|
38
|
+
* Declare it (typically once at start-up, from `api.app.get()`) so `$hasMore` is computed against
|
|
39
|
+
* the real page size. Aggregations left out fall back to
|
|
40
|
+
* {@link DEFAULT_AGGREGATION_COUNT}. @see AggregationCounts
|
|
41
|
+
*/
|
|
42
|
+
aggregationCounts: AggregationCounts;
|
|
34
43
|
/** @deprecated Derived read-only getter computed from {@link authMode}. */
|
|
35
44
|
useCredentials: boolean;
|
|
36
45
|
/** @deprecated Derived read-only getter computed from {@link authMode}. */
|
|
37
46
|
useSSO: boolean;
|
|
38
47
|
/** @deprecated Derived read-only getter computed from {@link authMode}. */
|
|
39
48
|
useSAML: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Verbosity of the library logger, applied by {@link setGlobalConfig}.
|
|
51
|
+
*
|
|
52
|
+
* It used to be declared, defaulted, and read by nothing — so an application that set it got
|
|
53
|
+
* silence, and the comment here described a boolean ("when true, the application logs more
|
|
54
|
+
* information") for a value that was never one. `setGlobalConfig({ logLevel })` now forwards to
|
|
55
|
+
* `configureLogger({ level })`.
|
|
56
|
+
*
|
|
57
|
+
* A client created with `createAtomicClient` does **not** apply it: the library logger is
|
|
58
|
+
* process-wide, so a second client repointing it would silence the first. Inject `auth.logger`
|
|
59
|
+
* per client instead.
|
|
60
|
+
*/
|
|
40
61
|
logLevel: LogLevel;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Read by nothing in this library. Routing belongs to the application: react to the
|
|
64
|
+
* `unauthorized` event, or configure `auth.recoverFromUnauthorized`. It will stop being declared
|
|
65
|
+
* in the next major.
|
|
66
|
+
*/
|
|
67
|
+
loginPath: string;
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Read by nothing in this library, and always has been. It will stop being declared in
|
|
70
|
+
* the next major.
|
|
71
|
+
*/
|
|
41
72
|
createRoutes: boolean;
|
|
42
73
|
} & T;
|
|
43
74
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.config.d.ts","sourceRoot":"","sources":["../../src/configurations/global.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"global.config.d.ts","sourceRoot":"","sources":["../../src/configurations/global.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAEL,KAAK,QAAQ,IAAI,YAAY,EAE9B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,IAAI;IACpE,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,EAAE,YAAY,CAAC;IACvB,sGAAsG;IACtG,IAAI,EAAE,WAAW,CAAC;IAClB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,2EAA2E;IAC3E,cAAc,EAAE,OAAO,CAAC;IACxB,2EAA2E;IAC3E,MAAM,EAAE,OAAO,CAAC;IAChB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;;;;;;;OAWG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB,GAAG,CAAC,CAAC;AAEN;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAIpE,CAAC;AAsCF;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACzD,IAAI,CASN;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1D,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACzD,IAAI,CAwBN;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { Aggregation, Query } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Page size assumed for an aggregation when nothing declares one.
|
|
4
|
+
*
|
|
5
|
+
* It mirrors the value the Sinequa administration proposes for
|
|
6
|
+
* [CCAggregation.count]{@link CCAggregation#count}, and it is a **fallback, not a fact**: a query
|
|
7
|
+
* web service configured with another count answers exactly the same way, so there is nothing in the
|
|
8
|
+
* response that would let the client notice. Declare the real sizes with
|
|
9
|
+
* {@link AggregationCounts} to get `$hasMore` right on those aggregations.
|
|
10
|
+
*/
|
|
11
|
+
export declare const DEFAULT_AGGREGATION_COUNT = 10;
|
|
12
|
+
/**
|
|
13
|
+
* The number of values the server returns per aggregation, keyed by aggregation name.
|
|
14
|
+
*
|
|
15
|
+
* This is the administrator's decision — [CCAggregation.count]{@link CCAggregation#count}, *the
|
|
16
|
+
* maximum number of values to retrieve* — and the query response does not repeat it. An application
|
|
17
|
+
* that reads the configuration once at start-up can hand it over, and the whole library then sizes
|
|
18
|
+
* `$hasMore` and aggregation paging against the real values:
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const app = await client.api.app.get();
|
|
23
|
+
* client.configure({
|
|
24
|
+
* aggregationCounts: Object.fromEntries(
|
|
25
|
+
* app.queries["_query"].aggregations.map((a) => [a.name, a.count]),
|
|
26
|
+
* ),
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export type AggregationCounts = Record<string, number>;
|
|
31
|
+
/**
|
|
32
|
+
* The number of values the server was asked for, for one aggregation.
|
|
33
|
+
*
|
|
34
|
+
* No field of the response carries it, so it is reconstructed from the most specific source
|
|
35
|
+
* available:
|
|
36
|
+
*
|
|
37
|
+
* 1. `query.aggregations[name].count` — what *this* call explicitly requested, as an
|
|
38
|
+
* `action: "aggregate"` page does;
|
|
39
|
+
* 2. `counts[name]` — what the application declared once from the app configuration
|
|
40
|
+
* (see {@link AggregationCounts});
|
|
41
|
+
* 3. {@link DEFAULT_AGGREGATION_COUNT}, when nothing is known.
|
|
42
|
+
*
|
|
43
|
+
* @param name - The name of the aggregation.
|
|
44
|
+
* @param query - The query the aggregation came back from, if any.
|
|
45
|
+
* @param counts - The declared page sizes, if any.
|
|
46
|
+
* @returns The count to compare the received items against.
|
|
47
|
+
*/
|
|
48
|
+
export declare function resolveAggregationCount(name: string, query?: Pick<Query, "aggregations">, counts?: AggregationCounts): number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether more values remain to be fetched for an aggregation.
|
|
51
|
+
*
|
|
52
|
+
* The response has no "total values" field. Instead, **when values remain the server returns one
|
|
53
|
+
* item beyond the `count` it was asked for**: ask for 10 and you receive 11, the eleventh being a
|
|
54
|
+
* sentinel that means "there is more". That extra item is the only signal available, so the test is
|
|
55
|
+
* `items.length > count` — and never an equality, which would only ever hold for one particular
|
|
56
|
+
* configured count and leave every other facet silently claiming it is complete.
|
|
57
|
+
*
|
|
58
|
+
* Distributions and trees always report `false`, deliberately: paging a bucket list, or a level of a
|
|
59
|
+
* hierarchy (`action: "open"`), is not the same operation as paging a flat list of values.
|
|
60
|
+
*
|
|
61
|
+
* @param aggregation - The aggregation returned by the server.
|
|
62
|
+
* @param count - The number of values that were requested. @see resolveAggregationCount
|
|
63
|
+
* @returns Whether the aggregation has more values on the server.
|
|
64
|
+
*/
|
|
65
|
+
export declare function aggregationHasMore(aggregation: Pick<Aggregation, "isDistribution" | "isTree"> & {
|
|
66
|
+
items?: Aggregation["items"];
|
|
67
|
+
}, count: number): boolean;
|
|
68
|
+
//# sourceMappingURL=aggregation-count.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aggregation-count.d.ts","sourceRoot":"","sources":["../../src/helpers/aggregation-count.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEnD;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAE5C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAoBvD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,cAAc,CAAC,EACnC,MAAM,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAQR;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,gBAAgB,GAAG,QAAQ,CAAC,GAAG;IAC5D,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAC9B,EACD,KAAK,EAAE,MAAM,GACZ,OAAO,CAKT"}
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
package/dist/helpers/utils.d.ts
CHANGED
|
@@ -29,11 +29,36 @@ export declare function guid(withHyphens?: boolean): string;
|
|
|
29
29
|
*/
|
|
30
30
|
export declare function escapeExpr(value: string | undefined): string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
* Uses native crypto.subtle.digest when available, falls back to a deterministic hash for unsupported browsers
|
|
32
|
+
* SHA-512 of a string, as lowercase hex.
|
|
34
33
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
34
|
+
* Throws when the Web Crypto API is unavailable, rather than returning something
|
|
35
|
+
* weaker. `crypto.subtle` is exposed only in a secure context — HTTPS, or
|
|
36
|
+
* localhost — so plain HTTP is where this fails, which covers an HTTP intranet and
|
|
37
|
+
* a development server reached by IP or hostname.
|
|
38
|
+
*
|
|
39
|
+
* It used to fall back to a 32-bit FNV-1a hash whose 128-character output was the
|
|
40
|
+
* same 32 characters repeated four times. That carried 32 bits of entropy, not
|
|
41
|
+
* 512: collisions were reachable in tens of thousands of values, and two distinct
|
|
42
|
+
* inputs differed only in the first quarter of the string. A function named
|
|
43
|
+
* `sha512` returning that is worse than one that fails, because a caller hashing
|
|
44
|
+
* for a security reason had no way to notice.
|
|
37
45
|
*/
|
|
38
46
|
export declare function sha512(value: string): Promise<string>;
|
|
47
|
+
/**
|
|
48
|
+
* A fast, deterministic, **non-cryptographic** hash of a string, as lowercase hex.
|
|
49
|
+
*
|
|
50
|
+
* For cache keys, memoisation keys and stable identifiers — the cases that only
|
|
51
|
+
* need "the same input gives the same short string, and different inputs usually
|
|
52
|
+
* differ". It is synchronous and works everywhere, including over plain HTTP where
|
|
53
|
+
* {@link sha512} is unavailable.
|
|
54
|
+
*
|
|
55
|
+
* **Do not use it for anything security-related.** It carries about 53 bits, so
|
|
56
|
+
* accidental collisions are unlikely but reachable, and deliberate ones are easy to
|
|
57
|
+
* construct. When you need a digest, use {@link sha512} and let it fail loudly
|
|
58
|
+
* where Web Crypto is missing.
|
|
59
|
+
*
|
|
60
|
+
* @param value - The string to hash.
|
|
61
|
+
* @param seed - Varies the output for the same input, to derive independent keys.
|
|
62
|
+
*/
|
|
63
|
+
export declare function hashString(value: string, seed?: number): string;
|
|
39
64
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/helpers/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEhD;AACD,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAKrD;AACD,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAI9C;AACD,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,CAEpD;AACD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEhD;AACD,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAOhD;AACD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAS1C;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,WAAW,UAAO,GAAG,MAAM,CAY/C;AAED;;;;;;GAMG;AAIH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAkB5D;AAED
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/helpers/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEhD;AACD,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAKrD;AACD,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAI9C;AACD,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,CAEpD;AACD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEhD;AACD,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAOhD;AACD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAS1C;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,WAAW,UAAO,GAAG,MAAM,CAY/C;AAED;;;;;;GAMG;AAIH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAkB5D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB3D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAqB1D"}
|
package/dist/spfx/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../src-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../src-yvCcJDJS.cjs");exports.API=e.ct,exports.ApiError=e.Vn,exports.Audit=e.Tt,exports.AuditEventType=e.Qt,exports.AuthMode=e.Qn,exports.DEFAULT_AGGREGATION_COUNT=e.en,exports.DidYouMeanKind=e.Jt,exports.EngineType=e.Zt,exports.EngineTypeModifier=e.Xt,exports.LogLevel=e.ir,exports.MINIMUM_COMPATIBLE_SERVER_API_VERSION=e.Yt,exports.RFMDisplay=e.qt,exports.ServerError=e.Rn,exports.TimeoutError=e.jn,exports.UnauthorizedError=e.Bn,exports.aadHttpClientManager=e.qn,exports.addAuditAdditionalInfo=e.Et,exports.addConcepts=e.g,exports.addSessionId=e.Dt,exports.addUrl=e.Ot,exports.aggItemRegex=e.C,exports.aggregationHasMore=e.tn,exports.aggregationItemStrictCompare=e.w,exports.appInitializerFn=e.rn,exports.applyConfig=e.Yn,exports.assertNever=e.Sn,exports.bisect=e.S,exports.buildPathsAndLevels=e.at,exports.clearSessionTokens=e.hn,exports.configureLogger=e.ar,exports.createAtomicClient=e.k,exports.createContainer=e.L,exports.createHeaders=e.Hn,exports.createHeadersWithContext=e.Un,exports.createSpfxHttpAdapter=e.Kn,exports.createTimeoutController=e.An,exports.createUserProfile=e.M,Object.defineProperty(exports,"debug",{enumerable:!0,get:function(){return e.or}}),exports.del=e.dn,exports.delWithContext=e.fn,exports.deleteContainerDocuments=e.R,exports.deleteContainers=e.z,exports.deleteUserProfileProperty=e.N,exports.deleteUserSettings=e.G,exports.deleteWebTokenCookie=e._n,exports.detectAuthMode=e.Dn,exports.emitAuthenticatedEvent=e.Gn,Object.defineProperty(exports,"error",{enumerable:!0,get:function(){return e.sr}}),exports.escapeExpr=e.kt,exports.expiresSoon=e.gt,exports.extraColumns=e.Gt,exports.fetchAggregation=e.wt,exports.fetchApp=e.in,exports.fetchAppPreLogin=e.an,exports.fetchBulkQuery=e.ot,exports.fetchChangePassword=e.W,exports.fetchDataset=e.xt,exports.fetchDatasetList=e.St,exports.fetchDatasets=e.Ct,exports.fetchLabels=e.yt,exports.fetchPreview=e.pt,exports.fetchPreviewUrl=e.mt,exports.fetchPrincipal=e.lt,exports.fetchPrincipalList=e.ut,exports.fetchPrincipalUserid=e.dt,exports.fetchPrincipalUserids=e.ft,exports.fetchQuery=e.st,exports.fetchQueryExport=e.it,exports.fetchQueryIntent=e.rt,exports.fetchSendPasswordResetEmail=e.I,exports.fetchSimilarDocuments=e.tt,exports.fetchSponsoredLinks=e.et,exports.fetchSuggest=e.X,exports.fetchSuggestField=e.Z,exports.fetchSuggestQuery=e.Q,exports.fetchTextChunks=e.Y,exports.fetchUserProfile=e.P,exports.fetchUserSettings=e.K,exports.fetchVersion=e.j,exports.filter=e.Ut,exports.get=e.Tn,exports.getConcepts=e._,exports.getContainer=e.B,exports.getCsrfToken=e.wn,exports.getDefaultClient=e.A,exports.getFiltersFromURI=e.r,exports.getFiltersFromUrl=e.i,exports.getHelpIndexUrl=e.t,exports.getIdFromUrl=e.a,exports.getJWToken=e.bn,exports.getMetadata=e.Vt,exports.getMetadataWithValues=e.Ht,exports.getOffsetFromDates=e.m,exports.getQueryPageFromUrl=e.o,exports.getQueryParamsFromUrl=e.s,exports.getQueryTabFromUrl=e.c,exports.getQueryTextFromUrl=e.l,exports.getRelativeDate=e.h,exports.getTime=e.At,exports.getToken=e.Wn,exports.getUrlParamsFromQueryParams=e.u,exports.getWithContext=e.En,exports.globalConfig=e.Xn,exports.guid=e.jt,exports.handleResponse=e.In,exports.handleResponseWithContext=e.Ln,exports.hasSession=e.Cn,exports.hashString=e.Mt,Object.defineProperty(exports,"info",{enumerable:!0,get:function(){return e.cr}}),exports.initializeAadHttpClient=e.Jn,exports.initializeAppConfig=e.on,exports.isArrayBuffer=e.Nt,exports.isAuthenticated=e.pn,exports.isBlob=e.Pt,exports.isDate=e.Ft,exports.isExpired=e._t,exports.isExternalAuthMode=e.$n,exports.isJsonable=e.It,exports.isNotInputEvent=e.p,exports.isObject=e.Lt,exports.isRedirectPending=e.mn,exports.isString=e.Rt,exports.labels=e.bt,exports.legacyBooleansToAuthMode=e.er,exports.legacyFilterToFilter=e.Wt,exports.listContainerDocuments=e.V,exports.listContainers=e.H,exports.login=e.vn,exports.logout=e.gn,exports.makeColumn=e.Kt,exports.notify=e.f,exports.onAuthEvent=e.ur,exports.openParentNodes=e.T,exports.parseText=e.v,exports.parseValueAndOperatorFromItem=e.E,exports.patch=e.ln,exports.patchUserProfile=e.F,exports.patchUserSettings=e.q,exports.patchWithContext=e.un,exports.post=e.Mn,exports.postWithContext=e.Nn,exports.put=e.sn,exports.putWithContext=e.cn,exports.queryParamsFromUrl=e.d,exports.removeConcept=e.y,exports.removeConcepts=e.b,exports.requestWebTokenSession=e.xn,exports.resolveAggregationCount=e.nn,exports.resolveBearerToken=e.tr,exports.resolveNoAutoAuthentication=e.Pn,exports.resolveNoAutoAuthenticationWithContext=e.Fn,exports.resolveOAuthProvider=e.nr,exports.resolveSAMLProvider=e.rr,exports.resolveToColumnName=e.$t,exports.resultPages=e.Bt,exports.rewriteText=e.x,exports.saveUserSettings=e.J,exports.searchPrincipals=e.nt,exports.setGlobalConfig=e.Zn,exports.setToken=e.zn,exports.sha512=e.zt,exports.suggestionsToTreeAggregationNodes=e.D,exports.sysLang=e.n,exports.toDate=e.vt,exports.toSqlValue=e.$,exports.translateAggregationToDateOptions=e.O,exports.tryAutoAuthentication=e.yn,exports.tryOAuthAuthentication=e.kn,exports.trySAMLAuthentication=e.On,exports.updateContainer=e.U,Object.defineProperty(exports,"warn",{enumerable:!0,get:function(){return e.lr}}),exports.withRetry=e.ht;
|
package/dist/spfx/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, Bt as c, C as l, Cn as u, Ct as d, D as f, Dn as p, Dt as m, E as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, Gt as C, H as w, Hn as T, Ht as E, I as D, In as O, It as k, J as A, Jn as j, Jt as M, K as N, Kn as P, Kt as F, L as I, Ln as L, Lt as R, M as z, Mn as B, Mt as V, N as H, Nn as U, Nt as W, O as G, On as K, Ot as q, P as J, Pn as Y, Pt as X, Q as Z, Qn as Q, Qt as $, R as ee, Rn as te, Rt as ne, S as re, Sn as ie, St as ae, T as oe, Tn as se, Tt as ce, U as le, Un as ue, Ut as de, V as fe, Vn as pe, Vt as me, W as he, Wn as ge, Wt as _e, X as ve, Xn as ye, Xt as be, Y as xe, Yn as Se, Yt as Ce, Z as we, Zn as Te, Zt as Ee, _ as De, _n as Oe, _t as ke, a as Ae, an as je, ar as Me, at as Ne, b as Pe, bn as Fe, bt as Ie, c as Le, cn as Re,
|
|
2
|
-
export {
|
|
1
|
+
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, Bt as c, C as l, Cn as u, Ct as d, D as f, Dn as p, Dt as m, E as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, Gt as C, H as w, Hn as T, Ht as E, I as D, In as O, It as k, J as A, Jn as j, Jt as M, K as N, Kn as P, Kt as F, L as I, Ln as L, Lt as R, M as z, Mn as B, Mt as V, N as H, Nn as U, Nt as W, O as G, On as K, Ot as q, P as J, Pn as Y, Pt as X, Q as Z, Qn as Q, Qt as $, R as ee, Rn as te, Rt as ne, S as re, Sn as ie, St as ae, T as oe, Tn as se, Tt as ce, U as le, Un as ue, Ut as de, V as fe, Vn as pe, Vt as me, W as he, Wn as ge, Wt as _e, X as ve, Xn as ye, Xt as be, Y as xe, Yn as Se, Yt as Ce, Z as we, Zn as Te, Zt as Ee, _ as De, _n as Oe, _t as ke, a as Ae, an as je, ar as Me, at as Ne, b as Pe, bn as Fe, bt as Ie, c as Le, cn as Re, cr as ze, ct as Be, d as Ve, dn as He, dt as Ue, en as We, er as Ge, et as Ke, f as qe, fn as Je, ft as Ye, g as Xe, gn as Ze, gt as Qe, h as $e, hn as et, ht as tt, i as nt, in as rt, ir as it, it as at, j as ot, jn as st, jt as ct, k as lt, kn as ut, kt as dt, l as ft, ln as pt, lr as mt, lt as ht, m as gt, mn as _t, mt as vt, n as yt, nn as bt, nr as xt, nt as St, o as Ct, on as wt, or as Tt, ot as Et, p as Dt, pn as Ot, pt as kt, q as At, qn as jt, qt as Mt, r as Nt, rn as Pt, rr as Ft, rt as It, s as Lt, sn as Rt, sr as zt, st as Bt, t as Vt, tn as Ht, tr as Ut, tt as Wt, u as Gt, un as Kt, ur as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zn as ln, zt as un } from "../src-DQM5GZF-.js";
|
|
2
|
+
export { Be as API, pe as ApiError, ce as Audit, $ as AuditEventType, Q as AuthMode, We as DEFAULT_AGGREGATION_COUNT, M as DidYouMeanKind, Ee as EngineType, be as EngineTypeModifier, it as LogLevel, Ce as MINIMUM_COMPATIBLE_SERVER_API_VERSION, Mt as RFMDisplay, te as ServerError, st as TimeoutError, s as UnauthorizedError, jt as aadHttpClientManager, _ as addAuditAdditionalInfo, Xe as addConcepts, m as addSessionId, q as addUrl, l as aggItemRegex, Ht as aggregationHasMore, Qt as aggregationItemStrictCompare, Pt as appInitializerFn, Se as applyConfig, ie as assertNever, re as bisect, Ne as buildPathsAndLevels, et as clearSessionTokens, Me as configureLogger, lt as createAtomicClient, I as createContainer, T as createHeaders, ue as createHeadersWithContext, P as createSpfxHttpAdapter, i as createTimeoutController, z as createUserProfile, Tt as debug, He as del, Je as delWithContext, ee as deleteContainerDocuments, cn as deleteContainers, H as deleteUserProfileProperty, x as deleteUserSettings, Oe as deleteWebTokenCookie, p as detectAuthMode, S as emitAuthenticatedEvent, zt as error, dt as escapeExpr, Qe as expiresSoon, C as extraColumns, en as fetchAggregation, rt as fetchApp, je as fetchAppPreLogin, Et as fetchBulkQuery, he as fetchChangePassword, rn as fetchDataset, ae as fetchDatasetList, d as fetchDatasets, sn as fetchLabels, kt as fetchPreview, vt as fetchPreviewUrl, ht as fetchPrincipal, Jt as fetchPrincipalList, Ue as fetchPrincipalUserid, Ye as fetchPrincipalUserids, Bt as fetchQuery, at as fetchQueryExport, It as fetchQueryIntent, D as fetchSendPasswordResetEmail, Wt as fetchSimilarDocuments, Ke as fetchSponsoredLinks, ve as fetchSuggest, we as fetchSuggestField, Z as fetchSuggestQuery, xe as fetchTextChunks, J as fetchUserProfile, N as fetchUserSettings, ot as fetchVersion, de as filter, se as get, De as getConcepts, o as getContainer, $t as getCsrfToken, r as getDefaultClient, Nt as getFiltersFromURI, nt as getFiltersFromUrl, Vt as getHelpIndexUrl, Ae as getIdFromUrl, Fe as getJWToken, me as getMetadata, E as getMetadataWithValues, gt as getOffsetFromDates, Ct as getQueryPageFromUrl, Lt as getQueryParamsFromUrl, Le as getQueryTabFromUrl, ft as getQueryTextFromUrl, $e as getRelativeDate, a as getTime, ge as getToken, Gt as getUrlParamsFromQueryParams, g as getWithContext, ye as globalConfig, ct as guid, O as handleResponse, L as handleResponseWithContext, u as hasSession, V as hashString, ze as info, j as initializeAadHttpClient, wt as initializeAppConfig, W as isArrayBuffer, Ot as isAuthenticated, X as isBlob, b as isDate, ke as isExpired, t as isExternalAuthMode, k as isJsonable, Dt as isNotInputEvent, R as isObject, _t as isRedirectPending, ne as isString, Ie as labels, Ge as legacyBooleansToAuthMode, _e as legacyFilterToFilter, fe as listContainerDocuments, w as listContainers, Xt as login, Ze as logout, F as makeColumn, qe as notify, qt as onAuthEvent, oe as openParentNodes, Yt as parseText, h as parseValueAndOperatorFromItem, pt as patch, v as patchUserProfile, At as patchUserSettings, Kt as patchWithContext, B as post, U as postWithContext, Rt as put, Re as putWithContext, Ve as queryParamsFromUrl, an as removeConcept, Pe as removeConcepts, nn as requestWebTokenSession, bt as resolveAggregationCount, Ut as resolveBearerToken, Y as resolveNoAutoAuthentication, y as resolveNoAutoAuthenticationWithContext, xt as resolveOAuthProvider, Ft as resolveSAMLProvider, n as resolveToColumnName, c as resultPages, tn as rewriteText, A as saveUserSettings, St as searchPrincipals, Te as setGlobalConfig, ln as setToken, un as sha512, f as suggestionsToTreeAggregationNodes, yt as sysLang, Zt as toDate, e as toSqlValue, G as translateAggregationToDateOptions, on as tryAutoAuthentication, ut as tryOAuthAuthentication, K as trySAMLAuthentication, le as updateContainer, mt as warn, tt as withRetry };
|