@@ -263,6 +263,7 @@ export class DocumentController extends BaseController {
263263 * - `queuable` If true, queues the request during downtime, until connected to Kuzzle again
264264 * - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
265265 * - `silent` If true, then Kuzzle will not generate notifications
266+ * - `strict` If true, an error will occur if a document was not created
266267 *
267268 * @returns An object containing 2 arrays: "successes" and "errors"
268269 */
@@ -279,7 +280,7 @@ export class DocumentController extends BaseController {
279280 */
280281 body : JSONObject ;
281282 } > ,
282- options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean } = { }
283+ options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean , strict ?: boolean } = { }
283284 ) : Promise < {
284285 /**
285286 * Array of successfully created documents
@@ -327,6 +328,7 @@ export class DocumentController extends BaseController {
327328 * - `queuable` If true, queues the request during downtime, until connected to Kuzzle again
328329 * - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
329330 * - `silent` If true, then Kuzzle will not generate notifications
331+ * - `strict` If true, an error will occur if a document was not created
330332 *
331333 * @returns An object containing 2 arrays: "successes" and "errors"
332334 */
@@ -343,7 +345,7 @@ export class DocumentController extends BaseController {
343345 */
344346 body : JSONObject ;
345347 } > ,
346- options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean } = { }
348+ options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean , strict ?: boolean } = { }
347349 ) : Promise < {
348350 /**
349351 * Array of successfully created documents
@@ -391,14 +393,15 @@ export class DocumentController extends BaseController {
391393 * - `queuable` If true, queues the request during downtime, until connected to Kuzzle again
392394 * - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
393395 * - `silent` If true, then Kuzzle will not generate notifications
396+ * - `strict` If true, an error will occur if a document was not deleted
394397 *
395398 * @returns An object containing 2 arrays: "successes" and "errors"
396399 */
397400 mDelete (
398401 index : string ,
399402 collection : string ,
400403 ids : Array < string > ,
401- options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean } = { }
404+ options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean , strict ?: boolean } = { }
402405 ) : Promise < {
403406 /**
404407 * Array of successfully deleted documents IDS
@@ -482,6 +485,7 @@ export class DocumentController extends BaseController {
482485 * - `queuable` If true, queues the request during downtime, until connected to Kuzzle again
483486 * - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
484487 * - `silent` If true, then Kuzzle will not generate notifications
488+ * - `strict` If true, an error will occur if a document was not replaced
485489 *
486490 * @returns An object containing 2 arrays: "successes" and "errors"
487491 */
@@ -498,7 +502,7 @@ export class DocumentController extends BaseController {
498502 */
499503 body : JSONObject ;
500504 } > ,
501- options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean } = { }
505+ options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean , strict ?: boolean } = { }
502506 ) : Promise < {
503507 /**
504508 * Array of successfully replaced documents
@@ -550,6 +554,7 @@ export class DocumentController extends BaseController {
550554 * - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
551555 * - `silent` If true, then Kuzzle will not generate notifications
552556 * - `retryOnConflict` Number of times the database layer should retry in case of version conflict
557+ * - `strict` If true, an error will occur if a document was not updated
553558 *
554559 * @returns An object containing 2 arrays: "successes" and "errors"
555560 */
@@ -570,7 +575,8 @@ export class DocumentController extends BaseController {
570575 queuable ?: boolean ,
571576 refresh ?: 'wait_for' ,
572577 silent ?: boolean ,
573- retryOnConflict ?: number
578+ retryOnConflict ?: number ,
579+ strict ?: boolean ,
574580 } = { }
575581 ) : Promise < {
576582 /**
0 commit comments