2 * Sieve/Tree test inputs
4 import type { SimpleObject } from '@proton/components/containers/filters/interfaces';
5 import { ConditionComparator, ConditionType, FilterStatement } from '@proton/components/containers/filters/interfaces';
9 List: ['fileinto', 'imap4flags'],
23 Type: 'UnicodeCaseMap',
30 Headers: ['To', 'Cc', 'Bcc'],
36 Type: 'UnicodeCaseMap',
45 Headers: ['To', 'Cc', 'Bcc'],
51 Type: 'UnicodeCaseMap',
67 Type: 'UnicodeCaseMap',
82 Type: 'UnicodeCaseMap',
93 Headers: ['X-Attached'],
103 Name: 'panda qwe qwe qwe qweqwe qw e',
123 Name: 'very long label wowowowowowowowowowowowoowowowwo',
127 Name: 'wqeqweqweqweqweqweqweqweqweqweqweqweqweqweqwe',
146 const simple: SimpleObject = {
149 value: FilterStatement.ALL,
155 value: ConditionType.SUBJECT,
158 label: 'does not contain',
159 value: ConditionComparator.DOES_NOT_CONTAIN,
161 Values: ['Subject1'],
166 value: ConditionType.RECIPIENT,
170 value: ConditionComparator.IS,
172 Values: ['Recipient1'],
177 value: ConditionType.RECIPIENT,
180 label: 'does not match',
181 value: ConditionComparator.DOES_NOT_MATCH,
183 Values: ['Recipient2'],
188 value: ConditionType.SENDER,
192 value: ConditionComparator.STARTS,
199 value: ConditionType.SENDER,
202 label: 'does not end with',
203 value: ConditionComparator.DOES_NOT_END,
209 label: 'Attachments',
210 value: ConditionType.ATTACHMENTS,
213 label: 'does not contain',
214 value: ConditionComparator.DOES_NOT_CONTAIN,
221 'panda qwe qwe qwe qweqwe qw e',
226 'very long label wowowowowowowowowowowowoowowowwo',
227 'wqeqweqweqweqweqweqweqweqweqweqweqweqweqweqwe',
237 export default { tree, simple };