Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@or-sdk/qna

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@or-sdk/qna - npm Package Compare versions

Comparing version 1.1.1-beta.1260.0 to 1.1.1-beta.1261.0

2

dist/cjs/QnA.js

@@ -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',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc