@sinequa/atomic 2.10.0 → 2.12.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 +181 -80
- package/dist/atomic.cjs +1 -1
- package/dist/atomic.js +1 -1
- package/dist/authentication/constants.d.ts +1 -1
- package/dist/authentication/events/auth-events.d.ts +2 -2
- package/dist/authentication/events/emit-authenticated-event.d.ts +1 -1
- package/dist/authentication/events/index.d.ts +2 -2
- package/dist/authentication/index.d.ts +4 -4
- package/dist/authentication/providers/index.d.ts +2 -2
- package/dist/authentication/providers/oauth-authentication.d.ts +1 -1
- package/dist/authentication/providers/redirect-to-identity-provider.d.ts +1 -1
- package/dist/authentication/providers/redirect-to-identity-provider.d.ts.map +1 -1
- package/dist/authentication/providers/saml-authentication.d.ts +1 -1
- package/dist/authentication/session/auth-mode-marker.d.ts +1 -1
- package/dist/authentication/session/auth-state.d.ts +1 -1
- package/dist/authentication/session/detect-auth-mode.d.ts +2 -2
- package/dist/authentication/session/has-session.d.ts +1 -1
- package/dist/authentication/session/index.d.ts +7 -7
- package/dist/authentication/session/login.d.ts +2 -2
- package/dist/authentication/session/logout.d.ts +4 -3
- package/dist/authentication/session/logout.d.ts.map +1 -1
- package/dist/authentication/session/redirect-guard.d.ts +1 -1
- package/dist/authentication/session/session-lost-latch.d.ts +1 -1
- package/dist/authentication/session/signed-out-guard.d.ts +1 -1
- package/dist/authentication/session/try-auto-authentication.d.ts +1 -1
- package/dist/authentication/session/try-auto-authentication.d.ts.map +1 -1
- package/dist/authentication/session/user-authentication.d.ts +1 -1
- package/dist/authentication/tokens/delete-web-token-cookie.d.ts +1 -1
- package/dist/authentication/tokens/delete-web-token-cookie.d.ts.map +1 -1
- package/dist/authentication/tokens/get-csrf-token.d.ts +1 -1
- package/dist/authentication/tokens/get-csrf-token.d.ts.map +1 -1
- package/dist/authentication/tokens/get-jwt-token.d.ts +2 -2
- package/dist/authentication/tokens/get-token.d.ts +1 -1
- package/dist/authentication/tokens/index.d.ts +5 -5
- package/dist/authentication/tokens/set-token.d.ts +1 -1
- package/dist/client/atomic-context.d.ts +4 -4
- package/dist/client/create-api.d.ts +49 -48
- package/dist/client/create-api.d.ts.map +1 -1
- package/dist/client/create-atomic-client.d.ts +8 -8
- package/dist/client/http-adapter.d.ts +1 -1
- package/dist/client/index.d.ts +4 -4
- package/dist/configurations/auth-options.d.ts +1 -1
- package/dist/configurations/global.config.d.ts +4 -4
- package/dist/configurations/index.d.ts +3 -3
- package/dist/helpers/aggregation-count.d.ts +3 -2
- package/dist/helpers/aggregation-count.d.ts.map +1 -1
- package/dist/helpers/column-resolver.d.ts +11 -3
- package/dist/helpers/column-resolver.d.ts.map +1 -1
- package/dist/helpers/columns.d.ts +1 -1
- package/dist/helpers/filters.d.ts +1 -1
- package/dist/helpers/index.d.ts +8 -8
- package/dist/helpers/metadata.d.ts +2 -2
- package/dist/helpers/pagination.d.ts +1 -1
- package/dist/helpers/to-aggregation-count.d.ts +11 -0
- package/dist/helpers/to-aggregation-count.d.ts.map +1 -0
- package/dist/index.d.ts +7 -7
- package/dist/polyfills/storage.d.ts +1 -1
- package/dist/spfx/index.cjs +1 -1
- package/dist/spfx/index.d.ts +3 -3
- package/dist/spfx/index.js +1 -1
- package/dist/src-CCjB0b1J.cjs +1 -0
- package/dist/{src-s3KlD6YE.js → src-CK3j-Qz_.js} +837 -760
- package/dist/types/agent-workspace/index.d.ts +3 -3
- package/dist/types/aggregations/Aggregation.d.ts +2 -2
- package/dist/types/aggregations/ListAggregation.d.ts +1 -1
- package/dist/types/aggregations/TreeAggregation.d.ts +2 -2
- package/dist/types/aggregations/TreeAggregationNode.d.ts +1 -1
- package/dist/types/aggregations/index.d.ts +6 -6
- package/dist/types/audit/AuditEvent.d.ts +2 -2
- package/dist/types/audit/AuditRecord.d.ts +1 -1
- package/dist/types/audit/index.d.ts +4 -4
- package/dist/types/chunks/index.d.ts +2 -2
- package/dist/types/config/CCAggregation.d.ts +7 -1
- package/dist/types/config/CCAggregation.d.ts.map +1 -1
- package/dist/types/config/CCApp.d.ts +11 -7
- package/dist/types/config/CCApp.d.ts.map +1 -1
- package/dist/types/config/CCAppRefresh.d.ts +1 -1
- package/dist/types/config/CCAutocomplete.d.ts +1 -1
- package/dist/types/config/CCColumn.d.ts +3 -3
- package/dist/types/config/CCColumnsInfo.d.ts +1 -1
- package/dist/types/config/CCIndex.d.ts +2 -2
- package/dist/types/config/CCLabels.d.ts +1 -1
- package/dist/types/config/CCList.d.ts +2 -2
- package/dist/types/config/CCQuery.d.ts +9 -9
- package/dist/types/config/CCRFM.d.ts +1 -1
- package/dist/types/config/CCTab.d.ts +1 -1
- package/dist/types/config/CCTabSearch.d.ts +1 -1
- package/dist/types/config/CCWebService.d.ts +13 -1
- package/dist/types/config/CCWebService.d.ts.map +1 -1
- package/dist/types/config/index.d.ts +26 -26
- package/dist/types/filters/BetweenFilter.d.ts +1 -1
- package/dist/types/filters/ExprFilter.d.ts +1 -1
- package/dist/types/filters/InFilter.d.ts +1 -1
- package/dist/types/filters/NotNullFilter.d.ts +1 -1
- package/dist/types/filters/NullFilter.d.ts +1 -1
- package/dist/types/filters/SimpleFilter.d.ts +1 -1
- package/dist/types/filters/index.d.ts +8 -8
- package/dist/types/filters/legacy-filters.d.ts +1 -1
- package/dist/types/index.d.ts +19 -19
- package/dist/types/interfaces/Query.d.ts +5 -5
- package/dist/types/interfaces/index.d.ts +3 -3
- package/dist/types/link-results/index.d.ts +2 -2
- package/dist/types/link-results/links-results.d.ts +1 -1
- package/dist/types/preview/CategoryHighlightData.d.ts +1 -1
- package/dist/types/preview/HighlightDataPerCategory.d.ts +1 -1
- package/dist/types/preview/HighlightValue.d.ts +1 -1
- package/dist/types/preview/PreviewData.d.ts +4 -4
- package/dist/types/preview/index.d.ts +8 -8
- package/dist/types/principal/PrincipalChangedEvent.d.ts +1 -1
- package/dist/types/principal/index.d.ts +6 -6
- package/dist/types/search/AccessLists.d.ts +1 -1
- package/dist/types/search/Answer.d.ts +1 -1
- package/dist/types/search/Article.d.ts +5 -5
- package/dist/types/search/DidYouMean.d.ts +2 -2
- package/dist/types/search/DocumentAccessLists.d.ts +1 -1
- package/dist/types/search/MatchLocationsPerPartname.d.ts +1 -1
- package/dist/types/search/MatchingPassage.d.ts +1 -1
- package/dist/types/search/QueryAnalysis.d.ts +1 -1
- package/dist/types/search/QueryIntent.d.ts +4 -4
- package/dist/types/search/QueryIntentData.d.ts +2 -2
- package/dist/types/search/QueryIntentMatch.d.ts +1 -1
- package/dist/types/search/QueryIntentResponse.d.ts +1 -1
- package/dist/types/search/RFMActionDisplay.d.ts +1 -1
- package/dist/types/search/RFMData.d.ts +1 -1
- package/dist/types/search/Result.d.ts +17 -16
- package/dist/types/search/Result.d.ts.map +1 -1
- package/dist/types/search/TopPassage.d.ts +1 -1
- package/dist/types/search/index.d.ts +32 -32
- package/dist/types/security-principal/index.d.ts +1 -1
- package/dist/types/user-profile/user-profile.d.ts +5 -0
- package/dist/types/user-profile/user-profile.d.ts.map +1 -1
- package/dist/utils/aggregations.d.ts +3 -3
- package/dist/utils/index.d.ts +11 -11
- package/dist/utils/query-params.d.ts +1 -1
- package/dist/utils/to-sql.d.ts +1 -1
- package/dist/web-api/helpers/create-headers.d.ts +1 -1
- package/dist/web-api/helpers/errors/server-error.d.ts +1 -1
- package/dist/web-api/helpers/errors/timeout-error.d.ts +1 -1
- package/dist/web-api/helpers/errors/unauthorized-error.d.ts +1 -1
- package/dist/web-api/helpers/handle-response.d.ts +2 -2
- package/dist/web-api/helpers/handle-response.d.ts.map +1 -1
- package/dist/web-api/helpers/index.d.ts +16 -16
- package/dist/web-api/helpers/methods/del.d.ts +3 -3
- package/dist/web-api/helpers/methods/get.d.ts +3 -3
- package/dist/web-api/helpers/methods/patch-raw.d.ts +14 -0
- package/dist/web-api/helpers/methods/patch-raw.d.ts.map +1 -0
- package/dist/web-api/helpers/methods/patch.d.ts +3 -3
- package/dist/web-api/helpers/methods/patch.d.ts.map +1 -1
- package/dist/web-api/helpers/methods/post.d.ts +3 -3
- package/dist/web-api/helpers/methods/put.d.ts +3 -3
- package/dist/web-api/helpers/methods/send-patch.d.ts +11 -0
- package/dist/web-api/helpers/methods/send-patch.d.ts.map +1 -0
- package/dist/web-api/helpers/methods/send-request.d.ts +2 -2
- package/dist/web-api/helpers/utils/build-request-url.d.ts +2 -2
- package/dist/web-api/helpers/utils/create-timeout-controller.d.ts +6 -1
- package/dist/web-api/helpers/utils/create-timeout-controller.d.ts.map +1 -1
- package/dist/web-api/helpers/utils/resolve-no-auto-authentication.d.ts +1 -1
- package/dist/web-api/index.d.ts +23 -23
- package/dist/web-api/v1/fetch-aggregation.d.ts +2 -2
- package/dist/web-api/v1/fetch-aggregation.d.ts.map +1 -1
- package/dist/web-api/v1/fetch-app.d.ts +2 -2
- package/dist/web-api/v1/fetch-audit.d.ts +2 -2
- package/dist/web-api/v1/fetch-dataset.d.ts +2 -2
- package/dist/web-api/v1/fetch-labels.d.ts +2 -2
- package/dist/web-api/v1/fetch-preview.d.ts +2 -2
- package/dist/web-api/v1/fetch-principal.d.ts +3 -3
- package/dist/web-api/v1/fetch-query-export.d.ts +9 -4
- package/dist/web-api/v1/fetch-query-export.d.ts.map +1 -1
- package/dist/web-api/v1/fetch-query-intent.d.ts +2 -2
- package/dist/web-api/v1/fetch-query.d.ts +3 -3
- package/dist/web-api/v1/fetch-security-principal.d.ts +2 -2
- package/dist/web-api/v1/fetch-similar-documents.d.ts +2 -2
- package/dist/web-api/v1/fetch-sponsored-links.d.ts +2 -2
- package/dist/web-api/v1/fetch-suggest.d.ts +2 -2
- package/dist/web-api/v1/fetch-text-chunk.d.ts +2 -2
- package/dist/web-api/v1/fetch-user-settings.d.ts +2 -2
- package/dist/web-api/v1/fetch-user-settings.d.ts.map +1 -1
- package/dist/web-api/v2/fetch-agent-workspace-status.d.ts +3 -3
- package/dist/web-api/v2/fetch-agent-workspace.d.ts +3 -3
- package/dist/web-api/v2/fetch-change-password.d.ts +1 -1
- package/dist/web-api/v2/fetch-forgot-password.d.ts +1 -1
- package/dist/web-api/v2/fetch-user-profile.d.ts +29 -6
- package/dist/web-api/v2/fetch-user-profile.d.ts.map +1 -1
- package/dist/web-api/v2/fetch-version.d.ts +1 -1
- package/package.json +2 -2
- package/dist/src-CPlI3qi5.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Describes the "did you mean" results
|
|
3
3
|
*/
|
|
4
|
-
import { SpellingCorrectionMode } from "../config";
|
|
5
|
-
import { DidYouMeanItem } from "./DidYouMeanItem";
|
|
4
|
+
import { SpellingCorrectionMode } from "../config/index.js";
|
|
5
|
+
import { DidYouMeanItem } from "./DidYouMeanItem.js";
|
|
6
6
|
export interface DidYouMean {
|
|
7
7
|
spellingCorrectionMode: SpellingCorrectionMode;
|
|
8
8
|
text: DidYouMeanItem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { QueryIntentAction } from "./QueryIntentAction";
|
|
2
|
-
import { QueryIntentDatasets } from "./QueryIntentDatasets";
|
|
3
|
-
import { QueryIntentEntity } from "./QueryIntentEntity";
|
|
4
|
-
import { QueryIntentWord } from "./QueryIntentWord";
|
|
1
|
+
import { QueryIntentAction } from "./QueryIntentAction.js";
|
|
2
|
+
import { QueryIntentDatasets } from "./QueryIntentDatasets.js";
|
|
3
|
+
import { QueryIntentEntity } from "./QueryIntentEntity.js";
|
|
4
|
+
import { QueryIntentWord } from "./QueryIntentWord.js";
|
|
5
5
|
/**
|
|
6
6
|
* Describes a single query intent item
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Describes information to be sent to the server when executing a query for server-side query intent processing
|
|
3
3
|
*/
|
|
4
|
-
import { QueryAnalysis } from "./QueryAnalysis";
|
|
5
|
-
import { QueryIntent } from "./QueryIntent";
|
|
4
|
+
import { QueryAnalysis } from "./QueryAnalysis.js";
|
|
5
|
+
import { QueryIntent } from "./QueryIntent.js";
|
|
6
6
|
/**
|
|
7
7
|
* Describes information to be sent to the server when executing a query for server-side query intent processing
|
|
8
8
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { ApiError } from "../../web-api/helpers/errors/api-error";
|
|
2
|
-
import { Aggregation, TreeAggregation } from "../aggregations";
|
|
3
|
-
import { Answer } from "./Answer";
|
|
4
|
-
import { Article } from "./Article";
|
|
5
|
-
import { Attributes } from "./Attributes";
|
|
6
|
-
import { DidYouMean } from "./DidYouMean";
|
|
7
|
-
import { QueryAnalysis } from "./QueryAnalysis";
|
|
8
|
-
import { QueryIntent } from "./QueryIntent";
|
|
9
|
-
import { Tab } from "./Tab";
|
|
10
|
-
import { TopPassage } from "./TopPassage";
|
|
1
|
+
import type { ApiError } from "../../web-api/helpers/errors/api-error.js";
|
|
2
|
+
import { Aggregation, TreeAggregation } from "../aggregations/index.js";
|
|
3
|
+
import { Answer } from "./Answer.js";
|
|
4
|
+
import { Article } from "./Article.js";
|
|
5
|
+
import { Attributes } from "./Attributes.js";
|
|
6
|
+
import { DidYouMean } from "./DidYouMean.js";
|
|
7
|
+
import { QueryAnalysis } from "./QueryAnalysis.js";
|
|
8
|
+
import { QueryIntent } from "./QueryIntent.js";
|
|
9
|
+
import { Tab } from "./Tab.js";
|
|
10
|
+
import { TopPassage } from "./TopPassage.js";
|
|
11
11
|
/**
|
|
12
12
|
* Describes the results of a **search** call to the query web service.
|
|
13
13
|
*
|
|
@@ -48,13 +48,14 @@ export type Result = {
|
|
|
48
48
|
passages?: TopPassage[];
|
|
49
49
|
} | null;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
51
|
+
* Never sent by the server, and **never set by `@sinequa/atomic`**: `fetchQuery`, `fetchBulkQuery`
|
|
52
|
+
* and the other request functions **throw** (`ApiError`, `ServerError`, `UnauthorizedError`) on any
|
|
53
|
+
* non-2xx answer instead of returning a result carrying the failure. A `Result` you hold is
|
|
54
|
+
* therefore always a real answer, and an empty one is a genuine "no match".
|
|
53
55
|
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* this field **before** concluding anything from an empty result.
|
|
56
|
+
* The field is declared for the clients that catch the error themselves and return `{ $error }`
|
|
57
|
+
* instead of rethrowing — typically the `QueryService` of `@sinequa/atomic-angular`. Check it only
|
|
58
|
+
* on a result coming from such a client; with this library, use `try/catch`.
|
|
58
59
|
*
|
|
59
60
|
* Prefixed with `$` like the other client-side additions (`$hasMore`, `$selected`).
|
|
60
61
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Result.d.ts","sourceRoot":"","sources":["../../../src/types/search/Result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,EAAE,CAAC,WAAW,GAAG,eAAe,CAAC,EAAE,CAAC;IAChD,UAAU,EAAE,UAAU,CAAC;IACvB,wGAAwG;IACxG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE;QACR,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,GAAG,IAAI,CAAC;IACT,WAAW,CAAC,EAAE;QACZ,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;KACzB,GAAG,IAAI,CAAC;IACT
|
|
1
|
+
{"version":3,"file":"Result.d.ts","sourceRoot":"","sources":["../../../src/types/search/Result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,EAAE,CAAC,WAAW,GAAG,eAAe,CAAC,EAAE,CAAC;IAChD,UAAU,EAAE,UAAU,CAAC;IACvB,wGAAwG;IACxG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE;QACR,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,GAAG,IAAI,CAAC;IACT,WAAW,CAAC,EAAE;QACZ,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;KACzB,GAAG,IAAI,CAAC;IACT;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,WAAW,GAAG,eAAe,CAAC,EAAE,CAAC;IAChD,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC"}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
export interface IMulti<T> {
|
|
2
2
|
results: T[];
|
|
3
3
|
}
|
|
4
|
-
export type { AccessListPrincipal } from "./AccessListPrincipal";
|
|
5
|
-
export type { AccessLists } from "./AccessLists";
|
|
6
|
-
export type { Answer } from "./Answer";
|
|
7
|
-
export type { Article } from "./Article";
|
|
8
|
-
export type { Attributes } from "./Attributes";
|
|
9
|
-
export type { DidYouMean } from "./DidYouMean";
|
|
10
|
-
export type { DidYouMeanAction, DidYouMeanAppliedChange, DidYouMeanItem } from "./DidYouMeanItem";
|
|
11
|
-
export { DidYouMeanKind } from "./DidYouMeanKind";
|
|
12
|
-
export type { DocumentAccessLists } from "./DocumentAccessLists";
|
|
13
|
-
export type { EntityItem } from "./EntityItem";
|
|
14
|
-
export type { MatchingPassage } from "./MatchingPassage";
|
|
15
|
-
export type { MatchLocationsPerPartname } from "./MatchLocationsPerPartname";
|
|
16
|
-
export type { PartnameMatchLocations } from "./PartnameMatchLocations";
|
|
17
|
-
export type { Passage } from "./Passage";
|
|
18
|
-
export type { QueryAnalysis } from "./QueryAnalysis";
|
|
19
|
-
export type { QueryAnalysisElement } from "./QueryAnalysisElement";
|
|
20
|
-
export type { QueryIntent } from "./QueryIntent";
|
|
21
|
-
export type { QueryIntentAction } from "./QueryIntentAction";
|
|
22
|
-
export type { QueryIntentData } from "./QueryIntentData";
|
|
23
|
-
export type { QueryIntentDatasets } from "./QueryIntentDatasets";
|
|
24
|
-
export type { QueryIntentEntity } from "./QueryIntentEntity";
|
|
25
|
-
export type { QueryIntentMatch } from "./QueryIntentMatch";
|
|
26
|
-
export type { QueryIntentResponse } from "./QueryIntentResponse";
|
|
27
|
-
export type { QueryIntentWord } from "./QueryIntentWord";
|
|
28
|
-
export type { RelevantExtract } from "./RelevantExtract";
|
|
29
|
-
export type { AggregateResult, Result } from "./Result";
|
|
30
|
-
export type { RFMActionDisplay } from "./RFMActionDisplay";
|
|
31
|
-
export type { RFMData } from "./RFMData";
|
|
32
|
-
export { RFMDisplay } from "./RFMDisplay";
|
|
33
|
-
export type { Tab } from "./Tab";
|
|
34
|
-
export type { TermPresence } from "./TermPresence";
|
|
35
|
-
export type { TopPassage } from "./TopPassage";
|
|
4
|
+
export type { AccessListPrincipal } from "./AccessListPrincipal.js";
|
|
5
|
+
export type { AccessLists } from "./AccessLists.js";
|
|
6
|
+
export type { Answer } from "./Answer.js";
|
|
7
|
+
export type { Article } from "./Article.js";
|
|
8
|
+
export type { Attributes } from "./Attributes.js";
|
|
9
|
+
export type { DidYouMean } from "./DidYouMean.js";
|
|
10
|
+
export type { DidYouMeanAction, DidYouMeanAppliedChange, DidYouMeanItem } from "./DidYouMeanItem.js";
|
|
11
|
+
export { DidYouMeanKind } from "./DidYouMeanKind.js";
|
|
12
|
+
export type { DocumentAccessLists } from "./DocumentAccessLists.js";
|
|
13
|
+
export type { EntityItem } from "./EntityItem.js";
|
|
14
|
+
export type { MatchingPassage } from "./MatchingPassage.js";
|
|
15
|
+
export type { MatchLocationsPerPartname } from "./MatchLocationsPerPartname.js";
|
|
16
|
+
export type { PartnameMatchLocations } from "./PartnameMatchLocations.js";
|
|
17
|
+
export type { Passage } from "./Passage.js";
|
|
18
|
+
export type { QueryAnalysis } from "./QueryAnalysis.js";
|
|
19
|
+
export type { QueryAnalysisElement } from "./QueryAnalysisElement.js";
|
|
20
|
+
export type { QueryIntent } from "./QueryIntent.js";
|
|
21
|
+
export type { QueryIntentAction } from "./QueryIntentAction.js";
|
|
22
|
+
export type { QueryIntentData } from "./QueryIntentData.js";
|
|
23
|
+
export type { QueryIntentDatasets } from "./QueryIntentDatasets.js";
|
|
24
|
+
export type { QueryIntentEntity } from "./QueryIntentEntity.js";
|
|
25
|
+
export type { QueryIntentMatch } from "./QueryIntentMatch.js";
|
|
26
|
+
export type { QueryIntentResponse } from "./QueryIntentResponse.js";
|
|
27
|
+
export type { QueryIntentWord } from "./QueryIntentWord.js";
|
|
28
|
+
export type { RelevantExtract } from "./RelevantExtract.js";
|
|
29
|
+
export type { AggregateResult, Result } from "./Result.js";
|
|
30
|
+
export type { RFMActionDisplay } from "./RFMActionDisplay.js";
|
|
31
|
+
export type { RFMData } from "./RFMData.js";
|
|
32
|
+
export { RFMDisplay } from "./RFMDisplay.js";
|
|
33
|
+
export type { Tab } from "./Tab.js";
|
|
34
|
+
export type { TermPresence } from "./TermPresence.js";
|
|
35
|
+
export type { TopPassage } from "./TopPassage.js";
|
|
36
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./security-principal";
|
|
1
|
+
export * from "./security-principal.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -28,4 +28,9 @@ export type UserProfileData = {
|
|
|
28
28
|
/** List of skills */
|
|
29
29
|
skills?: string;
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Path of a `customData` property, as `"preferences/obj"` or as segments (`["preferences", "obj"]`).
|
|
33
|
+
* Use the array form for a key that contains a `/`.
|
|
34
|
+
*/
|
|
35
|
+
export type CustomDataPath = string | string[];
|
|
31
36
|
//# sourceMappingURL=user-profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-profile.d.ts","sourceRoot":"","sources":["../../../src/types/user-profile/user-profile.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,mCAAmC;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,cAAc;IACd,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"user-profile.d.ts","sourceRoot":"","sources":["../../../src/types/user-profile/user-profile.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,mCAAmC;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,cAAc;IACd,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Aggregation, AggregationItem, TreeAggregationNode } from "../types/aggregations";
|
|
2
|
-
import { FilterOperator, LegacyFilter } from "../types/filters";
|
|
3
|
-
import { Suggestion } from "../types/suggest/suggestion";
|
|
1
|
+
import { Aggregation, AggregationItem, TreeAggregationNode } from "../types/aggregations/index.js";
|
|
2
|
+
import { FilterOperator, LegacyFilter } from "../types/filters/index.js";
|
|
3
|
+
import { Suggestion } from "../types/suggest/suggestion.js";
|
|
4
4
|
export type DateFilter = {
|
|
5
5
|
label?: string;
|
|
6
6
|
operator?: FilterOperator;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from "./aggregations";
|
|
2
|
-
export * from "./bisect";
|
|
3
|
-
export * from "./concepts";
|
|
4
|
-
export * from "./date";
|
|
5
|
-
export * from "./is-not-input-event";
|
|
6
|
-
export { configureLogger, debug, error, info, LogLevel, warn } from "./logger";
|
|
7
|
-
export * from "./notification";
|
|
8
|
-
export * from "./query-params";
|
|
9
|
-
export * from "./syslang";
|
|
10
|
-
export * from "./to-sql";
|
|
11
|
-
export * from "./utilities";
|
|
1
|
+
export * from "./aggregations.js";
|
|
2
|
+
export * from "./bisect.js";
|
|
3
|
+
export * from "./concepts.js";
|
|
4
|
+
export * from "./date.js";
|
|
5
|
+
export * from "./is-not-input-event.js";
|
|
6
|
+
export { configureLogger, debug, error, info, LogLevel, warn } from "./logger.js";
|
|
7
|
+
export * from "./notification.js";
|
|
8
|
+
export * from "./query-params.js";
|
|
9
|
+
export * from "./syslang.js";
|
|
10
|
+
export * from "./to-sql.js";
|
|
11
|
+
export * from "./utilities.js";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/utils/to-sql.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AtomicContext } from "../../client/atomic-context";
|
|
2
|
-
import type { AadHttpResponseLike } from "./aad-http-client-manager";
|
|
1
|
+
import { type AtomicContext } from "../../client/atomic-context.js";
|
|
2
|
+
import type { AadHttpResponseLike } from "./aad-http-client-manager.js";
|
|
3
3
|
type ResponseLike = Response | AadHttpResponseLike;
|
|
4
4
|
/**
|
|
5
5
|
* Handles the response from the web API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-response.d.ts","sourceRoot":"","sources":["../../../src/web-api/helpers/handle-response.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAiC,MAAM,6BAA6B,CAAC;AAChG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAMrE,KAAK,YAAY,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAAC,CAAC,EACpC,QAAQ,EAAE,YAAY,EACtB,YAAY,GAAE,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAmB,GAC3E,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED;;;GAGG;AACH,wBAAsB,yBAAyB,CAAC,CAAC,EAC/C,GAAG,EAAE,aAAa,EAClB,QAAQ,EAAE,YAAY,EACtB,YAAY,GAAE,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAmB;AAC5E;;;;GAIG;AACH,QAAQ,SAAqB,GAC5B,OAAO,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"handle-response.d.ts","sourceRoot":"","sources":["../../../src/web-api/helpers/handle-response.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAiC,MAAM,6BAA6B,CAAC;AAChG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAMrE,KAAK,YAAY,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,wBAAsB,cAAc,CAAC,CAAC,EACpC,QAAQ,EAAE,YAAY,EACtB,YAAY,GAAE,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAmB,GAC3E,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED;;;GAGG;AACH,wBAAsB,yBAAyB,CAAC,CAAC,EAC/C,GAAG,EAAE,aAAa,EAClB,QAAQ,EAAE,YAAY,EACtB,YAAY,GAAE,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,UAAmB;AAC5E;;;;GAIG;AACH,QAAQ,SAAqB,GAC5B,OAAO,CAAC,CAAC,CAAC,CAwEZ"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export * from "./create-headers";
|
|
2
|
-
export * from "./errors/api-error";
|
|
3
|
-
export * from "./errors/server-error";
|
|
4
|
-
export * from "./errors/timeout-error";
|
|
5
|
-
export * from "./errors/unauthorized-error";
|
|
6
|
-
export * from "./handle-response";
|
|
7
|
-
export * from "./methods/del";
|
|
8
|
-
export * from "./methods/get";
|
|
9
|
-
export * from "./methods/patch";
|
|
10
|
-
export * from "./methods/post";
|
|
11
|
-
export * from "./methods/put";
|
|
12
|
-
export * from "./request-options";
|
|
13
|
-
export * from "./utils/create-timeout-controller";
|
|
14
|
-
export * from "./utils/date-utils";
|
|
15
|
-
export * from "./utils/resolve-no-auto-authentication";
|
|
16
|
-
export * from "./utils/with-retry";
|
|
1
|
+
export * from "./create-headers.js";
|
|
2
|
+
export * from "./errors/api-error.js";
|
|
3
|
+
export * from "./errors/server-error.js";
|
|
4
|
+
export * from "./errors/timeout-error.js";
|
|
5
|
+
export * from "./errors/unauthorized-error.js";
|
|
6
|
+
export * from "./handle-response.js";
|
|
7
|
+
export * from "./methods/del.js";
|
|
8
|
+
export * from "./methods/get.js";
|
|
9
|
+
export * from "./methods/patch.js";
|
|
10
|
+
export * from "./methods/post.js";
|
|
11
|
+
export * from "./methods/put.js";
|
|
12
|
+
export * from "./request-options.js";
|
|
13
|
+
export * from "./utils/create-timeout-controller.js";
|
|
14
|
+
export * from "./utils/date-utils.js";
|
|
15
|
+
export * from "./utils/resolve-no-auto-authentication.js";
|
|
16
|
+
export * from "./utils/with-retry.js";
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AtomicContext } from "../../../client/atomic-context";
|
|
2
|
-
import type { API_ENDPOINTS } from "../../../types";
|
|
3
|
-
import type { RequestOptions } from "../request-options";
|
|
1
|
+
import { type AtomicContext } from "../../../client/atomic-context.js";
|
|
2
|
+
import type { API_ENDPOINTS } from "../../../types/index.js";
|
|
3
|
+
import type { RequestOptions } from "../request-options.js";
|
|
4
4
|
/** Options of a DELETE request: the shared ones, plus an optional JSON payload. */
|
|
5
5
|
export type DeleteOptions = RequestOptions & {
|
|
6
6
|
body?: Record<string, unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AtomicContext } from "../../../client/atomic-context";
|
|
2
|
-
import type { API_ENDPOINTS } from "../../../types";
|
|
3
|
-
import type { RequestOptions } from "../request-options";
|
|
1
|
+
import { type AtomicContext } from "../../../client/atomic-context.js";
|
|
2
|
+
import type { API_ENDPOINTS } from "../../../types/index.js";
|
|
3
|
+
import type { RequestOptions } from "../request-options.js";
|
|
4
4
|
/** Makes a GET request on the given context. */
|
|
5
5
|
export declare function getWithContext<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, params?: URLSearchParams, options?: RequestOptions): Promise<T>;
|
|
6
6
|
/**
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AtomicContext } from "../../../client/atomic-context.js";
|
|
2
|
+
import type { API_ENDPOINTS } from "../../../types/index.js";
|
|
3
|
+
import type { RequestOptions } from "../request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Internal: makes a PATCH request on the given context whose body is `value` itself, JSON-encoded.
|
|
6
|
+
* Deliberately not re-exported from `helpers/index.ts`, so it stays out of the public API.
|
|
7
|
+
*
|
|
8
|
+
* Unlike `patchWithContext`, nothing is merged into the body (`app`, `locale`, `ui-language`,
|
|
9
|
+
* `noUserOverride`, `noAutoAuthentication`...): the endpoint expects the bare value — a string, a
|
|
10
|
+
* number, `null`, an array — which cannot carry those fields. `options` still drives the transport
|
|
11
|
+
* (headers, signal, response type, recovery); only its body-level `noAutoAuthentication` is dropped.
|
|
12
|
+
*/
|
|
13
|
+
export declare function patchRawWithContext<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, value: unknown, options?: RequestOptions): Promise<T>;
|
|
14
|
+
//# sourceMappingURL=patch-raw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-raw.d.ts","sourceRoot":"","sources":["../../../../src/web-api/helpers/methods/patch-raw.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,EACzC,GAAG,EAAE,aAAa,EAClB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,CAAC,CAAC,CAGZ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AtomicContext } from "../../../client/atomic-context";
|
|
2
|
-
import type { API_ENDPOINTS } from "../../../types";
|
|
3
|
-
import type { RequestOptions } from "../request-options";
|
|
1
|
+
import { type AtomicContext } from "../../../client/atomic-context.js";
|
|
2
|
+
import type { API_ENDPOINTS } from "../../../types/index.js";
|
|
3
|
+
import type { RequestOptions } from "../request-options.js";
|
|
4
4
|
/** Makes a PATCH request on the given context. */
|
|
5
5
|
export declare function patchWithContext<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, body: Record<string, unknown>, options?: RequestOptions): Promise<T>;
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../../../src/web-api/helpers/methods/patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../../../src/web-api/helpers/methods/patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,gCAAgC,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIzD,kDAAkD;AAClD,wBAAsB,gBAAgB,CAAC,CAAC,EACtC,GAAG,EAAE,aAAa,EAClB,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED;;;;;;;GAOG;AACH,wBAAsB,KAAK,CAAC,CAAC,EAC3B,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,CAAC,CAAC,CAEZ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AtomicContext } from "../../../client/atomic-context";
|
|
2
|
-
import type { API_ENDPOINTS } from "../../../types";
|
|
3
|
-
import type { RequestOptions } from "../request-options";
|
|
1
|
+
import { type AtomicContext } from "../../../client/atomic-context.js";
|
|
2
|
+
import type { API_ENDPOINTS } from "../../../types/index.js";
|
|
3
|
+
import type { RequestOptions } from "../request-options.js";
|
|
4
4
|
/** Makes a POST request on the given context. */
|
|
5
5
|
export declare function postWithContext<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, body: Record<string, unknown>, options?: RequestOptions): Promise<T>;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type AtomicContext } from "../../../client/atomic-context";
|
|
2
|
-
import type { API_ENDPOINTS } from "../../../types";
|
|
3
|
-
import type { RequestOptions } from "../request-options";
|
|
1
|
+
import { type AtomicContext } from "../../../client/atomic-context.js";
|
|
2
|
+
import type { API_ENDPOINTS } from "../../../types/index.js";
|
|
3
|
+
import type { RequestOptions } from "../request-options.js";
|
|
4
4
|
/** Makes a PUT request on the given context. */
|
|
5
5
|
export declare function putWithContext<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, body: Record<string, unknown>, options?: RequestOptions): Promise<T>;
|
|
6
6
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AtomicContext } from "../../../client/atomic-context.js";
|
|
2
|
+
import type { API_ENDPOINTS } from "../../../types/index.js";
|
|
3
|
+
import type { RequestOptions } from "../request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Internal: sends an already-serialized JSON `body` as a PATCH. Shared by `patchWithContext` (which
|
|
6
|
+
* builds the enveloped body) and `patchRawWithContext` (which sends the bare value).
|
|
7
|
+
*
|
|
8
|
+
* Deliberately not re-exported from `helpers/index.ts`, so it stays out of the public API.
|
|
9
|
+
*/
|
|
10
|
+
export declare function sendPatch<T>(ctx: AtomicContext, endpoint: API_ENDPOINTS, body: string, options?: RequestOptions): Promise<T>;
|
|
11
|
+
//# sourceMappingURL=send-patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-patch.d.ts","sourceRoot":"","sources":["../../../../src/web-api/helpers/methods/send-patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIzD;;;;;GAKG;AACH,wBAAsB,SAAS,CAAC,CAAC,EAC/B,GAAG,EAAE,aAAa,EAClB,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,CAAC,CAAC,CAaZ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AtomicContext } from "../../../client/atomic-context";
|
|
2
|
-
import type { RequestOptions } from "../request-options";
|
|
1
|
+
import { type AtomicContext } from "../../../client/atomic-context.js";
|
|
2
|
+
import type { RequestOptions } from "../request-options.js";
|
|
3
3
|
/**
|
|
4
4
|
* Issues the request on the context's transport — its `HttpAdapter` when one is configured (SPFx),
|
|
5
5
|
* the resolved `fetch` otherwise — and hands the response to `handleResponse`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AtomicContext } from "../../../client/atomic-context";
|
|
2
|
-
import type { API_ENDPOINTS } from "../../../types";
|
|
1
|
+
import type { AtomicContext } from "../../../client/atomic-context.js";
|
|
2
|
+
import type { API_ENDPOINTS } from "../../../types/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Builds the absolute request URL for an endpoint.
|
|
5
5
|
*
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Crée un AbortController avec un timeout
|
|
3
3
|
* @param timeoutMs - Temps en millisecondes avant expiration
|
|
4
|
-
* @returns Un objet contenant le controller et le
|
|
4
|
+
* @returns Un objet contenant le controller, le signal et `dispose()`, qui annule le timer.
|
|
5
|
+
*
|
|
6
|
+
* Le timer est `unref`é sous Node (il ne retient pas le process), et annulé dès que le signal est
|
|
7
|
+
* aborté — par le timeout ou à la main. Appeler `dispose()` quand la requête est terminée libère le
|
|
8
|
+
* timer sans attendre son échéance.
|
|
5
9
|
*/
|
|
6
10
|
export declare function createTimeoutController(timeoutMs?: number): {
|
|
7
11
|
controller: AbortController;
|
|
8
12
|
signal: AbortSignal;
|
|
13
|
+
dispose: () => void;
|
|
9
14
|
};
|
|
10
15
|
//# sourceMappingURL=create-timeout-controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-timeout-controller.d.ts","sourceRoot":"","sources":["../../../../src/web-api/helpers/utils/create-timeout-controller.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"create-timeout-controller.d.ts","sourceRoot":"","sources":["../../../../src/web-api/helpers/utils/create-timeout-controller.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG;IAC3D,UAAU,EAAE,eAAe,CAAC;IAC5B,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAqBA"}
|
package/dist/web-api/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export * from "./helpers";
|
|
2
|
-
export * from "./v1/fetch-aggregation";
|
|
3
|
-
export * from "./v1/fetch-app";
|
|
4
|
-
export * from "./v1/fetch-audit";
|
|
5
|
-
export * from "./v1/fetch-dataset";
|
|
6
|
-
export * from "./v1/fetch-labels";
|
|
7
|
-
export * from "./v1/fetch-preview";
|
|
8
|
-
export * from "./v1/fetch-principal";
|
|
9
|
-
export * from "./v1/fetch-query";
|
|
10
|
-
export * from "./v1/fetch-query-export";
|
|
11
|
-
export * from "./v1/fetch-query-intent";
|
|
12
|
-
export * from "./v1/fetch-security-principal";
|
|
13
|
-
export * from "./v1/fetch-similar-documents";
|
|
14
|
-
export * from "./v1/fetch-sponsored-links";
|
|
15
|
-
export * from "./v1/fetch-suggest";
|
|
16
|
-
export * from "./v1/fetch-text-chunk";
|
|
17
|
-
export * from "./v1/fetch-user-settings";
|
|
18
|
-
export * from "./v2/fetch-change-password";
|
|
19
|
-
export * from "./v2/fetch-agent-workspace";
|
|
20
|
-
export * from "./v2/fetch-agent-workspace-status";
|
|
21
|
-
export * from "./v2/fetch-forgot-password";
|
|
22
|
-
export * from "./v2/fetch-user-profile";
|
|
23
|
-
export * from "./v2/fetch-version";
|
|
1
|
+
export * from "./helpers/index.js";
|
|
2
|
+
export * from "./v1/fetch-aggregation.js";
|
|
3
|
+
export * from "./v1/fetch-app.js";
|
|
4
|
+
export * from "./v1/fetch-audit.js";
|
|
5
|
+
export * from "./v1/fetch-dataset.js";
|
|
6
|
+
export * from "./v1/fetch-labels.js";
|
|
7
|
+
export * from "./v1/fetch-preview.js";
|
|
8
|
+
export * from "./v1/fetch-principal.js";
|
|
9
|
+
export * from "./v1/fetch-query.js";
|
|
10
|
+
export * from "./v1/fetch-query-export.js";
|
|
11
|
+
export * from "./v1/fetch-query-intent.js";
|
|
12
|
+
export * from "./v1/fetch-security-principal.js";
|
|
13
|
+
export * from "./v1/fetch-similar-documents.js";
|
|
14
|
+
export * from "./v1/fetch-sponsored-links.js";
|
|
15
|
+
export * from "./v1/fetch-suggest.js";
|
|
16
|
+
export * from "./v1/fetch-text-chunk.js";
|
|
17
|
+
export * from "./v1/fetch-user-settings.js";
|
|
18
|
+
export * from "./v2/fetch-change-password.js";
|
|
19
|
+
export * from "./v2/fetch-agent-workspace.js";
|
|
20
|
+
export * from "./v2/fetch-agent-workspace-status.js";
|
|
21
|
+
export * from "./v2/fetch-forgot-password.js";
|
|
22
|
+
export * from "./v2/fetch-user-profile.js";
|
|
23
|
+
export * from "./v2/fetch-version.js";
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AtomicContext } from "../../client/atomic-context";
|
|
2
|
-
import { Aggregation, AuditEvents, Query } from "../../types";
|
|
1
|
+
import { type AtomicContext } from "../../client/atomic-context.js";
|
|
2
|
+
import { Aggregation, AuditEvents, Query } from "../../types/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Fetches the next slice of a single aggregation's items — what a facet's "load more" does.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-aggregation.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"fetch-aggregation.d.ts","sourceRoot":"","sources":["../../../src/web-api/v1/fetch-aggregation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,6BAA6B,CAAC;AAGjF,OAAO,EAAmB,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAI/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,KAAK,CAAC,EAAE,WAAW,EACnB,KAAK,CAAC,EAAE,MAAM,EACd,GAAG,GAAE,aAA8B,GAClC,OAAO,CAAC,WAAW,CAAC,CAiCtB"}
|