@@ -263,6 +263,7 @@ export class DocumentController extends BaseController {
263
263
* - `queuable` If true, queues the request during downtime, until connected to Kuzzle again
264
264
* - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
265
265
* - `silent` If true, then Kuzzle will not generate notifications
266
+ * - `strict` If true, an error will occur if a document was not created
266
267
*
267
268
* @returns An object containing 2 arrays: "successes" and "errors"
268
269
*/
@@ -279,7 +280,7 @@ export class DocumentController extends BaseController {
279
280
*/
280
281
body : JSONObject ;
281
282
} > ,
282
- options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean } = { }
283
+ options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean , strict ?: boolean } = { }
283
284
) : Promise < {
284
285
/**
285
286
* Array of successfully created documents
@@ -327,6 +328,7 @@ export class DocumentController extends BaseController {
327
328
* - `queuable` If true, queues the request during downtime, until connected to Kuzzle again
328
329
* - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
329
330
* - `silent` If true, then Kuzzle will not generate notifications
331
+ * - `strict` If true, an error will occur if a document was not created
330
332
*
331
333
* @returns An object containing 2 arrays: "successes" and "errors"
332
334
*/
@@ -343,7 +345,7 @@ export class DocumentController extends BaseController {
343
345
*/
344
346
body : JSONObject ;
345
347
} > ,
346
- options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean } = { }
348
+ options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean , strict ?: boolean } = { }
347
349
) : Promise < {
348
350
/**
349
351
* Array of successfully created documents
@@ -391,14 +393,15 @@ export class DocumentController extends BaseController {
391
393
* - `queuable` If true, queues the request during downtime, until connected to Kuzzle again
392
394
* - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
393
395
* - `silent` If true, then Kuzzle will not generate notifications
396
+ * - `strict` If true, an error will occur if a document was not deleted
394
397
*
395
398
* @returns An object containing 2 arrays: "successes" and "errors"
396
399
*/
397
400
mDelete (
398
401
index : string ,
399
402
collection : string ,
400
403
ids : Array < string > ,
401
- options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean } = { }
404
+ options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean , strict ?: boolean } = { }
402
405
) : Promise < {
403
406
/**
404
407
* Array of successfully deleted documents IDS
@@ -482,6 +485,7 @@ export class DocumentController extends BaseController {
482
485
* - `queuable` If true, queues the request during downtime, until connected to Kuzzle again
483
486
* - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
484
487
* - `silent` If true, then Kuzzle will not generate notifications
488
+ * - `strict` If true, an error will occur if a document was not replaced
485
489
*
486
490
* @returns An object containing 2 arrays: "successes" and "errors"
487
491
*/
@@ -498,7 +502,7 @@ export class DocumentController extends BaseController {
498
502
*/
499
503
body : JSONObject ;
500
504
} > ,
501
- options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean } = { }
505
+ options : { queuable ?: boolean , refresh ?: 'wait_for' , silent ?: boolean , strict ?: boolean } = { }
502
506
) : Promise < {
503
507
/**
504
508
* Array of successfully replaced documents
@@ -550,6 +554,7 @@ export class DocumentController extends BaseController {
550
554
* - `refresh` If set to `wait_for`, Kuzzle will not respond until the API key is indexed
551
555
* - `silent` If true, then Kuzzle will not generate notifications
552
556
* - `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
553
558
*
554
559
* @returns An object containing 2 arrays: "successes" and "errors"
555
560
*/
@@ -570,7 +575,8 @@ export class DocumentController extends BaseController {
570
575
queuable ?: boolean ,
571
576
refresh ?: 'wait_for' ,
572
577
silent ?: boolean ,
573
- retryOnConflict ?: number
578
+ retryOnConflict ?: number ,
579
+ strict ?: boolean ,
574
580
} = { }
575
581
) : Promise < {
576
582
/**
0 commit comments