controlresell 2.16.0 → 2.16.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "description": "Auto-generated zod project from Kotlin using guimauvedigital/zodable",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -81,7 +81,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
81
81
  variantId: string;
82
82
  variantWeight: number;
83
83
  initialDelaySeconds: number;
84
- includeOffer: boolean;
85
84
  attachedMessage: {
86
85
  type: "AI";
87
86
  } | {
@@ -90,11 +89,11 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
90
89
  } | {
91
90
  type: "NONE";
92
91
  };
92
+ includeOffer: boolean;
93
93
  }, {
94
94
  variantId: string;
95
95
  variantWeight: number;
96
96
  initialDelaySeconds: number;
97
- includeOffer: boolean;
98
97
  attachedMessage: {
99
98
  type: "AI";
100
99
  } | {
@@ -103,6 +102,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
103
102
  } | {
104
103
  type: "NONE";
105
104
  };
105
+ includeOffer: boolean;
106
106
  }>, "many">;
107
107
  }, "strip", z.ZodTypeAny, {
108
108
  enabled: boolean;
@@ -111,7 +111,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
111
111
  variantId: string;
112
112
  variantWeight: number;
113
113
  initialDelaySeconds: number;
114
- includeOffer: boolean;
115
114
  attachedMessage: {
116
115
  type: "AI";
117
116
  } | {
@@ -120,6 +119,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
120
119
  } | {
121
120
  type: "NONE";
122
121
  };
122
+ includeOffer: boolean;
123
123
  }[];
124
124
  disableOnManualMessage: boolean;
125
125
  savedFiltersId?: string | null | undefined;
@@ -130,7 +130,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
130
130
  variantId: string;
131
131
  variantWeight: number;
132
132
  initialDelaySeconds: number;
133
- includeOffer: boolean;
134
133
  attachedMessage: {
135
134
  type: "AI";
136
135
  } | {
@@ -139,6 +138,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
139
138
  } | {
140
139
  type: "NONE";
141
140
  };
141
+ includeOffer: boolean;
142
142
  }[];
143
143
  disableOnManualMessage: boolean;
144
144
  savedFiltersId?: string | null | undefined;
@@ -179,7 +179,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
179
179
  variantId: string;
180
180
  variantWeight: number;
181
181
  initialDelaySeconds: number;
182
- includeOffer: boolean;
183
182
  attachedMessage: {
184
183
  type: "AI";
185
184
  } | {
@@ -188,11 +187,11 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
188
187
  } | {
189
188
  type: "NONE";
190
189
  };
190
+ includeOffer: boolean;
191
191
  }, {
192
192
  variantId: string;
193
193
  variantWeight: number;
194
194
  initialDelaySeconds: number;
195
- includeOffer: boolean;
196
195
  attachedMessage: {
197
196
  type: "AI";
198
197
  } | {
@@ -201,6 +200,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
201
200
  } | {
202
201
  type: "NONE";
203
202
  };
203
+ includeOffer: boolean;
204
204
  }>, "many">;
205
205
  }, "strip", z.ZodTypeAny, {
206
206
  enabled: boolean;
@@ -209,7 +209,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
209
209
  variantId: string;
210
210
  variantWeight: number;
211
211
  initialDelaySeconds: number;
212
- includeOffer: boolean;
213
212
  attachedMessage: {
214
213
  type: "AI";
215
214
  } | {
@@ -218,6 +217,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
218
217
  } | {
219
218
  type: "NONE";
220
219
  };
220
+ includeOffer: boolean;
221
221
  }[];
222
222
  disableOnManualMessage: boolean;
223
223
  savedFiltersId?: string | null | undefined;
@@ -228,7 +228,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
228
228
  variantId: string;
229
229
  variantWeight: number;
230
230
  initialDelaySeconds: number;
231
- includeOffer: boolean;
232
231
  attachedMessage: {
233
232
  type: "AI";
234
233
  } | {
@@ -237,6 +236,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
237
236
  } | {
238
237
  type: "NONE";
239
238
  };
239
+ includeOffer: boolean;
240
240
  }[];
241
241
  disableOnManualMessage: boolean;
242
242
  savedFiltersId?: string | null | undefined;
@@ -277,7 +277,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
277
277
  variantId: string;
278
278
  variantWeight: number;
279
279
  initialDelaySeconds: number;
280
- includeOffer: boolean;
281
280
  attachedMessage: {
282
281
  type: "AI";
283
282
  } | {
@@ -286,11 +285,11 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
286
285
  } | {
287
286
  type: "NONE";
288
287
  };
288
+ includeOffer: boolean;
289
289
  }, {
290
290
  variantId: string;
291
291
  variantWeight: number;
292
292
  initialDelaySeconds: number;
293
- includeOffer: boolean;
294
293
  attachedMessage: {
295
294
  type: "AI";
296
295
  } | {
@@ -299,6 +298,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
299
298
  } | {
300
299
  type: "NONE";
301
300
  };
301
+ includeOffer: boolean;
302
302
  }>, "many">;
303
303
  }, "strip", z.ZodTypeAny, {
304
304
  enabled: boolean;
@@ -307,7 +307,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
307
307
  variantId: string;
308
308
  variantWeight: number;
309
309
  initialDelaySeconds: number;
310
- includeOffer: boolean;
311
310
  attachedMessage: {
312
311
  type: "AI";
313
312
  } | {
@@ -316,6 +315,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
316
315
  } | {
317
316
  type: "NONE";
318
317
  };
318
+ includeOffer: boolean;
319
319
  }[];
320
320
  disableOnManualMessage: boolean;
321
321
  savedFiltersId?: string | null | undefined;
@@ -326,7 +326,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
326
326
  variantId: string;
327
327
  variantWeight: number;
328
328
  initialDelaySeconds: number;
329
- includeOffer: boolean;
330
329
  attachedMessage: {
331
330
  type: "AI";
332
331
  } | {
@@ -335,6 +334,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
335
334
  } | {
336
335
  type: "NONE";
337
336
  };
337
+ includeOffer: boolean;
338
338
  }[];
339
339
  disableOnManualMessage: boolean;
340
340
  savedFiltersId?: string | null | undefined;
@@ -375,7 +375,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
375
375
  variantId: string;
376
376
  variantWeight: number;
377
377
  initialDelaySeconds: number;
378
- includeOffer: boolean;
379
378
  attachedMessage: {
380
379
  type: "AI";
381
380
  } | {
@@ -384,11 +383,11 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
384
383
  } | {
385
384
  type: "NONE";
386
385
  };
386
+ includeOffer: boolean;
387
387
  }, {
388
388
  variantId: string;
389
389
  variantWeight: number;
390
390
  initialDelaySeconds: number;
391
- includeOffer: boolean;
392
391
  attachedMessage: {
393
392
  type: "AI";
394
393
  } | {
@@ -397,6 +396,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
397
396
  } | {
398
397
  type: "NONE";
399
398
  };
399
+ includeOffer: boolean;
400
400
  }>, "many">;
401
401
  }, "strip", z.ZodTypeAny, {
402
402
  enabled: boolean;
@@ -405,7 +405,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
405
405
  variantId: string;
406
406
  variantWeight: number;
407
407
  initialDelaySeconds: number;
408
- includeOffer: boolean;
409
408
  attachedMessage: {
410
409
  type: "AI";
411
410
  } | {
@@ -414,6 +413,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
414
413
  } | {
415
414
  type: "NONE";
416
415
  };
416
+ includeOffer: boolean;
417
417
  }[];
418
418
  disableOnManualMessage: boolean;
419
419
  savedFiltersId?: string | null | undefined;
@@ -424,7 +424,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
424
424
  variantId: string;
425
425
  variantWeight: number;
426
426
  initialDelaySeconds: number;
427
- includeOffer: boolean;
428
427
  attachedMessage: {
429
428
  type: "AI";
430
429
  } | {
@@ -433,6 +432,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
433
432
  } | {
434
433
  type: "NONE";
435
434
  };
435
+ includeOffer: boolean;
436
436
  }[];
437
437
  disableOnManualMessage: boolean;
438
438
  savedFiltersId?: string | null | undefined;
@@ -460,7 +460,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
460
460
  variantId: string;
461
461
  variantWeight: number;
462
462
  initialDelaySeconds: number;
463
- includeOffer: boolean;
464
463
  attachedMessage: {
465
464
  type: "AI";
466
465
  } | {
@@ -469,6 +468,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
469
468
  } | {
470
469
  type: "NONE";
471
470
  };
471
+ includeOffer: boolean;
472
472
  }[];
473
473
  disableOnManualMessage: boolean;
474
474
  savedFiltersId?: string | null | undefined;
@@ -480,7 +480,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
480
480
  variantId: string;
481
481
  variantWeight: number;
482
482
  initialDelaySeconds: number;
483
- includeOffer: boolean;
484
483
  attachedMessage: {
485
484
  type: "AI";
486
485
  } | {
@@ -489,6 +488,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
489
488
  } | {
490
489
  type: "NONE";
491
490
  };
491
+ includeOffer: boolean;
492
492
  }[];
493
493
  disableOnManualMessage: boolean;
494
494
  savedFiltersId?: string | null | undefined;
@@ -500,7 +500,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
500
500
  variantId: string;
501
501
  variantWeight: number;
502
502
  initialDelaySeconds: number;
503
- includeOffer: boolean;
504
503
  attachedMessage: {
505
504
  type: "AI";
506
505
  } | {
@@ -509,6 +508,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
509
508
  } | {
510
509
  type: "NONE";
511
510
  };
511
+ includeOffer: boolean;
512
512
  }[];
513
513
  disableOnManualMessage: boolean;
514
514
  savedFiltersId?: string | null | undefined;
@@ -520,7 +520,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
520
520
  variantId: string;
521
521
  variantWeight: number;
522
522
  initialDelaySeconds: number;
523
- includeOffer: boolean;
524
523
  attachedMessage: {
525
524
  type: "AI";
526
525
  } | {
@@ -529,6 +528,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
529
528
  } | {
530
529
  type: "NONE";
531
530
  };
531
+ includeOffer: boolean;
532
532
  }[];
533
533
  disableOnManualMessage: boolean;
534
534
  savedFiltersId?: string | null | undefined;
@@ -556,7 +556,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
556
556
  variantId: string;
557
557
  variantWeight: number;
558
558
  initialDelaySeconds: number;
559
- includeOffer: boolean;
560
559
  attachedMessage: {
561
560
  type: "AI";
562
561
  } | {
@@ -565,6 +564,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
565
564
  } | {
566
565
  type: "NONE";
567
566
  };
567
+ includeOffer: boolean;
568
568
  }[];
569
569
  disableOnManualMessage: boolean;
570
570
  savedFiltersId?: string | null | undefined;
@@ -576,7 +576,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
576
576
  variantId: string;
577
577
  variantWeight: number;
578
578
  initialDelaySeconds: number;
579
- includeOffer: boolean;
580
579
  attachedMessage: {
581
580
  type: "AI";
582
581
  } | {
@@ -585,6 +584,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
585
584
  } | {
586
585
  type: "NONE";
587
586
  };
587
+ includeOffer: boolean;
588
588
  }[];
589
589
  disableOnManualMessage: boolean;
590
590
  savedFiltersId?: string | null | undefined;
@@ -596,7 +596,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
596
596
  variantId: string;
597
597
  variantWeight: number;
598
598
  initialDelaySeconds: number;
599
- includeOffer: boolean;
600
599
  attachedMessage: {
601
600
  type: "AI";
602
601
  } | {
@@ -605,6 +604,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
605
604
  } | {
606
605
  type: "NONE";
607
606
  };
607
+ includeOffer: boolean;
608
608
  }[];
609
609
  disableOnManualMessage: boolean;
610
610
  savedFiltersId?: string | null | undefined;
@@ -616,7 +616,6 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
616
616
  variantId: string;
617
617
  variantWeight: number;
618
618
  initialDelaySeconds: number;
619
- includeOffer: boolean;
620
619
  attachedMessage: {
621
620
  type: "AI";
622
621
  } | {
@@ -625,6 +624,7 @@ export declare const AutomaticAnswerPreferenceSchema: z.ZodObject<{
625
624
  } | {
626
625
  type: "NONE";
627
626
  };
627
+ includeOffer: boolean;
628
628
  }[];
629
629
  disableOnManualMessage: boolean;
630
630
  savedFiltersId?: string | null | undefined;
