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.2.0 to 0.2.1

22

dist/nodes/Appwrite/Appwrite.node.js

@@ -5,2 +5,4 @@ "use strict";

const n8n_workflow_1 = require("n8n-workflow");
const DocumentDescription_1 = require("./DocumentDescription");
const StorageDescription_1 = require("./StorageDescription");
const FunctionDescription_1 = require("./FunctionDescription");

@@ -39,9 +41,21 @@ const AppwriteFunctions_1 = require("./AppwriteFunctions");

{
name: 'Document',
value: 'document',
},
{
name: 'Function',
value: 'function',
},
{
name: 'Storage',
value: 'storage',
},
],
default: 'function',
default: 'document',
description: 'Resource or operation to utilize',
},
...DocumentDescription_1.documentOperations,
...DocumentDescription_1.documentFields,
...StorageDescription_1.storageOperations,
...StorageDescription_1.storageFields,
...FunctionDescription_1.functionOperations,

@@ -55,7 +69,9 @@ ...FunctionDescription_1.functionFields,

const returnData = [];
console.log("INSIDE EXECUTE!");
let responseData;
const resource = this.getNodeParameter('resource', 0);
const operation = this.getNodeParameter('operation', 0);
const credentials = await this.getCredentials('appwriteApi');
const appwriteClient = await (0, AppwriteFunctions_1.getAppwriteClient)(`${credentials.url}`, `${credentials.projectId}`, `${credentials.apiKey}`);
const { url, projectId, apiKey } = await this.getCredentials('appwriteApi');
const appwriteClient = await (0, AppwriteFunctions_1.getAppwriteClient)(url, projectId, apiKey);
console.log("Got appwrite client");
try {

@@ -62,0 +78,0 @@ if (resource === 'document') {

298

dist/nodes/Appwrite/DocumentDescription.js

@@ -10,9 +10,2 @@ "use strict";

type: 'options',
displayOptions: {
show: {
resource: [
'document',
],
},
},
options: [

@@ -56,2 +49,9 @@ {

default: 'getAllDocs',
displayOptions: {
show: {
resource: [
'document',
],
},
},
},

@@ -65,2 +65,5 @@ ];

required: true,
default: '',
requiresDataPath: 'single',
description: 'Database ID in which transaction will be performed',
displayOptions: {

@@ -80,5 +83,2 @@ show: {

},
default: '',
requiresDataPath: 'single',
description: 'Database ID in which transaction will be performed',
},

@@ -90,2 +90,5 @@ {

required: true,
default: '',
requiresDataPath: 'single',
description: 'Collection to list/create documents in',
displayOptions: {

@@ -105,5 +108,2 @@ show: {

},
default: '',
requiresDataPath: 'single',
description: 'Collection to list/create documents in',
},

@@ -114,2 +114,5 @@ {

type: 'string',
default: 'unique()',
requiresDataPath: 'single',
description: 'ID for collection | For creating, unique is used for generating unique ID, it can be modified for custom document ID',
displayOptions: {

@@ -128,5 +131,2 @@ show: {

},
default: 'unique()',
requiresDataPath: 'single',
description: 'ID for collection | For creating, unique is used for generating unique ID, it can be modified for custom document ID',
},

@@ -138,2 +138,5 @@ {

required: true,
requiresDataPath: 'multiple',
default: '{"attributeName1":"attribute-value1", "attributeName2":"attribute-value2"}',
description: 'Body to create document with',
displayOptions: {

@@ -150,5 +153,2 @@ show: {

},
requiresDataPath: 'multiple',
default: '{"attributeName1":"attribute-value1", "attributeName2":"attribute-value2"}',
description: 'Body to create document with',
},

@@ -164,145 +164,151 @@ {

},
displayOptions: {
show: {
resource: [
'document',
],
operation: [
'getAllDocs',
'getDoc',
],
},
},
default: {},
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: 'multiple',
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: 'queriesData',
displayName: 'Queries Data',
values: [
{
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.',
displayName: 'Index to Select',
name: 'index',
type: 'string',
default: '',
description: 'Index to select, if needed',
requiresDataPath: 'single',
},
{
name: 'Cursor After',
value: 'cursor_after',
description: 'Places the cursor after the specified resource ID. Used for pagination.',
displayName: 'Value 1',
name: 'value1',
type: 'string',
default: '',
requiresDataPath: 'multiple',
description: 'First value for queries, such as what the index is equal to, or the first value of a between',
},
{
name: 'Cursor Before',
value: 'cursor_before',
description: 'Places the cursor before the specified resource ID. Used for pagination.',
displayName: 'Value 2',
name: 'value2',
type: 'string',
default: '',
requiresDataPath: 'single',
description: 'Second value for between and a few other queries, ignore if not needed',
},
{
name: 'Ends With',
value: 'ends_with',
description: 'Returns documents if a string attributes ends with a substring',
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',
},
],
},
{
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',
},
],
},
],
displayOptions: {
show: {
resource: [
'document',
],
operation: [
'getAllDocs',
'getDoc',
],
},
},
},
];
//# sourceMappingURL=DocumentDescription.js.map

@@ -11,9 +11,2 @@ "use strict";

required: true,
displayOptions: {
show: {
resource: [
'function',
],
},
},
options: [

@@ -43,2 +36,9 @@ {

default: 'executeFunction',
displayOptions: {
show: {
resource: [
'function',
],
},
},
},

@@ -45,0 +45,0 @@ ];

{
"name": "n8n-nodes-appwriten8n",
"version": "0.2.0",
"version": "0.2.1",
"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.2.0",
"version": "0.2.1",
"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

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