controlresell 2.16.0 → 2.16.2

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 (41) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +8 -8
  3. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js +1 -1
  4. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js.map +1 -1
  5. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.ts +1 -1
  6. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerPreference.d.ts +148 -29
  7. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerPreference.d.ts.map +1 -1
  8. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerPreference.js +2 -0
  9. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerPreference.js.map +1 -1
  10. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerPreference.ts +2 -0
  11. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerProfileCase.d.ts +3 -0
  12. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerProfileCase.d.ts.map +1 -1
  13. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerProfileCase.js +1 -0
  14. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerProfileCase.js.map +1 -1
  15. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerProfileCase.ts +1 -0
  16. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerQuestionCase.d.ts +0 -3
  17. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerQuestionCase.d.ts.map +1 -1
  18. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerQuestionCase.js +0 -1
  19. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerQuestionCase.js.map +1 -1
  20. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerQuestionCase.ts +0 -1
  21. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerTriggerCase.d.ts +4 -4
  22. package/src/com/controlresell/models/conversations/preferences/AutomaticAnswerTriggerVariant.d.ts +2 -2
  23. package/src/com/controlresell/models/conversations/preferences/FavoriteMessagesPreference.d.ts +140 -28
  24. package/src/com/controlresell/models/conversations/preferences/FavoriteMessagesPreference.d.ts.map +1 -1
  25. package/src/com/controlresell/models/conversations/preferences/FavoriteMessagesPreferenceCase.d.ts +54 -10
  26. package/src/com/controlresell/models/conversations/preferences/FavoriteMessagesPreferenceCase.d.ts.map +1 -1
  27. package/src/com/controlresell/models/conversations/preferences/FavoriteMessagesPreferenceVariant.d.ts +38 -6
  28. package/src/com/controlresell/models/conversations/preferences/FavoriteMessagesPreferenceVariant.d.ts.map +1 -1
  29. package/src/com/controlresell/models/conversations/preferences/FavoriteMessagesPreferenceVariant.js +2 -2
  30. package/src/com/controlresell/models/conversations/preferences/FavoriteMessagesPreferenceVariant.js.map +1 -1
  31. package/src/com/controlresell/models/conversations/preferences/FavoriteMessagesPreferenceVariant.ts +2 -2
  32. package/src/index.d.ts +0 -1
  33. package/src/index.d.ts.map +1 -1
  34. package/src/index.js +0 -1
  35. package/src/index.js.map +1 -1
  36. package/src/index.ts +0 -1
  37. package/src/com/controlresell/inbox/models/application/ControlResellInboxEnvironment.d.ts +0 -4
  38. package/src/com/controlresell/inbox/models/application/ControlResellInboxEnvironment.d.ts.map +0 -1
  39. package/src/com/controlresell/inbox/models/application/ControlResellInboxEnvironment.js +0 -5
  40. package/src/com/controlresell/inbox/models/application/ControlResellInboxEnvironment.js.map +0 -1
  41. package/src/com/controlresell/inbox/models/application/ControlResellInboxEnvironment.ts +0 -6
@@ -3,6 +3,7 @@ import { AutomaticAnswerProfileVariantSchema } from "./AutomaticAnswerProfileVar
3
3
  export const AutomaticAnswerProfileCaseSchema = z.object({
4
4
  caseId: z.string(),
5
5
  enabled: z.boolean(),
6
+ disableOnManualMessage: z.boolean(),
6
7
  savedFiltersId: z.string().uuid().nullish(),
7
8
  variants: z.array(AutomaticAnswerProfileVariantSchema)
8
9
  });
