Skip to content

Commit de3ec6e

Browse files
authored
Merge pull request #760 from kuzzleio/beta
Beta
2 parents 44ff2b9 + 81c0b94 commit de3ec6e

File tree

5 files changed

+41
-27
lines changed

5 files changed

+41
-27
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# [7.15.0-beta.1](https://github.com/kuzzleio/sdk-javascript/compare/v7.14.0...v7.15.0-beta.1) (2025-02-12)
2+
3+
4+
### Bug Fixes
5+
6+
* add default options to security:checkRights ([#757](https://github.com/kuzzleio/sdk-javascript/issues/757)) ([b07f061](https://github.com/kuzzleio/sdk-javascript/commit/b07f0617a38cb16d7e0022af8363bb1f3e8d79a8))
7+
8+
9+
### Features
10+
11+
* create an interface to export and use in KDM ([#758](https://github.com/kuzzleio/sdk-javascript/issues/758)) ([84e7a1b](https://github.com/kuzzleio/sdk-javascript/commit/84e7a1b403a7da0b93f73a8d30e3c94e40b83993))
12+
113
# [7.14.0](https://github.com/kuzzleio/sdk-javascript/compare/v7.13.0...v7.14.0) (2024-11-05)
214

315

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kuzzle-sdk",
3-
"version": "7.14.0",
3+
"version": "7.15.0-beta.1",
44
"description": "Official Javascript SDK for Kuzzle",
55
"author": "The Kuzzle Team <[email protected]>",
66
"repository": {

src/controllers/Document.ts

+25-23
Original file line numberDiff line numberDiff line change
@@ -716,29 +716,7 @@ export class DocumentController extends BaseController {
716716
query: JSONObject,
717717
changes: Partial<TKDocumentContent>,
718718
options: ArgsDocumentControllerUpdateByQuery = {}
719-
): Promise<{
720-
/**
721-
* Array of successfully updated documents
722-
*/
723-
successes: KDocument<TKDocumentContent>[];
724-
/**
725-
* Array of failed creation
726-
*/
727-
errors: Array<{
728-
/**
729-
* Document that cause the error
730-
*/
731-
document: KDocument<TKDocumentContent>;
732-
/**
733-
* HTTP error status
734-
*/
735-
status: number;
736-
/**
737-
* Human readable reason
738-
*/
739-
reason: string;
740-
}>;
741-
}> {
719+
): Promise<UpdateByQueryResponse<TKDocumentContent>> {
742720
const request = {
743721
action: "updateByQuery",
744722
body: { changes, query },
@@ -940,3 +918,27 @@ export interface ArgsDocumentControllerUpsert<TKDocumentContent>
940918
}
941919

942920
export type ArgsDocumentControllerValidate = ArgsDefault;
921+
922+
export interface UpdateByQueryResponse<TKDocumentContent> {
923+
/**
924+
* Array of successfully updated documents
925+
*/
926+
successes: KDocument<TKDocumentContent>[];
927+
/**
928+
* Array of failed creation
929+
*/
930+
errors: Array<{
931+
/**
932+
* Document that cause the error
933+
*/
934+
document: KDocument<TKDocumentContent>;
935+
/**
936+
* HTTP error status
937+
*/
938+
status: number;
939+
/**
940+
* Human readable reason
941+
*/
942+
reason: string;
943+
}>;
944+
}

src/controllers/Security.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class SecurityController extends BaseController {
5252
checkRights(
5353
kuid,
5454
requestPayload,
55-
options: ArgsSecurityControllerCheckRights
55+
options: ArgsSecurityControllerCheckRights = {}
5656
) {
5757
const request = {
5858
action: "checkRights",

0 commit comments

Comments
 (0)