n8n-nodes-hostinger-mail 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +70 -0
  3. package/dist/credentials/HostingerMailApi.credentials.d.ts +10 -0
  4. package/dist/credentials/HostingerMailApi.credentials.js +39 -0
  5. package/dist/credentials/HostingerMailApi.credentials.js.map +1 -0
  6. package/dist/nodes/HostingerMail/GenericFunctions.d.ts +6 -0
  7. package/dist/nodes/HostingerMail/GenericFunctions.js +56 -0
  8. package/dist/nodes/HostingerMail/GenericFunctions.js.map +1 -0
  9. package/dist/nodes/HostingerMail/HostingerMail.node.d.ts +11 -0
  10. package/dist/nodes/HostingerMail/HostingerMail.node.js +445 -0
  11. package/dist/nodes/HostingerMail/HostingerMail.node.js.map +1 -0
  12. package/dist/nodes/HostingerMail/HostingerMail.node.json +18 -0
  13. package/dist/nodes/HostingerMail/descriptions/EmailDescription.d.ts +3 -0
  14. package/dist/nodes/HostingerMail/descriptions/EmailDescription.js +182 -0
  15. package/dist/nodes/HostingerMail/descriptions/EmailDescription.js.map +1 -0
  16. package/dist/nodes/HostingerMail/descriptions/FolderDescription.d.ts +3 -0
  17. package/dist/nodes/HostingerMail/descriptions/FolderDescription.js +92 -0
  18. package/dist/nodes/HostingerMail/descriptions/FolderDescription.js.map +1 -0
  19. package/dist/nodes/HostingerMail/descriptions/MessageDescription.d.ts +3 -0
  20. package/dist/nodes/HostingerMail/descriptions/MessageDescription.js +399 -0
  21. package/dist/nodes/HostingerMail/descriptions/MessageDescription.js.map +1 -0
  22. package/dist/nodes/HostingerMail/descriptions/WebhookDescription.d.ts +3 -0
  23. package/dist/nodes/HostingerMail/descriptions/WebhookDescription.js +238 -0
  24. package/dist/nodes/HostingerMail/descriptions/WebhookDescription.js.map +1 -0
  25. package/dist/nodes/HostingerMail/hostingerMail.svg +5 -0
  26. package/dist/nodes/HostingerMailTrigger/HostingerMailTrigger.node.d.ts +17 -0
  27. package/dist/nodes/HostingerMailTrigger/HostingerMailTrigger.node.js +135 -0
  28. package/dist/nodes/HostingerMailTrigger/HostingerMailTrigger.node.js.map +1 -0
  29. package/dist/nodes/HostingerMailTrigger/HostingerMailTrigger.node.json +18 -0
  30. package/dist/nodes/HostingerMailTrigger/hostingerMail.svg +5 -0
  31. package/dist/package.json +54 -0
  32. package/dist/tsconfig.tsbuildinfo +1 -0
  33. package/package.json +54 -0
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emailFields = exports.emailOperations = void 0;
4
+ exports.emailOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['email'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Send',
18
+ value: 'send',
19
+ description: 'Send an email from the mailbox',
20
+ action: 'Send an email',
21
+ },
22
+ ],
23
+ default: 'send',
24
+ },
25
+ ];
26
+ exports.emailFields = [
27
+ {
28
+ displayName: 'To',
29
+ name: 'to',
30
+ type: 'string',
31
+ default: '',
32
+ placeholder: 'recipient@example.com',
33
+ description: 'Comma-separated list of recipient email addresses',
34
+ displayOptions: {
35
+ show: {
36
+ resource: ['email'],
37
+ operation: ['send'],
38
+ },
39
+ },
40
+ },
41
+ {
42
+ displayName: 'Subject',
43
+ name: 'subject',
44
+ type: 'string',
45
+ default: '',
46
+ description: 'Subject line of the email',
47
+ displayOptions: {
48
+ show: {
49
+ resource: ['email'],
50
+ operation: ['send'],
51
+ },
52
+ },
53
+ },
54
+ {
55
+ displayName: 'Email Format',
56
+ name: 'emailFormat',
57
+ type: 'options',
58
+ options: [
59
+ {
60
+ name: 'Text',
61
+ value: 'text',
62
+ },
63
+ {
64
+ name: 'HTML',
65
+ value: 'html',
66
+ },
67
+ {
68
+ name: 'Both',
69
+ value: 'both',
70
+ },
71
+ ],
72
+ default: 'text',
73
+ displayOptions: {
74
+ show: {
75
+ resource: ['email'],
76
+ operation: ['send'],
77
+ },
78
+ },
79
+ },
80
+ {
81
+ displayName: 'Text',
82
+ name: 'text',
83
+ type: 'string',
84
+ typeOptions: {
85
+ rows: 5,
86
+ },
87
+ default: '',
88
+ description: 'Plain text body of the email',
89
+ displayOptions: {
90
+ show: {
91
+ resource: ['email'],
92
+ operation: ['send'],
93
+ emailFormat: ['text', 'both'],
94
+ },
95
+ },
96
+ },
97
+ {
98
+ displayName: 'HTML',
99
+ name: 'html',
100
+ type: 'string',
101
+ typeOptions: {
102
+ rows: 5,
103
+ },
104
+ default: '',
105
+ description: 'HTML body of the email',
106
+ displayOptions: {
107
+ show: {
108
+ resource: ['email'],
109
+ operation: ['send'],
110
+ emailFormat: ['html', 'both'],
111
+ },
112
+ },
113
+ },
114
+ {
115
+ displayName: 'Options',
116
+ name: 'additionalOptions',
117
+ type: 'collection',
118
+ placeholder: 'Add option',
119
+ default: {},
120
+ displayOptions: {
121
+ show: {
122
+ resource: ['email'],
123
+ operation: ['send'],
124
+ },
125
+ },
126
+ options: [
127
+ {
128
+ displayName: 'BCC',
129
+ name: 'bcc',
130
+ type: 'string',
131
+ default: '',
132
+ description: 'Comma-separated list of BCC recipient email addresses',
133
+ },
134
+ {
135
+ displayName: 'CC',
136
+ name: 'cc',
137
+ type: 'string',
138
+ default: '',
139
+ description: 'Comma-separated list of CC recipient email addresses',
140
+ },
141
+ ],
142
+ },
143
+ {
144
+ displayName: 'Attachments',
145
+ name: 'attachmentsUi',
146
+ type: 'fixedCollection',
147
+ placeholder: 'Add Attachment',
148
+ typeOptions: {
149
+ multipleValues: true,
150
+ },
151
+ default: {},
152
+ displayOptions: {
153
+ show: {
154
+ resource: ['email'],
155
+ operation: ['send'],
156
+ },
157
+ },
158
+ options: [
159
+ {
160
+ displayName: 'Attachment',
161
+ name: 'attachmentValues',
162
+ values: [
163
+ {
164
+ displayName: 'Input Binary Field',
165
+ name: 'binaryPropertyName',
166
+ type: 'string',
167
+ default: 'data',
168
+ description: 'The name of the input binary field containing the file to be attached',
169
+ },
170
+ {
171
+ displayName: 'Content ID',
172
+ name: 'cid',
173
+ type: 'string',
174
+ default: '',
175
+ description: 'Optional Content-ID for inline images. Reference it from the HTML body as <img src="cid:logo">.',
176
+ },
177
+ ],
178
+ },
179
+ ],
180
+ },
181
+ ];
182
+ //# sourceMappingURL=EmailDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmailDescription.js","sourceRoot":"","sources":["../../../../nodes/HostingerMail/descriptions/EmailDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;aACnB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,gCAAgC;gBAC7C,MAAM,EAAE,eAAe;aACvB;SACD;QACD,OAAO,EAAE,MAAM;KACf;CACD,CAAC;AAEW,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uBAAuB;QACpC,WAAW,EAAE,mDAAmD;QAChE,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,MAAM,CAAC;aACnB;SACD;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,2BAA2B;QACxC,cAAc,EAAE;YACf,IAAI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@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const folderOperations: INodeProperties[];
3
+ export declare const folderFields: INodeProperties[];
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.folderFields = exports.folderOperations = void 0;
4
+ exports.folderOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['folder'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Create',
18
+ value: 'create',
19
+ description: 'Create a folder',
20
+ action: 'Create a folder',
21
+ },
22
+ {
23
+ name: 'Delete',
24
+ value: 'delete',
25
+ description: 'Delete a folder',
26
+ action: 'Delete a folder',
27
+ },
28
+ {
29
+ name: 'Get Many',
30
+ value: 'getAll',
31
+ description: 'List many folders in the mailbox',
32
+ action: 'Get many folders',
33
+ },
34
+ {
35
+ name: 'Update',
36
+ value: 'update',
37
+ description: 'Rename a folder',
38
+ action: 'Update a folder',
39
+ },
40
+ ],
41
+ default: 'getAll',
42
+ },
43
+ ];
44
+ exports.folderFields = [
45
+ {
46
+ displayName: 'Folder Name or ID',
47
+ name: 'folder',
48
+ type: 'options',
49
+ typeOptions: {
50
+ loadOptionsMethod: 'getFolders',
51
+ loadOptionsDependsOn: ['mailboxId'],
52
+ },
53
+ required: true,
54
+ default: '',
55
+ description: 'Folder to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
56
+ displayOptions: {
57
+ show: {
58
+ resource: ['folder'],
59
+ operation: ['delete', 'update'],
60
+ },
61
+ },
62
+ },
63
+ {
64
+ displayName: 'Name',
65
+ name: 'name',
66
+ type: 'string',
67
+ required: true,
68
+ default: '',
69
+ description: 'Name of the folder to create (1-100 characters)',
70
+ displayOptions: {
71
+ show: {
72
+ resource: ['folder'],
73
+ operation: ['create'],
74
+ },
75
+ },
76
+ },
77
+ {
78
+ displayName: 'New Name',
79
+ name: 'newName',
80
+ type: 'string',
81
+ required: true,
82
+ default: '',
83
+ description: 'New name for the folder (1-100 characters)',
84
+ displayOptions: {
85
+ show: {
86
+ resource: ['folder'],
87
+ operation: ['update'],
88
+ },
89
+ },
90
+ },
91
+ ];
92
+ //# sourceMappingURL=FolderDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FolderDescription.js","sourceRoot":"","sources":["../../../../nodes/HostingerMail/descriptions/FolderDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,YAAY,GAAsB;IAC9C;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,YAAY;YAC/B,oBAAoB,EAAE,CAAC,WAAW,CAAC;SACnC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EACV,uIAAuI;QACxI,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;aAC/B;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iDAAiD;QAC9D,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;KACD;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4CAA4C;QACzD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const messageOperations: INodeProperties[];
3
+ export declare const messageFields: INodeProperties[];
@@ -0,0 +1,399 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.messageFields = exports.messageOperations = void 0;
4
+ exports.messageOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['message'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Delete',
18
+ value: 'delete',
19
+ description: 'Permanently delete a message',
20
+ action: 'Delete a message',
21
+ },
22
+ {
23
+ name: 'Delete All',
24
+ value: 'deleteAll',
25
+ description: 'Permanently delete all messages in a folder',
26
+ action: 'Delete all messages in a folder',
27
+ },
28
+ {
29
+ name: 'Delete Many',
30
+ value: 'deleteMany',
31
+ description: 'Permanently delete multiple messages by UID',
32
+ action: 'Delete many messages',
33
+ },
34
+ {
35
+ name: 'Download Attachment',
36
+ value: 'downloadAttachment',
37
+ description: 'Download a message attachment as binary data',
38
+ action: 'Download a message attachment',
39
+ },
40
+ {
41
+ name: 'Get',
42
+ value: 'get',
43
+ description: 'Get a single message',
44
+ action: 'Get a message',
45
+ },
46
+ {
47
+ name: 'Get Many',
48
+ value: 'getAll',
49
+ description: 'List messages in a folder',
50
+ action: 'Get many messages',
51
+ },
52
+ {
53
+ name: 'Get Source',
54
+ value: 'getSource',
55
+ description: 'Get the raw RFC822 source of a message as binary data',
56
+ action: 'Get the source of a message',
57
+ },
58
+ {
59
+ name: 'Get Text',
60
+ value: 'getText',
61
+ description: 'Get the rendered text and HTML content of a message',
62
+ action: 'Get the text of a message',
63
+ },
64
+ {
65
+ name: 'Move',
66
+ value: 'move',
67
+ description: 'Move a message to another folder',
68
+ action: 'Move a message',
69
+ },
70
+ {
71
+ name: 'Move Many',
72
+ value: 'moveMany',
73
+ description: 'Move multiple messages to another folder',
74
+ action: 'Move many messages',
75
+ },
76
+ {
77
+ name: 'Search',
78
+ value: 'search',
79
+ description: 'Search messages in a folder',
80
+ action: 'Search messages',
81
+ },
82
+ {
83
+ name: 'Update Flags',
84
+ value: 'updateFlags',
85
+ description: 'Add or remove flags on a message',
86
+ action: 'Update flags of a message',
87
+ },
88
+ {
89
+ name: 'Update Flags Many',
90
+ value: 'updateFlagsMany',
91
+ description: 'Add or remove flags on multiple messages',
92
+ action: 'Update flags of many messages',
93
+ },
94
+ ],
95
+ default: 'getAll',
96
+ },
97
+ ];
98
+ exports.messageFields = [
99
+ {
100
+ displayName: 'Folder Name or ID',
101
+ name: 'folder',
102
+ type: 'options',
103
+ typeOptions: {
104
+ loadOptionsMethod: 'getFolders',
105
+ loadOptionsDependsOn: ['mailboxId'],
106
+ },
107
+ required: true,
108
+ default: '',
109
+ description: 'Folder to operate in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
110
+ displayOptions: {
111
+ show: {
112
+ resource: ['message'],
113
+ },
114
+ },
115
+ },
116
+ {
117
+ displayName: 'Message UID',
118
+ name: 'uid',
119
+ type: 'number',
120
+ typeOptions: {
121
+ minValue: 1,
122
+ },
123
+ required: true,
124
+ default: 1,
125
+ description: 'UID of the message',
126
+ displayOptions: {
127
+ show: {
128
+ resource: ['message'],
129
+ operation: [
130
+ 'delete',
131
+ 'downloadAttachment',
132
+ 'get',
133
+ 'getSource',
134
+ 'getText',
135
+ 'move',
136
+ 'updateFlags',
137
+ ],
138
+ },
139
+ },
140
+ },
141
+ {
142
+ displayName: 'Message UIDs',
143
+ name: 'uids',
144
+ type: 'string',
145
+ required: true,
146
+ default: '',
147
+ placeholder: '42, 43, 44',
148
+ description: 'Comma-separated list of message UIDs (1-100 entries)',
149
+ displayOptions: {
150
+ show: {
151
+ resource: ['message'],
152
+ operation: ['deleteMany', 'moveMany', 'updateFlagsMany'],
153
+ },
154
+ },
155
+ },
156
+ {
157
+ displayName: 'Attachment ID',
158
+ name: 'attachmentId',
159
+ type: 'string',
160
+ required: true,
161
+ default: '',
162
+ description: 'Opaque attachment identifier. Returned in the attachments array of the Get and Get Many operations.',
163
+ displayOptions: {
164
+ show: {
165
+ resource: ['message'],
166
+ operation: ['downloadAttachment'],
167
+ },
168
+ },
169
+ },
170
+ {
171
+ displayName: 'Target Folder Name or ID',
172
+ name: 'targetFolder',
173
+ type: 'options',
174
+ typeOptions: {
175
+ loadOptionsMethod: 'getFolders',
176
+ loadOptionsDependsOn: ['mailboxId'],
177
+ },
178
+ required: true,
179
+ default: '',
180
+ description: 'Destination folder. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
181
+ displayOptions: {
182
+ show: {
183
+ resource: ['message'],
184
+ operation: ['move', 'moveMany'],
185
+ },
186
+ },
187
+ },
188
+ {
189
+ displayName: 'Add Flags',
190
+ name: 'addFlags',
191
+ type: 'string',
192
+ default: '',
193
+ placeholder: '\\Seen, \\Flagged',
194
+ description: 'Comma-separated list of flags to add, e.g. \\Seen, \\Flagged, $forwarded. At least one of Add Flags or Remove Flags must be set.',
195
+ displayOptions: {
196
+ show: {
197
+ resource: ['message'],
198
+ operation: ['updateFlags', 'updateFlagsMany'],
199
+ },
200
+ },
201
+ },
202
+ {
203
+ displayName: 'Remove Flags',
204
+ name: 'removeFlags',
205
+ type: 'string',
206
+ default: '',
207
+ placeholder: '\\Seen',
208
+ description: 'Comma-separated list of flags to remove. At least one of Add Flags or Remove Flags must be set.',
209
+ displayOptions: {
210
+ show: {
211
+ resource: ['message'],
212
+ operation: ['updateFlags', 'updateFlagsMany'],
213
+ },
214
+ },
215
+ },
216
+ {
217
+ displayName: 'Return All',
218
+ name: 'returnAll',
219
+ type: 'boolean',
220
+ default: false,
221
+ description: 'Whether to return all results or only up to a given limit',
222
+ displayOptions: {
223
+ show: {
224
+ resource: ['message'],
225
+ operation: ['getAll', 'search'],
226
+ },
227
+ },
228
+ },
229
+ {
230
+ displayName: 'Limit',
231
+ name: 'limit',
232
+ type: 'number',
233
+ typeOptions: {
234
+ minValue: 1,
235
+ },
236
+ default: 50,
237
+ description: 'Max number of results to return',
238
+ displayOptions: {
239
+ show: {
240
+ resource: ['message'],
241
+ operation: ['getAll', 'search'],
242
+ returnAll: [false],
243
+ },
244
+ },
245
+ },
246
+ {
247
+ displayName: 'Search Filters',
248
+ name: 'searchFilters',
249
+ type: 'collection',
250
+ placeholder: 'Add Filter',
251
+ default: {},
252
+ displayOptions: {
253
+ show: {
254
+ resource: ['message'],
255
+ operation: ['search'],
256
+ },
257
+ },
258
+ options: [
259
+ {
260
+ displayName: 'Before',
261
+ name: 'before',
262
+ type: 'string',
263
+ default: '',
264
+ placeholder: '2024-12-31',
265
+ description: 'Only messages received before this date (YYYY-MM-DD)',
266
+ },
267
+ {
268
+ displayName: 'Body',
269
+ name: 'body',
270
+ type: 'string',
271
+ default: '',
272
+ description: 'Text to search for in the message body',
273
+ },
274
+ {
275
+ displayName: 'CC',
276
+ name: 'cc',
277
+ type: 'string',
278
+ default: '',
279
+ description: 'Match against the CC header',
280
+ },
281
+ {
282
+ displayName: 'Flags',
283
+ name: 'flags',
284
+ type: 'string',
285
+ default: '',
286
+ placeholder: '\\Seen, \\Flagged',
287
+ description: 'Comma-separated list of flags the messages must have',
288
+ },
289
+ {
290
+ displayName: 'From',
291
+ name: 'from',
292
+ type: 'string',
293
+ default: '',
294
+ description: 'Match against the From header',
295
+ },
296
+ {
297
+ displayName: 'Header',
298
+ name: 'header',
299
+ type: 'string',
300
+ default: '',
301
+ placeholder: 'X-Custom-Header:value',
302
+ description: 'Match against a raw header, in Header:value format',
303
+ },
304
+ {
305
+ displayName: 'Larger Than (Bytes)',
306
+ name: 'larger',
307
+ type: 'number',
308
+ typeOptions: {
309
+ minValue: 0,
310
+ },
311
+ default: 0,
312
+ description: 'Only messages larger than this size in bytes',
313
+ },
314
+ {
315
+ displayName: 'Since',
316
+ name: 'since',
317
+ type: 'string',
318
+ default: '',
319
+ placeholder: '2024-01-01',
320
+ description: 'Only messages received since this date (YYYY-MM-DD)',
321
+ },
322
+ {
323
+ displayName: 'Smaller Than (Bytes)',
324
+ name: 'smaller',
325
+ type: 'number',
326
+ typeOptions: {
327
+ minValue: 0,
328
+ },
329
+ default: 0,
330
+ description: 'Only messages smaller than this size in bytes',
331
+ },
332
+ {
333
+ displayName: 'Subject',
334
+ name: 'subject',
335
+ type: 'string',
336
+ default: '',
337
+ description: 'Text to search for in the subject',
338
+ },
339
+ {
340
+ displayName: 'Text',
341
+ name: 'text',
342
+ type: 'string',
343
+ default: '',
344
+ description: 'Text to search for anywhere in the message',
345
+ },
346
+ {
347
+ displayName: 'To',
348
+ name: 'to',
349
+ type: 'string',
350
+ default: '',
351
+ description: 'Match against the To header',
352
+ },
353
+ {
354
+ displayName: 'UID Range',
355
+ name: 'uid',
356
+ type: 'string',
357
+ default: '',
358
+ placeholder: '1:100',
359
+ description: 'UID or UID range to match, e.g. 1:100',
360
+ },
361
+ ],
362
+ },
363
+ {
364
+ displayName: 'Options',
365
+ name: 'listOptions',
366
+ type: 'collection',
367
+ placeholder: 'Add option',
368
+ default: {},
369
+ displayOptions: {
370
+ show: {
371
+ resource: ['message'],
372
+ operation: ['getAll', 'search'],
373
+ },
374
+ },
375
+ options: [
376
+ {
377
+ displayName: 'Sort',
378
+ name: 'sort',
379
+ type: 'string',
380
+ default: '-uid',
381
+ description: 'Sort order of the results. Prefix with - for descending, e.g. -uid.',
382
+ },
383
+ ],
384
+ },
385
+ {
386
+ displayName: 'Put Output in Field',
387
+ name: 'binaryPropertyName',
388
+ type: 'string',
389
+ default: 'data',
390
+ description: 'The name of the output binary field to put the file in',
391
+ displayOptions: {
392
+ show: {
393
+ resource: ['message'],
394
+ operation: ['downloadAttachment', 'getSource'],
395
+ },
396
+ },
397
+ },
398
+ ];
399
+ //# sourceMappingURL=MessageDescription.js.map