🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

node-appwrite

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-appwrite - npm Package Compare versions

Comparing version

to
16.1.0-rc.1

@@ -18,3 +18,3 @@ 'use strict';

function getUserAgent() {
let ua = "AppwriteNodeJSSDK/16.0.0";
let ua = "AppwriteNodeJSSDK/16.1.0-rc.1";
const platform = [];

@@ -55,3 +55,3 @@ if (typeof process !== "undefined") {

"x-sdk-language": "nodejs",
"x-sdk-version": "16.0.0",
"x-sdk-version": "16.1.0-rc.1",
"user-agent": getUserAgent(),

@@ -58,0 +58,0 @@ "X-Appwrite-Response-Format": "1.6.0"

@@ -444,3 +444,2 @@ import { Client } from '../client.js';

* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
*

@@ -457,2 +456,45 @@ * @param {string} databaseId

/**
* Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
*
* @param {string} databaseId
* @param {string} collectionId
* @param {object[]} documents
* @throws {AppwriteException}
* @returns {Promise<Models.DocumentList<Document>>}
*/
createDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, documents: object[]): Promise<Models.DocumentList<Document>>;
/**
* Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
*
* @param {string} databaseId
* @param {string} collectionId
* @param {object[]} documents
* @throws {AppwriteException}
* @returns {Promise<Models.DocumentList<Document>>}
*/
upsertDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, documents?: object[]): Promise<Models.DocumentList<Document>>;
/**
* Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.
*
* @param {string} databaseId
* @param {string} collectionId
* @param {object} data
* @param {string[]} queries
* @throws {AppwriteException}
* @returns {Promise<Models.DocumentList<Document>>}
*/
updateDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, data?: object, queries?: string[]): Promise<Models.DocumentList<Document>>;
/**
* Bulk delete documents using queries, if no queries are passed then all documents are deleted.
*
* @param {string} databaseId
* @param {string} collectionId
* @param {string[]} queries
* @throws {AppwriteException}
* @returns {Promise<Models.DocumentList<Document>>}
*/
deleteDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>>;
/**
* Get a document by its unique ID. This endpoint response returns a JSON object with the document data.

@@ -459,0 +501,0 @@ *

@@ -5,3 +5,3 @@ {

"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
"version": "16.0.0",
"version": "16.1.0-rc.1",
"license": "BSD-3-Clause",

@@ -8,0 +8,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet