File tree 2 files changed +26
-24
lines changed
2 files changed +26
-24
lines changed Original file line number Diff line number Diff line change @@ -716,29 +716,7 @@ export class DocumentController extends BaseController {
716
716
query : JSONObject ,
717
717
changes : Partial < TKDocumentContent > ,
718
718
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 > > {
742
720
const request = {
743
721
action : "updateByQuery" ,
744
722
body : { changes, query } ,
@@ -940,3 +918,27 @@ export interface ArgsDocumentControllerUpsert<TKDocumentContent>
940
918
}
941
919
942
920
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
+ }
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export class SecurityController extends BaseController {
52
52
checkRights (
53
53
kuid ,
54
54
requestPayload ,
55
- options : ArgsSecurityControllerCheckRights
55
+ options : ArgsSecurityControllerCheckRights = { }
56
56
) {
57
57
const request = {
58
58
action : "checkRights" ,
You can’t perform that action at this time.
0 commit comments