@kl1/contracts 1.2.85-uat → 1.2.86-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/contract.d.ts +1616 -76
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/index.d.ts +813 -39
- package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/schema.d.ts +98 -4
- package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/validation.d.ts +171 -12
- package/dist/api-contracts/src/widget/validation.d.ts.map +1 -1
- package/dist/index.js +36 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,17 +1,21 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
import { WidgetSchema } from './schema';
|
2
|
+
import { WidgetHeaderSchema, WidgetMethodSchema, WidgetPositionSchema, WidgetSchema, WidgetTypeSchema } from './schema';
|
3
3
|
import { CreateWidgetSchema, GetWidgetUrlPathQuerySchema, UpdateWidgetSchema } from './validation';
|
4
4
|
export type CreateWidgetRequest = z.infer<typeof CreateWidgetSchema>;
|
5
5
|
export type UpdateWidgetRequest = z.infer<typeof UpdateWidgetSchema>;
|
6
6
|
export type GetWidgetUrlQueryRequest = z.infer<typeof GetWidgetUrlPathQuerySchema>;
|
7
7
|
export type Widget = z.infer<typeof WidgetSchema>;
|
8
|
+
export type WidgetPosition = z.infer<typeof WidgetPositionSchema>;
|
9
|
+
export type WidgetType = z.infer<typeof WidgetTypeSchema>;
|
10
|
+
export type WidgetHeader = z.infer<typeof WidgetHeaderSchema>;
|
11
|
+
export type WidgetMethod = z.infer<typeof WidgetMethodSchema>;
|
8
12
|
export declare const widgetContract: {
|
9
13
|
createWidget: {
|
10
14
|
body: z.ZodObject<{
|
11
15
|
name: z.ZodString;
|
12
|
-
description: z.ZodString
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
13
17
|
url: z.ZodString;
|
14
|
-
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
|
18
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
15
19
|
fields: z.ZodOptional<z.ZodObject<{
|
16
20
|
data: z.ZodArray<z.ZodString, "many">;
|
17
21
|
}, "strip", z.ZodTypeAny, {
|
@@ -19,22 +23,89 @@ export declare const widgetContract: {
|
|
19
23
|
}, {
|
20
24
|
data: string[];
|
21
25
|
}>>;
|
26
|
+
widgetUploadAttachment: z.ZodOptional<z.ZodObject<{
|
27
|
+
bucketName: z.ZodString;
|
28
|
+
fileKey: z.ZodString;
|
29
|
+
fileName: z.ZodString;
|
30
|
+
fileSize: z.ZodNumber;
|
31
|
+
url: z.ZodNullable<z.ZodString>;
|
32
|
+
fileType: z.ZodString;
|
33
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
35
|
+
url: string | null;
|
36
|
+
fileName: string;
|
37
|
+
fileType: string;
|
38
|
+
fileKey: string;
|
39
|
+
bucketName: string;
|
40
|
+
fileSize: number;
|
41
|
+
thumbnailUrl?: string | undefined;
|
42
|
+
}, {
|
43
|
+
url: string | null;
|
44
|
+
fileName: string;
|
45
|
+
fileType: string;
|
46
|
+
fileKey: string;
|
47
|
+
bucketName: string;
|
48
|
+
fileSize: number;
|
49
|
+
thumbnailUrl?: string | undefined;
|
50
|
+
}>>;
|
51
|
+
type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
|
52
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
53
|
+
key: z.ZodString;
|
54
|
+
value: z.ZodString;
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
56
|
+
key: string;
|
57
|
+
value: string;
|
58
|
+
}, {
|
59
|
+
key: string;
|
60
|
+
value: string;
|
61
|
+
}>, "many">>;
|
62
|
+
method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
22
63
|
}, "strip", z.ZodTypeAny, {
|
23
64
|
name: string;
|
65
|
+
type: "custom" | "iframe";
|
24
66
|
url: string;
|
25
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
26
|
-
description
|
67
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
68
|
+
description?: string | undefined;
|
27
69
|
fields?: {
|
28
70
|
data: string[];
|
29
71
|
} | undefined;
|
72
|
+
widgetUploadAttachment?: {
|
73
|
+
url: string | null;
|
74
|
+
fileName: string;
|
75
|
+
fileType: string;
|
76
|
+
fileKey: string;
|
77
|
+
bucketName: string;
|
78
|
+
fileSize: number;
|
79
|
+
thumbnailUrl?: string | undefined;
|
80
|
+
} | undefined;
|
81
|
+
headers?: {
|
82
|
+
key: string;
|
83
|
+
value: string;
|
84
|
+
}[] | undefined;
|
85
|
+
method?: "get" | "post" | undefined;
|
30
86
|
}, {
|
31
87
|
name: string;
|
88
|
+
type: "custom" | "iframe";
|
32
89
|
url: string;
|
33
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
34
|
-
description
|
90
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
91
|
+
description?: string | undefined;
|
35
92
|
fields?: {
|
36
93
|
data: string[];
|
37
94
|
} | undefined;
|
95
|
+
widgetUploadAttachment?: {
|
96
|
+
url: string | null;
|
97
|
+
fileName: string;
|
98
|
+
fileType: string;
|
99
|
+
fileKey: string;
|
100
|
+
bucketName: string;
|
101
|
+
fileSize: number;
|
102
|
+
thumbnailUrl?: string | undefined;
|
103
|
+
} | undefined;
|
104
|
+
headers?: {
|
105
|
+
key: string;
|
106
|
+
value: string;
|
107
|
+
}[] | undefined;
|
108
|
+
method?: "get" | "post" | undefined;
|
38
109
|
}>;
|
39
110
|
summary: "Create a widget.";
|
40
111
|
method: "POST";
|
@@ -48,7 +119,7 @@ export declare const widgetContract: {
|
|
48
119
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
49
120
|
name: z.ZodString;
|
50
121
|
description: z.ZodNullable<z.ZodString>;
|
51
|
-
position: z.
|
122
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
52
123
|
fields: z.ZodObject<{
|
53
124
|
data: z.ZodArray<z.ZodString, "many">;
|
54
125
|
}, "strip", z.ZodTypeAny, {
|
@@ -57,27 +128,109 @@ export declare const widgetContract: {
|
|
57
128
|
data: string[];
|
58
129
|
}>;
|
59
130
|
url: z.ZodString;
|
131
|
+
upload: z.ZodNullable<z.ZodObject<{
|
132
|
+
id: z.ZodString;
|
133
|
+
createdAt: z.ZodDate;
|
134
|
+
updatedAt: z.ZodDate;
|
135
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
136
|
+
bucketName: z.ZodString;
|
137
|
+
fileName: z.ZodString;
|
138
|
+
fileSize: z.ZodNumber;
|
139
|
+
fileKey: z.ZodString;
|
140
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
141
|
+
status: z.ZodNullable<z.ZodString>;
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
143
|
+
id: string;
|
144
|
+
status: string | null;
|
145
|
+
createdAt: Date;
|
146
|
+
updatedAt: Date;
|
147
|
+
deletedAt: Date | null;
|
148
|
+
fileName: string;
|
149
|
+
fileKey: string;
|
150
|
+
bucketName: string;
|
151
|
+
fileSize: number;
|
152
|
+
fileUrl: string | null;
|
153
|
+
}, {
|
154
|
+
id: string;
|
155
|
+
status: string | null;
|
156
|
+
createdAt: Date;
|
157
|
+
updatedAt: Date;
|
158
|
+
deletedAt: Date | null;
|
159
|
+
fileName: string;
|
160
|
+
fileKey: string;
|
161
|
+
bucketName: string;
|
162
|
+
fileSize: number;
|
163
|
+
fileUrl: string | null;
|
164
|
+
}>>;
|
165
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
166
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
167
|
+
key: z.ZodString;
|
168
|
+
value: z.ZodString;
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
170
|
+
key: string;
|
171
|
+
value: string;
|
172
|
+
}, {
|
173
|
+
key: string;
|
174
|
+
value: string;
|
175
|
+
}>, "many">>;
|
176
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
60
177
|
}, "strip", z.ZodTypeAny, {
|
61
178
|
name: string;
|
179
|
+
type: "custom" | "iframe" | null;
|
62
180
|
id: string;
|
63
181
|
url: string;
|
64
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
182
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
183
|
+
method: "get" | "post" | null;
|
65
184
|
description: string | null;
|
66
185
|
createdAt: Date;
|
67
186
|
updatedAt: Date;
|
68
187
|
deletedAt: Date | null;
|
188
|
+
headers: {
|
189
|
+
key: string;
|
190
|
+
value: string;
|
191
|
+
}[] | null;
|
192
|
+
upload: {
|
193
|
+
id: string;
|
194
|
+
status: string | null;
|
195
|
+
createdAt: Date;
|
196
|
+
updatedAt: Date;
|
197
|
+
deletedAt: Date | null;
|
198
|
+
fileName: string;
|
199
|
+
fileKey: string;
|
200
|
+
bucketName: string;
|
201
|
+
fileSize: number;
|
202
|
+
fileUrl: string | null;
|
203
|
+
} | null;
|
69
204
|
fields: {
|
70
205
|
data: string[];
|
71
206
|
};
|
72
207
|
}, {
|
73
208
|
name: string;
|
209
|
+
type: "custom" | "iframe" | null;
|
74
210
|
id: string;
|
75
211
|
url: string;
|
76
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
212
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
213
|
+
method: "get" | "post" | null;
|
77
214
|
description: string | null;
|
78
215
|
createdAt: Date;
|
79
216
|
updatedAt: Date;
|
80
217
|
deletedAt: Date | null;
|
218
|
+
headers: {
|
219
|
+
key: string;
|
220
|
+
value: string;
|
221
|
+
}[] | null;
|
222
|
+
upload: {
|
223
|
+
id: string;
|
224
|
+
status: string | null;
|
225
|
+
createdAt: Date;
|
226
|
+
updatedAt: Date;
|
227
|
+
deletedAt: Date | null;
|
228
|
+
fileName: string;
|
229
|
+
fileKey: string;
|
230
|
+
bucketName: string;
|
231
|
+
fileSize: number;
|
232
|
+
fileUrl: string | null;
|
233
|
+
} | null;
|
81
234
|
fields: {
|
82
235
|
data: string[];
|
83
236
|
};
|
@@ -86,13 +239,31 @@ export declare const widgetContract: {
|
|
86
239
|
requestId: string;
|
87
240
|
widget: {
|
88
241
|
name: string;
|
242
|
+
type: "custom" | "iframe" | null;
|
89
243
|
id: string;
|
90
244
|
url: string;
|
91
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
245
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
246
|
+
method: "get" | "post" | null;
|
92
247
|
description: string | null;
|
93
248
|
createdAt: Date;
|
94
249
|
updatedAt: Date;
|
95
250
|
deletedAt: Date | null;
|
251
|
+
headers: {
|
252
|
+
key: string;
|
253
|
+
value: string;
|
254
|
+
}[] | null;
|
255
|
+
upload: {
|
256
|
+
id: string;
|
257
|
+
status: string | null;
|
258
|
+
createdAt: Date;
|
259
|
+
updatedAt: Date;
|
260
|
+
deletedAt: Date | null;
|
261
|
+
fileName: string;
|
262
|
+
fileKey: string;
|
263
|
+
bucketName: string;
|
264
|
+
fileSize: number;
|
265
|
+
fileUrl: string | null;
|
266
|
+
} | null;
|
96
267
|
fields: {
|
97
268
|
data: string[];
|
98
269
|
};
|
@@ -101,13 +272,31 @@ export declare const widgetContract: {
|
|
101
272
|
requestId: string;
|
102
273
|
widget: {
|
103
274
|
name: string;
|
275
|
+
type: "custom" | "iframe" | null;
|
104
276
|
id: string;
|
105
277
|
url: string;
|
106
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
278
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
279
|
+
method: "get" | "post" | null;
|
107
280
|
description: string | null;
|
108
281
|
createdAt: Date;
|
109
282
|
updatedAt: Date;
|
110
283
|
deletedAt: Date | null;
|
284
|
+
headers: {
|
285
|
+
key: string;
|
286
|
+
value: string;
|
287
|
+
}[] | null;
|
288
|
+
upload: {
|
289
|
+
id: string;
|
290
|
+
status: string | null;
|
291
|
+
createdAt: Date;
|
292
|
+
updatedAt: Date;
|
293
|
+
deletedAt: Date | null;
|
294
|
+
fileName: string;
|
295
|
+
fileKey: string;
|
296
|
+
bucketName: string;
|
297
|
+
fileSize: number;
|
298
|
+
fileUrl: string | null;
|
299
|
+
} | null;
|
111
300
|
fields: {
|
112
301
|
data: string[];
|
113
302
|
};
|
@@ -183,25 +372,61 @@ export declare const widgetContract: {
|
|
183
372
|
lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
184
373
|
data: z.ZodArray<z.ZodType<{
|
185
374
|
name: string;
|
375
|
+
type: "custom" | "iframe" | null;
|
186
376
|
id: string;
|
187
377
|
url: string;
|
188
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
378
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
379
|
+
method: "get" | "post" | null;
|
189
380
|
description: string | null;
|
190
381
|
createdAt: Date;
|
191
382
|
updatedAt: Date;
|
192
383
|
deletedAt: Date | null;
|
384
|
+
headers: {
|
385
|
+
key: string;
|
386
|
+
value: string;
|
387
|
+
}[] | null;
|
388
|
+
upload: {
|
389
|
+
id: string;
|
390
|
+
status: string | null;
|
391
|
+
createdAt: Date;
|
392
|
+
updatedAt: Date;
|
393
|
+
deletedAt: Date | null;
|
394
|
+
fileName: string;
|
395
|
+
fileKey: string;
|
396
|
+
bucketName: string;
|
397
|
+
fileSize: number;
|
398
|
+
fileUrl: string | null;
|
399
|
+
} | null;
|
193
400
|
fields: {
|
194
401
|
data: string[];
|
195
402
|
};
|
196
403
|
}, z.ZodTypeDef, {
|
197
404
|
name: string;
|
405
|
+
type: "custom" | "iframe" | null;
|
198
406
|
id: string;
|
199
407
|
url: string;
|
200
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
408
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
409
|
+
method: "get" | "post" | null;
|
201
410
|
description: string | null;
|
202
411
|
createdAt: Date;
|
203
412
|
updatedAt: Date;
|
204
413
|
deletedAt: Date | null;
|
414
|
+
headers: {
|
415
|
+
key: string;
|
416
|
+
value: string;
|
417
|
+
}[] | null;
|
418
|
+
upload: {
|
419
|
+
id: string;
|
420
|
+
status: string | null;
|
421
|
+
createdAt: Date;
|
422
|
+
updatedAt: Date;
|
423
|
+
deletedAt: Date | null;
|
424
|
+
fileName: string;
|
425
|
+
fileKey: string;
|
426
|
+
bucketName: string;
|
427
|
+
fileSize: number;
|
428
|
+
fileUrl: string | null;
|
429
|
+
} | null;
|
205
430
|
fields: {
|
206
431
|
data: string[];
|
207
432
|
};
|
@@ -209,13 +434,31 @@ export declare const widgetContract: {
|
|
209
434
|
}, "strip", z.ZodTypeAny, {
|
210
435
|
data: {
|
211
436
|
name: string;
|
437
|
+
type: "custom" | "iframe" | null;
|
212
438
|
id: string;
|
213
439
|
url: string;
|
214
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
440
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
441
|
+
method: "get" | "post" | null;
|
215
442
|
description: string | null;
|
216
443
|
createdAt: Date;
|
217
444
|
updatedAt: Date;
|
218
445
|
deletedAt: Date | null;
|
446
|
+
headers: {
|
447
|
+
key: string;
|
448
|
+
value: string;
|
449
|
+
}[] | null;
|
450
|
+
upload: {
|
451
|
+
id: string;
|
452
|
+
status: string | null;
|
453
|
+
createdAt: Date;
|
454
|
+
updatedAt: Date;
|
455
|
+
deletedAt: Date | null;
|
456
|
+
fileName: string;
|
457
|
+
fileKey: string;
|
458
|
+
bucketName: string;
|
459
|
+
fileSize: number;
|
460
|
+
fileUrl: string | null;
|
461
|
+
} | null;
|
219
462
|
fields: {
|
220
463
|
data: string[];
|
221
464
|
};
|
@@ -227,13 +470,31 @@ export declare const widgetContract: {
|
|
227
470
|
}, {
|
228
471
|
data: {
|
229
472
|
name: string;
|
473
|
+
type: "custom" | "iframe" | null;
|
230
474
|
id: string;
|
231
475
|
url: string;
|
232
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
476
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
477
|
+
method: "get" | "post" | null;
|
233
478
|
description: string | null;
|
234
479
|
createdAt: Date;
|
235
480
|
updatedAt: Date;
|
236
481
|
deletedAt: Date | null;
|
482
|
+
headers: {
|
483
|
+
key: string;
|
484
|
+
value: string;
|
485
|
+
}[] | null;
|
486
|
+
upload: {
|
487
|
+
id: string;
|
488
|
+
status: string | null;
|
489
|
+
createdAt: Date;
|
490
|
+
updatedAt: Date;
|
491
|
+
deletedAt: Date | null;
|
492
|
+
fileName: string;
|
493
|
+
fileKey: string;
|
494
|
+
bucketName: string;
|
495
|
+
fileSize: number;
|
496
|
+
fileUrl: string | null;
|
497
|
+
} | null;
|
237
498
|
fields: {
|
238
499
|
data: string[];
|
239
500
|
};
|
@@ -300,7 +561,7 @@ export declare const widgetContract: {
|
|
300
561
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
301
562
|
name: z.ZodString;
|
302
563
|
description: z.ZodNullable<z.ZodString>;
|
303
|
-
position: z.
|
564
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
304
565
|
fields: z.ZodObject<{
|
305
566
|
data: z.ZodArray<z.ZodString, "many">;
|
306
567
|
}, "strip", z.ZodTypeAny, {
|
@@ -309,27 +570,109 @@ export declare const widgetContract: {
|
|
309
570
|
data: string[];
|
310
571
|
}>;
|
311
572
|
url: z.ZodString;
|
573
|
+
upload: z.ZodNullable<z.ZodObject<{
|
574
|
+
id: z.ZodString;
|
575
|
+
createdAt: z.ZodDate;
|
576
|
+
updatedAt: z.ZodDate;
|
577
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
578
|
+
bucketName: z.ZodString;
|
579
|
+
fileName: z.ZodString;
|
580
|
+
fileSize: z.ZodNumber;
|
581
|
+
fileKey: z.ZodString;
|
582
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
583
|
+
status: z.ZodNullable<z.ZodString>;
|
584
|
+
}, "strip", z.ZodTypeAny, {
|
585
|
+
id: string;
|
586
|
+
status: string | null;
|
587
|
+
createdAt: Date;
|
588
|
+
updatedAt: Date;
|
589
|
+
deletedAt: Date | null;
|
590
|
+
fileName: string;
|
591
|
+
fileKey: string;
|
592
|
+
bucketName: string;
|
593
|
+
fileSize: number;
|
594
|
+
fileUrl: string | null;
|
595
|
+
}, {
|
596
|
+
id: string;
|
597
|
+
status: string | null;
|
598
|
+
createdAt: Date;
|
599
|
+
updatedAt: Date;
|
600
|
+
deletedAt: Date | null;
|
601
|
+
fileName: string;
|
602
|
+
fileKey: string;
|
603
|
+
bucketName: string;
|
604
|
+
fileSize: number;
|
605
|
+
fileUrl: string | null;
|
606
|
+
}>>;
|
607
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
608
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
609
|
+
key: z.ZodString;
|
610
|
+
value: z.ZodString;
|
611
|
+
}, "strip", z.ZodTypeAny, {
|
612
|
+
key: string;
|
613
|
+
value: string;
|
614
|
+
}, {
|
615
|
+
key: string;
|
616
|
+
value: string;
|
617
|
+
}>, "many">>;
|
618
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
312
619
|
}, "strip", z.ZodTypeAny, {
|
313
620
|
name: string;
|
621
|
+
type: "custom" | "iframe" | null;
|
314
622
|
id: string;
|
315
623
|
url: string;
|
316
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
624
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
625
|
+
method: "get" | "post" | null;
|
317
626
|
description: string | null;
|
318
627
|
createdAt: Date;
|
319
628
|
updatedAt: Date;
|
320
629
|
deletedAt: Date | null;
|
630
|
+
headers: {
|
631
|
+
key: string;
|
632
|
+
value: string;
|
633
|
+
}[] | null;
|
634
|
+
upload: {
|
635
|
+
id: string;
|
636
|
+
status: string | null;
|
637
|
+
createdAt: Date;
|
638
|
+
updatedAt: Date;
|
639
|
+
deletedAt: Date | null;
|
640
|
+
fileName: string;
|
641
|
+
fileKey: string;
|
642
|
+
bucketName: string;
|
643
|
+
fileSize: number;
|
644
|
+
fileUrl: string | null;
|
645
|
+
} | null;
|
321
646
|
fields: {
|
322
647
|
data: string[];
|
323
648
|
};
|
324
649
|
}, {
|
325
650
|
name: string;
|
651
|
+
type: "custom" | "iframe" | null;
|
326
652
|
id: string;
|
327
653
|
url: string;
|
328
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
654
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
655
|
+
method: "get" | "post" | null;
|
329
656
|
description: string | null;
|
330
657
|
createdAt: Date;
|
331
658
|
updatedAt: Date;
|
332
659
|
deletedAt: Date | null;
|
660
|
+
headers: {
|
661
|
+
key: string;
|
662
|
+
value: string;
|
663
|
+
}[] | null;
|
664
|
+
upload: {
|
665
|
+
id: string;
|
666
|
+
status: string | null;
|
667
|
+
createdAt: Date;
|
668
|
+
updatedAt: Date;
|
669
|
+
deletedAt: Date | null;
|
670
|
+
fileName: string;
|
671
|
+
fileKey: string;
|
672
|
+
bucketName: string;
|
673
|
+
fileSize: number;
|
674
|
+
fileUrl: string | null;
|
675
|
+
} | null;
|
333
676
|
fields: {
|
334
677
|
data: string[];
|
335
678
|
};
|
@@ -391,7 +734,7 @@ export declare const widgetContract: {
|
|
391
734
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
392
735
|
name: z.ZodString;
|
393
736
|
description: z.ZodNullable<z.ZodString>;
|
394
|
-
position: z.
|
737
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
395
738
|
fields: z.ZodObject<{
|
396
739
|
data: z.ZodArray<z.ZodString, "many">;
|
397
740
|
}, "strip", z.ZodTypeAny, {
|
@@ -400,27 +743,109 @@ export declare const widgetContract: {
|
|
400
743
|
data: string[];
|
401
744
|
}>;
|
402
745
|
url: z.ZodString;
|
746
|
+
upload: z.ZodNullable<z.ZodObject<{
|
747
|
+
id: z.ZodString;
|
748
|
+
createdAt: z.ZodDate;
|
749
|
+
updatedAt: z.ZodDate;
|
750
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
751
|
+
bucketName: z.ZodString;
|
752
|
+
fileName: z.ZodString;
|
753
|
+
fileSize: z.ZodNumber;
|
754
|
+
fileKey: z.ZodString;
|
755
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
756
|
+
status: z.ZodNullable<z.ZodString>;
|
757
|
+
}, "strip", z.ZodTypeAny, {
|
758
|
+
id: string;
|
759
|
+
status: string | null;
|
760
|
+
createdAt: Date;
|
761
|
+
updatedAt: Date;
|
762
|
+
deletedAt: Date | null;
|
763
|
+
fileName: string;
|
764
|
+
fileKey: string;
|
765
|
+
bucketName: string;
|
766
|
+
fileSize: number;
|
767
|
+
fileUrl: string | null;
|
768
|
+
}, {
|
769
|
+
id: string;
|
770
|
+
status: string | null;
|
771
|
+
createdAt: Date;
|
772
|
+
updatedAt: Date;
|
773
|
+
deletedAt: Date | null;
|
774
|
+
fileName: string;
|
775
|
+
fileKey: string;
|
776
|
+
bucketName: string;
|
777
|
+
fileSize: number;
|
778
|
+
fileUrl: string | null;
|
779
|
+
}>>;
|
780
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
781
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
782
|
+
key: z.ZodString;
|
783
|
+
value: z.ZodString;
|
784
|
+
}, "strip", z.ZodTypeAny, {
|
785
|
+
key: string;
|
786
|
+
value: string;
|
787
|
+
}, {
|
788
|
+
key: string;
|
789
|
+
value: string;
|
790
|
+
}>, "many">>;
|
791
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
403
792
|
}, "strip", z.ZodTypeAny, {
|
404
793
|
name: string;
|
794
|
+
type: "custom" | "iframe" | null;
|
405
795
|
id: string;
|
406
796
|
url: string;
|
407
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
797
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
798
|
+
method: "get" | "post" | null;
|
408
799
|
description: string | null;
|
409
800
|
createdAt: Date;
|
410
801
|
updatedAt: Date;
|
411
802
|
deletedAt: Date | null;
|
803
|
+
headers: {
|
804
|
+
key: string;
|
805
|
+
value: string;
|
806
|
+
}[] | null;
|
807
|
+
upload: {
|
808
|
+
id: string;
|
809
|
+
status: string | null;
|
810
|
+
createdAt: Date;
|
811
|
+
updatedAt: Date;
|
812
|
+
deletedAt: Date | null;
|
813
|
+
fileName: string;
|
814
|
+
fileKey: string;
|
815
|
+
bucketName: string;
|
816
|
+
fileSize: number;
|
817
|
+
fileUrl: string | null;
|
818
|
+
} | null;
|
412
819
|
fields: {
|
413
820
|
data: string[];
|
414
821
|
};
|
415
822
|
}, {
|
416
823
|
name: string;
|
824
|
+
type: "custom" | "iframe" | null;
|
417
825
|
id: string;
|
418
826
|
url: string;
|
419
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
827
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
828
|
+
method: "get" | "post" | null;
|
420
829
|
description: string | null;
|
421
830
|
createdAt: Date;
|
422
831
|
updatedAt: Date;
|
423
832
|
deletedAt: Date | null;
|
833
|
+
headers: {
|
834
|
+
key: string;
|
835
|
+
value: string;
|
836
|
+
}[] | null;
|
837
|
+
upload: {
|
838
|
+
id: string;
|
839
|
+
status: string | null;
|
840
|
+
createdAt: Date;
|
841
|
+
updatedAt: Date;
|
842
|
+
deletedAt: Date | null;
|
843
|
+
fileName: string;
|
844
|
+
fileKey: string;
|
845
|
+
bucketName: string;
|
846
|
+
fileSize: number;
|
847
|
+
fileUrl: string | null;
|
848
|
+
} | null;
|
424
849
|
fields: {
|
425
850
|
data: string[];
|
426
851
|
};
|
@@ -482,7 +907,7 @@ export declare const widgetContract: {
|
|
482
907
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
483
908
|
name: z.ZodString;
|
484
909
|
description: z.ZodNullable<z.ZodString>;
|
485
|
-
position: z.
|
910
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
486
911
|
fields: z.ZodObject<{
|
487
912
|
data: z.ZodArray<z.ZodString, "many">;
|
488
913
|
}, "strip", z.ZodTypeAny, {
|
@@ -491,27 +916,109 @@ export declare const widgetContract: {
|
|
491
916
|
data: string[];
|
492
917
|
}>;
|
493
918
|
url: z.ZodString;
|
919
|
+
upload: z.ZodNullable<z.ZodObject<{
|
920
|
+
id: z.ZodString;
|
921
|
+
createdAt: z.ZodDate;
|
922
|
+
updatedAt: z.ZodDate;
|
923
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
924
|
+
bucketName: z.ZodString;
|
925
|
+
fileName: z.ZodString;
|
926
|
+
fileSize: z.ZodNumber;
|
927
|
+
fileKey: z.ZodString;
|
928
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
929
|
+
status: z.ZodNullable<z.ZodString>;
|
930
|
+
}, "strip", z.ZodTypeAny, {
|
931
|
+
id: string;
|
932
|
+
status: string | null;
|
933
|
+
createdAt: Date;
|
934
|
+
updatedAt: Date;
|
935
|
+
deletedAt: Date | null;
|
936
|
+
fileName: string;
|
937
|
+
fileKey: string;
|
938
|
+
bucketName: string;
|
939
|
+
fileSize: number;
|
940
|
+
fileUrl: string | null;
|
941
|
+
}, {
|
942
|
+
id: string;
|
943
|
+
status: string | null;
|
944
|
+
createdAt: Date;
|
945
|
+
updatedAt: Date;
|
946
|
+
deletedAt: Date | null;
|
947
|
+
fileName: string;
|
948
|
+
fileKey: string;
|
949
|
+
bucketName: string;
|
950
|
+
fileSize: number;
|
951
|
+
fileUrl: string | null;
|
952
|
+
}>>;
|
953
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
954
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
955
|
+
key: z.ZodString;
|
956
|
+
value: z.ZodString;
|
957
|
+
}, "strip", z.ZodTypeAny, {
|
958
|
+
key: string;
|
959
|
+
value: string;
|
960
|
+
}, {
|
961
|
+
key: string;
|
962
|
+
value: string;
|
963
|
+
}>, "many">>;
|
964
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
494
965
|
}, "strip", z.ZodTypeAny, {
|
495
966
|
name: string;
|
967
|
+
type: "custom" | "iframe" | null;
|
496
968
|
id: string;
|
497
969
|
url: string;
|
498
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
970
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
971
|
+
method: "get" | "post" | null;
|
499
972
|
description: string | null;
|
500
973
|
createdAt: Date;
|
501
974
|
updatedAt: Date;
|
502
975
|
deletedAt: Date | null;
|
976
|
+
headers: {
|
977
|
+
key: string;
|
978
|
+
value: string;
|
979
|
+
}[] | null;
|
980
|
+
upload: {
|
981
|
+
id: string;
|
982
|
+
status: string | null;
|
983
|
+
createdAt: Date;
|
984
|
+
updatedAt: Date;
|
985
|
+
deletedAt: Date | null;
|
986
|
+
fileName: string;
|
987
|
+
fileKey: string;
|
988
|
+
bucketName: string;
|
989
|
+
fileSize: number;
|
990
|
+
fileUrl: string | null;
|
991
|
+
} | null;
|
503
992
|
fields: {
|
504
993
|
data: string[];
|
505
994
|
};
|
506
995
|
}, {
|
507
996
|
name: string;
|
997
|
+
type: "custom" | "iframe" | null;
|
508
998
|
id: string;
|
509
999
|
url: string;
|
510
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1000
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1001
|
+
method: "get" | "post" | null;
|
511
1002
|
description: string | null;
|
512
1003
|
createdAt: Date;
|
513
1004
|
updatedAt: Date;
|
514
1005
|
deletedAt: Date | null;
|
1006
|
+
headers: {
|
1007
|
+
key: string;
|
1008
|
+
value: string;
|
1009
|
+
}[] | null;
|
1010
|
+
upload: {
|
1011
|
+
id: string;
|
1012
|
+
status: string | null;
|
1013
|
+
createdAt: Date;
|
1014
|
+
updatedAt: Date;
|
1015
|
+
deletedAt: Date | null;
|
1016
|
+
fileName: string;
|
1017
|
+
fileKey: string;
|
1018
|
+
bucketName: string;
|
1019
|
+
fileSize: number;
|
1020
|
+
fileUrl: string | null;
|
1021
|
+
} | null;
|
515
1022
|
fields: {
|
516
1023
|
data: string[];
|
517
1024
|
};
|
@@ -580,7 +1087,7 @@ export declare const widgetContract: {
|
|
580
1087
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
581
1088
|
name: z.ZodString;
|
582
1089
|
description: z.ZodNullable<z.ZodString>;
|
583
|
-
position: z.
|
1090
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
584
1091
|
fields: z.ZodObject<{
|
585
1092
|
data: z.ZodArray<z.ZodString, "many">;
|
586
1093
|
}, "strip", z.ZodTypeAny, {
|
@@ -589,27 +1096,109 @@ export declare const widgetContract: {
|
|
589
1096
|
data: string[];
|
590
1097
|
}>;
|
591
1098
|
url: z.ZodString;
|
1099
|
+
upload: z.ZodNullable<z.ZodObject<{
|
1100
|
+
id: z.ZodString;
|
1101
|
+
createdAt: z.ZodDate;
|
1102
|
+
updatedAt: z.ZodDate;
|
1103
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1104
|
+
bucketName: z.ZodString;
|
1105
|
+
fileName: z.ZodString;
|
1106
|
+
fileSize: z.ZodNumber;
|
1107
|
+
fileKey: z.ZodString;
|
1108
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
1109
|
+
status: z.ZodNullable<z.ZodString>;
|
1110
|
+
}, "strip", z.ZodTypeAny, {
|
1111
|
+
id: string;
|
1112
|
+
status: string | null;
|
1113
|
+
createdAt: Date;
|
1114
|
+
updatedAt: Date;
|
1115
|
+
deletedAt: Date | null;
|
1116
|
+
fileName: string;
|
1117
|
+
fileKey: string;
|
1118
|
+
bucketName: string;
|
1119
|
+
fileSize: number;
|
1120
|
+
fileUrl: string | null;
|
1121
|
+
}, {
|
1122
|
+
id: string;
|
1123
|
+
status: string | null;
|
1124
|
+
createdAt: Date;
|
1125
|
+
updatedAt: Date;
|
1126
|
+
deletedAt: Date | null;
|
1127
|
+
fileName: string;
|
1128
|
+
fileKey: string;
|
1129
|
+
bucketName: string;
|
1130
|
+
fileSize: number;
|
1131
|
+
fileUrl: string | null;
|
1132
|
+
}>>;
|
1133
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
1134
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
1135
|
+
key: z.ZodString;
|
1136
|
+
value: z.ZodString;
|
1137
|
+
}, "strip", z.ZodTypeAny, {
|
1138
|
+
key: string;
|
1139
|
+
value: string;
|
1140
|
+
}, {
|
1141
|
+
key: string;
|
1142
|
+
value: string;
|
1143
|
+
}>, "many">>;
|
1144
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
592
1145
|
}, "strip", z.ZodTypeAny, {
|
593
1146
|
name: string;
|
1147
|
+
type: "custom" | "iframe" | null;
|
594
1148
|
id: string;
|
595
1149
|
url: string;
|
596
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1150
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1151
|
+
method: "get" | "post" | null;
|
597
1152
|
description: string | null;
|
598
1153
|
createdAt: Date;
|
599
1154
|
updatedAt: Date;
|
600
1155
|
deletedAt: Date | null;
|
1156
|
+
headers: {
|
1157
|
+
key: string;
|
1158
|
+
value: string;
|
1159
|
+
}[] | null;
|
1160
|
+
upload: {
|
1161
|
+
id: string;
|
1162
|
+
status: string | null;
|
1163
|
+
createdAt: Date;
|
1164
|
+
updatedAt: Date;
|
1165
|
+
deletedAt: Date | null;
|
1166
|
+
fileName: string;
|
1167
|
+
fileKey: string;
|
1168
|
+
bucketName: string;
|
1169
|
+
fileSize: number;
|
1170
|
+
fileUrl: string | null;
|
1171
|
+
} | null;
|
601
1172
|
fields: {
|
602
1173
|
data: string[];
|
603
1174
|
};
|
604
1175
|
}, {
|
605
1176
|
name: string;
|
1177
|
+
type: "custom" | "iframe" | null;
|
606
1178
|
id: string;
|
607
1179
|
url: string;
|
608
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1180
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1181
|
+
method: "get" | "post" | null;
|
609
1182
|
description: string | null;
|
610
1183
|
createdAt: Date;
|
611
1184
|
updatedAt: Date;
|
612
1185
|
deletedAt: Date | null;
|
1186
|
+
headers: {
|
1187
|
+
key: string;
|
1188
|
+
value: string;
|
1189
|
+
}[] | null;
|
1190
|
+
upload: {
|
1191
|
+
id: string;
|
1192
|
+
status: string | null;
|
1193
|
+
createdAt: Date;
|
1194
|
+
updatedAt: Date;
|
1195
|
+
deletedAt: Date | null;
|
1196
|
+
fileName: string;
|
1197
|
+
fileKey: string;
|
1198
|
+
bucketName: string;
|
1199
|
+
fileSize: number;
|
1200
|
+
fileUrl: string | null;
|
1201
|
+
} | null;
|
613
1202
|
fields: {
|
614
1203
|
data: string[];
|
615
1204
|
};
|
@@ -723,9 +1312,9 @@ export declare const widgetContract: {
|
|
723
1312
|
updateWidget: {
|
724
1313
|
body: z.ZodObject<{
|
725
1314
|
name: z.ZodString;
|
726
|
-
description: z.ZodString
|
1315
|
+
description: z.ZodOptional<z.ZodString>;
|
727
1316
|
url: z.ZodString;
|
728
|
-
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
|
1317
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
729
1318
|
fields: z.ZodOptional<z.ZodObject<{
|
730
1319
|
data: z.ZodArray<z.ZodString, "many">;
|
731
1320
|
}, "strip", z.ZodTypeAny, {
|
@@ -733,22 +1322,89 @@ export declare const widgetContract: {
|
|
733
1322
|
}, {
|
734
1323
|
data: string[];
|
735
1324
|
}>>;
|
1325
|
+
widgetUploadAttachment: z.ZodOptional<z.ZodObject<{
|
1326
|
+
bucketName: z.ZodString;
|
1327
|
+
fileKey: z.ZodString;
|
1328
|
+
fileName: z.ZodString;
|
1329
|
+
fileSize: z.ZodNumber;
|
1330
|
+
url: z.ZodNullable<z.ZodString>;
|
1331
|
+
fileType: z.ZodString;
|
1332
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
1333
|
+
}, "strip", z.ZodTypeAny, {
|
1334
|
+
url: string | null;
|
1335
|
+
fileName: string;
|
1336
|
+
fileType: string;
|
1337
|
+
fileKey: string;
|
1338
|
+
bucketName: string;
|
1339
|
+
fileSize: number;
|
1340
|
+
thumbnailUrl?: string | undefined;
|
1341
|
+
}, {
|
1342
|
+
url: string | null;
|
1343
|
+
fileName: string;
|
1344
|
+
fileType: string;
|
1345
|
+
fileKey: string;
|
1346
|
+
bucketName: string;
|
1347
|
+
fileSize: number;
|
1348
|
+
thumbnailUrl?: string | undefined;
|
1349
|
+
}>>;
|
1350
|
+
type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
|
1351
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1352
|
+
key: z.ZodString;
|
1353
|
+
value: z.ZodString;
|
1354
|
+
}, "strip", z.ZodTypeAny, {
|
1355
|
+
key: string;
|
1356
|
+
value: string;
|
1357
|
+
}, {
|
1358
|
+
key: string;
|
1359
|
+
value: string;
|
1360
|
+
}>, "many">>;
|
1361
|
+
method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
736
1362
|
}, "strip", z.ZodTypeAny, {
|
737
1363
|
name: string;
|
1364
|
+
type: "custom" | "iframe";
|
738
1365
|
url: string;
|
739
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
740
|
-
description
|
1366
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1367
|
+
description?: string | undefined;
|
741
1368
|
fields?: {
|
742
1369
|
data: string[];
|
743
1370
|
} | undefined;
|
1371
|
+
widgetUploadAttachment?: {
|
1372
|
+
url: string | null;
|
1373
|
+
fileName: string;
|
1374
|
+
fileType: string;
|
1375
|
+
fileKey: string;
|
1376
|
+
bucketName: string;
|
1377
|
+
fileSize: number;
|
1378
|
+
thumbnailUrl?: string | undefined;
|
1379
|
+
} | undefined;
|
1380
|
+
headers?: {
|
1381
|
+
key: string;
|
1382
|
+
value: string;
|
1383
|
+
}[] | undefined;
|
1384
|
+
method?: "get" | "post" | undefined;
|
744
1385
|
}, {
|
745
1386
|
name: string;
|
1387
|
+
type: "custom" | "iframe";
|
746
1388
|
url: string;
|
747
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
748
|
-
description
|
1389
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1390
|
+
description?: string | undefined;
|
749
1391
|
fields?: {
|
750
1392
|
data: string[];
|
751
1393
|
} | undefined;
|
1394
|
+
widgetUploadAttachment?: {
|
1395
|
+
url: string | null;
|
1396
|
+
fileName: string;
|
1397
|
+
fileType: string;
|
1398
|
+
fileKey: string;
|
1399
|
+
bucketName: string;
|
1400
|
+
fileSize: number;
|
1401
|
+
thumbnailUrl?: string | undefined;
|
1402
|
+
} | undefined;
|
1403
|
+
headers?: {
|
1404
|
+
key: string;
|
1405
|
+
value: string;
|
1406
|
+
}[] | undefined;
|
1407
|
+
method?: "get" | "post" | undefined;
|
752
1408
|
}>;
|
753
1409
|
summary: "Update a widget.";
|
754
1410
|
method: "PATCH";
|
@@ -769,7 +1425,7 @@ export declare const widgetContract: {
|
|
769
1425
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
770
1426
|
name: z.ZodString;
|
771
1427
|
description: z.ZodNullable<z.ZodString>;
|
772
|
-
position: z.
|
1428
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
773
1429
|
fields: z.ZodObject<{
|
774
1430
|
data: z.ZodArray<z.ZodString, "many">;
|
775
1431
|
}, "strip", z.ZodTypeAny, {
|
@@ -778,27 +1434,109 @@ export declare const widgetContract: {
|
|
778
1434
|
data: string[];
|
779
1435
|
}>;
|
780
1436
|
url: z.ZodString;
|
1437
|
+
upload: z.ZodNullable<z.ZodObject<{
|
1438
|
+
id: z.ZodString;
|
1439
|
+
createdAt: z.ZodDate;
|
1440
|
+
updatedAt: z.ZodDate;
|
1441
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1442
|
+
bucketName: z.ZodString;
|
1443
|
+
fileName: z.ZodString;
|
1444
|
+
fileSize: z.ZodNumber;
|
1445
|
+
fileKey: z.ZodString;
|
1446
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
1447
|
+
status: z.ZodNullable<z.ZodString>;
|
1448
|
+
}, "strip", z.ZodTypeAny, {
|
1449
|
+
id: string;
|
1450
|
+
status: string | null;
|
1451
|
+
createdAt: Date;
|
1452
|
+
updatedAt: Date;
|
1453
|
+
deletedAt: Date | null;
|
1454
|
+
fileName: string;
|
1455
|
+
fileKey: string;
|
1456
|
+
bucketName: string;
|
1457
|
+
fileSize: number;
|
1458
|
+
fileUrl: string | null;
|
1459
|
+
}, {
|
1460
|
+
id: string;
|
1461
|
+
status: string | null;
|
1462
|
+
createdAt: Date;
|
1463
|
+
updatedAt: Date;
|
1464
|
+
deletedAt: Date | null;
|
1465
|
+
fileName: string;
|
1466
|
+
fileKey: string;
|
1467
|
+
bucketName: string;
|
1468
|
+
fileSize: number;
|
1469
|
+
fileUrl: string | null;
|
1470
|
+
}>>;
|
1471
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
1472
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
1473
|
+
key: z.ZodString;
|
1474
|
+
value: z.ZodString;
|
1475
|
+
}, "strip", z.ZodTypeAny, {
|
1476
|
+
key: string;
|
1477
|
+
value: string;
|
1478
|
+
}, {
|
1479
|
+
key: string;
|
1480
|
+
value: string;
|
1481
|
+
}>, "many">>;
|
1482
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
781
1483
|
}, "strip", z.ZodTypeAny, {
|
782
1484
|
name: string;
|
1485
|
+
type: "custom" | "iframe" | null;
|
783
1486
|
id: string;
|
784
1487
|
url: string;
|
785
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1488
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1489
|
+
method: "get" | "post" | null;
|
786
1490
|
description: string | null;
|
787
1491
|
createdAt: Date;
|
788
1492
|
updatedAt: Date;
|
789
1493
|
deletedAt: Date | null;
|
1494
|
+
headers: {
|
1495
|
+
key: string;
|
1496
|
+
value: string;
|
1497
|
+
}[] | null;
|
1498
|
+
upload: {
|
1499
|
+
id: string;
|
1500
|
+
status: string | null;
|
1501
|
+
createdAt: Date;
|
1502
|
+
updatedAt: Date;
|
1503
|
+
deletedAt: Date | null;
|
1504
|
+
fileName: string;
|
1505
|
+
fileKey: string;
|
1506
|
+
bucketName: string;
|
1507
|
+
fileSize: number;
|
1508
|
+
fileUrl: string | null;
|
1509
|
+
} | null;
|
790
1510
|
fields: {
|
791
1511
|
data: string[];
|
792
1512
|
};
|
793
1513
|
}, {
|
794
1514
|
name: string;
|
1515
|
+
type: "custom" | "iframe" | null;
|
795
1516
|
id: string;
|
796
1517
|
url: string;
|
797
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1518
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1519
|
+
method: "get" | "post" | null;
|
798
1520
|
description: string | null;
|
799
1521
|
createdAt: Date;
|
800
1522
|
updatedAt: Date;
|
801
1523
|
deletedAt: Date | null;
|
1524
|
+
headers: {
|
1525
|
+
key: string;
|
1526
|
+
value: string;
|
1527
|
+
}[] | null;
|
1528
|
+
upload: {
|
1529
|
+
id: string;
|
1530
|
+
status: string | null;
|
1531
|
+
createdAt: Date;
|
1532
|
+
updatedAt: Date;
|
1533
|
+
deletedAt: Date | null;
|
1534
|
+
fileName: string;
|
1535
|
+
fileKey: string;
|
1536
|
+
bucketName: string;
|
1537
|
+
fileSize: number;
|
1538
|
+
fileUrl: string | null;
|
1539
|
+
} | null;
|
802
1540
|
fields: {
|
803
1541
|
data: string[];
|
804
1542
|
};
|
@@ -807,13 +1545,31 @@ export declare const widgetContract: {
|
|
807
1545
|
requestId: string;
|
808
1546
|
widget: {
|
809
1547
|
name: string;
|
1548
|
+
type: "custom" | "iframe" | null;
|
810
1549
|
id: string;
|
811
1550
|
url: string;
|
812
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1551
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1552
|
+
method: "get" | "post" | null;
|
813
1553
|
description: string | null;
|
814
1554
|
createdAt: Date;
|
815
1555
|
updatedAt: Date;
|
816
1556
|
deletedAt: Date | null;
|
1557
|
+
headers: {
|
1558
|
+
key: string;
|
1559
|
+
value: string;
|
1560
|
+
}[] | null;
|
1561
|
+
upload: {
|
1562
|
+
id: string;
|
1563
|
+
status: string | null;
|
1564
|
+
createdAt: Date;
|
1565
|
+
updatedAt: Date;
|
1566
|
+
deletedAt: Date | null;
|
1567
|
+
fileName: string;
|
1568
|
+
fileKey: string;
|
1569
|
+
bucketName: string;
|
1570
|
+
fileSize: number;
|
1571
|
+
fileUrl: string | null;
|
1572
|
+
} | null;
|
817
1573
|
fields: {
|
818
1574
|
data: string[];
|
819
1575
|
};
|
@@ -822,13 +1578,31 @@ export declare const widgetContract: {
|
|
822
1578
|
requestId: string;
|
823
1579
|
widget: {
|
824
1580
|
name: string;
|
1581
|
+
type: "custom" | "iframe" | null;
|
825
1582
|
id: string;
|
826
1583
|
url: string;
|
827
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1584
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1585
|
+
method: "get" | "post" | null;
|
828
1586
|
description: string | null;
|
829
1587
|
createdAt: Date;
|
830
1588
|
updatedAt: Date;
|
831
1589
|
deletedAt: Date | null;
|
1590
|
+
headers: {
|
1591
|
+
key: string;
|
1592
|
+
value: string;
|
1593
|
+
}[] | null;
|
1594
|
+
upload: {
|
1595
|
+
id: string;
|
1596
|
+
status: string | null;
|
1597
|
+
createdAt: Date;
|
1598
|
+
updatedAt: Date;
|
1599
|
+
deletedAt: Date | null;
|
1600
|
+
fileName: string;
|
1601
|
+
fileKey: string;
|
1602
|
+
bucketName: string;
|
1603
|
+
fileSize: number;
|
1604
|
+
fileUrl: string | null;
|
1605
|
+
} | null;
|
832
1606
|
fields: {
|
833
1607
|
data: string[];
|
834
1608
|
};
|