File tree Expand file tree Collapse file tree 5 files changed +41
-27
lines changed
Expand file tree Collapse file tree 5 files changed +41
-27
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 <support@kuzzle.io>" ,
66 "repository" : {
Original file line number Diff line number Diff 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
942920export 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+ }
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments