@useinsider/guido 3.12.0-beta.cfe6433 → 3.12.0-beta.d77b0d2

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 (92) hide show
  1. package/dist/@types/config/schemas.js +9 -4
  2. package/dist/components/Guido.vue.js +6 -6
  3. package/dist/components/Guido.vue2.js +50 -49
  4. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +1 -1
  5. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +8 -8
  6. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +5 -5
  7. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +10 -10
  8. package/dist/components/organisms/extensions/recommendation/StrategyDetailDrawer.vue.js +38 -0
  9. package/dist/components/organisms/extensions/recommendation/StrategyDetailDrawer.vue2.js +271 -0
  10. package/dist/components/organisms/extensions/recommendation/strategy-detail/CampaignTable.vue.js +18 -0
  11. package/dist/components/organisms/extensions/recommendation/strategy-detail/CampaignTable.vue2.js +42 -0
  12. package/dist/components/organisms/extensions/recommendation/strategy-detail/FilterHumanizer.vue.js +20 -0
  13. package/dist/components/organisms/extensions/recommendation/strategy-detail/FilterHumanizer.vue2.js +18 -0
  14. package/dist/components/organisms/extensions/recommendation/strategy-detail/HumanizerCondition.vue.js +20 -0
  15. package/dist/components/organisms/extensions/recommendation/strategy-detail/HumanizerCondition.vue2.js +60 -0
  16. package/dist/components/organisms/extensions/recommendation/strategy-detail/HumanizerGroup.vue.js +19 -0
  17. package/dist/components/organisms/extensions/recommendation/strategy-detail/HumanizerGroup.vue2.js +19 -0
  18. package/dist/components/organisms/extensions/recommendation/strategy-detail/InfoDisplayValue.vue.js +22 -0
  19. package/dist/components/organisms/extensions/recommendation/strategy-detail/InfoDisplayValue.vue2.js +29 -0
  20. package/dist/composables/useHtmlValidator.js +68 -60
  21. package/dist/composables/useHttp.js +61 -52
  22. package/dist/composables/usePreviewInteractionGuard.js +36 -11
  23. package/dist/composables/useRecommendation.js +56 -40
  24. package/dist/composables/useRecommendationPreview.js +61 -60
  25. package/dist/composables/useSave.js +22 -22
  26. package/dist/composables/useStrategyFilters.js +16 -0
  27. package/dist/config/migrator/recommendationMigrator.js +7 -4
  28. package/dist/enums/date.js +4 -3
  29. package/dist/enums/extensions/filteringV2.js +1024 -0
  30. package/dist/enums/extensions/recommendationBlock.js +45 -24
  31. package/dist/enums/extensions/strategyDetail.js +149 -0
  32. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
  33. package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +12 -11
  34. package/dist/extensions/Blocks/Recommendation/controls/blockBackground/index.js +10 -0
  35. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +141 -123
  36. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +297 -0
  37. package/dist/extensions/Blocks/Recommendation/extension.js +23 -21
  38. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +16 -2
  39. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +137 -0
  40. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +41 -40
  41. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +549 -165
  42. package/dist/extensions/Blocks/Recommendation/utils/strategyHumanizer.js +97 -0
  43. package/dist/extensions/Blocks/Recommendation/utils/strategyNavigation.js +8 -0
  44. package/dist/extensions/Blocks/Recommendation/utils/strategySummary.js +95 -0
  45. package/dist/extensions/Blocks/Recommendation/utils/strategyUrl.js +43 -0
  46. package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +24 -10
  47. package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +3 -2
  48. package/dist/extensions/Blocks/common-control.js +37 -35
  49. package/dist/extensions/Blocks/controlFactories.js +125 -75
  50. package/dist/guido.css +1 -1
  51. package/dist/services/recommendationApi.js +127 -33
  52. package/dist/services/stripoApi.js +18 -18
  53. package/dist/src/@types/config/schemas.d.ts +10 -0
  54. package/dist/src/components/organisms/extensions/recommendation/StrategyDetailDrawer.vue.d.ts +2 -0
  55. package/dist/src/components/organisms/extensions/recommendation/strategy-detail/CampaignTable.vue.d.ts +43 -0
  56. package/dist/src/components/organisms/extensions/recommendation/strategy-detail/FilterHumanizer.vue.d.ts +29 -0
  57. package/dist/src/components/organisms/extensions/recommendation/strategy-detail/HumanizerCondition.vue.d.ts +40 -0
  58. package/dist/src/components/organisms/extensions/recommendation/strategy-detail/HumanizerGroup.vue.d.ts +38 -0
  59. package/dist/src/components/organisms/extensions/recommendation/strategy-detail/InfoDisplayValue.vue.d.ts +51 -0
  60. package/dist/src/composables/useConfig.d.ts +2 -0
  61. package/dist/src/composables/useHtmlValidator.d.ts +2 -0
  62. package/dist/src/composables/usePreviewInteractionGuard.d.ts +1 -1
  63. package/dist/src/composables/useRecommendation.d.ts +2 -0
  64. package/dist/src/composables/useStrategyFilters.d.ts +24 -0
  65. package/dist/src/enums/extensions/filteringV2.d.ts +72 -0
  66. package/dist/src/enums/extensions/recommendationBlock.d.ts +33 -0
  67. package/dist/src/enums/extensions/strategyDetail.d.ts +90 -0
  68. package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +1 -0
  69. package/dist/src/extensions/Blocks/Recommendation/controls/blockBackground/index.d.ts +14 -0
  70. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +1 -0
  71. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +10 -4
  72. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +118 -0
  73. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +958 -1
  74. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +7 -0
  75. package/dist/src/extensions/Blocks/Recommendation/utils/strategyHumanizer.d.ts +50 -0
  76. package/dist/src/extensions/Blocks/Recommendation/utils/strategyNavigation.d.ts +10 -0
  77. package/dist/src/extensions/Blocks/Recommendation/utils/strategySummary.d.ts +34 -0
  78. package/dist/src/extensions/Blocks/Recommendation/utils/strategyUrl.d.ts +51 -0
  79. package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +8 -1
  80. package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +1 -0
  81. package/dist/src/extensions/Blocks/common-control.d.ts +5 -2
  82. package/dist/src/extensions/Blocks/controlFactories.d.ts +36 -0
  83. package/dist/src/mock/api/recommendation-strategies.d.ts +2 -0
  84. package/dist/src/services/recommendationApi.d.ts +9 -1
  85. package/dist/src/stores/config.d.ts +18 -0
  86. package/dist/src/utils/genericUtil.d.ts +9 -0
  87. package/dist/src/utils/urlSchemes.d.ts +6 -0
  88. package/dist/utils/dateUtil.js +23 -10
  89. package/dist/utils/genericUtil.js +10 -1
  90. package/dist/utils/templatePreparation.js +70 -57
  91. package/dist/utils/urlSchemes.js +4 -0
  92. package/package.json +1 -1
