@or-sdk/qna
Advanced tools
Comparing version 1.1.1-beta.1260.0 to 1.1.1-beta.1261.0
@@ -288,3 +288,3 @@ "use strict"; | ||
}; | ||
QnA.prototype.removeDocument = function (collectionId, documentId) { | ||
QnA.prototype.deleteDocument = function (collectionId, documentId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -291,0 +291,0 @@ return __generator(this, function (_a) { |
@@ -157,3 +157,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
removeDocument(collectionId, documentId) { | ||
deleteDocument(collectionId, documentId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -160,0 +160,0 @@ yield this.callApiV2({ |
@@ -16,4 +16,4 @@ import { Base, List } from '@or-sdk/base'; | ||
listCollections({ query, from: offset, size: limit }?: Find): Promise<List<Collection>>; | ||
removeDocument(collectionId: string, documentId: string): Promise<void>; | ||
deleteDocument(collectionId: string, documentId: string): Promise<void>; | ||
} | ||
//# sourceMappingURL=QnA.d.ts.map |
{ | ||
"name": "@or-sdk/qna", | ||
"version": "1.1.1-beta.1260.0", | ||
"version": "1.1.1-beta.1261.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
@@ -281,5 +281,5 @@ # QnA SDK | ||
#### `removeDocument` | ||
#### `deleteDocument` | ||
Remove a document from a collection. | ||
Delete a document from a collection. | ||
@@ -289,2 +289,2 @@ ```typescript | ||
const documentId = 'e5f6g7h8-uuid'; | ||
await qna.removeDocument(collectionId, documentId); | ||
await qna.deleteDocument(collectionId, documentId); |
@@ -208,7 +208,7 @@ import { Base, List, makeList } from '@or-sdk/base'; | ||
/** | ||
* Remove a document from a collection. | ||
* @param collectionId - The ID of the collection to remove the document from. | ||
* @param documentId - The ID of the document to remove. | ||
* Delete a document from a collection. | ||
* @param collectionId - The ID of the collection to delete the document from. | ||
* @param documentId - The ID of the document to delete. | ||
*/ | ||
async removeDocument(collectionId: string, documentId: string): Promise<void> { | ||
async deleteDocument(collectionId: string, documentId: string): Promise<void> { | ||
await this.callApiV2({ | ||
@@ -215,0 +215,0 @@ method: 'DELETE', |