From 0c6b691a29223a5647cb621ceaff259074d96927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 10 Mar 2021 19:57:50 -0300 Subject: [PATCH] :zap: Add emoji resource description stub --- .../Discord/descriptions/EmojiDescription.ts | 171 ++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 packages/nodes-base/nodes/Discord/descriptions/EmojiDescription.ts diff --git a/packages/nodes-base/nodes/Discord/descriptions/EmojiDescription.ts b/packages/nodes-base/nodes/Discord/descriptions/EmojiDescription.ts new file mode 100644 index 0000000000..4e02acd8da --- /dev/null +++ b/packages/nodes-base/nodes/Discord/descriptions/EmojiDescription.ts @@ -0,0 +1,171 @@ +import { + INodeProperties, +} from 'n8n-workflow'; + +export const emojiOperations = [ + { + displayName: 'Operation', + name: 'operation', + type: 'options', + displayOptions: { + show: { + resource: [ + 'emoji', + ], + }, + }, + options: [ + { + name: 'Create', + value: 'create', + }, + { + name: 'Delete', + value: 'delete', + }, + { + name: 'Get', + value: 'get', + }, + { + name: 'Get All', + value: 'getAll', + }, + { + name: 'Update', + value: 'update', + }, + ], + default: 'create', + description: 'Operation to perform', + }, +] as INodeProperties[]; + +export const emojiFields = [ + { + displayName: 'guildId', + name: 'guildId', + description: '', + type: 'string', + required: true, + default: '', + displayOptions: { + show: { + resource: [ + 'emoji', + ], + operation: [ + 'create', + ], + }, + }, + }, + { + displayName: 'guildId', + name: 'guildId', + description: '', + type: 'string', + required: true, + default: '', + displayOptions: { + show: { + resource: [ + 'emoji', + ], + operation: [ + 'delete', + ], + }, + }, + }, + { + displayName: 'guildId', + name: 'guildId', + description: '', + type: 'string', + required: true, + default: '', + displayOptions: { + show: { + resource: [ + 'emoji', + ], + operation: [ + 'get', + ], + }, + }, + }, + { + displayName: 'emojiId', + name: 'emojiId', + description: '', + type: 'string', + required: true, + default: '', + displayOptions: { + show: { + resource: [ + 'emoji', + ], + operation: [ + 'get', + ], + }, + }, + }, + { + displayName: 'guildId', + name: 'guildId', + description: '', + type: 'string', + required: true, + default: '', + displayOptions: { + show: { + resource: [ + 'emoji', + ], + operation: [ + 'getAll', + ], + }, + }, + }, + { + displayName: 'guildId', + name: 'guildId', + description: '', + type: 'string', + required: true, + default: '', + displayOptions: { + show: { + resource: [ + 'emoji', + ], + operation: [ + 'update', + ], + }, + }, + }, + { + displayName: 'emojiId', + name: 'emojiId', + description: '', + type: 'string', + required: true, + default: '', + displayOptions: { + show: { + resource: [ + 'emoji', + ], + operation: [ + 'update', + ], + }, + }, + }, +] as INodeProperties[]; \ No newline at end of file