kuzzle 2.57.0 → 2.58.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/dist/index.d.ts +2 -1
- package/dist/lib/core/shared/sdk/embeddedSdk.d.ts +2 -1
- package/dist/lib/core/shared/sdk/funnelProtocol.d.ts +1 -1
- package/dist/lib/core/shared/sdk/impersonatedSdk.d.ts +2 -2
- package/dist/lib/kerror/errors/multipleErrorsError.d.ts +1 -1
- package/dist/lib/kerror/errors/partialError.d.ts +1 -1
- package/dist/lib/types/JSONObject.d.ts +3 -4
- package/dist/lib/types/events/EventGenericDocument.d.ts +1 -1
- package/dist/package.json +2 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,8 @@ Role, RoleSearchResult, ScopeOption, SearchResultBase, ServerController, Specifi
|
|
|
37
37
|
User, UserOption, UserSearchResult,
|
|
38
38
|
/** @deprecated A client transport: import it from "kuzzle-sdk". */
|
|
39
39
|
WebSocket, } from "kuzzle-sdk";
|
|
40
|
-
export type { ApiKey,
|
|
40
|
+
export type { ApiKey, ArgsDefault, BaseNotification, BaseRequest, CollectionMappings, DocumentContent, DocumentMetadata, DocumentNotification, HttpRoutes, KDocument, KDocumentContent, KDocumentContentGeneric, KDocumentKuzzleInfo, KHit, MappingsProperties, Notification, NotificationType, ProfilePolicy, RequestPayload, ResponsePayload, RoleRightsDefinition, ServerNotification, UserNotification, mCreateOrReplaceRequest, mCreateOrReplaceResponse, mCreateRequest, mCreateResponse, mDeleteRequest, mDeleteResponse, mReplaceRequest, mReplaceResponse, mUpdateRequest, mUpdateResponse, mUpsertRequest, mUpsertResponse, } from "kuzzle-types";
|
|
41
|
+
export type { ArgsAuthControllerCheckRights, ArgsAuthControllerCheckToken, ArgsAuthControllerCreateApiKey, ArgsAuthControllerCreateMyCredentials, ArgsAuthControllerCredentialsExist, ArgsAuthControllerDeleteApiKey, ArgsAuthControllerDeleteMyCredentials, ArgsAuthControllerGetCurrentUser, ArgsAuthControllerGetMyCredentials, ArgsAuthControllerGetMyRights, ArgsAuthControllerGetStrategies, ArgsAuthControllerLogin, ArgsAuthControllerLogout, ArgsAuthControllerRefreshToken, ArgsAuthControllerSearchApiKeys, ArgsAuthControllerUpdateMyCredentials, ArgsAuthControllerUpdateSelf, ArgsAuthControllerValidateMyCredentials, ArgsCollectionControllerCreate, ArgsCollectionControllerDelete, ArgsCollectionControllerDeleteSpecifications, ArgsCollectionControllerExists, ArgsCollectionControllerGetMapping, ArgsCollectionControllerGetSpecifications, ArgsCollectionControllerList, ArgsCollectionControllerRefresh, ArgsCollectionControllerSearchSpecifications, ArgsCollectionControllerTruncate, ArgsCollectionControllerUpdate, ArgsCollectionControllerUpdateMapping, ArgsCollectionControllerUpdateSpecifications, ArgsCollectionControllerValidateSpecifications, ArgsDocumentControllerCount, ArgsDocumentControllerCreate, ArgsDocumentControllerCreateOrReplace, ArgsDocumentControllerDelete, ArgsDocumentControllerDeleteByQuery, ArgsDocumentControllerDeleteFields, ArgsDocumentControllerExists, ArgsDocumentControllerGet, ArgsDocumentControllerMCreate, ArgsDocumentControllerMCreateOrReplace, ArgsDocumentControllerMDelete, ArgsDocumentControllerMGet, ArgsDocumentControllerMReplace, ArgsDocumentControllerMUpdate, ArgsDocumentControllerMUpsert, ArgsDocumentControllerReplace, ArgsDocumentControllerSearch, ArgsDocumentControllerUpdate, ArgsDocumentControllerUpdateByQuery, ArgsDocumentControllerUpsert, ArgsDocumentControllerValidate, ArgsIndexControllerCreate, ArgsIndexControllerDelete, ArgsIndexControllerExists, ArgsIndexControllerList, ArgsIndexControllerMDelete, ArgsIndexControllerStats, ArgsRealtimeControllerCount, ArgsRealtimeControllerPublish, ArgsRealtimeControllerSubscribe, ArgsRealtimeControllerUnsubscribe, ArgsServerControllerAdminExists, ArgsServerControllerGetAllStats, ArgsServerControllerGetConfig, ArgsServerControllerGetLastStats, ArgsServerControllerGetStats, ArgsServerControllerInfo, ArgsServerControllerNow, DocumentHit, ObserverOptions, PrivateAndPublicSDKEvents, PublicKuzzleEvents, SearchResult, UpdateByQueryResponse, } from "kuzzle-sdk";
|
|
41
42
|
export * from "./lib/core/shared/KoncordeWrapper";
|
|
42
43
|
export * from "./lib/core/shared/ObjectRepository";
|
|
43
44
|
export * from "./lib/core/shared/store";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { RealtimeController,
|
|
1
|
+
import type { RealtimeController, ScopeOption, UserOption } from "kuzzle-sdk";
|
|
2
|
+
import type { BaseRequest, Notification, ResponsePayload } from "kuzzle-types";
|
|
2
3
|
import type { JSONObject } from "../../../types/JSONObject";
|
|
3
4
|
import { Kuzzle } from "kuzzle-sdk";
|
|
4
5
|
interface EmbeddedRealtime extends RealtimeController {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseRequest } from "kuzzle-
|
|
1
|
+
import type { BaseRequest } from "kuzzle-types";
|
|
2
2
|
import type { JSONObject } from "../../../types/JSONObject";
|
|
3
3
|
import "../../../types/Global";
|
|
4
4
|
interface ImpersonationOptions {
|
|
@@ -8,6 +8,6 @@ declare class ImpersonatedSDK {
|
|
|
8
8
|
kuid: string;
|
|
9
9
|
checkRights: boolean;
|
|
10
10
|
constructor(kuid: string, options?: ImpersonationOptions);
|
|
11
|
-
query(request: BaseRequest, options?: JSONObject): Promise<import("kuzzle-
|
|
11
|
+
query(request: BaseRequest, options?: JSONObject): Promise<import("kuzzle-types").ResponsePayload<JSONObject>>;
|
|
12
12
|
}
|
|
13
13
|
export = ImpersonatedSDK;
|
|
@@ -3,5 +3,5 @@ export declare class MultipleErrorsError extends KuzzleError {
|
|
|
3
3
|
errors: Array<KuzzleError>;
|
|
4
4
|
count: number;
|
|
5
5
|
constructor(message?: string, errors?: KuzzleError[], id?: string, code?: number);
|
|
6
|
-
toJSON(): import("
|
|
6
|
+
toJSON(): import("kuzzle-types").JSONObject;
|
|
7
7
|
}
|
|
@@ -9,5 +9,5 @@ export declare class PartialError extends KuzzleError {
|
|
|
9
9
|
* `KuzzleError` (`[{ _id, reason }]`, `Error[]`) compiled, and must still.
|
|
10
10
|
*/
|
|
11
11
|
constructor(message?: unknown, body?: unknown, id?: unknown, code?: unknown);
|
|
12
|
-
toJSON(): import("
|
|
12
|
+
toJSON(): import("kuzzle-types").JSONObject;
|
|
13
13
|
}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* An object with any key and any value — a JSON document, a request body, a
|
|
3
3
|
* payload.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* both ways: a plugin mixing the two imports sees no difference.
|
|
5
|
+
* Owned by the server (ADR-0002 step 02) and shared with the SDK through
|
|
6
|
+
* kuzzle-types (step 03): the SDK's `JSONObject` is now this very type.
|
|
8
7
|
*/
|
|
9
|
-
export type JSONObject
|
|
8
|
+
export type { JSONObject } from "kuzzle-types";
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle",
|
|
3
3
|
"author": "The Kuzzle Team <support@kuzzle.io>",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.58.0",
|
|
5
5
|
"description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rm -Rf ./dist && tsc && node -r ts-node/register/transpile-only ./bin/copy-binaries.ts",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"kuzzle-logger": "1.4.0",
|
|
53
53
|
"kuzzle-plugin-auth-passport-local": "6.4.1",
|
|
54
54
|
"kuzzle-sdk": ">=7.17.1 <8.0.0",
|
|
55
|
+
"kuzzle-types": "^1.0.0",
|
|
55
56
|
"kuzzle-vault": "2.2.0",
|
|
56
57
|
"lodash": "4.17.21",
|
|
57
58
|
"long": "5.3.2",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kuzzle",
|
|
3
3
|
"author": "The Kuzzle Team <support@kuzzle.io>",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.58.0",
|
|
5
5
|
"description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rm -Rf ./dist && tsc && node -r ts-node/register/transpile-only ./bin/copy-binaries.ts",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"kuzzle-logger": "1.4.0",
|
|
53
53
|
"kuzzle-plugin-auth-passport-local": "6.4.1",
|
|
54
54
|
"kuzzle-sdk": ">=7.17.1 <8.0.0",
|
|
55
|
+
"kuzzle-types": "^1.0.0",
|
|
55
56
|
"kuzzle-vault": "2.2.0",
|
|
56
57
|
"lodash": "4.17.21",
|
|
57
58
|
"long": "5.3.2",
|