node-appwrite
Advanced tools
Comparing version
@@ -8,3 +8,3 @@ let sdk = new Appwrite(); | ||
let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 0); | ||
let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 1); | ||
@@ -11,0 +11,0 @@ promise.then(function (response) { |
@@ -8,3 +8,3 @@ let sdk = new Appwrite(); | ||
let promise = sdk.projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com'); | ||
let promise = sdk.projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com'); | ||
@@ -11,0 +11,0 @@ promise.then(function (response) { |
@@ -8,3 +8,3 @@ let sdk = new Appwrite(); | ||
let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1); | ||
let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0); | ||
@@ -11,0 +11,0 @@ promise.then(function (response) { |
@@ -10,3 +10,3 @@ const URL = require('url').URL; | ||
'content-type': '', | ||
'x-sdk-version': 'appwrite:nodejs:v1.0.21', | ||
'x-sdk-version': 'appwrite:nodejs:v1.0.23', | ||
}; | ||
@@ -13,0 +13,0 @@ this.selfSigned = false; |
@@ -102,8 +102,8 @@ const Service = require('../service.js'); | ||
/** | ||
* Get image from and HTTP URL and crop to any size. | ||
* Get Image from URL | ||
* | ||
* Use this endpoint to fetch a remote image URL and crop it to any image size | ||
* you want. This endpoint is very useful if you need to crop a remote image | ||
* or in cases, you want to make sure a 3rd party image is properly served | ||
* using a TLS protocol. | ||
* you want. This endpoint is very useful if you need to crop and display | ||
* remote images in your app or in cases, you want to make sure a 3rd party | ||
* image is properly served using a TLS protocol. | ||
* | ||
@@ -110,0 +110,0 @@ * @param string url |
@@ -76,2 +76,26 @@ const Service = require('../service.js'); | ||
/** | ||
* Update File | ||
* | ||
* Update file by its unique ID. Only users with write permissions have access | ||
* to update this resource. | ||
* | ||
* @param string fileId | ||
* @param array read | ||
* @param array write | ||
* @param string folderId | ||
* @throws Exception | ||
* @return {} | ||
*/ | ||
async updateFile(fileId, read = [], write = [], folderId = '') { | ||
let path = '/storage/files/{fileId}'.replace(new RegExp('{fileId}', 'g'), fileId); | ||
return await this.client.call('put', path, {'content-type': 'application/json'}, | ||
{ | ||
'read': read, | ||
'write': write, | ||
'folderId': folderId | ||
}); | ||
} | ||
/** | ||
* Delete File | ||
@@ -95,3 +119,3 @@ * | ||
/** | ||
* Download File | ||
* Get File for Download | ||
* | ||
@@ -115,3 +139,3 @@ * Get file content by its unique ID. The endpoint response return with a | ||
/** | ||
* Preview File | ||
* Get File Preview | ||
* | ||
@@ -146,3 +170,3 @@ * Get file preview image. Currently, this method supports preview for image | ||
/** | ||
* View File | ||
* Get File for View | ||
* | ||
@@ -149,0 +173,0 @@ * Get file content by its unique ID. This endpoint is similar to the download |
@@ -185,3 +185,3 @@ const Service = require('../service.js'); | ||
/** | ||
* Create Team Membership (Resend Invitation Email) | ||
* Create Team Membership (Resend) | ||
* | ||
@@ -188,0 +188,0 @@ * Use this endpoint to resend your invitation email for a user to join a |
@@ -5,3 +5,3 @@ { | ||
"description": "Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)", | ||
"version": "v1.0.21", | ||
"version": "v1.0.23", | ||
"license": "BSD-3-Clause", | ||
@@ -8,0 +8,0 @@ "main": "index.js", |
# [Appwrite SDK for NodeJS](https://appwrite.io) [](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid) | ||
 | ||
 | ||
 | ||
**WORK IN PROGRESS - NOT READY FOR USAGE** | ||
Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs) | ||
@@ -14,3 +12,3 @@ | ||
**API Version: 0.1.3** | ||
**API Version: latest** | ||
@@ -17,0 +15,0 @@ ## Installation |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
93734
0.96%111
0.91%2011
1.11%24
-7.69%