n8n-nodes-appwriten8n
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -5,3 +5,2 @@ "use strict"; | ||
const n8n_workflow_1 = require("n8n-workflow"); | ||
const DocumentDescription_1 = require("./DocumentDescription"); | ||
const AppwriteFunctions_1 = require("./AppwriteFunctions"); | ||
@@ -42,16 +41,93 @@ const node_appwrite_1 = require("node-appwrite"); | ||
}, | ||
], | ||
default: 'document', | ||
description: 'Resource or operation to utilize', | ||
}, | ||
{ | ||
displayName: 'Operation', | ||
name: 'operation', | ||
noDataExpression: true, | ||
type: 'options', | ||
displayOptions: { | ||
show: { | ||
resource: ['document'], | ||
} | ||
}, | ||
default: 'createDoc', | ||
options: [ | ||
{ | ||
name: 'Function', | ||
value: 'function', | ||
name: 'Create', | ||
displayName: "Create Document", | ||
value: 'createDoc', | ||
action: 'Create document', | ||
description: 'Create a document in collection', | ||
}, | ||
{ | ||
name: 'Storage', | ||
value: 'storage', | ||
name: 'Delete', | ||
displayName: "Delete Document", | ||
value: 'deleteDoc', | ||
action: 'Delete document', | ||
description: 'Delete document in collection', | ||
}, | ||
], | ||
default: 'document', | ||
description: 'Resource or operation to utilize', | ||
}, | ||
...DocumentDescription_1.documentOperations, | ||
...DocumentDescription_1.documentFields, | ||
{ | ||
displayName: 'Database ID', | ||
name: 'databaseId', | ||
type: 'string', | ||
required: true, | ||
default: '', | ||
requiresDataPath: 'single', | ||
description: 'Database ID in which transaction will be performed', | ||
displayOptions: { | ||
show: { | ||
resource: [ | ||
'document' | ||
], | ||
operation: [ | ||
'createDoc', | ||
'deleteDoc', | ||
], | ||
}, | ||
}, | ||
}, | ||
{ | ||
displayName: 'Collection ID', | ||
name: 'collectionId', | ||
type: 'string', | ||
required: true, | ||
default: '', | ||
requiresDataPath: 'single', | ||
description: 'Collection to list/create documents in', | ||
displayOptions: { | ||
show: { | ||
resource: [ | ||
'document' | ||
], | ||
operation: [ | ||
'createDoc', | ||
'deleteDoc', | ||
], | ||
}, | ||
}, | ||
}, | ||
{ | ||
displayName: 'Document ID', | ||
name: 'documentId', | ||
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: { | ||
show: { | ||
resource: [ | ||
'document' | ||
], | ||
operation: [ | ||
'createDoc', | ||
'deleteDoc', | ||
], | ||
}, | ||
}, | ||
}, | ||
], | ||
@@ -58,0 +134,0 @@ }; |
@@ -68,2 +68,5 @@ "use strict"; | ||
show: { | ||
resource: [ | ||
'document' | ||
], | ||
operation: [ | ||
@@ -89,2 +92,5 @@ 'createDoc', | ||
show: { | ||
resource: [ | ||
'document' | ||
], | ||
operation: [ | ||
@@ -109,2 +115,5 @@ 'createDoc', | ||
show: { | ||
resource: [ | ||
'document' | ||
], | ||
operation: [ | ||
@@ -129,2 +138,5 @@ 'createDoc', | ||
show: { | ||
resource: [ | ||
'document' | ||
], | ||
operation: [ | ||
@@ -137,3 +149,67 @@ 'createDoc', | ||
}, | ||
{ | ||
displayName: 'Additional Fields', | ||
name: 'additionalFields', | ||
type: 'collection', | ||
placeholder: 'Add Queries', | ||
description: 'Queries to filter the documents by. [learn more about filtering](https://appwrite.io/docs/filters).', | ||
default: {}, | ||
options: [ | ||
{ | ||
displayName: 'Queries', | ||
name: 'queries', | ||
placeholder: 'Add Query', | ||
type: 'fixedCollection', | ||
typeOptions: { | ||
multipleValues: true, | ||
}, | ||
options: [ | ||
{ | ||
name: 'queriesData', | ||
displayName: 'Queries Data', | ||
values: [ | ||
{ | ||
displayName: 'Index to Select', | ||
name: 'index', | ||
type: 'string', | ||
default: '', | ||
hint: 'Index to select, if needed', | ||
requiresDataPath: 'single', | ||
}, | ||
{ | ||
displayName: 'Value 1', | ||
name: 'value1', | ||
type: 'string', | ||
default: '', | ||
requiresDataPath: 'multiple', | ||
hint: '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', | ||
hint: 'Second value for between and a few other queries, ignore if not needed', | ||
}, | ||
], | ||
}, | ||
], | ||
default: {}, | ||
description: 'A query to filter the data by', | ||
}, | ||
], | ||
displayOptions: { | ||
show: { | ||
resource: [ | ||
'document' | ||
], | ||
operation: [ | ||
'getAllDocs', | ||
'getDoc', | ||
], | ||
}, | ||
}, | ||
}, | ||
]; | ||
//# sourceMappingURL=DocumentDescription.js.map |
{ | ||
"name": "n8n-nodes-appwriten8n", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"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.5", | ||
"version": "0.2.6", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148250
1254