@@ -386,7 +386,7 @@ class Index<T = Record<string, any>> {
386386 * @param {Array<Document<T>> } documents Array of Document objects to add/replace
387387 * @param {DocumentOptions } options? Options on document addition
388388 *
389- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
389+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
390390 */
391391 async addDocuments (
392392 documents : Array < Document < T > > ,
@@ -428,7 +428,7 @@ class Index<T = Record<string, any>> {
428428 * @method updateDocuments
429429 * @param {Array<Document<Partial<T>>> } documents Array of Document objects to add/update
430430 * @param {DocumentOptions } options? Options on document update
431- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
431+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
432432 */
433433 async updateDocuments (
434434 documents : Array < Document < Partial < T > > > ,
@@ -469,7 +469,7 @@ class Index<T = Record<string, any>> {
469469 * @memberof Index
470470 * @method deleteDocument
471471 * @param {string | number } documentId Id of Document to delete
472- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
472+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
473473 */
474474 async deleteDocument ( documentId : string | number ) : Promise < EnqueuedTask > {
475475 const url = `indexes/${ this . uid } /documents/${ documentId } `
@@ -485,7 +485,7 @@ class Index<T = Record<string, any>> {
485485 * @memberof Index
486486 * @method deleteDocuments
487487 * @param {string[] | number[] } documentsIds Array of Document Ids to delete
488- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
488+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
489489 */
490490 async deleteDocuments (
491491 documentsIds : string [ ] | number [ ]
@@ -501,7 +501,7 @@ class Index<T = Record<string, any>> {
501501 * Delete all documents of an index
502502 * @memberof Index
503503 * @method deleteAllDocuments
504- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
504+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
505505 */
506506 async deleteAllDocuments ( ) : Promise < EnqueuedTask > {
507507 const url = `indexes/${ this . uid } /documents`
@@ -533,7 +533,7 @@ class Index<T = Record<string, any>> {
533533 * @memberof Index
534534 * @method updateSettings
535535 * @param {Settings } settings Object containing parameters with their updated values
536- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
536+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
537537 */
538538 async updateSettings ( settings : Settings ) : Promise < EnqueuedTask > {
539539 const url = `indexes/${ this . uid } /settings`
@@ -548,7 +548,7 @@ class Index<T = Record<string, any>> {
548548 * Reset settings.
549549 * @memberof Index
550550 * @method resetSettings
551- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
551+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
552552 */
553553 async resetSettings ( ) : Promise < EnqueuedTask > {
554554 const url = `indexes/${ this . uid } /settings`
@@ -579,7 +579,7 @@ class Index<T = Record<string, any>> {
579579 * @memberof Index
580580 * @method updatePagination
581581 * @param {PaginationSettings } pagination Pagination object
582- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
582+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
583583 */
584584 async updatePagination (
585585 pagination : PaginationSettings
@@ -594,7 +594,7 @@ class Index<T = Record<string, any>> {
594594 * Reset the pagination settings.
595595 * @memberof Index
596596 * @method resetPagination
597- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
597+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
598598 */
599599 async resetPagination ( ) : Promise < EnqueuedTask > {
600600 const url = `indexes/${ this . uid } /settings/pagination`
@@ -622,7 +622,7 @@ class Index<T = Record<string, any>> {
622622 * @memberof Index
623623 * @method updateSynonyms
624624 * @param {Synonyms } synonyms Mapping of synonyms with their associated words
625- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
625+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
626626 */
627627 async updateSynonyms ( synonyms : Synonyms ) : Promise < EnqueuedTask > {
628628 const url = `indexes/${ this . uid } /settings/synonyms`
@@ -635,7 +635,7 @@ class Index<T = Record<string, any>> {
635635 * Reset the synonym list to be empty again
636636 * @memberof Index
637637 * @method resetSynonyms
638- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
638+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
639639 */
640640 async resetSynonyms ( ) : Promise < EnqueuedTask > {
641641 const url = `indexes/${ this . uid } /settings/synonyms`
@@ -666,7 +666,7 @@ class Index<T = Record<string, any>> {
666666 * @memberof Index
667667 * @method updateStopWords
668668 * @param {StopWords } stopWords Array of strings that contains the stop-words.
669- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
669+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
670670 */
671671 async updateStopWords ( stopWords : StopWords ) : Promise < EnqueuedTask > {
672672 const url = `indexes/${ this . uid } /settings/stop-words`
@@ -679,7 +679,7 @@ class Index<T = Record<string, any>> {
679679 * Reset the stop-words list to be empty again
680680 * @memberof Index
681681 * @method resetStopWords
682- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
682+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
683683 */
684684 async resetStopWords ( ) : Promise < EnqueuedTask > {
685685 const url = `indexes/${ this . uid } /settings/stop-words`
@@ -710,7 +710,7 @@ class Index<T = Record<string, any>> {
710710 * @memberof Index
711711 * @method updateRankingRules
712712 * @param {RankingRules } rankingRules Array that contain ranking rules sorted by order of importance.
713- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
713+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
714714 */
715715 async updateRankingRules ( rankingRules : RankingRules ) : Promise < EnqueuedTask > {
716716 const url = `indexes/${ this . uid } /settings/ranking-rules`
@@ -723,7 +723,7 @@ class Index<T = Record<string, any>> {
723723 * Reset the ranking rules list to its default value
724724 * @memberof Index
725725 * @method resetRankingRules
726- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
726+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
727727 */
728728 async resetRankingRules ( ) : Promise < EnqueuedTask > {
729729 const url = `indexes/${ this . uid } /settings/ranking-rules`
@@ -754,7 +754,7 @@ class Index<T = Record<string, any>> {
754754 * @memberof Index
755755 * @method updateDistinctAttribute
756756 * @param {DistinctAttribute } distinctAttribute Field name of the distinct-attribute
757- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
757+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
758758 */
759759 async updateDistinctAttribute (
760760 distinctAttribute : DistinctAttribute
@@ -769,7 +769,7 @@ class Index<T = Record<string, any>> {
769769 * Reset the distinct-attribute.
770770 * @memberof Index
771771 * @method resetDistinctAttribute
772- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
772+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
773773 */
774774 async resetDistinctAttribute ( ) : Promise < EnqueuedTask > {
775775 const url = `indexes/${ this . uid } /settings/distinct-attribute`
@@ -800,7 +800,7 @@ class Index<T = Record<string, any>> {
800800 * @memberof Index
801801 * @method updateFilterableAttributes
802802 * @param {FilterableAttributes } filterableAttributes Array of strings containing the attributes that can be used as filters at query time
803- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
803+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
804804 */
805805 async updateFilterableAttributes (
806806 filterableAttributes : FilterableAttributes
@@ -815,7 +815,7 @@ class Index<T = Record<string, any>> {
815815 * Reset the filterable-attributes.
816816 * @memberof Index
817817 * @method resetFilterableAttributes
818- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
818+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
819819 */
820820 async resetFilterableAttributes ( ) : Promise < EnqueuedTask > {
821821 const url = `indexes/${ this . uid } /settings/filterable-attributes`
@@ -846,7 +846,7 @@ class Index<T = Record<string, any>> {
846846 * @memberof Index
847847 * @method updateSortableAttributes
848848 * @param {SortableAttributes } sortableAttributes Array of strings containing the attributes that can be used to sort search results at query time
849- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
849+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
850850 */
851851 async updateSortableAttributes (
852852 sortableAttributes : SortableAttributes
@@ -861,7 +861,7 @@ class Index<T = Record<string, any>> {
861861 * Reset the sortable-attributes.
862862 * @memberof Index
863863 * @method resetSortableAttributes
864- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
864+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
865865 */
866866 async resetSortableAttributes ( ) : Promise < EnqueuedTask > {
867867 const url = `indexes/${ this . uid } /settings/sortable-attributes`
@@ -892,7 +892,7 @@ class Index<T = Record<string, any>> {
892892 * @memberof Index
893893 * @method updateSearchableAttributes
894894 * @param {SearchableAttributes } searchableAttributes Array of strings that contains searchable attributes sorted by order of importance(most to least important)
895- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
895+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
896896 */
897897 async updateSearchableAttributes (
898898 searchableAttributes : SearchableAttributes
@@ -907,7 +907,7 @@ class Index<T = Record<string, any>> {
907907 * Reset the searchable-attributes.
908908 * @memberof Index
909909 * @method resetSearchableAttributes
910- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
910+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
911911 */
912912 async resetSearchableAttributes ( ) : Promise < EnqueuedTask > {
913913 const url = `indexes/${ this . uid } /settings/searchable-attributes`
@@ -938,7 +938,7 @@ class Index<T = Record<string, any>> {
938938 * @memberof Index
939939 * @method updateDisplayedAttributes
940940 * @param {DisplayedAttributes } displayedAttributes Array of strings that contains attributes of an index to display
941- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
941+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
942942 */
943943 async updateDisplayedAttributes (
944944 displayedAttributes : DisplayedAttributes
@@ -953,7 +953,7 @@ class Index<T = Record<string, any>> {
953953 * Reset the displayed-attributes.
954954 * @memberof Index
955955 * @method resetDisplayedAttributes
956- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
956+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
957957 */
958958 async resetDisplayedAttributes ( ) : Promise < EnqueuedTask > {
959959 const url = `indexes/${ this . uid } /settings/displayed-attributes`
@@ -1032,7 +1032,7 @@ class Index<T = Record<string, any>> {
10321032 * @memberof Index
10331033 * @method updateFaceting
10341034 * @param {Faceting } faceting Faceting index settings object
1035- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
1035+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
10361036 */
10371037 async updateFaceting ( faceting : Faceting ) : Promise < EnqueuedTask > {
10381038 const url = `indexes/${ this . uid } /settings/faceting`
@@ -1045,7 +1045,7 @@ class Index<T = Record<string, any>> {
10451045 * Reset the faceting settings.
10461046 * @memberof Index
10471047 * @method resetFaceting
1048- * @returns {Promise<EnqueuedTask> } Promise containing object of the enqueued task
1048+ * @returns {Promise<EnqueuedTask> } Promise containing an EnqueuedTask
10491049 */
10501050 async resetFaceting ( ) : Promise < EnqueuedTask > {
10511051 const url = `indexes/${ this . uid } /settings/faceting`
0 commit comments