@@ -1 +1 @@
1
- {"version":3,"file":"AutomaticAnswerProfileCase.js","sourceRoot":"","sources":["AutomaticAnswerProfileCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,mCAAmC,EAAC,MAAM,iCAAiC,CAAA;AAEnF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IAC3C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC;CACzD,CAAC,CAAA"}
1
+ {"version":3,"file":"AutomaticAnswerProfileCase.js","sourceRoot":"","sources":["AutomaticAnswerProfileCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,mCAAmC,EAAC,MAAM,iCAAiC,CAAA;AAEnF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE;IACnC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IAC3C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC;CACzD,CAAC,CAAA"}
@@ -4,6 +4,7 @@ import {AutomaticAnswerProfileVariantSchema} from "./AutomaticAnswerProfileVaria
4
4
  export const AutomaticAnswerProfileCaseSchema = z.object({
5
5
  caseId: z.string(),
6
6
  enabled: z.boolean(),
7
+ disableOnManualMessage: z.boolean(),
7
8
  savedFiltersId: z.string().uuid().nullish(),
8
9
  variants: z.array(AutomaticAnswerProfileVariantSchema)
9
10
  })
@@ -3,7 +3,6 @@ export declare const AutomaticAnswerQuestionCaseSchema: z.ZodObject<{
3
3
  caseId: z.ZodString;
4
4
  enabled: z.ZodBoolean;
5
5
  savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- disableOnManualMessage: z.ZodBoolean;
7
6
  question: z.ZodString;
8
7
  variants: z.ZodArray<z.ZodObject<{
9
8
  variantId: z.ZodString;
@@ -27,7 +26,6 @@ export declare const AutomaticAnswerQuestionCaseSchema: z.ZodObject<{
27
26
  variantWeight: number;
28
27
  exampleAnswersList: string[];
29
28
  }[];
30
- disableOnManualMessage: boolean;
31
29
  savedFiltersId?: string | null | undefined;
32
30
  }, {
33
31
  enabled: boolean;
@@ -38,7 +36,6 @@ export declare const AutomaticAnswerQuestionCaseSchema: z.ZodObject<{
38
36
  variantWeight: number;
39
37
  exampleAnswersList: string[];
40
38
  }[];
41
- disableOnManualMessage: boolean;
42
39
  savedFiltersId?: string | null | undefined;
43
40
  }>;
44
41
  export type AutomaticAnswerQuestionCase = z.infer<typeof AutomaticAnswerQuestionCaseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"AutomaticAnswerQuestionCase.d.ts","sourceRoot":"","sources":["AutomaticAnswerQuestionCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO5C,CAAA;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA"}
1
+ {"version":3,"file":"AutomaticAnswerQuestionCase.d.ts","sourceRoot":"","sources":["AutomaticAnswerQuestionCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM5C,CAAA;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA"}
@@ -4,7 +4,6 @@ export const AutomaticAnswerQuestionCaseSchema = z.object({
4
4
  caseId: z.string(),
5
5
  enabled: z.boolean(),
6
6
  savedFiltersId: z.string().uuid().nullish(),
7
- disableOnManualMessage: z.boolean(),
8
7
  question: z.string(),
9
8
  variants: z.array(AutomaticAnswerQuestionVariantSchema)
10
9
  });
@@ -1 +1 @@
1
- {"version":3,"file":"AutomaticAnswerQuestionCase.js","sourceRoot":"","sources":["AutomaticAnswerQuestionCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,oCAAoC,EAAC,MAAM,kCAAkC,CAAA;AAErF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IAC3C,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,oCAAoC,CAAC;CAC1D,CAAC,CAAA"}
1
+ {"version":3,"file":"AutomaticAnswerQuestionCase.js","sourceRoot":"","sources":["AutomaticAnswerQuestionCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,oCAAoC,EAAC,MAAM,kCAAkC,CAAA;AAErF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IAC3C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,oCAAoC,CAAC;CAC1D,CAAC,CAAA"}
@@ -5,7 +5,6 @@ export const AutomaticAnswerQuestionCaseSchema = z.object({
5
5
  caseId: z.string(),
6
6
  enabled: z.boolean(),
7
7
  savedFiltersId: z.string().uuid().nullish(),
8
- disableOnManualMessage: z.boolean(),
9
8
  question: z.string(),
10
9
  variants: z.array(AutomaticAnswerQuestionVariantSchema)
11
10
  })
@@ -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
  })
package/src/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export { ControlResellInboxEnvironmentSchema, ControlResellInboxEnvironment } from "./com/controlresell/inbox/models/application/ControlResellInboxEnvironment";
2
1
  export { CreatePreferencePayloadSchema, CreatePreferencePayload } from "./com/controlresell/auth/models/preferences/CreatePreferencePayload";
3
2
  export { PreferenceWithCaseSchema, PreferenceWithCase } from "./com/controlresell/auth/models/preferences/PreferenceWithCase";
4
3
  export { PreferenceCaseVariantDecodedPayloadSchema, PreferenceCaseVariantDecodedPayload } from "./com/controlresell/auth/models/preferences/variants/PreferenceCaseVariantDecodedPayload";