@@ -0,0 +1,1024 @@
1
+ const t = {
2
+ Number: [
3
+ {
4
+ value: "is-equal-to",
5
+ text: "campaign-builder.is",
6
+ operator: "=",
7
+ filterType: "standardFilter"
8
+ },
9
+ {
10
+ value: "is-not-equal-to",
11
+ text: "campaign-builder.is-not",
12
+ operator: "!=",
13
+ filterType: "standardFilter"
14
+ },
15
+ {
16
+ value: "is-greater-than",
17
+ text: "segmentation.is-more-than",
18
+ operator: ">",
19
+ filterType: "standardFilter"
20
+ },
21
+ {
22
+ value: "is-less-than",
23
+ text: "campaign-builder.less-than",
24
+ operator: "<",
25
+ filterType: "standardFilter"
26
+ },
27
+ {
28
+ value: "is-greater-than-or-equal",
29
+ text: "segmentation.is-greater-than-or-equal",
30
+ operator: ">=",
31
+ filterType: "standardFilter"
32
+ },
33
+ {
34
+ value: "is-less-than-or-equal",
35
+ text: "campaign-builder.less-than-or-equal-to",
36
+ operator: "<=",
37
+ filterType: "standardFilter"
38
+ },
39
+ {
40
+ value: "is-between",
41
+ text: "discovery-strategy-filtering.is-in-between",
42
+ operator: "><",
43
+ filterType: "standardFilter"
44
+ },
45
+ {
46
+ value: "in",
47
+ text: "eureka.is-one-of",
48
+ operator: "=",
49
+ filterType: "standardFilter"
50
+ },
51
+ {
52
+ value: "not-in",
53
+ text: "eureka.is-not-one-of",
54
+ operator: "!=",
55
+ filterType: "standardFilter"
56
+ },
57
+ {
58
+ value: "is-equal-to_dynamic",
59
+ text: "discovery-strategy-filtering.match-the-item",
60
+ cartPageText: "discovery-strategy-filtering.cart-match-the-item",
61
+ operator: "=",
62
+ filterType: "dynamicFilter"
63
+ },
64
+ {
65
+ value: "is-not-equal-to_dynamic",
66
+ text: "discovery-strategy-filtering.not-match-the-item",
67
+ cartPageText: "discovery-strategy-filtering.cart-not-match-the-item",
68
+ operator: "!=",
69
+ filterType: "dynamicFilter"
70
+ },
71
+ {
72
+ value: "is-greater-than_dynamic",
73
+ text: "discovery-strategy-filtering.is-greater-than",
74
+ cartPageText: "discovery-strategy-filtering.cart-is-greater-than",
75
+ operator: ">",
76
+ filterType: "dynamicFilter"
77
+ },
78
+ {
79
+ value: "is-less-than_dynamic",
80
+ text: "discovery-strategy-filtering.is-less-than",
81
+ cartPageText: "discovery-strategy-filtering.cart-is-less-than",
82
+ operator: "<",
83
+ filterType: "dynamicFilter"
84
+ },
85
+ {
86
+ value: "is-greater-than-or-equal_dynamic",
87
+ text: "discovery-strategy-filtering.is-greater-than-or-equal",
88
+ cartPageText: "discovery-strategy-filtering.cart-is-greater-than-or-equal",
89
+ operator: ">=",
90
+ filterType: "dynamicFilter"
91
+ },
92
+ {
93
+ value: "is-less-than-or-equal_dynamic",
94
+ text: "discovery-strategy-filtering.is-less-than-or-equal",
95
+ cartPageText: "discovery-strategy-filtering.cart-is-less-than-or-equal",
96
+ operator: "<=",
97
+ filterType: "dynamicFilter"
98
+ },
99
+ {
100
+ value: "is-more-than-currently-viewing-item_dynamic",
101
+ text: "discovery-strategy-filtering.in-range-greater-than",
102
+ operator: "><",
103
+ filterType: "dynamicFilter"
104
+ },
105
+ {
106
+ value: "is-less-than-currently-viewing-item_dynamic",
107
+ text: "discovery-strategy-filtering.in-range-less-than",
108
+ operator: "><",
109
+ filterType: "dynamicFilter"
110
+ },
111
+ {
112
+ value: "is-more-or-less-than-currently-viewing-item_dynamic",
113
+ text: "discovery-strategy-filtering.in-range-less-or-greater-than",
114
+ operator: "><",
115
+ filterType: "dynamicFilter"
116
+ },
117
+ {
118
+ value: "matches-with",
119
+ text: "discovery-strategy-filtering.matches-with",
120
+ operator: "=",
121
+ filterType: "userContextFilter"
122
+ },
123
+ {
124
+ value: "does-not-match-with",
125
+ text: "discovery-strategy-filtering.does-not-match-with",
126
+ operator: "!=",
127
+ filterType: "userContextFilter"
128
+ },
129
+ {
130
+ value: "is-greater-than-user-context",
131
+ text: "segmentation.is-more-than",
132
+ operator: ">",
133
+ filterType: "userContextFilter"
134
+ },
135
+ {
136
+ value: "is-less-than-user-context",
137
+ text: "campaign-builder.less-than",
138
+ operator: "<",
139
+ filterType: "userContextFilter"
140
+ },
141
+ {
142
+ value: "is-greater-than-or-equal-user-context",
143
+ text: "segmentation.is-greater-than-or-equal",
144
+ operator: ">=",
145
+ filterType: "userContextFilter"
146
+ },
147
+ {
148
+ value: "is-less-than-or-equal-user-context",
149
+ text: "campaign-builder.less-than-or-equal-to",
150
+ operator: "<=",
151
+ filterType: "userContextFilter"
152
+ },
153
+ {
154
+ value: "is-more-than-currently-viewing-item_dynamic",
155
+ text: "discovery-strategy-filtering.in-range-greater-than",
156
+ operator: "><",
157
+ filterType: "userContextFilter"
158
+ },
159
+ {
160
+ value: "is-less-than-currently-viewing-item_dynamic",
161
+ text: "discovery-strategy-filtering.in-range-less-than",
162
+ operator: "><",
163
+ filterType: "userContextFilter"
164
+ },
165
+ {
166
+ value: "is-more-or-less-than-currently-viewing-item_dynamic",
167
+ text: "discovery-strategy-filtering.in-range-less-or-greater-than",
168
+ operator: "><",
169
+ filterType: "userContextFilter"
170
+ }
171
+ ],
172
+ String: [
173
+ {
174
+ value: "is-exactly",
175
+ text: "campaign-builder.is",
176
+ operator: "=",
177
+ filterType: "standardFilter"
178
+ },
179
+ {
180
+ value: "is-not-exactly",
181
+ text: "campaign-builder.is-not",
182
+ operator: "!=",
183
+ filterType: "standardFilter"
184
+ },
185
+ {
186
+ value: "contains",
187
+ text: "campaign-builder.contains",
188
+ operator: "~",
189
+ filterType: "standardFilter"
190
+ },
191
+ {
192
+ value: "does-not-contain",
193
+ text: "discovery-strategy-filtering.not-contain",
194
+ operator: "!~",
195
+ filterType: "standardFilter"
196
+ },
197
+ {
198
+ value: "in",
199
+ text: "eureka.is-one-of",
200
+ operator: "=",
201
+ filterType: "standardFilter"
202
+ },
203
+ {
204
+ value: "not-in",
205
+ text: "eureka.is-not-one-of",
206
+ operator: "!=",
207
+ filterType: "standardFilter"
208
+ },
209
+ {
210
+ value: "is-exactly_dynamic",
211
+ text: "discovery-strategy-filtering.match-the-item",
212
+ cartPageText: "discovery-strategy-filtering.cart-match-the-item",
213
+ operator: "=",
214
+ filterType: "dynamicFilter"
215
+ },
216
+ {
217
+ value: "is-not-exactly_dynamic",
218
+ text: "discovery-strategy-filtering.not-match-the-item",
219
+ cartPageText: "discovery-strategy-filtering.cart-not-match-the-item",
220
+ operator: "!=",
221
+ filterType: "dynamicFilter"
222
+ },
223
+ {
224
+ value: "contains_dynamic",
225
+ text: "discovery-strategy-filtering.contains",
226
+ cartPageText: "discovery-strategy-filtering.cart-contains",
227
+ operator: "~",
228
+ filterType: "dynamicFilter"
229
+ },
230
+ {
231
+ value: "does-not-contain_dynamic",
232
+ text: "discovery-strategy-filtering.not-contains",
233
+ cartPageText: "discovery-strategy-filtering.cart-not-contains",
234
+ operator: "!~",
235
+ filterType: "dynamicFilter"
236
+ },
237
+ {
238
+ value: "matches-with",
239
+ text: "discovery-strategy-filtering.matches-with",
240
+ operator: "=",
241
+ filterType: "userContextFilter"
242
+ },
243
+ {
244
+ value: "does-not-match-with",
245
+ text: "discovery-strategy-filtering.does-not-match-with",
246
+ operator: "!=",
247
+ filterType: "userContextFilter"
248
+ },
249
+ {
250
+ value: "contains-user-context",
251
+ text: "campaign-builder.contains",
252
+ operator: "~",
253
+ filterType: "userContextFilter"
254
+ },
255
+ {
256
+ value: "does-not-contain-user-context",
257
+ text: "discovery-strategy-filtering.not-contain",
258
+ operator: "!~",
259
+ filterType: "userContextFilter"
260
+ }
261
+ ],
262
+ "Array[String]": [
263
+ {
264
+ value: "is-exactly",
265
+ text: "campaign-builder.is",
266
+ operator: "=",
267
+ filterType: "standardFilter"
268
+ },
269
+ {
270
+ value: "is-not-exactly",
271
+ text: "campaign-builder.is-not",
272
+ operator: "!=",
273
+ filterType: "standardFilter"
274
+ },
275
+ {
276
+ value: "contains",
277
+ text: "campaign-builder.contains",
278
+ operator: "~",
279
+ filterType: "standardFilter"
280
+ },
281
+ {
282
+ value: "does-not-contain",
283
+ text: "discovery-strategy-filtering.not-contain",
284
+ operator: "!~",
285
+ filterType: "standardFilter"
286
+ },
287
+ {
288
+ value: "in",
289
+ text: "eureka.is-one-of",
290
+ operator: "=",
291
+ filterType: "standardFilter"
292
+ },
293
+ {
294
+ value: "not-in",
295
+ text: "eureka.is-not-one-of",
296
+ operator: "!=",
297
+ filterType: "standardFilter"
298
+ },
299
+ {
300
+ value: "is-exactly_dynamic",
301
+ text: "discovery-strategy-filtering.match-the-item",
302
+ operator: "=",
303
+ filterType: "dynamicFilter"
304
+ },
305
+ {
306
+ value: "is-not-exactly_dynamic",
307
+ text: "discovery-strategy-filtering.not-match-the-item",
308
+ operator: "!=",
309
+ filterType: "dynamicFilter"
310
+ },
311
+ {
312
+ value: "contains_dynamic",
313
+ text: "discovery-strategy-filtering.contains",
314
+ operator: "~",
315
+ filterType: "dynamicFilter"
316
+ },
317
+ {
318
+ value: "does-not-contain_dynamic",
319
+ text: "discovery-strategy-filtering.not-contains",
320
+ operator: "!~",
321
+ filterType: "dynamicFilter"
322
+ },
323
+ {
324
+ value: "matches-with",
325
+ text: "discovery-strategy-filtering.matches-with",
326
+ operator: "=",
327
+ filterType: "userContextFilter"
328
+ },
329
+ {
330
+ value: "does-not-match-with",
331
+ text: "discovery-strategy-filtering.does-not-match-with",
332
+ operator: "!=",
333
+ filterType: "userContextFilter"
334
+ },
335
+ {
336
+ value: "contains-user-context",
337
+ text: "campaign-builder.contains",
338
+ operator: "~",
339
+ filterType: "userContextFilter"
340
+ },
341
+ {
342
+ value: "does-not-contain-user-context",
343
+ text: "discovery-strategy-filtering.not-contain",
344
+ operator: "!~",
345
+ filterType: "userContextFilter"
346
+ }
347
+ ],
348
+ Array: [
349
+ {
350
+ value: "is-exactly",
351
+ text: "campaign-builder.is",
352
+ operator: "=",
353
+ filterType: "standardFilter"
354
+ },
355
+ {
356
+ value: "is-not-exactly",
357
+ text: "campaign-builder.is-not",
358
+ operator: "!=",
359
+ filterType: "standardFilter"
360
+ },
361
+ {
362
+ value: "contains",
363
+ text: "campaign-builder.contains",
364
+ operator: "~",
365
+ filterType: "standardFilter"
366
+ },
367
+ {
368
+ value: "does-not-contain",
369
+ text: "discovery-strategy-filtering.not-contain",
370
+ operator: "!~",
371
+ filterType: "standardFilter"
372
+ },
373
+ {
374
+ value: "in",
375
+ text: "eureka.is-one-of",
376
+ operator: "=",
377
+ filterType: "standardFilter"
378
+ },
379
+ {
380
+ value: "not-in",
381
+ text: "eureka.is-not-one-of",
382
+ operator: "!=",
383
+ filterType: "standardFilter"
384
+ },
385
+ {
386
+ value: "is-exactly_dynamic",
387
+ text: "discovery-strategy-filtering.category-is",
388
+ cartPageText: "discovery-strategy-filtering.cart-match-the-item",
389
+ operator: "=",
390
+ filterType: "dynamicFilter"
391
+ },
392
+ {
393
+ value: "is-not-exactly_dynamic",
394
+ text: "discovery-strategy-filtering.category-is-not",
395
+ cartPageText: "discovery-strategy-filtering.cart-not-match-the-item",
396
+ operator: "!=",
397
+ filterType: "dynamicFilter"
398
+ },
399
+ {
400
+ value: "contains_dynamic",
401
+ text: "discovery-strategy-filtering.category-contains",
402
+ cartPageText: "discovery-strategy-filtering.cart-contains",
403
+ operator: "~",
404
+ filterType: "dynamicFilter"
405
+ },
406
+ {
407
+ value: "does-not-contain_dynamic",
408
+ text: "discovery-strategy-filtering.category-not-contains",
409
+ cartPageText: "discovery-strategy-filtering.cart-not-contains",
410
+ operator: "!~",
411
+ filterType: "dynamicFilter"
412
+ },
413
+ {
414
+ value: "matches-with",
415
+ text: "discovery-strategy-filtering.matches-with",
416
+ operator: "=",
417
+ filterType: "userContextFilter"
418
+ },
419
+ {
420
+ value: "does-not-match-with",
421
+ text: "discovery-strategy-filtering.does-not-match-with",
422
+ operator: "!=",
423
+ filterType: "userContextFilter"
424
+ },
425
+ {
426
+ value: "contains-user-context",
427
+ text: "campaign-builder.contains",
428
+ operator: "~",
429
+ filterType: "userContextFilter"
430
+ },
431
+ {
432
+ value: "does-not-contain-user-context",
433
+ text: "discovery-strategy-filtering.not-contain",
434
+ operator: "!~",
435
+ filterType: "userContextFilter"
436
+ }
437
+ ],
438
+ Strings: [
439
+ {
440
+ value: "is-exactly",
441
+ text: "campaign-builder.is",
442
+ operator: "=",
443
+ filterType: "standardFilter"
444
+ },
445
+ {
446
+ value: "is-not-exactly",
447
+ text: "campaign-builder.is-not",
448
+ operator: "!=",
449
+ filterType: "standardFilter"
450
+ },
451
+ {
452
+ value: "contains",
453
+ text: "campaign-builder.contains",
454
+ operator: "~",
455
+ filterType: "standardFilter"
456
+ },
457
+ {
458
+ value: "does-not-contain",
459
+ text: "discovery-strategy-filtering.not-contain",
460
+ operator: "!~",
461
+ filterType: "standardFilter"
462
+ },
463
+ {
464
+ value: "in",
465
+ text: "eureka.is-one-of",
466
+ operator: "=",
467
+ filterType: "standardFilter"
468
+ },
469
+ {
470
+ value: "not-in",
471
+ text: "eureka.is-not-one-of",
472
+ operator: "!=",
473
+ filterType: "standardFilter"
474
+ },
475
+ {
476
+ value: "is-exactly_dynamic",
477
+ text: "discovery-strategy-filtering.match-the-item",
478
+ cartPageText: "discovery-strategy-filtering.cart-match-the-item",
479
+ operator: "=",
480
+ filterType: "dynamicFilter"
481
+ },
482
+ {
483
+ value: "is-not-exactly_dynamic",
484
+ text: "discovery-strategy-filtering.not-match-the-item",
485
+ cartPageText: "discovery-strategy-filtering.cart-not-match-the-item",
486
+ operator: "!=",
487
+ filterType: "dynamicFilter"
488
+ },
489
+ {
490
+ value: "contains_dynamic",
491
+ text: "discovery-strategy-filtering.contains",
492
+ cartPageText: "discovery-strategy-filtering.cart-contains",
493
+ operator: "~",
494
+ filterType: "dynamicFilter"
495
+ },
496
+ {
497
+ value: "does-not-contain_dynamic",
498
+ text: "discovery-strategy-filtering.not-contains",
499
+ cartPageText: "discovery-strategy-filtering.cart-not-contains",
500
+ operator: "!~",
501
+ filterType: "dynamicFilter"
502
+ },
503
+ {
504
+ value: "matches-with",
505
+ text: "discovery-strategy-filtering.matches-with",
506
+ operator: "=",
507
+ filterType: "userContextFilter"
508
+ },
509
+ {
510
+ value: "does-not-match-with",
511
+ text: "discovery-strategy-filtering.does-not-match-with",
512
+ operator: "!=",
513
+ filterType: "userContextFilter"
514
+ },
515
+ {
516
+ value: "contains-user-context",
517
+ text: "campaign-builder.contains",
518
+ operator: "~",
519
+ filterType: "userContextFilter"
520
+ },
521
+ {
522
+ value: "does-not-contain-user-context",
523
+ text: "discovery-strategy-filtering.not-contain",
524
+ operator: "!~",
525
+ filterType: "userContextFilter"
526
+ }
527
+ ],
528
+ Numbers: [
529
+ {
530
+ value: "is-exactly",
531
+ text: "campaign-builder.is",
532
+ operator: "=",
533
+ filterType: "standardFilter"
534
+ },
535
+ {
536
+ value: "is-not-exactly",
537
+ text: "campaign-builder.is-not",
538
+ operator: "!=",
539
+ filterType: "standardFilter"
540
+ },
541
+ {
542
+ value: "contains",
543
+ text: "campaign-builder.contains",
544
+ operator: "~",
545
+ filterType: "standardFilter"
546
+ },
547
+ {
548
+ value: "does-not-contain",
549
+ text: "discovery-strategy-filtering.not-contain",
550
+ operator: "!~",
551
+ filterType: "standardFilter"
552
+ },
553
+ {
554
+ value: "is-exactly_dynamic",
555
+ text: "discovery-strategy-filtering.match-the-item",
556
+ cartPageText: "discovery-strategy-filtering.cart-match-the-item",
557
+ operator: "=",
558
+ filterType: "dynamicFilter"
559
+ },
560
+ {
561
+ value: "is-not-exactly_dynamic",
562
+ text: "discovery-strategy-filtering.not-match-the-item",
563
+ cartPageText: "discovery-strategy-filtering.cart-not-match-the-item",
564
+ operator: "!=",
565
+ filterType: "dynamicFilter"
566
+ },
567
+ {
568
+ value: "contains_dynamic",
569
+ text: "discovery-strategy-filtering.contains",
570
+ cartPageText: "discovery-strategy-filtering.cart-contains",
571
+ operator: "~",
572
+ filterType: "dynamicFilter"
573
+ },
574
+ {
575
+ value: "does-not-contain_dynamic",
576
+ text: "discovery-strategy-filtering.not-contains",
577
+ cartPageText: "discovery-strategy-filtering.cart-not-contains",
578
+ operator: "!~",
579
+ filterType: "dynamicFilter"
580
+ },
581
+ {
582
+ value: "matches-with",
583
+ text: "discovery-strategy-filtering.matches-with",
584
+ operator: "=",
585
+ filterType: "userContextFilter"
586
+ },
587
+ {
588
+ value: "does-not-match-with",
589
+ text: "discovery-strategy-filtering.does-not-match-with",
590
+ operator: "!=",
591
+ filterType: "userContextFilter"
592
+ },
593
+ {
594
+ value: "contains-user-context",
595
+ text: "campaign-builder.contains",
596
+ operator: "~",
597
+ filterType: "userContextFilter"
598
+ },
599
+ {
600
+ value: "does-not-contain-user-context",
601
+ text: "discovery-strategy-filtering.not-contain",
602
+ operator: "!~",
603
+ filterType: "userContextFilter"
604
+ }
605
+ ],
606
+ Booleans: [
607
+ {
608
+ value: "is-exactly",
609
+ text: "campaign-builder.is",
610
+ operator: "=",
611
+ filterType: "standardFilter"
612
+ },
613
+ {
614
+ value: "is-not-exactly",
615
+ text: "campaign-builder.is-not",
616
+ operator: "!=",
617
+ filterType: "standardFilter"
618
+ },
619
+ {
620
+ value: "contains",
621
+ text: "campaign-builder.contains",
622
+ operator: "~",
623
+ filterType: "standardFilter"
624
+ },
625
+ {
626
+ value: "does-not-contain",
627
+ text: "discovery-strategy-filtering.not-contain",
628
+ operator: "!~",
629
+ filterType: "standardFilter"
630
+ },
631
+ {
632
+ value: "is-exactly_dynamic",
633
+ text: "discovery-strategy-filtering.match-the-item",
634
+ cartPageText: "discovery-strategy-filtering.cart-match-the-item",
635
+ operator: "=",
636
+ filterType: "dynamicFilter"
637
+ },
638
+ {
639
+ value: "is-not-exactly_dynamic",
640
+ text: "discovery-strategy-filtering.not-match-the-item",
641
+ cartPageText: "discovery-strategy-filtering.cart-not-match-the-item",
642
+ operator: "!=",
643
+ filterType: "dynamicFilter"
644
+ },
645
+ {
646
+ value: "contains_dynamic",
647
+ text: "discovery-strategy-filtering.contains",
648
+ cartPageText: "discovery-strategy-filtering.cart-contains",
649
+ operator: "~",
650
+ filterType: "dynamicFilter"
651
+ },
652
+ {
653
+ value: "does-not-contain_dynamic",
654
+ text: "discovery-strategy-filtering.not-contains",
655
+ cartPageText: "discovery-strategy-filtering.cart-not-contains",
656
+ operator: "!~",
657
+ filterType: "dynamicFilter"
658
+ },
659
+ {
660
+ value: "matches-with",
661
+ text: "discovery-strategy-filtering.matches-with",
662
+ operator: "=",
663
+ filterType: "userContextFilter"
664
+ },
665
+ {
666
+ value: "does-not-match-with",
667
+ text: "discovery-strategy-filtering.does-not-match-with",
668
+ operator: "!=",
669
+ filterType: "userContextFilter"
670
+ },
671
+ {
672
+ value: "contains-user-context",
673
+ text: "campaign-builder.contains",
674
+ operator: "~",
675
+ filterType: "userContextFilter"
676
+ },
677
+ {
678
+ value: "does-not-contain-user-context",
679
+ text: "discovery-strategy-filtering.not-contain",
680
+ operator: "!~",
681
+ filterType: "userContextFilter"
682
+ }
683
+ ],
684
+ Dates: [
685
+ {
686
+ value: "is-exactly",
687
+ text: "campaign-builder.is",
688
+ operator: "=",
689
+ filterType: "standardFilter"
690
+ },
691
+ {
692
+ value: "is-not-exactly",
693
+ text: "campaign-builder.is-not",
694
+ operator: "!=",
695
+ filterType: "standardFilter"
696
+ },
697
+ {
698
+ value: "contains",
699
+ text: "campaign-builder.contains",
700
+ operator: "~",
701
+ filterType: "standardFilter"
702
+ },
703
+ {
704
+ value: "does-not-contain",
705
+ text: "discovery-strategy-filtering.not-contain",
706
+ operator: "!~",
707
+ filterType: "standardFilter"
708
+ },
709
+ {
710
+ value: "is-exactly_dynamic",
711
+ text: "discovery-strategy-filtering.match-the-item",
712
+ cartPageText: "discovery-strategy-filtering.cart-after",
713
+ operator: "=",
714
+ filterType: "dynamicFilter"
715
+ },
716
+ {
717
+ value: "is-not-exactly_dynamic",
718
+ text: "discovery-strategy-filtering.not-match-the-item",
719
+ cartPageText: "discovery-strategy-filtering.cart-before",
720
+ operator: "!=",
721
+ filterType: "dynamicFilter"
722
+ },
723
+ {
724
+ value: "contains_dynamic",
725
+ text: "discovery-strategy-filtering.contains",
726
+ cartPageText: "discovery-strategy-filtering.cart-match-the-item",
727
+ operator: "~",
728
+ filterType: "dynamicFilter"
729
+ },
730
+ {
731
+ value: "does-not-contain_dynamic",
732
+ text: "discovery-strategy-filtering.not-contains",
733
+ cartPageText: "discovery-strategy-filtering.cart-not-match-the-item",
734
+ operator: "!~",
735
+ filterType: "dynamicFilter"
736
+ },
737
+ {
738
+ value: "matches-with",
739
+ text: "discovery-strategy-filtering.matches-with",
740
+ operator: "=",
741
+ filterType: "userContextFilter"
742
+ },
743
+ {
744
+ value: "does-not-match-with",
745
+ text: "discovery-strategy-filtering.does-not-match-with",
746
+ operator: "!=",
747
+ filterType: "userContextFilter"
748
+ },
749
+ {
750
+ value: "contains-user-context",
751
+ text: "campaign-builder.contains",
752
+ operator: "~",
753
+ filterType: "userContextFilter"
754
+ },
755
+ {
756
+ value: "does-not-contain-user-context",
757
+ text: "discovery-strategy-filtering.not-contain",
758
+ operator: "!~",
759
+ filterType: "userContextFilter"
760
+ }
761
+ ],
762
+ Boolean: [
763
+ { value: "true", text: "discovery-strategy-filtering.is-present", operator: "=", filterType: "standardFilter" },
764
+ {
765
+ value: "false",
766
+ text: "discovery-strategy-filtering.is-not-present",
767
+ operator: "=",
768
+ filterType: "standardFilter"
769
+ },
770
+ {
771
+ value: "is-exactly_dynamic",
772
+ text: "discovery-strategy-filtering.match-the-item",
773
+ cartPageText: "discovery-strategy-filtering.cart-after",
774
+ operator: "=",
775
+ filterType: "dynamicFilter"
776
+ },
777
+ {
778
+ value: "is-not-exactly_dynamic",
779
+ text: "discovery-strategy-filtering.not-match-the-item",
780
+ cartPageText: "discovery-strategy-filtering.cart-before",
781
+ operator: "!=",
782
+ filterType: "dynamicFilter"
783
+ },
784
+ {
785
+ value: "matches-with",
786
+ text: "discovery-strategy-filtering.matches-with",
787
+ operator: "=",
788
+ filterType: "userContextFilter"
789
+ },
790
+ {
791
+ value: "does-not-match-with",
792
+ text: "discovery-strategy-filtering.does-not-match-with",
793
+ operator: "!=",
794
+ filterType: "userContextFilter"
795
+ }
796
+ ],
797
+ Image: [
798
+ {
799
+ value: "is-equal-to",
800
+ text: "campaign-builder.is",
801
+ operator: "=",
802
+ filterType: "standardFilter"
803
+ },
804
+ {
805
+ value: "is-not-exactly",
806
+ text: "campaign-builder.is-not",
807
+ operator: "!=",
808
+ filterType: "standardFilter"
809
+ },
810
+ {
811
+ value: "contains",
812
+ text: "campaign-builder.contains",
813
+ operator: "~",
814
+ filterType: "standardFilter"
815
+ },
816
+ {
817
+ value: "does-not-contain",
818
+ text: "discovery-strategy-filtering.not-contain",
819
+ operator: "!~",
820
+ filterType: "standardFilter"
821
+ },
822
+ {
823
+ value: "in",
824
+ text: "eureka.is-one-of",
825
+ operator: "=",
826
+ filterType: "standardFilter"
827
+ },
828
+ {
829
+ value: "not-in",
830
+ text: "eureka.is-not-one-of",
831
+ operator: "!=",
832
+ filterType: "standardFilter"
833
+ },
834
+ {
835
+ value: "is-equal-to_dynamic",
836
+ text: "discovery-strategy-filtering.match-the-item",
837
+ cartPageText: "discovery-strategy-filtering.cart-match-the-item",
838
+ operator: "=",
839
+ filterType: "dynamicFilter"
840
+ },
841
+ {
842
+ value: "is-not-exactly_dynamic",
843
+ text: "discovery-strategy-filtering.not-match-the-item",
844
+ cartPageText: "discovery-strategy-filtering.cart-not-match-the-item",
845
+ operator: "!=",
846
+ filterType: "dynamicFilter"
847
+ },
848
+ {
849
+ value: "contains_dynamic",
850
+ text: "discovery-strategy-filtering.contains",
851
+ cartPageText: "discovery-strategy-filtering.cart-image-contain",
852
+ operator: "~",
853
+ filterType: "dynamicFilter"
854
+ },
855
+ {
856
+ value: "does-not-contain_dynamic",
857
+ text: "discovery-strategy-filtering.not-contains",
858
+ cartPageText: "discovery-strategy-filtering.cart-image-not-contain",
859
+ operator: "!~",
860
+ filterType: "dynamicFilter"
861
+ },
862
+ {
863
+ value: "matches-with",
864
+ text: "discovery-strategy-filtering.matches-with",
865
+ operator: "=",
866
+ filterType: "userContextFilter"
867
+ },
868
+ {
869
+ value: "does-not-match-with",
870
+ text: "discovery-strategy-filtering.does-not-match-with",
871
+ operator: "!=",
872
+ filterType: "userContextFilter"
873
+ },
874
+ {
875
+ value: "contains-user-context",
876
+ text: "campaign-builder.contains",
877
+ operator: "~",
878
+ filterType: "userContextFilter"
879
+ },
880
+ {
881
+ value: "does-not-contain-user-context",
882
+ text: "discovery-strategy-filtering.not-contain",
883
+ operator: "!~",
884
+ filterType: "userContextFilter"
885
+ }
886
+ ],
887
+ Date: [
888
+ {
889
+ value: "after",
890
+ text: "eureka.is-after",
891
+ operator: ">",
892
+ filterType: "standardFilter"
893
+ },
894
+ {
895
+ value: "before",
896
+ text: "eureka.is-before",
897
+ operator: "<",
898
+ filterType: "standardFilter"
899
+ },
900
+ {
901
+ value: "is",
902
+ text: "campaign-builder.is",
903
+ operator: "=",
904
+ filterType: "standardFilter"
905
+ },
906
+ {
907
+ value: "is-not",
908
+ text: "campaign-builder.is-not",
909
+ operator: "!=",
910
+ filterType: "standardFilter"
911
+ },
912
+ {
913
+ value: "in-last",
914
+ text: "discovery-strategy-filtering.in-the-last",
915
+ operator: ">=",
916
+ filterType: "standardFilter"
917
+ },
918
+ {
919
+ value: "is-between",
920
+ text: "discovery-strategy-filtering.is-in-between",
921
+ operator: "><",
922
+ filterType: "standardFilter"
923
+ },
924
+ {
925
+ value: "after_dynamic",
926
+ text: "discovery-strategy-filtering.after",
927
+ cartPageText: "discovery-strategy-filtering.cart-after",
928
+ operator: ">",
929
+ filterType: "dynamicFilter"
930
+ },
931
+ {
932
+ value: "before_dynamic",
933
+ text: "discovery-strategy-filtering.before",
934
+ cartPageText: "discovery-strategy-filtering.cart-before",
935
+ operator: "<",
936
+ filterType: "dynamicFilter"
937
+ },
938
+ {
939
+ value: "is_dynamic",
940
+ text: "discovery-strategy-filtering.is",
941
+ cartPageText: "discovery-strategy-filtering.cart-match-the-item",
942
+ operator: "=",
943
+ filterType: "dynamicFilter"
944
+ },
945
+ {
946
+ value: "is-not_dynamic",
947
+ text: "discovery-strategy-filtering.not-match-the-item",
948
+ cartPageText: "discovery-strategy-filtering.cart-not-match-the-item",
949
+ operator: "!=",
950
+ filterType: "dynamicFilter"
951
+ },
952
+ {
953
+ value: "matches-with",
954
+ text: "discovery-strategy-filtering.matches-with",
955
+ operator: "=",
956
+ filterType: "userContextFilter"
957
+ },
958
+ {
959
+ value: "does-not-match-with",
960
+ text: "discovery-strategy-filtering.does-not-match-with",
961
+ operator: "!=",
962
+ filterType: "userContextFilter"
963
+ },
964
+ {
965
+ value: "after-user-context",
966
+ text: "eureka.is-after",
967
+ operator: ">",
968
+ filterType: "userContextFilter"
969
+ },
970
+ {
971
+ value: "before-user-context",
972
+ text: "eureka.is-before",
973
+ operator: "<",
974
+ filterType: "userContextFilter"
975
+ }
976
+ ],
977
+ Object: [
978
+ { value: "is-exactly", text: "campaign-builder.equal-to", operator: "=" },
979
+ { value: "is-not-equal-to", text: "smart-recommender.is-not-equal-to", operator: "!=" },
980
+ { value: "is-greater-than", text: "campaign-builder.greater-than", operator: ">" },
981
+ { value: "is-less-than", text: "campaign-builder.less-than", operator: "<" },
982
+ {
983
+ value: "is-greater-than-or-equal",
984
+ text: "campaign-builder.greater-than-or-equal-to",
985
+ operator: ">="
986
+ },
987
+ {
988
+ value: "is-less-than-or-equal",
989
+ text: "campaign-builder.less-than-or-equal-to",
990
+ operator: "<="
991
+ },
992
+ { value: "is-between", text: "smart-recommender.in-between", operator: "><" },
993
+ { value: "in", text: "smart-recommender.in", operator: "=" },
994
+ { value: "not-in", text: "campaign-builder.not-in", operator: "!=" },
995
+ { value: "is-exactly", text: "campaign-builder.exactly", operator: "=" }
996
+ ]
997
+ }, e = {
998
+ WEEK: "w",
999
+ DAY: "d",
1000
+ HOUR: "h"
1001
+ }, r = {
1002
+ OPERATOR: {
1003
+ IN_LAST: "in-last",
1004
+ IN_BETWEEN: "is-between"
1005
+ }
1006
+ }, i = {
1007
+ STRING: "String",
1008
+ DATE: "Date"
1009
+ }, a = ["Strings", "String", "Array"], o = {
1010
+ IS_EXACTLY: "is-exactly",
1011
+ IS_NOT_EXACTLY: "is-not-exactly",
1012
+ CONTAINS: "contains",
1013
+ NOT_CONTAINS: "does-not-contain",
1014
+ IN: "in",
1015
+ NOT_IN: "not-in"
1016
+ };
1017
+ export {
1018
+ i as DataTypes,
1019
+ a as MultiSelectDataTypes,
1020
+ r as OperatorAbbreviations,
1021
+ o as OperatorNames,
1022
+ t as Operators,
1023
+ e as TimeAbbreviations
1024
+ };