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

n8n-nodes-appwriten8n

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n8n-nodes-appwriten8n - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

17

dist/nodes/Appwrite/Appwrite.node.js

@@ -67,5 +67,5 @@ "use strict";

if (resource === 'document') {
const databaseId = this.getNodeParameter('databaseId', 0);
const collectionId = this.getNodeParameter('collectionId', 0);
if (operation === 'createDoc') {
const databaseId = this.getNodeParameter('databaseId', 0);
const collectionId = this.getNodeParameter('collectionId', 0);
const docId = this.getNodeParameter('documentId', 0);

@@ -90,4 +90,2 @@ let body;

if (operation === 'getAllDocs') {
const databaseId = this.getNodeParameter('databaseId', 0);
const collectionId = this.getNodeParameter('collectionId', 0);
const optionalFields = this.getNodeParameter('queries', 0);

@@ -107,4 +105,2 @@ const queriesToSend = [];

if (operation === 'getDoc') {
const databaseId = this.getNodeParameter('databaseId', 0);
const collectionId = this.getNodeParameter('collectionId', 0);
const documentId = this.getNodeParameter('documentId', 0);

@@ -127,4 +123,2 @@ const optionalFields = this.getNodeParameter('queries', 0);

if (operation === 'updateDoc') {
const databaseId = this.getNodeParameter('databaseId', 0);
const collectionId = this.getNodeParameter('collectionId', 0);
const documentId = this.getNodeParameter('documentId', 0);

@@ -138,4 +132,2 @@ const body = {

if (operation === 'deleteDoc') {
const databaseId = this.getNodeParameter('databaseId', 0);
const collectionId = this.getNodeParameter('collectionId', 0);
const documentId = this.getNodeParameter('documentId', 0);

@@ -153,2 +145,7 @@ responseData = await (0, AppwriteFunctions_1.deleteAppwriteDocument)(appwriteClient, databaseId, collectionId, documentId);

const functionId = this.getNodeParameter('functionId', 0);
responseData = await (0, AppwriteFunctions_1.getAppwriteFunction)(appwriteClient, functionId);
returnData.push(responseData);
}
else if (operation === 'executeFunction') {
const functionId = this.getNodeParameter('functionId', 0);
const data = this.getNodeParameter('data', 0);

@@ -155,0 +152,0 @@ responseData = await (0, AppwriteFunctions_1.runAppwriteFunction)(appwriteClient, functionId, data);

@@ -145,154 +145,3 @@ "use strict";

},
{
displayName: 'Queries',
name: 'queries',
type: 'fixedCollection',
placeholder: 'Add Query',
description: 'Queries to filter the documents by. [learn more about filtering](https://appwrite.io/docs/filters).',
typeOptions: {
multipleValues: true,
},
default: {},
displayOptions: {
show: {
operation: [
'getAllDocs',
'getDoc',
],
resource: [
'document',
],
},
},
options: [
{
displayName: 'Index to Select',
name: 'index',
type: 'string',
default: '',
description: 'Index to select, if needed',
requiresDataPath: 'single',
},
{
displayName: 'Value 1',
name: 'value1',
type: 'string',
default: '',
requiresDataPath: 'single',
description: 'First value for queries, such as what the index is equal to, or the first value of a between',
},
{
displayName: 'Value 2',
name: 'value2',
type: 'string',
default: '',
requiresDataPath: 'single',
description: 'Second value for between and a few other queries, ignore if not needed',
},
{
displayName: 'Query',
name: 'query',
type: 'options',
default: 'equal',
options: [
{
name: 'Between',
value: 'between',
description: 'Returns document if attribute value falls between the two values. The boundary values are inclusive and can be strings or numbers.',
},
{
name: 'Cursor After',
value: 'cursor_after',
description: 'Places the cursor after the specified resource ID. Used for pagination.',
},
{
name: 'Cursor Before',
value: 'cursor_before',
description: 'Places the cursor before the specified resource ID. Used for pagination.',
},
{
name: 'Ends With',
value: 'ends_with',
description: 'Returns documents if a string attributes ends with a substring',
},
{
name: 'Equal',
value: 'equal',
description: 'Returns document if attribute is equal to any value in the provided array',
},
{
name: 'Greater Than',
value: 'greater_than',
description: 'Returns document if attribute is greater than the provided value',
},
{
name: 'Greater Than or Equal',
value: 'greater_than_or_equal',
description: 'Returns document if attribute is greater than or equal to the provided value',
},
{
name: 'Is Not Null',
value: 'is_not_null',
description: 'Returns documents where attribute value is not null',
},
{
name: 'Is Null',
value: 'is_null',
description: 'Returns documents where attribute value is null',
},
{
name: 'Less Than',
value: 'less_than',
description: 'Returns document if attribute is less than the provided value',
},
{
name: 'Less Than or Equal',
value: 'less_than_or_equal',
description: 'Returns document if attribute is less than or equal to the provided value',
},
{
name: 'Limit',
value: 'limit',
description: 'Limits the number of results returned by the query. Used for pagination. If the limit query is not used, the limit defaults to 25 results.',
},
{
name: 'Not Equal',
value: 'not_equal',
description: 'Returns document if attribute is not equal to any value in the provided array',
},
{
name: 'Offset',
value: 'offset',
description: 'Offset the results returned by skipping some of the results. Used for pagination.',
},
{
name: 'Order Ascending',
value: 'order_ascending',
description: 'Orders results in ascending order by attribute. Attribute must be indexed. Pass in an empty string to return in natural order.',
},
{
name: 'Order Descending',
value: 'order_descending',
description: 'Orders results in descending order by attribute. Attribute must be indexed. Pass in an empty string to return in natural order.',
},
{
name: 'Search',
value: 'search',
description: 'Searches string attributes for provided keywords. Requires a Full-text index on queried attributes.',
},
{
name: 'Select',
value: 'select',
description: 'Select which attributes should be returned from a document',
},
{
name: 'Starts With',
value: 'starts_with',
description: 'Returns documents if a string attributes starts with a substring',
},
],
},
],
},
];
//# sourceMappingURL=DocumentDescription.js.map
{
"name": "n8n-nodes-appwriten8n",
"version": "0.1.3",
"version": "0.1.4",
"description": "N8N Nodes for Appwrite starting at 1.4.X and up, will be updated.",

@@ -5,0 +5,0 @@ "keywords": [

{
"name": "n8n-nodes-appwriten8n",
"version": "0.1.3",
"version": "0.1.4",
"description": "N8N Nodes for Appwrite starting at 1.4.X and up, will be updated.",

@@ -5,0 +5,0 @@ "keywords": [

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

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