@@ -35,7 +35,6 @@ export declare const AutomaticAnswerTriggerCaseSchema: z.ZodObject<{
35
35
  variantId: string;
36
36
  variantWeight: number;
37
37
  initialDelaySeconds: number;
38
- includeOffer: boolean;
39
38
  attachedMessage: {
40
39
  type: "AI";
41
40
  } | {
@@ -44,11 +43,11 @@ export declare const AutomaticAnswerTriggerCaseSchema: z.ZodObject<{
44
43
  } | {
45
44
  type: "NONE";
46
45
  };
46
+ includeOffer: boolean;
47
47
  }, {
48
48
  variantId: string;
49
49
  variantWeight: number;
50
50
  initialDelaySeconds: number;
51
- includeOffer: boolean;
52
51
  attachedMessage: {
53
52
  type: "AI";
54
53
  } | {
@@ -57,6 +56,7 @@ export declare const AutomaticAnswerTriggerCaseSchema: z.ZodObject<{
57
56
  } | {
58
57
  type: "NONE";
59
58
  };
59
+ includeOffer: boolean;
60
60
  }>, "many">;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  enabled: boolean;
@@ -65,7 +65,6 @@ export declare const AutomaticAnswerTriggerCaseSchema: z.ZodObject<{
65
65
  variantId: string;
66
66
  variantWeight: number;
67
67
  initialDelaySeconds: number;
68
- includeOffer: boolean;
69
68
  attachedMessage: {
70
69
  type: "AI";
71
70
  } | {
@@ -74,6 +73,7 @@ export declare const AutomaticAnswerTriggerCaseSchema: z.ZodObject<{
74
73
  } | {
75
74
  type: "NONE";
76
75
  };
76
+ includeOffer: boolean;
77
77
  }[];
78
78
  disableOnManualMessage: boolean;
79
79
  savedFiltersId?: string | null | undefined;
@@ -84,7 +84,6 @@ export declare const AutomaticAnswerTriggerCaseSchema: z.ZodObject<{
84
84
  variantId: string;
85
85
  variantWeight: number;
86
86
  initialDelaySeconds: number;
87
- includeOffer: boolean;
88
87
  attachedMessage: {
89
88
  type: "AI";
90
89
  } | {
@@ -93,6 +92,7 @@ export declare const AutomaticAnswerTriggerCaseSchema: z.ZodObject<{
93
92
  } | {
94
93
  type: "NONE";
95
94
  };
95
+ includeOffer: boolean;
96
96
  }[];
97
97
  disableOnManualMessage: boolean;
98
98
  savedFiltersId?: string | null | undefined;
@@ -30,7 +30,6 @@ export declare const AutomaticAnswerTriggerVariantSchema: z.ZodObject<{
30
30
  variantId: string;
31
31
  variantWeight: number;
32
32
  initialDelaySeconds: number;
33
- includeOffer: boolean;
34
33
  attachedMessage: {
35
34
  type: "AI";
36
35
  } | {
@@ -39,11 +38,11 @@ export declare const AutomaticAnswerTriggerVariantSchema: z.ZodObject<{
39
38
  } | {
40
39
  type: "NONE";
41
40
  };
41
+ includeOffer: boolean;
42
42
  }, {
43
43
  variantId: string;
44
44
  variantWeight: number;
45
45
  initialDelaySeconds: number;
46
- includeOffer: boolean;
47
46
  attachedMessage: {
48
47
  type: "AI";
49
48
  } | {
@@ -52,6 +51,7 @@ export declare const AutomaticAnswerTriggerVariantSchema: z.ZodObject<{
52
51
  } | {
53
52
  type: "NONE";
54
53
  };
54
+ includeOffer: boolean;
55
55
  }>;
56
56
  export type AutomaticAnswerTriggerVariant = z.infer<typeof AutomaticAnswerTriggerVariantSchema>;
57
57
  //# sourceMappingURL=AutomaticAnswerTriggerVariant.d.ts.map
@@ -11,8 +11,28 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
11
11
  variantId: z.ZodString;
12
12
  variantWeight: z.ZodNumber;
13
13
  initialDelaySeconds: z.ZodNumber;
14
- messageEnabled: z.ZodBoolean;
15
- messageList: z.ZodArray<z.ZodString, "many">;
14
+ attachedMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15
+ type: z.ZodLiteral<"AI">;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: "AI";
18
+ }, {
19
+ type: "AI";
20
+ }>, z.ZodObject<{
21
+ messageList: z.ZodArray<z.ZodString, "many">;
22
+ type: z.ZodLiteral<"MANUAL">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: "MANUAL";
25
+ messageList: string[];
26
+ }, {
27
+ type: "MANUAL";
28
+ messageList: string[];
29
+ }>, z.ZodObject<{
30
+ type: z.ZodLiteral<"NONE">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "NONE";
33
+ }, {
34
+ type: "NONE";
35
+ }>]>;
16
36
  offerEnabled: z.ZodBoolean;
17
37
  offerSettings: z.ZodObject<{
18
38
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
@@ -36,9 +56,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
36
56
  }, "strip", z.ZodTypeAny, {
37
57
  variantId: string;
38
58
  variantWeight: number;
39
- messageList: string[];
40
59
  initialDelaySeconds: number;
41
- messageEnabled: boolean;
60
+ attachedMessage: {
61
+ type: "AI";
62
+ } | {
63
+ type: "MANUAL";
64
+ messageList: string[];
65
+ } | {
66
+ type: "NONE";
67
+ };
42
68
  offerEnabled: boolean;
43
69
  offerSettings: {
44
70
  value: number;
@@ -50,9 +76,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
50
76
  }, {
51
77
  variantId: string;
52
78
  variantWeight: number;
53
- messageList: string[];
54
79
  initialDelaySeconds: number;
55
- messageEnabled: boolean;
80
+ attachedMessage: {
81
+ type: "AI";
82
+ } | {
83
+ type: "MANUAL";
84
+ messageList: string[];
85
+ } | {
86
+ type: "NONE";
87
+ };
56
88
  offerEnabled: boolean;
57
89
  offerSettings: {
58
90
  value: number;
@@ -68,9 +100,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
68
100
  variants: {
69
101
  variantId: string;
70
102
  variantWeight: number;
71
- messageList: string[];
72
103
  initialDelaySeconds: number;
73
- messageEnabled: boolean;
104
+ attachedMessage: {
105
+ type: "AI";
106
+ } | {
107
+ type: "MANUAL";
108
+ messageList: string[];
109
+ } | {
110
+ type: "NONE";
111
+ };
74
112
  offerEnabled: boolean;
75
113
  offerSettings: {
76
114
  value: number;
@@ -87,9 +125,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
87
125
  variants: {
88
126
  variantId: string;
89
127
  variantWeight: number;
90
- messageList: string[];
91
128
  initialDelaySeconds: number;
92
- messageEnabled: boolean;
129
+ attachedMessage: {
130
+ type: "AI";
131
+ } | {
132
+ type: "MANUAL";
133
+ messageList: string[];
134
+ } | {
135
+ type: "NONE";
136
+ };
93
137
  offerEnabled: boolean;
94
138
  offerSettings: {
95
139
  value: number;
@@ -110,8 +154,28 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
110
154
  variantId: z.ZodString;
111
155
  variantWeight: z.ZodNumber;
112
156
  initialDelaySeconds: z.ZodNumber;
113
- messageEnabled: z.ZodBoolean;
114
- messageList: z.ZodArray<z.ZodString, "many">;
157
+ attachedMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
158
+ type: z.ZodLiteral<"AI">;
159
+ }, "strip", z.ZodTypeAny, {
160
+ type: "AI";
161
+ }, {
162
+ type: "AI";
163
+ }>, z.ZodObject<{
164
+ messageList: z.ZodArray<z.ZodString, "many">;
165
+ type: z.ZodLiteral<"MANUAL">;
166
+ }, "strip", z.ZodTypeAny, {
167
+ type: "MANUAL";
168
+ messageList: string[];
169
+ }, {
170
+ type: "MANUAL";
171
+ messageList: string[];
172
+ }>, z.ZodObject<{
173
+ type: z.ZodLiteral<"NONE">;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: "NONE";
176
+ }, {
177
+ type: "NONE";
178
+ }>]>;
115
179
  offerEnabled: z.ZodBoolean;
116
180
  offerSettings: z.ZodObject<{
117
181
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
@@ -135,9 +199,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
135
199
  }, "strip", z.ZodTypeAny, {
136
200
  variantId: string;
137
201
  variantWeight: number;
138
- messageList: string[];
139
202
  initialDelaySeconds: number;
140
- messageEnabled: boolean;
203
+ attachedMessage: {
204
+ type: "AI";
205
+ } | {
206
+ type: "MANUAL";
207
+ messageList: string[];
208
+ } | {
209
+ type: "NONE";
210
+ };
141
211
  offerEnabled: boolean;
142
212
  offerSettings: {
143
213
  value: number;
@@ -149,9 +219,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
149
219
  }, {
150
220
  variantId: string;
151
221
  variantWeight: number;
152
- messageList: string[];
153
222
  initialDelaySeconds: number;
154
- messageEnabled: boolean;
223
+ attachedMessage: {
224
+ type: "AI";
225
+ } | {
226
+ type: "MANUAL";
227
+ messageList: string[];
228
+ } | {
229
+ type: "NONE";
230
+ };
155
231
  offerEnabled: boolean;
156
232
  offerSettings: {
157
233
  value: number;
@@ -167,9 +243,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
167
243
  variants: {
168
244
  variantId: string;
169
245
  variantWeight: number;
170
- messageList: string[];
171
246
  initialDelaySeconds: number;
172
- messageEnabled: boolean;
247
+ attachedMessage: {
248
+ type: "AI";
249
+ } | {
250
+ type: "MANUAL";
251
+ messageList: string[];
252
+ } | {
253
+ type: "NONE";
254
+ };
173
255
  offerEnabled: boolean;
174
256
  offerSettings: {
175
257
  value: number;
@@ -186,9 +268,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
186
268
  variants: {
187
269
  variantId: string;
188
270
  variantWeight: number;
189
- messageList: string[];
190
271
  initialDelaySeconds: number;
191
- messageEnabled: boolean;
272
+ attachedMessage: {
273
+ type: "AI";
274
+ } | {
275
+ type: "MANUAL";
276
+ messageList: string[];
277
+ } | {
278
+ type: "NONE";
279
+ };
192
280
  offerEnabled: boolean;
193
281
  offerSettings: {
194
282
  value: number;
@@ -210,9 +298,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
210
298
  variants: {
211
299
  variantId: string;
212
300
  variantWeight: number;
213
- messageList: string[];
214
301
  initialDelaySeconds: number;
215
- messageEnabled: boolean;
302
+ attachedMessage: {
303
+ type: "AI";
304
+ } | {
305
+ type: "MANUAL";
306
+ messageList: string[];
307
+ } | {
308
+ type: "NONE";
309
+ };
216
310
  offerEnabled: boolean;
217
311
  offerSettings: {
218
312
  value: number;
@@ -231,9 +325,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
231
325
  variants: {
232
326
  variantId: string;
233
327
  variantWeight: number;
234
- messageList: string[];
235
328
  initialDelaySeconds: number;
236
- messageEnabled: boolean;
329
+ attachedMessage: {
330
+ type: "AI";
331
+ } | {
332
+ type: "MANUAL";
333
+ messageList: string[];
334
+ } | {
335
+ type: "NONE";
336
+ };
237
337
  offerEnabled: boolean;
238
338
  offerSettings: {
239
339
  value: number;
@@ -255,9 +355,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
255
355
  variants: {
256
356
  variantId: string;
257
357
  variantWeight: number;
258
- messageList: string[];
259
358
  initialDelaySeconds: number;
260
- messageEnabled: boolean;
359
+ attachedMessage: {
360
+ type: "AI";
361
+ } | {
362
+ type: "MANUAL";
363
+ messageList: string[];
364
+ } | {
365
+ type: "NONE";
366
+ };
261
367
  offerEnabled: boolean;
262
368
  offerSettings: {
263
369
  value: number;
@@ -276,9 +382,15 @@ export declare const FavoriteMessagesPreferenceSchema: z.ZodObject<{
276
382
  variants: {
277
383
  variantId: string;
278
384
  variantWeight: number;
279
- messageList: string[];
280
385
  initialDelaySeconds: number;
281
- messageEnabled: boolean;
386
+ attachedMessage: {
387
+ type: "AI";
388
+ } | {
389
+ type: "MANUAL";
390
+ messageList: string[];
391
+ } | {
392
+ type: "NONE";
393
+ };
282
394
  offerEnabled: boolean;
283
395
  offerSettings: {
284
396
  value: number;
@@ -1 +1 @@
1
- {"version":3,"file":"FavoriteMessagesPreference.d.ts","sourceRoot":"","sources":["FavoriteMessagesPreference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO3C,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA"}
1
+ {"version":3,"file":"FavoriteMessagesPreference.d.ts","sourceRoot":"","sources":["FavoriteMessagesPreference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO3C,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA"}
@@ -7,8 +7,28 @@ export declare const FavoriteMessagesPreferenceCaseSchema: z.ZodObject<{
7
7
  variantId: z.ZodString;
8
8
  variantWeight: z.ZodNumber;
9
9
  initialDelaySeconds: z.ZodNumber;
10
- messageEnabled: z.ZodBoolean;
11
- messageList: z.ZodArray<z.ZodString, "many">;
10
+ attachedMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11
+ type: z.ZodLiteral<"AI">;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: "AI";
14
+ }, {
15
+ type: "AI";
16
+ }>, z.ZodObject<{
17
+ messageList: z.ZodArray<z.ZodString, "many">;
18
+ type: z.ZodLiteral<"MANUAL">;
19
+ }, "strip", z.ZodTypeAny, {
20
+ type: "MANUAL";
21
+ messageList: string[];
22
+ }, {
23
+ type: "MANUAL";
24
+ messageList: string[];
25
+ }>, z.ZodObject<{
26
+ type: z.ZodLiteral<"NONE">;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: "NONE";
29
+ }, {
30
+ type: "NONE";
31
+ }>]>;
12
32
  offerEnabled: z.ZodBoolean;
13
33
  offerSettings: z.ZodObject<{
14
34
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
@@ -32,9 +52,15 @@ export declare const FavoriteMessagesPreferenceCaseSchema: z.ZodObject<{
32
52
  }, "strip", z.ZodTypeAny, {
33
53
  variantId: string;
34
54
  variantWeight: number;
35
- messageList: string[];
36
55
  initialDelaySeconds: number;
37
- messageEnabled: boolean;
56
+ attachedMessage: {
57
+ type: "AI";
58
+ } | {
59
+ type: "MANUAL";
60
+ messageList: string[];
61
+ } | {
62
+ type: "NONE";
63
+ };
38
64
  offerEnabled: boolean;
39
65
  offerSettings: {
40
66
  value: number;
@@ -46,9 +72,15 @@ export declare const FavoriteMessagesPreferenceCaseSchema: z.ZodObject<{
46
72
  }, {
47
73
  variantId: string;
48
74
  variantWeight: number;
49
- messageList: string[];
50
75
  initialDelaySeconds: number;
51
- messageEnabled: boolean;
76
+ attachedMessage: {
77
+ type: "AI";
78
+ } | {
79
+ type: "MANUAL";
80
+ messageList: string[];
81
+ } | {
82
+ type: "NONE";
83
+ };
52
84
  offerEnabled: boolean;
53
85
  offerSettings: {
54
86
  value: number;
@@ -64,9 +96,15 @@ export declare const FavoriteMessagesPreferenceCaseSchema: z.ZodObject<{
64
96
  variants: {
65
97
  variantId: string;
66
98
  variantWeight: number;
67
- messageList: string[];
68
99
  initialDelaySeconds: number;
69
- messageEnabled: boolean;
100
+ attachedMessage: {
101
+ type: "AI";
102
+ } | {
103
+ type: "MANUAL";
104
+ messageList: string[];
105
+ } | {
106
+ type: "NONE";
107
+ };
70
108
  offerEnabled: boolean;
71
109
  offerSettings: {
72
110
  value: number;
@@ -83,9 +121,15 @@ export declare const FavoriteMessagesPreferenceCaseSchema: z.ZodObject<{
83
121
  variants: {
84
122
  variantId: string;
85
123
  variantWeight: number;
86
- messageList: string[];
87
124
  initialDelaySeconds: number;
88
- messageEnabled: boolean;
125
+ attachedMessage: {
126
+ type: "AI";
127
+ } | {
128
+ type: "MANUAL";
129
+ messageList: string[];
130
+ } | {
131
+ type: "NONE";
132
+ };
89
133
  offerEnabled: boolean;
90
134
  offerSettings: {
91
135
  value: number;
@@ -1 +1 @@
1
- {"version":3,"file":"FavoriteMessagesPreferenceCase.d.ts","sourceRoot":"","sources":["FavoriteMessagesPreferenceCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK/C,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA"}
1
+ {"version":3,"file":"FavoriteMessagesPreferenceCase.d.ts","sourceRoot":"","sources":["FavoriteMessagesPreferenceCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK/C,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA"}
@@ -3,8 +3,28 @@ export declare const FavoriteMessagesPreferenceVariantSchema: z.ZodObject<{
3
3
  variantId: z.ZodString;
4
4
  variantWeight: z.ZodNumber;
5
5
  initialDelaySeconds: z.ZodNumber;
6
- messageEnabled: z.ZodBoolean;
7
- messageList: z.ZodArray<z.ZodString, "many">;
6
+ attachedMessage: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7
+ type: z.ZodLiteral<"AI">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "AI";
10
+ }, {
11
+ type: "AI";
12
+ }>, z.ZodObject<{
13
+ messageList: z.ZodArray<z.ZodString, "many">;
14
+ type: z.ZodLiteral<"MANUAL">;
15
+ }, "strip", z.ZodTypeAny, {
16
+ type: "MANUAL";
17
+ messageList: string[];
18
+ }, {
19
+ type: "MANUAL";
20
+ messageList: string[];
21
+ }>, z.ZodObject<{
22
+ type: z.ZodLiteral<"NONE">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: "NONE";
25
+ }, {
26
+ type: "NONE";
27
+ }>]>;
8
28
  offerEnabled: z.ZodBoolean;
9
29
  offerSettings: z.ZodObject<{
10
30
  type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
@@ -28,9 +48,15 @@ export declare const FavoriteMessagesPreferenceVariantSchema: z.ZodObject<{
28
48
  }, "strip", z.ZodTypeAny, {
29
49
  variantId: string;
30
50
  variantWeight: number;
31
- messageList: string[];
32
51
  initialDelaySeconds: number;
33
- messageEnabled: boolean;
52
+ attachedMessage: {
53
+ type: "AI";
54
+ } | {
55
+ type: "MANUAL";
56
+ messageList: string[];
57
+ } | {
58
+ type: "NONE";
59
+ };
34
60
  offerEnabled: boolean;
35
61
  offerSettings: {
36
62
  value: number;
@@ -42,9 +68,15 @@ export declare const FavoriteMessagesPreferenceVariantSchema: z.ZodObject<{
42
68
  }, {
43
69
  variantId: string;
44
70
  variantWeight: number;
45
- messageList: string[];
46
71
  initialDelaySeconds: number;
47
- messageEnabled: boolean;
72
+ attachedMessage: {
73
+ type: "AI";
74
+ } | {
75
+ type: "MANUAL";
76
+ messageList: string[];
77
+ } | {
78
+ type: "NONE";
79
+ };
48
80
  offerEnabled: boolean;
49
81
  offerSettings: {
50
82
  value: number;
@@ -1 +1 @@
1
- {"version":3,"file":"FavoriteMessagesPreferenceVariant.d.ts","sourceRoot":"","sources":["FavoriteMessagesPreferenceVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQlD,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA"}
1
+ {"version":3,"file":"FavoriteMessagesPreferenceVariant.d.ts","sourceRoot":"","sources":["FavoriteMessagesPreferenceVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlD,CAAA;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod";
2
+ import { AttachedMessageSchema } from "./AttachedMessage";
2
3
  import { PreferencePricePayloadSchema } from "../offers/PreferencePricePayload";
3
4
  export const FavoriteMessagesPreferenceVariantSchema = z.object({
4
5
  variantId: z.string(),
5
6
  variantWeight: z.number().int(),
6
7
  initialDelaySeconds: z.number(),
7
- messageEnabled: z.boolean(),
8
- messageList: z.array(z.string()),
8
+ attachedMessage: AttachedMessageSchema,
9
9
  offerEnabled: z.boolean(),
10
10
  offerSettings: PreferencePricePayloadSchema
11
11
  });
@@ -1 +1 @@
1
- {"version":3,"file":"FavoriteMessagesPreferenceVariant.js","sourceRoot":"","sources":["FavoriteMessagesPreferenceVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,4BAA4B,EAAC,MAAM,kCAAkC,CAAA;AAE7E,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,aAAa,EAAE,4BAA4B;CAC9C,CAAC,CAAA"}
1
+ {"version":3,"file":"FavoriteMessagesPreferenceVariant.js","sourceRoot":"","sources":["FavoriteMessagesPreferenceVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,qBAAqB,EAAC,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAC,4BAA4B,EAAC,MAAM,kCAAkC,CAAA;AAE7E,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,eAAe,EAAE,qBAAqB;IACtC,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,aAAa,EAAE,4BAA4B;CAC9C,CAAC,CAAA"}
@@ -1,12 +1,12 @@
1
1
  import {z} from "zod"
2
+ import {AttachedMessageSchema} from "./AttachedMessage"
2
3
  import {PreferencePricePayloadSchema} from "../offers/PreferencePricePayload"
3
4
 
4
5
  export const FavoriteMessagesPreferenceVariantSchema = z.object({
5
6
  variantId: z.string(),
6
7
  variantWeight: z.number().int(),
7
8
  initialDelaySeconds: z.number(),
8
- messageEnabled: z.boolean(),
9
- messageList: z.array(z.string()),
9
+ attachedMessage: AttachedMessageSchema,
10
10
  offerEnabled: z.boolean(),
11
11
  offerSettings: PreferencePricePayloadSchema
12
12
  })