@voltade/envoy-sdk 1.3.1 → 1.3.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.
- package/dist/client.d.ts +5 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -1
- package/dist/client.js.map +1 -1
- package/dist/resources/base-resource.d.ts +9 -0
- package/dist/resources/base-resource.d.ts.map +1 -0
- package/dist/resources/base-resource.js +9 -0
- package/dist/resources/base-resource.js.map +1 -0
- package/dist/resources/campaigns/index.d.ts +123 -0
- package/dist/resources/campaigns/index.d.ts.map +1 -0
- package/dist/resources/campaigns/index.js +159 -0
- package/dist/resources/campaigns/index.js.map +1 -0
- package/dist/resources/campaigns/types.d.ts +757 -0
- package/dist/resources/campaigns/types.d.ts.map +1 -0
- package/dist/resources/campaigns/types.js +132 -0
- package/dist/resources/campaigns/types.js.map +1 -0
- package/dist/resources/companies/index.d.ts +1 -7
- package/dist/resources/companies/index.d.ts.map +1 -1
- package/dist/resources/companies/index.js +1 -8
- package/dist/resources/companies/index.js.map +1 -1
- package/dist/resources/companies/types.d.ts +14 -14
- package/dist/resources/company-members/index.d.ts +1 -8
- package/dist/resources/company-members/index.d.ts.map +1 -1
- package/dist/resources/company-members/index.js +1 -8
- package/dist/resources/company-members/index.js.map +1 -1
- package/dist/resources/contacts/index.d.ts +1 -8
- package/dist/resources/contacts/index.d.ts.map +1 -1
- package/dist/resources/contacts/index.js +1 -8
- package/dist/resources/contacts/index.js.map +1 -1
- package/dist/resources/conversations/index.d.ts +1 -8
- package/dist/resources/conversations/index.d.ts.map +1 -1
- package/dist/resources/conversations/index.js +1 -8
- package/dist/resources/conversations/index.js.map +1 -1
- package/dist/resources/conversations/types.d.ts +67 -67
- package/dist/resources/inboxes/index.d.ts +1 -8
- package/dist/resources/inboxes/index.d.ts.map +1 -1
- package/dist/resources/inboxes/index.js +1 -8
- package/dist/resources/inboxes/index.js.map +1 -1
- package/dist/resources/inboxes/types.d.ts +12 -12
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -0
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/orders/index.d.ts +1 -8
- package/dist/resources/orders/index.d.ts.map +1 -1
- package/dist/resources/orders/index.js +1 -8
- package/dist/resources/orders/index.js.map +1 -1
- package/dist/resources/orders/types.d.ts +116 -116
- package/dist/resources/webhooks/types.d.ts +753 -753
- package/package.json +1 -1
|
@@ -0,0 +1,757 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Zod Schemas for Campaigns
|
|
4
|
+
*/
|
|
5
|
+
export declare const CampaignStatusSchema: z.ZodEnum<["active", "completed", "scheduled"]>;
|
|
6
|
+
export declare const SendTimingStrategySchema: z.ZodEnum<["manual", "optimal_inbox", "optimal_individual"]>;
|
|
7
|
+
export declare const AudienceTypeSchema: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
8
|
+
export declare const AudienceEntrySchema: z.ZodObject<{
|
|
9
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
12
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
15
|
+
name: z.ZodOptional<z.ZodString>;
|
|
16
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
17
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
18
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
19
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
20
|
+
name: z.ZodOptional<z.ZodString>;
|
|
21
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
22
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
23
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
24
|
+
export declare const TemplateCategorySchema: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
25
|
+
export declare const WhatsAppTemplateParamsSchema: z.ZodObject<{
|
|
26
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
27
|
+
language: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
30
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
name: string;
|
|
33
|
+
processed_params: Record<string, string>;
|
|
34
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
35
|
+
language: string;
|
|
36
|
+
media_id?: string | null | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
name: string;
|
|
39
|
+
processed_params: Record<string, string>;
|
|
40
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
41
|
+
language: string;
|
|
42
|
+
media_id?: string | null | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const TriggerRulesSchema: z.ZodObject<{
|
|
45
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
47
|
+
language: z.ZodString;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
50
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
name: string;
|
|
53
|
+
processed_params: Record<string, string>;
|
|
54
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
55
|
+
language: string;
|
|
56
|
+
media_id?: string | null | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
name: string;
|
|
59
|
+
processed_params: Record<string, string>;
|
|
60
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
61
|
+
language: string;
|
|
62
|
+
media_id?: string | null | undefined;
|
|
63
|
+
}>>;
|
|
64
|
+
event: z.ZodOptional<z.ZodString>;
|
|
65
|
+
url: z.ZodOptional<z.ZodString>;
|
|
66
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
67
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
68
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
69
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
70
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
72
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
74
|
+
language: z.ZodString;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
77
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
name: string;
|
|
80
|
+
processed_params: Record<string, string>;
|
|
81
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
82
|
+
language: string;
|
|
83
|
+
media_id?: string | null | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
name: string;
|
|
86
|
+
processed_params: Record<string, string>;
|
|
87
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
88
|
+
language: string;
|
|
89
|
+
media_id?: string | null | undefined;
|
|
90
|
+
}>>;
|
|
91
|
+
event: z.ZodOptional<z.ZodString>;
|
|
92
|
+
url: z.ZodOptional<z.ZodString>;
|
|
93
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
94
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
96
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
97
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
99
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
101
|
+
language: z.ZodString;
|
|
102
|
+
name: z.ZodString;
|
|
103
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
104
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
name: string;
|
|
107
|
+
processed_params: Record<string, string>;
|
|
108
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
109
|
+
language: string;
|
|
110
|
+
media_id?: string | null | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
name: string;
|
|
113
|
+
processed_params: Record<string, string>;
|
|
114
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
115
|
+
language: string;
|
|
116
|
+
media_id?: string | null | undefined;
|
|
117
|
+
}>>;
|
|
118
|
+
event: z.ZodOptional<z.ZodString>;
|
|
119
|
+
url: z.ZodOptional<z.ZodString>;
|
|
120
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
121
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
122
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
123
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
124
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
126
|
+
export declare const CreateCampaignPayloadSchema: z.ZodObject<{
|
|
127
|
+
title: z.ZodString;
|
|
128
|
+
message: z.ZodString;
|
|
129
|
+
inbox_id: z.ZodNumber;
|
|
130
|
+
description: z.ZodOptional<z.ZodString>;
|
|
131
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
sender_id: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
scheduled_at: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
134
|
+
campaign_status: z.ZodOptional<z.ZodEnum<["active", "completed", "scheduled"]>>;
|
|
135
|
+
send_timing_strategy: z.ZodOptional<z.ZodEnum<["manual", "optimal_inbox", "optimal_individual"]>>;
|
|
136
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
138
|
+
name: z.ZodOptional<z.ZodString>;
|
|
139
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
140
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
141
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
142
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
143
|
+
name: z.ZodOptional<z.ZodString>;
|
|
144
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
145
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
146
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
147
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
148
|
+
name: z.ZodOptional<z.ZodString>;
|
|
149
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
150
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
151
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
152
|
+
trigger_rules: z.ZodOptional<z.ZodObject<{
|
|
153
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
155
|
+
language: z.ZodString;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
158
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
name: string;
|
|
161
|
+
processed_params: Record<string, string>;
|
|
162
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
163
|
+
language: string;
|
|
164
|
+
media_id?: string | null | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
name: string;
|
|
167
|
+
processed_params: Record<string, string>;
|
|
168
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
169
|
+
language: string;
|
|
170
|
+
media_id?: string | null | undefined;
|
|
171
|
+
}>>;
|
|
172
|
+
event: z.ZodOptional<z.ZodString>;
|
|
173
|
+
url: z.ZodOptional<z.ZodString>;
|
|
174
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
175
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
176
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
177
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
178
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
180
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
182
|
+
language: z.ZodString;
|
|
183
|
+
name: z.ZodString;
|
|
184
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
185
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
name: string;
|
|
188
|
+
processed_params: Record<string, string>;
|
|
189
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
190
|
+
language: string;
|
|
191
|
+
media_id?: string | null | undefined;
|
|
192
|
+
}, {
|
|
193
|
+
name: string;
|
|
194
|
+
processed_params: Record<string, string>;
|
|
195
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
196
|
+
language: string;
|
|
197
|
+
media_id?: string | null | undefined;
|
|
198
|
+
}>>;
|
|
199
|
+
event: z.ZodOptional<z.ZodString>;
|
|
200
|
+
url: z.ZodOptional<z.ZodString>;
|
|
201
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
202
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
203
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
204
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
205
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
206
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
207
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
208
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
209
|
+
language: z.ZodString;
|
|
210
|
+
name: z.ZodString;
|
|
211
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
212
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
name: string;
|
|
215
|
+
processed_params: Record<string, string>;
|
|
216
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
217
|
+
language: string;
|
|
218
|
+
media_id?: string | null | undefined;
|
|
219
|
+
}, {
|
|
220
|
+
name: string;
|
|
221
|
+
processed_params: Record<string, string>;
|
|
222
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
223
|
+
language: string;
|
|
224
|
+
media_id?: string | null | undefined;
|
|
225
|
+
}>>;
|
|
226
|
+
event: z.ZodOptional<z.ZodString>;
|
|
227
|
+
url: z.ZodOptional<z.ZodString>;
|
|
228
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
229
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
230
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
231
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
232
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
message: string;
|
|
236
|
+
title: string;
|
|
237
|
+
inbox_id: number;
|
|
238
|
+
description?: string | undefined;
|
|
239
|
+
enabled?: boolean | undefined;
|
|
240
|
+
sender_id?: number | undefined;
|
|
241
|
+
scheduled_at?: string | number | undefined;
|
|
242
|
+
campaign_status?: "active" | "completed" | "scheduled" | undefined;
|
|
243
|
+
send_timing_strategy?: "manual" | "optimal_inbox" | "optimal_individual" | undefined;
|
|
244
|
+
audience?: z.objectOutputType<{
|
|
245
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
246
|
+
name: z.ZodOptional<z.ZodString>;
|
|
247
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
248
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
249
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
250
|
+
trigger_rules?: z.objectOutputType<{
|
|
251
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
253
|
+
language: z.ZodString;
|
|
254
|
+
name: z.ZodString;
|
|
255
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
256
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
name: string;
|
|
259
|
+
processed_params: Record<string, string>;
|
|
260
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
261
|
+
language: string;
|
|
262
|
+
media_id?: string | null | undefined;
|
|
263
|
+
}, {
|
|
264
|
+
name: string;
|
|
265
|
+
processed_params: Record<string, string>;
|
|
266
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
267
|
+
language: string;
|
|
268
|
+
media_id?: string | null | undefined;
|
|
269
|
+
}>>;
|
|
270
|
+
event: z.ZodOptional<z.ZodString>;
|
|
271
|
+
url: z.ZodOptional<z.ZodString>;
|
|
272
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
273
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
274
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
275
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
276
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
277
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
278
|
+
}, {
|
|
279
|
+
message: string;
|
|
280
|
+
title: string;
|
|
281
|
+
inbox_id: number;
|
|
282
|
+
description?: string | undefined;
|
|
283
|
+
enabled?: boolean | undefined;
|
|
284
|
+
sender_id?: number | undefined;
|
|
285
|
+
scheduled_at?: string | number | undefined;
|
|
286
|
+
campaign_status?: "active" | "completed" | "scheduled" | undefined;
|
|
287
|
+
send_timing_strategy?: "manual" | "optimal_inbox" | "optimal_individual" | undefined;
|
|
288
|
+
audience?: z.objectInputType<{
|
|
289
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
290
|
+
name: z.ZodOptional<z.ZodString>;
|
|
291
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
292
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
293
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
294
|
+
trigger_rules?: z.objectInputType<{
|
|
295
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
296
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
297
|
+
language: z.ZodString;
|
|
298
|
+
name: z.ZodString;
|
|
299
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
300
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
name: string;
|
|
303
|
+
processed_params: Record<string, string>;
|
|
304
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
305
|
+
language: string;
|
|
306
|
+
media_id?: string | null | undefined;
|
|
307
|
+
}, {
|
|
308
|
+
name: string;
|
|
309
|
+
processed_params: Record<string, string>;
|
|
310
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
311
|
+
language: string;
|
|
312
|
+
media_id?: string | null | undefined;
|
|
313
|
+
}>>;
|
|
314
|
+
event: z.ZodOptional<z.ZodString>;
|
|
315
|
+
url: z.ZodOptional<z.ZodString>;
|
|
316
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
317
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
318
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
319
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
320
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
321
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
322
|
+
}>;
|
|
323
|
+
export declare const CampaignInboxSchema: z.ZodObject<{
|
|
324
|
+
id: z.ZodNumber;
|
|
325
|
+
name: z.ZodString;
|
|
326
|
+
channel_type: z.ZodString;
|
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
name: string;
|
|
329
|
+
id: number;
|
|
330
|
+
channel_type: string;
|
|
331
|
+
}, {
|
|
332
|
+
name: string;
|
|
333
|
+
id: number;
|
|
334
|
+
channel_type: string;
|
|
335
|
+
}>;
|
|
336
|
+
export declare const CampaignSenderSchema: z.ZodObject<{
|
|
337
|
+
id: z.ZodNumber;
|
|
338
|
+
name: z.ZodString;
|
|
339
|
+
availability_status: z.ZodString;
|
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
|
341
|
+
name: string;
|
|
342
|
+
id: number;
|
|
343
|
+
availability_status: string;
|
|
344
|
+
}, {
|
|
345
|
+
name: string;
|
|
346
|
+
id: number;
|
|
347
|
+
availability_status: string;
|
|
348
|
+
}>;
|
|
349
|
+
export declare const CampaignResponseSchema: z.ZodObject<{
|
|
350
|
+
id: z.ZodNumber;
|
|
351
|
+
title: z.ZodString;
|
|
352
|
+
description: z.ZodOptional<z.ZodString>;
|
|
353
|
+
account_id: z.ZodNumber;
|
|
354
|
+
inbox: z.ZodObject<{
|
|
355
|
+
id: z.ZodNumber;
|
|
356
|
+
name: z.ZodString;
|
|
357
|
+
channel_type: z.ZodString;
|
|
358
|
+
}, "strip", z.ZodTypeAny, {
|
|
359
|
+
name: string;
|
|
360
|
+
id: number;
|
|
361
|
+
channel_type: string;
|
|
362
|
+
}, {
|
|
363
|
+
name: string;
|
|
364
|
+
id: number;
|
|
365
|
+
channel_type: string;
|
|
366
|
+
}>;
|
|
367
|
+
sender: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
id: z.ZodNumber;
|
|
369
|
+
name: z.ZodString;
|
|
370
|
+
availability_status: z.ZodString;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
|
+
name: string;
|
|
373
|
+
id: number;
|
|
374
|
+
availability_status: string;
|
|
375
|
+
}, {
|
|
376
|
+
name: string;
|
|
377
|
+
id: number;
|
|
378
|
+
availability_status: string;
|
|
379
|
+
}>>;
|
|
380
|
+
message: z.ZodString;
|
|
381
|
+
campaign_status: z.ZodEnum<["active", "completed", "scheduled"]>;
|
|
382
|
+
enabled: z.ZodBoolean;
|
|
383
|
+
campaign_type: z.ZodString;
|
|
384
|
+
send_timing_strategy: z.ZodEnum<["manual", "optimal_inbox", "optimal_individual"]>;
|
|
385
|
+
scheduled_at: z.ZodOptional<z.ZodNumber>;
|
|
386
|
+
actual_execution_time: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
audience: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
388
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
389
|
+
name: z.ZodOptional<z.ZodString>;
|
|
390
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
391
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
392
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
393
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
394
|
+
name: z.ZodOptional<z.ZodString>;
|
|
395
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
396
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
397
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
398
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
399
|
+
name: z.ZodOptional<z.ZodString>;
|
|
400
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
401
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
402
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
403
|
+
trigger_rules: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
405
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
406
|
+
language: z.ZodString;
|
|
407
|
+
name: z.ZodString;
|
|
408
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
409
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
name: string;
|
|
412
|
+
processed_params: Record<string, string>;
|
|
413
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
414
|
+
language: string;
|
|
415
|
+
media_id?: string | null | undefined;
|
|
416
|
+
}, {
|
|
417
|
+
name: string;
|
|
418
|
+
processed_params: Record<string, string>;
|
|
419
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
420
|
+
language: string;
|
|
421
|
+
media_id?: string | null | undefined;
|
|
422
|
+
}>>;
|
|
423
|
+
event: z.ZodOptional<z.ZodString>;
|
|
424
|
+
url: z.ZodOptional<z.ZodString>;
|
|
425
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
426
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
427
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
428
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
429
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
430
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
431
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
433
|
+
language: z.ZodString;
|
|
434
|
+
name: z.ZodString;
|
|
435
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
436
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
name: string;
|
|
439
|
+
processed_params: Record<string, string>;
|
|
440
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
441
|
+
language: string;
|
|
442
|
+
media_id?: string | null | undefined;
|
|
443
|
+
}, {
|
|
444
|
+
name: string;
|
|
445
|
+
processed_params: Record<string, string>;
|
|
446
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
447
|
+
language: string;
|
|
448
|
+
media_id?: string | null | undefined;
|
|
449
|
+
}>>;
|
|
450
|
+
event: z.ZodOptional<z.ZodString>;
|
|
451
|
+
url: z.ZodOptional<z.ZodString>;
|
|
452
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
453
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
454
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
455
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
456
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
457
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
458
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
459
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
460
|
+
language: z.ZodString;
|
|
461
|
+
name: z.ZodString;
|
|
462
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
463
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
name: string;
|
|
466
|
+
processed_params: Record<string, string>;
|
|
467
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
468
|
+
language: string;
|
|
469
|
+
media_id?: string | null | undefined;
|
|
470
|
+
}, {
|
|
471
|
+
name: string;
|
|
472
|
+
processed_params: Record<string, string>;
|
|
473
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
474
|
+
language: string;
|
|
475
|
+
media_id?: string | null | undefined;
|
|
476
|
+
}>>;
|
|
477
|
+
event: z.ZodOptional<z.ZodString>;
|
|
478
|
+
url: z.ZodOptional<z.ZodString>;
|
|
479
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
480
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
481
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
482
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
483
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
484
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
485
|
+
sent_count: z.ZodNumber;
|
|
486
|
+
delivered_count: z.ZodNumber;
|
|
487
|
+
read_count: z.ZodNumber;
|
|
488
|
+
failed_count: z.ZodNumber;
|
|
489
|
+
replied_count: z.ZodNumber;
|
|
490
|
+
created_at: z.ZodString;
|
|
491
|
+
updated_at: z.ZodString;
|
|
492
|
+
}, "strip", z.ZodTypeAny, {
|
|
493
|
+
id: number;
|
|
494
|
+
message: string;
|
|
495
|
+
title: string;
|
|
496
|
+
enabled: boolean;
|
|
497
|
+
campaign_status: "active" | "completed" | "scheduled";
|
|
498
|
+
send_timing_strategy: "manual" | "optimal_inbox" | "optimal_individual";
|
|
499
|
+
account_id: number;
|
|
500
|
+
inbox: {
|
|
501
|
+
name: string;
|
|
502
|
+
id: number;
|
|
503
|
+
channel_type: string;
|
|
504
|
+
};
|
|
505
|
+
campaign_type: string;
|
|
506
|
+
sent_count: number;
|
|
507
|
+
delivered_count: number;
|
|
508
|
+
read_count: number;
|
|
509
|
+
failed_count: number;
|
|
510
|
+
replied_count: number;
|
|
511
|
+
created_at: string;
|
|
512
|
+
updated_at: string;
|
|
513
|
+
description?: string | undefined;
|
|
514
|
+
scheduled_at?: number | undefined;
|
|
515
|
+
audience?: z.objectOutputType<{
|
|
516
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
517
|
+
name: z.ZodOptional<z.ZodString>;
|
|
518
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
519
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
520
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
521
|
+
trigger_rules?: z.objectOutputType<{
|
|
522
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
523
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
524
|
+
language: z.ZodString;
|
|
525
|
+
name: z.ZodString;
|
|
526
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
527
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
|
+
}, "strip", z.ZodTypeAny, {
|
|
529
|
+
name: string;
|
|
530
|
+
processed_params: Record<string, string>;
|
|
531
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
532
|
+
language: string;
|
|
533
|
+
media_id?: string | null | undefined;
|
|
534
|
+
}, {
|
|
535
|
+
name: string;
|
|
536
|
+
processed_params: Record<string, string>;
|
|
537
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
538
|
+
language: string;
|
|
539
|
+
media_id?: string | null | undefined;
|
|
540
|
+
}>>;
|
|
541
|
+
event: z.ZodOptional<z.ZodString>;
|
|
542
|
+
url: z.ZodOptional<z.ZodString>;
|
|
543
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
544
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
545
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
546
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
547
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
548
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
549
|
+
sender?: {
|
|
550
|
+
name: string;
|
|
551
|
+
id: number;
|
|
552
|
+
availability_status: string;
|
|
553
|
+
} | undefined;
|
|
554
|
+
actual_execution_time?: number | undefined;
|
|
555
|
+
}, {
|
|
556
|
+
id: number;
|
|
557
|
+
message: string;
|
|
558
|
+
title: string;
|
|
559
|
+
enabled: boolean;
|
|
560
|
+
campaign_status: "active" | "completed" | "scheduled";
|
|
561
|
+
send_timing_strategy: "manual" | "optimal_inbox" | "optimal_individual";
|
|
562
|
+
account_id: number;
|
|
563
|
+
inbox: {
|
|
564
|
+
name: string;
|
|
565
|
+
id: number;
|
|
566
|
+
channel_type: string;
|
|
567
|
+
};
|
|
568
|
+
campaign_type: string;
|
|
569
|
+
sent_count: number;
|
|
570
|
+
delivered_count: number;
|
|
571
|
+
read_count: number;
|
|
572
|
+
failed_count: number;
|
|
573
|
+
replied_count: number;
|
|
574
|
+
created_at: string;
|
|
575
|
+
updated_at: string;
|
|
576
|
+
description?: string | undefined;
|
|
577
|
+
scheduled_at?: number | undefined;
|
|
578
|
+
audience?: z.objectInputType<{
|
|
579
|
+
type: z.ZodEnum<["Contact", "PhoneNumber"]>;
|
|
580
|
+
name: z.ZodOptional<z.ZodString>;
|
|
581
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
582
|
+
processed_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
583
|
+
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
584
|
+
trigger_rules?: z.objectInputType<{
|
|
585
|
+
template_params: z.ZodOptional<z.ZodObject<{
|
|
586
|
+
category: z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>;
|
|
587
|
+
language: z.ZodString;
|
|
588
|
+
name: z.ZodString;
|
|
589
|
+
processed_params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
590
|
+
media_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
591
|
+
}, "strip", z.ZodTypeAny, {
|
|
592
|
+
name: string;
|
|
593
|
+
processed_params: Record<string, string>;
|
|
594
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
595
|
+
language: string;
|
|
596
|
+
media_id?: string | null | undefined;
|
|
597
|
+
}, {
|
|
598
|
+
name: string;
|
|
599
|
+
processed_params: Record<string, string>;
|
|
600
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
601
|
+
language: string;
|
|
602
|
+
media_id?: string | null | undefined;
|
|
603
|
+
}>>;
|
|
604
|
+
event: z.ZodOptional<z.ZodString>;
|
|
605
|
+
url: z.ZodOptional<z.ZodString>;
|
|
606
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
607
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
608
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
609
|
+
meta_lead_ad_id: z.ZodOptional<z.ZodString>;
|
|
610
|
+
delay_minutes: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
612
|
+
sender?: {
|
|
613
|
+
name: string;
|
|
614
|
+
id: number;
|
|
615
|
+
availability_status: string;
|
|
616
|
+
} | undefined;
|
|
617
|
+
actual_execution_time?: number | undefined;
|
|
618
|
+
}>;
|
|
619
|
+
export declare const CreateCampaignErrorSchema: z.ZodObject<{
|
|
620
|
+
message: z.ZodOptional<z.ZodString>;
|
|
621
|
+
description: z.ZodOptional<z.ZodString>;
|
|
622
|
+
errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
623
|
+
}, "strip", z.ZodTypeAny, {
|
|
624
|
+
message?: string | undefined;
|
|
625
|
+
description?: string | undefined;
|
|
626
|
+
errors?: Record<string, string[]> | undefined;
|
|
627
|
+
}, {
|
|
628
|
+
message?: string | undefined;
|
|
629
|
+
description?: string | undefined;
|
|
630
|
+
errors?: Record<string, string[]> | undefined;
|
|
631
|
+
}>;
|
|
632
|
+
export declare const WhatsAppTemplateConfigSchema: z.ZodObject<{
|
|
633
|
+
name: z.ZodString;
|
|
634
|
+
category: z.ZodDefault<z.ZodOptional<z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>>>;
|
|
635
|
+
language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
636
|
+
defaultParams: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
637
|
+
mediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
|
+
}, "strip", z.ZodTypeAny, {
|
|
639
|
+
name: string;
|
|
640
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
641
|
+
language: string;
|
|
642
|
+
defaultParams: Record<string, string>;
|
|
643
|
+
mediaId?: string | null | undefined;
|
|
644
|
+
}, {
|
|
645
|
+
name: string;
|
|
646
|
+
defaultParams: Record<string, string>;
|
|
647
|
+
category?: "MARKETING" | "UTILITY" | "AUTHENTICATION" | undefined;
|
|
648
|
+
language?: string | undefined;
|
|
649
|
+
mediaId?: string | null | undefined;
|
|
650
|
+
}>;
|
|
651
|
+
export declare const RecipientSchema: z.ZodObject<{
|
|
652
|
+
phoneNumber: z.ZodString;
|
|
653
|
+
name: z.ZodString;
|
|
654
|
+
params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
655
|
+
}, "strip", z.ZodTypeAny, {
|
|
656
|
+
name: string;
|
|
657
|
+
params: Record<string, string>;
|
|
658
|
+
phoneNumber: string;
|
|
659
|
+
}, {
|
|
660
|
+
name: string;
|
|
661
|
+
params: Record<string, string>;
|
|
662
|
+
phoneNumber: string;
|
|
663
|
+
}>;
|
|
664
|
+
export declare const CreateWhatsAppCampaignParamsSchema: z.ZodObject<{
|
|
665
|
+
title: z.ZodString;
|
|
666
|
+
inboxId: z.ZodNumber;
|
|
667
|
+
whatsappTemplate: z.ZodObject<{
|
|
668
|
+
name: z.ZodString;
|
|
669
|
+
category: z.ZodDefault<z.ZodOptional<z.ZodEnum<["MARKETING", "UTILITY", "AUTHENTICATION"]>>>;
|
|
670
|
+
language: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
671
|
+
defaultParams: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
672
|
+
mediaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
673
|
+
}, "strip", z.ZodTypeAny, {
|
|
674
|
+
name: string;
|
|
675
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
676
|
+
language: string;
|
|
677
|
+
defaultParams: Record<string, string>;
|
|
678
|
+
mediaId?: string | null | undefined;
|
|
679
|
+
}, {
|
|
680
|
+
name: string;
|
|
681
|
+
defaultParams: Record<string, string>;
|
|
682
|
+
category?: "MARKETING" | "UTILITY" | "AUTHENTICATION" | undefined;
|
|
683
|
+
language?: string | undefined;
|
|
684
|
+
mediaId?: string | null | undefined;
|
|
685
|
+
}>;
|
|
686
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
687
|
+
phoneNumber: z.ZodString;
|
|
688
|
+
name: z.ZodString;
|
|
689
|
+
params: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
690
|
+
}, "strip", z.ZodTypeAny, {
|
|
691
|
+
name: string;
|
|
692
|
+
params: Record<string, string>;
|
|
693
|
+
phoneNumber: string;
|
|
694
|
+
}, {
|
|
695
|
+
name: string;
|
|
696
|
+
params: Record<string, string>;
|
|
697
|
+
phoneNumber: string;
|
|
698
|
+
}>, "many">;
|
|
699
|
+
scheduledAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
700
|
+
campaignStatus: z.ZodOptional<z.ZodEnum<["active", "completed", "scheduled"]>>;
|
|
701
|
+
description: z.ZodOptional<z.ZodString>;
|
|
702
|
+
}, "strip", z.ZodTypeAny, {
|
|
703
|
+
title: string;
|
|
704
|
+
inboxId: number;
|
|
705
|
+
whatsappTemplate: {
|
|
706
|
+
name: string;
|
|
707
|
+
category: "MARKETING" | "UTILITY" | "AUTHENTICATION";
|
|
708
|
+
language: string;
|
|
709
|
+
defaultParams: Record<string, string>;
|
|
710
|
+
mediaId?: string | null | undefined;
|
|
711
|
+
};
|
|
712
|
+
recipients: {
|
|
713
|
+
name: string;
|
|
714
|
+
params: Record<string, string>;
|
|
715
|
+
phoneNumber: string;
|
|
716
|
+
}[];
|
|
717
|
+
description?: string | undefined;
|
|
718
|
+
scheduledAt?: string | number | undefined;
|
|
719
|
+
campaignStatus?: "active" | "completed" | "scheduled" | undefined;
|
|
720
|
+
}, {
|
|
721
|
+
title: string;
|
|
722
|
+
inboxId: number;
|
|
723
|
+
whatsappTemplate: {
|
|
724
|
+
name: string;
|
|
725
|
+
defaultParams: Record<string, string>;
|
|
726
|
+
category?: "MARKETING" | "UTILITY" | "AUTHENTICATION" | undefined;
|
|
727
|
+
language?: string | undefined;
|
|
728
|
+
mediaId?: string | null | undefined;
|
|
729
|
+
};
|
|
730
|
+
recipients: {
|
|
731
|
+
name: string;
|
|
732
|
+
params: Record<string, string>;
|
|
733
|
+
phoneNumber: string;
|
|
734
|
+
}[];
|
|
735
|
+
description?: string | undefined;
|
|
736
|
+
scheduledAt?: string | number | undefined;
|
|
737
|
+
campaignStatus?: "active" | "completed" | "scheduled" | undefined;
|
|
738
|
+
}>;
|
|
739
|
+
/**
|
|
740
|
+
* TypeScript Types (inferred from Zod schemas)
|
|
741
|
+
*/
|
|
742
|
+
export type CampaignStatus = z.infer<typeof CampaignStatusSchema>;
|
|
743
|
+
export type SendTimingStrategy = z.infer<typeof SendTimingStrategySchema>;
|
|
744
|
+
export type AudienceType = z.infer<typeof AudienceTypeSchema>;
|
|
745
|
+
export type AudienceEntry = z.infer<typeof AudienceEntrySchema>;
|
|
746
|
+
export type TemplateCategory = z.infer<typeof TemplateCategorySchema>;
|
|
747
|
+
export type WhatsAppTemplateParams = z.infer<typeof WhatsAppTemplateParamsSchema>;
|
|
748
|
+
export type TriggerRules = z.infer<typeof TriggerRulesSchema>;
|
|
749
|
+
export type CreateCampaignPayload = z.infer<typeof CreateCampaignPayloadSchema>;
|
|
750
|
+
export type CampaignInbox = z.infer<typeof CampaignInboxSchema>;
|
|
751
|
+
export type CampaignSender = z.infer<typeof CampaignSenderSchema>;
|
|
752
|
+
export type CampaignResponse = z.infer<typeof CampaignResponseSchema>;
|
|
753
|
+
export type CreateCampaignError = z.infer<typeof CreateCampaignErrorSchema>;
|
|
754
|
+
export type WhatsAppTemplateConfig = z.infer<typeof WhatsAppTemplateConfigSchema>;
|
|
755
|
+
export type Recipient = z.infer<typeof RecipientSchema>;
|
|
756
|
+
export type CreateWhatsAppCampaignParams = z.infer<typeof CreateWhatsAppCampaignParamsSchema>;
|
|
757
|
+
//# sourceMappingURL=types.d.ts.map
|