@kl1/contracts 1.3.29 → 1.3.30
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 +1416 -254
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/index.d.ts +636 -51
- package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/schema.d.ts +46 -4
- package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/validation.d.ts +66 -12
- package/dist/api-contracts/src/widget/validation.d.ts.map +1 -1
- package/dist/index.js +62 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +62 -7
- 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,49 @@ export declare const widgetContract: {
|
|
19
23
|
}, {
|
20
24
|
data: string[];
|
21
25
|
}>>;
|
26
|
+
type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
|
27
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
28
|
+
key: z.ZodString;
|
29
|
+
value: z.ZodString;
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
31
|
+
key: string;
|
32
|
+
value: string;
|
33
|
+
}, {
|
34
|
+
key: string;
|
35
|
+
value: string;
|
36
|
+
}>, "many">>;
|
37
|
+
method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
38
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
22
39
|
}, "strip", z.ZodTypeAny, {
|
23
40
|
name: string;
|
41
|
+
type: "custom" | "iframe";
|
24
42
|
url: string;
|
25
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
26
|
-
|
43
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
44
|
+
fileKey: string | null;
|
45
|
+
description?: string | undefined;
|
27
46
|
fields?: {
|
28
47
|
data: string[];
|
29
48
|
} | undefined;
|
49
|
+
headers?: {
|
50
|
+
key: string;
|
51
|
+
value: string;
|
52
|
+
}[] | undefined;
|
53
|
+
method?: "get" | "post" | undefined;
|
30
54
|
}, {
|
31
55
|
name: string;
|
56
|
+
type: "custom" | "iframe";
|
32
57
|
url: string;
|
33
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
34
|
-
|
58
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
59
|
+
fileKey: string | null;
|
60
|
+
description?: string | undefined;
|
35
61
|
fields?: {
|
36
62
|
data: string[];
|
37
63
|
} | undefined;
|
64
|
+
headers?: {
|
65
|
+
key: string;
|
66
|
+
value: string;
|
67
|
+
}[] | undefined;
|
68
|
+
method?: "get" | "post" | undefined;
|
38
69
|
}>;
|
39
70
|
summary: "Create a widget.";
|
40
71
|
method: "POST";
|
@@ -48,7 +79,7 @@ export declare const widgetContract: {
|
|
48
79
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
49
80
|
name: z.ZodString;
|
50
81
|
description: z.ZodNullable<z.ZodString>;
|
51
|
-
position: z.
|
82
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
52
83
|
fields: z.ZodObject<{
|
53
84
|
data: z.ZodArray<z.ZodString, "many">;
|
54
85
|
}, "strip", z.ZodTypeAny, {
|
@@ -57,27 +88,57 @@ export declare const widgetContract: {
|
|
57
88
|
data: string[];
|
58
89
|
}>;
|
59
90
|
url: z.ZodString;
|
91
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
92
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
93
|
+
key: z.ZodString;
|
94
|
+
value: z.ZodString;
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
96
|
+
key: string;
|
97
|
+
value: string;
|
98
|
+
}, {
|
99
|
+
key: string;
|
100
|
+
value: string;
|
101
|
+
}>, "many">>;
|
102
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
103
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
104
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
60
105
|
}, "strip", z.ZodTypeAny, {
|
61
106
|
name: string;
|
107
|
+
type: "custom" | "iframe" | null;
|
62
108
|
id: string;
|
63
109
|
url: string;
|
64
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
110
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
111
|
+
method: "get" | "post" | null;
|
65
112
|
description: string | null;
|
66
113
|
createdAt: Date;
|
67
114
|
updatedAt: Date;
|
68
115
|
deletedAt: Date | null;
|
116
|
+
headers: {
|
117
|
+
key: string;
|
118
|
+
value: string;
|
119
|
+
}[] | null;
|
120
|
+
fileKey: string | null;
|
121
|
+
fileUrl: string | null;
|
69
122
|
fields: {
|
70
123
|
data: string[];
|
71
124
|
};
|
72
125
|
}, {
|
73
126
|
name: string;
|
127
|
+
type: "custom" | "iframe" | null;
|
74
128
|
id: string;
|
75
129
|
url: string;
|
76
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
130
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
131
|
+
method: "get" | "post" | null;
|
77
132
|
description: string | null;
|
78
133
|
createdAt: Date;
|
79
134
|
updatedAt: Date;
|
80
135
|
deletedAt: Date | null;
|
136
|
+
headers: {
|
137
|
+
key: string;
|
138
|
+
value: string;
|
139
|
+
}[] | null;
|
140
|
+
fileKey: string | null;
|
141
|
+
fileUrl: string | null;
|
81
142
|
fields: {
|
82
143
|
data: string[];
|
83
144
|
};
|
@@ -86,13 +147,21 @@ export declare const widgetContract: {
|
|
86
147
|
requestId: string;
|
87
148
|
widget: {
|
88
149
|
name: string;
|
150
|
+
type: "custom" | "iframe" | null;
|
89
151
|
id: string;
|
90
152
|
url: string;
|
91
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
153
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
154
|
+
method: "get" | "post" | null;
|
92
155
|
description: string | null;
|
93
156
|
createdAt: Date;
|
94
157
|
updatedAt: Date;
|
95
158
|
deletedAt: Date | null;
|
159
|
+
headers: {
|
160
|
+
key: string;
|
161
|
+
value: string;
|
162
|
+
}[] | null;
|
163
|
+
fileKey: string | null;
|
164
|
+
fileUrl: string | null;
|
96
165
|
fields: {
|
97
166
|
data: string[];
|
98
167
|
};
|
@@ -101,13 +170,21 @@ export declare const widgetContract: {
|
|
101
170
|
requestId: string;
|
102
171
|
widget: {
|
103
172
|
name: string;
|
173
|
+
type: "custom" | "iframe" | null;
|
104
174
|
id: string;
|
105
175
|
url: string;
|
106
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
176
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
177
|
+
method: "get" | "post" | null;
|
107
178
|
description: string | null;
|
108
179
|
createdAt: Date;
|
109
180
|
updatedAt: Date;
|
110
181
|
deletedAt: Date | null;
|
182
|
+
headers: {
|
183
|
+
key: string;
|
184
|
+
value: string;
|
185
|
+
}[] | null;
|
186
|
+
fileKey: string | null;
|
187
|
+
fileUrl: string | null;
|
111
188
|
fields: {
|
112
189
|
data: string[];
|
113
190
|
};
|
@@ -141,7 +218,7 @@ export declare const widgetContract: {
|
|
141
218
|
error?: any;
|
142
219
|
}>;
|
143
220
|
};
|
144
|
-
path: "widget";
|
221
|
+
path: "ms/widget";
|
145
222
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
146
223
|
'x-tenant': z.ZodString;
|
147
224
|
'x-service-token': z.ZodString;
|
@@ -183,25 +260,41 @@ export declare const widgetContract: {
|
|
183
260
|
lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
184
261
|
data: z.ZodArray<z.ZodType<{
|
185
262
|
name: string;
|
263
|
+
type: "custom" | "iframe" | null;
|
186
264
|
id: string;
|
187
265
|
url: string;
|
188
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
266
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
267
|
+
method: "get" | "post" | null;
|
189
268
|
description: string | null;
|
190
269
|
createdAt: Date;
|
191
270
|
updatedAt: Date;
|
192
271
|
deletedAt: Date | null;
|
272
|
+
headers: {
|
273
|
+
key: string;
|
274
|
+
value: string;
|
275
|
+
}[] | null;
|
276
|
+
fileKey: string | null;
|
277
|
+
fileUrl: string | null;
|
193
278
|
fields: {
|
194
279
|
data: string[];
|
195
280
|
};
|
196
281
|
}, z.ZodTypeDef, {
|
197
282
|
name: string;
|
283
|
+
type: "custom" | "iframe" | null;
|
198
284
|
id: string;
|
199
285
|
url: string;
|
200
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
286
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
287
|
+
method: "get" | "post" | null;
|
201
288
|
description: string | null;
|
202
289
|
createdAt: Date;
|
203
290
|
updatedAt: Date;
|
204
291
|
deletedAt: Date | null;
|
292
|
+
headers: {
|
293
|
+
key: string;
|
294
|
+
value: string;
|
295
|
+
}[] | null;
|
296
|
+
fileKey: string | null;
|
297
|
+
fileUrl: string | null;
|
205
298
|
fields: {
|
206
299
|
data: string[];
|
207
300
|
};
|
@@ -209,13 +302,21 @@ export declare const widgetContract: {
|
|
209
302
|
}, "strip", z.ZodTypeAny, {
|
210
303
|
data: {
|
211
304
|
name: string;
|
305
|
+
type: "custom" | "iframe" | null;
|
212
306
|
id: string;
|
213
307
|
url: string;
|
214
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
308
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
309
|
+
method: "get" | "post" | null;
|
215
310
|
description: string | null;
|
216
311
|
createdAt: Date;
|
217
312
|
updatedAt: Date;
|
218
313
|
deletedAt: Date | null;
|
314
|
+
headers: {
|
315
|
+
key: string;
|
316
|
+
value: string;
|
317
|
+
}[] | null;
|
318
|
+
fileKey: string | null;
|
319
|
+
fileUrl: string | null;
|
219
320
|
fields: {
|
220
321
|
data: string[];
|
221
322
|
};
|
@@ -227,13 +328,21 @@ export declare const widgetContract: {
|
|
227
328
|
}, {
|
228
329
|
data: {
|
229
330
|
name: string;
|
331
|
+
type: "custom" | "iframe" | null;
|
230
332
|
id: string;
|
231
333
|
url: string;
|
232
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
334
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
335
|
+
method: "get" | "post" | null;
|
233
336
|
description: string | null;
|
234
337
|
createdAt: Date;
|
235
338
|
updatedAt: Date;
|
236
339
|
deletedAt: Date | null;
|
340
|
+
headers: {
|
341
|
+
key: string;
|
342
|
+
value: string;
|
343
|
+
}[] | null;
|
344
|
+
fileKey: string | null;
|
345
|
+
fileUrl: string | null;
|
237
346
|
fields: {
|
238
347
|
data: string[];
|
239
348
|
};
|
@@ -271,7 +380,7 @@ export declare const widgetContract: {
|
|
271
380
|
error?: any;
|
272
381
|
}>;
|
273
382
|
};
|
274
|
-
path: "widget";
|
383
|
+
path: "ms/widget";
|
275
384
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
276
385
|
'x-tenant': z.ZodString;
|
277
386
|
'x-service-token': z.ZodString;
|
@@ -300,7 +409,7 @@ export declare const widgetContract: {
|
|
300
409
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
301
410
|
name: z.ZodString;
|
302
411
|
description: z.ZodNullable<z.ZodString>;
|
303
|
-
position: z.
|
412
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
304
413
|
fields: z.ZodObject<{
|
305
414
|
data: z.ZodArray<z.ZodString, "many">;
|
306
415
|
}, "strip", z.ZodTypeAny, {
|
@@ -309,27 +418,57 @@ export declare const widgetContract: {
|
|
309
418
|
data: string[];
|
310
419
|
}>;
|
311
420
|
url: z.ZodString;
|
421
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
422
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
423
|
+
key: z.ZodString;
|
424
|
+
value: z.ZodString;
|
425
|
+
}, "strip", z.ZodTypeAny, {
|
426
|
+
key: string;
|
427
|
+
value: string;
|
428
|
+
}, {
|
429
|
+
key: string;
|
430
|
+
value: string;
|
431
|
+
}>, "many">>;
|
432
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
433
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
434
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
312
435
|
}, "strip", z.ZodTypeAny, {
|
313
436
|
name: string;
|
437
|
+
type: "custom" | "iframe" | null;
|
314
438
|
id: string;
|
315
439
|
url: string;
|
316
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
440
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
441
|
+
method: "get" | "post" | null;
|
317
442
|
description: string | null;
|
318
443
|
createdAt: Date;
|
319
444
|
updatedAt: Date;
|
320
445
|
deletedAt: Date | null;
|
446
|
+
headers: {
|
447
|
+
key: string;
|
448
|
+
value: string;
|
449
|
+
}[] | null;
|
450
|
+
fileKey: string | null;
|
451
|
+
fileUrl: string | null;
|
321
452
|
fields: {
|
322
453
|
data: string[];
|
323
454
|
};
|
324
455
|
}, {
|
325
456
|
name: string;
|
457
|
+
type: "custom" | "iframe" | null;
|
326
458
|
id: string;
|
327
459
|
url: string;
|
328
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
460
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
461
|
+
method: "get" | "post" | null;
|
329
462
|
description: string | null;
|
330
463
|
createdAt: Date;
|
331
464
|
updatedAt: Date;
|
332
465
|
deletedAt: Date | null;
|
466
|
+
headers: {
|
467
|
+
key: string;
|
468
|
+
value: string;
|
469
|
+
}[] | null;
|
470
|
+
fileKey: string | null;
|
471
|
+
fileUrl: string | null;
|
333
472
|
fields: {
|
334
473
|
data: string[];
|
335
474
|
};
|
@@ -362,7 +501,7 @@ export declare const widgetContract: {
|
|
362
501
|
error?: any;
|
363
502
|
}>;
|
364
503
|
};
|
365
|
-
path: "widget/menu";
|
504
|
+
path: "ms/widget/menu";
|
366
505
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
367
506
|
'x-tenant': z.ZodString;
|
368
507
|
'x-service-token': z.ZodString;
|
@@ -391,7 +530,7 @@ export declare const widgetContract: {
|
|
391
530
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
392
531
|
name: z.ZodString;
|
393
532
|
description: z.ZodNullable<z.ZodString>;
|
394
|
-
position: z.
|
533
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
395
534
|
fields: z.ZodObject<{
|
396
535
|
data: z.ZodArray<z.ZodString, "many">;
|
397
536
|
}, "strip", z.ZodTypeAny, {
|
@@ -400,27 +539,57 @@ export declare const widgetContract: {
|
|
400
539
|
data: string[];
|
401
540
|
}>;
|
402
541
|
url: z.ZodString;
|
542
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
543
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
544
|
+
key: z.ZodString;
|
545
|
+
value: z.ZodString;
|
546
|
+
}, "strip", z.ZodTypeAny, {
|
547
|
+
key: string;
|
548
|
+
value: string;
|
549
|
+
}, {
|
550
|
+
key: string;
|
551
|
+
value: string;
|
552
|
+
}>, "many">>;
|
553
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
554
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
555
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
403
556
|
}, "strip", z.ZodTypeAny, {
|
404
557
|
name: string;
|
558
|
+
type: "custom" | "iframe" | null;
|
405
559
|
id: string;
|
406
560
|
url: string;
|
407
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
561
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
562
|
+
method: "get" | "post" | null;
|
408
563
|
description: string | null;
|
409
564
|
createdAt: Date;
|
410
565
|
updatedAt: Date;
|
411
566
|
deletedAt: Date | null;
|
567
|
+
headers: {
|
568
|
+
key: string;
|
569
|
+
value: string;
|
570
|
+
}[] | null;
|
571
|
+
fileKey: string | null;
|
572
|
+
fileUrl: string | null;
|
412
573
|
fields: {
|
413
574
|
data: string[];
|
414
575
|
};
|
415
576
|
}, {
|
416
577
|
name: string;
|
578
|
+
type: "custom" | "iframe" | null;
|
417
579
|
id: string;
|
418
580
|
url: string;
|
419
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
581
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
582
|
+
method: "get" | "post" | null;
|
420
583
|
description: string | null;
|
421
584
|
createdAt: Date;
|
422
585
|
updatedAt: Date;
|
423
586
|
deletedAt: Date | null;
|
587
|
+
headers: {
|
588
|
+
key: string;
|
589
|
+
value: string;
|
590
|
+
}[] | null;
|
591
|
+
fileKey: string | null;
|
592
|
+
fileUrl: string | null;
|
424
593
|
fields: {
|
425
594
|
data: string[];
|
426
595
|
};
|
@@ -453,7 +622,7 @@ export declare const widgetContract: {
|
|
453
622
|
error?: any;
|
454
623
|
}>;
|
455
624
|
};
|
456
|
-
path: "widget/ticket_detail";
|
625
|
+
path: "ms/widget/ticket_detail";
|
457
626
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
458
627
|
'x-tenant': z.ZodString;
|
459
628
|
'x-service-token': z.ZodString;
|
@@ -482,7 +651,249 @@ export declare const widgetContract: {
|
|
482
651
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
483
652
|
name: z.ZodString;
|
484
653
|
description: z.ZodNullable<z.ZodString>;
|
485
|
-
position: z.
|
654
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
655
|
+
fields: z.ZodObject<{
|
656
|
+
data: z.ZodArray<z.ZodString, "many">;
|
657
|
+
}, "strip", z.ZodTypeAny, {
|
658
|
+
data: string[];
|
659
|
+
}, {
|
660
|
+
data: string[];
|
661
|
+
}>;
|
662
|
+
url: z.ZodString;
|
663
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
664
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
665
|
+
key: z.ZodString;
|
666
|
+
value: z.ZodString;
|
667
|
+
}, "strip", z.ZodTypeAny, {
|
668
|
+
key: string;
|
669
|
+
value: string;
|
670
|
+
}, {
|
671
|
+
key: string;
|
672
|
+
value: string;
|
673
|
+
}>, "many">>;
|
674
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
675
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
676
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
678
|
+
name: string;
|
679
|
+
type: "custom" | "iframe" | null;
|
680
|
+
id: string;
|
681
|
+
url: string;
|
682
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
683
|
+
method: "get" | "post" | null;
|
684
|
+
description: string | null;
|
685
|
+
createdAt: Date;
|
686
|
+
updatedAt: Date;
|
687
|
+
deletedAt: Date | null;
|
688
|
+
headers: {
|
689
|
+
key: string;
|
690
|
+
value: string;
|
691
|
+
}[] | null;
|
692
|
+
fileKey: string | null;
|
693
|
+
fileUrl: string | null;
|
694
|
+
fields: {
|
695
|
+
data: string[];
|
696
|
+
};
|
697
|
+
}, {
|
698
|
+
name: string;
|
699
|
+
type: "custom" | "iframe" | null;
|
700
|
+
id: string;
|
701
|
+
url: string;
|
702
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
703
|
+
method: "get" | "post" | null;
|
704
|
+
description: string | null;
|
705
|
+
createdAt: Date;
|
706
|
+
updatedAt: Date;
|
707
|
+
deletedAt: Date | null;
|
708
|
+
headers: {
|
709
|
+
key: string;
|
710
|
+
value: string;
|
711
|
+
}[] | null;
|
712
|
+
fileKey: string | null;
|
713
|
+
fileUrl: string | null;
|
714
|
+
fields: {
|
715
|
+
data: string[];
|
716
|
+
};
|
717
|
+
}>, "many">;
|
718
|
+
400: z.ZodObject<{
|
719
|
+
message: z.ZodString;
|
720
|
+
}, "strip", z.ZodTypeAny, {
|
721
|
+
message: string;
|
722
|
+
}, {
|
723
|
+
message: string;
|
724
|
+
}>;
|
725
|
+
401: z.ZodObject<{
|
726
|
+
message: z.ZodString;
|
727
|
+
error: z.ZodAny;
|
728
|
+
}, "strip", z.ZodTypeAny, {
|
729
|
+
message: string;
|
730
|
+
error?: any;
|
731
|
+
}, {
|
732
|
+
message: string;
|
733
|
+
error?: any;
|
734
|
+
}>;
|
735
|
+
500: z.ZodObject<{
|
736
|
+
message: z.ZodString;
|
737
|
+
error: z.ZodAny;
|
738
|
+
}, "strip", z.ZodTypeAny, {
|
739
|
+
message: string;
|
740
|
+
error?: any;
|
741
|
+
}, {
|
742
|
+
message: string;
|
743
|
+
error?: any;
|
744
|
+
}>;
|
745
|
+
};
|
746
|
+
path: "ms/widget/contact_detail";
|
747
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
748
|
+
'x-tenant': z.ZodString;
|
749
|
+
'x-service-token': z.ZodString;
|
750
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
751
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
752
|
+
}, "strip", z.ZodTypeAny, {
|
753
|
+
'x-tenant': string;
|
754
|
+
'x-service-token': string;
|
755
|
+
'x-client-timezone': string;
|
756
|
+
'x-code'?: string | undefined;
|
757
|
+
}, {
|
758
|
+
'x-tenant': string;
|
759
|
+
'x-service-token': string;
|
760
|
+
'x-code'?: string | undefined;
|
761
|
+
'x-client-timezone'?: string | undefined;
|
762
|
+
}>>>;
|
763
|
+
};
|
764
|
+
getContactProfileWidgets: {
|
765
|
+
summary: "Get contact profile widgets";
|
766
|
+
method: "GET";
|
767
|
+
responses: {
|
768
|
+
200: z.ZodArray<z.ZodObject<{
|
769
|
+
id: z.ZodString;
|
770
|
+
createdAt: z.ZodDate;
|
771
|
+
updatedAt: z.ZodDate;
|
772
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
773
|
+
name: z.ZodString;
|
774
|
+
description: z.ZodNullable<z.ZodString>;
|
775
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
776
|
+
fields: z.ZodObject<{
|
777
|
+
data: z.ZodArray<z.ZodString, "many">;
|
778
|
+
}, "strip", z.ZodTypeAny, {
|
779
|
+
data: string[];
|
780
|
+
}, {
|
781
|
+
data: string[];
|
782
|
+
}>;
|
783
|
+
url: z.ZodString;
|
784
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
785
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
786
|
+
key: z.ZodString;
|
787
|
+
value: z.ZodString;
|
788
|
+
}, "strip", z.ZodTypeAny, {
|
789
|
+
key: string;
|
790
|
+
value: string;
|
791
|
+
}, {
|
792
|
+
key: string;
|
793
|
+
value: string;
|
794
|
+
}>, "many">>;
|
795
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
796
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
797
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
798
|
+
}, "strip", z.ZodTypeAny, {
|
799
|
+
name: string;
|
800
|
+
type: "custom" | "iframe" | null;
|
801
|
+
id: string;
|
802
|
+
url: string;
|
803
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
804
|
+
method: "get" | "post" | null;
|
805
|
+
description: string | null;
|
806
|
+
createdAt: Date;
|
807
|
+
updatedAt: Date;
|
808
|
+
deletedAt: Date | null;
|
809
|
+
headers: {
|
810
|
+
key: string;
|
811
|
+
value: string;
|
812
|
+
}[] | null;
|
813
|
+
fileKey: string | null;
|
814
|
+
fileUrl: string | null;
|
815
|
+
fields: {
|
816
|
+
data: string[];
|
817
|
+
};
|
818
|
+
}, {
|
819
|
+
name: string;
|
820
|
+
type: "custom" | "iframe" | null;
|
821
|
+
id: string;
|
822
|
+
url: string;
|
823
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
824
|
+
method: "get" | "post" | null;
|
825
|
+
description: string | null;
|
826
|
+
createdAt: Date;
|
827
|
+
updatedAt: Date;
|
828
|
+
deletedAt: Date | null;
|
829
|
+
headers: {
|
830
|
+
key: string;
|
831
|
+
value: string;
|
832
|
+
}[] | null;
|
833
|
+
fileKey: string | null;
|
834
|
+
fileUrl: string | null;
|
835
|
+
fields: {
|
836
|
+
data: string[];
|
837
|
+
};
|
838
|
+
}>, "many">;
|
839
|
+
400: z.ZodObject<{
|
840
|
+
message: z.ZodString;
|
841
|
+
}, "strip", z.ZodTypeAny, {
|
842
|
+
message: string;
|
843
|
+
}, {
|
844
|
+
message: string;
|
845
|
+
}>;
|
846
|
+
401: z.ZodObject<{
|
847
|
+
message: z.ZodString;
|
848
|
+
error: z.ZodAny;
|
849
|
+
}, "strip", z.ZodTypeAny, {
|
850
|
+
message: string;
|
851
|
+
error?: any;
|
852
|
+
}, {
|
853
|
+
message: string;
|
854
|
+
error?: any;
|
855
|
+
}>;
|
856
|
+
500: z.ZodObject<{
|
857
|
+
message: z.ZodString;
|
858
|
+
error: z.ZodAny;
|
859
|
+
}, "strip", z.ZodTypeAny, {
|
860
|
+
message: string;
|
861
|
+
error?: any;
|
862
|
+
}, {
|
863
|
+
message: string;
|
864
|
+
error?: any;
|
865
|
+
}>;
|
866
|
+
};
|
867
|
+
path: "ms/widget/contact_profile";
|
868
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
869
|
+
'x-tenant': z.ZodString;
|
870
|
+
'x-service-token': z.ZodString;
|
871
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
872
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
873
|
+
}, "strip", z.ZodTypeAny, {
|
874
|
+
'x-tenant': string;
|
875
|
+
'x-service-token': string;
|
876
|
+
'x-client-timezone': string;
|
877
|
+
'x-code'?: string | undefined;
|
878
|
+
}, {
|
879
|
+
'x-tenant': string;
|
880
|
+
'x-service-token': string;
|
881
|
+
'x-code'?: string | undefined;
|
882
|
+
'x-client-timezone'?: string | undefined;
|
883
|
+
}>>>;
|
884
|
+
};
|
885
|
+
getInboxDetailWidgets: {
|
886
|
+
summary: "Get inbox detail widgets";
|
887
|
+
method: "GET";
|
888
|
+
responses: {
|
889
|
+
200: z.ZodArray<z.ZodObject<{
|
890
|
+
id: z.ZodString;
|
891
|
+
createdAt: z.ZodDate;
|
892
|
+
updatedAt: z.ZodDate;
|
893
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
894
|
+
name: z.ZodString;
|
895
|
+
description: z.ZodNullable<z.ZodString>;
|
896
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
486
897
|
fields: z.ZodObject<{
|
487
898
|
data: z.ZodArray<z.ZodString, "many">;
|
488
899
|
}, "strip", z.ZodTypeAny, {
|
@@ -491,27 +902,57 @@ export declare const widgetContract: {
|
|
491
902
|
data: string[];
|
492
903
|
}>;
|
493
904
|
url: z.ZodString;
|
905
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
906
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
907
|
+
key: z.ZodString;
|
908
|
+
value: z.ZodString;
|
909
|
+
}, "strip", z.ZodTypeAny, {
|
910
|
+
key: string;
|
911
|
+
value: string;
|
912
|
+
}, {
|
913
|
+
key: string;
|
914
|
+
value: string;
|
915
|
+
}>, "many">>;
|
916
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
917
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
918
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
494
919
|
}, "strip", z.ZodTypeAny, {
|
495
920
|
name: string;
|
921
|
+
type: "custom" | "iframe" | null;
|
496
922
|
id: string;
|
497
923
|
url: string;
|
498
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
924
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
925
|
+
method: "get" | "post" | null;
|
499
926
|
description: string | null;
|
500
927
|
createdAt: Date;
|
501
928
|
updatedAt: Date;
|
502
929
|
deletedAt: Date | null;
|
930
|
+
headers: {
|
931
|
+
key: string;
|
932
|
+
value: string;
|
933
|
+
}[] | null;
|
934
|
+
fileKey: string | null;
|
935
|
+
fileUrl: string | null;
|
503
936
|
fields: {
|
504
937
|
data: string[];
|
505
938
|
};
|
506
939
|
}, {
|
507
940
|
name: string;
|
941
|
+
type: "custom" | "iframe" | null;
|
508
942
|
id: string;
|
509
943
|
url: string;
|
510
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
944
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
945
|
+
method: "get" | "post" | null;
|
511
946
|
description: string | null;
|
512
947
|
createdAt: Date;
|
513
948
|
updatedAt: Date;
|
514
949
|
deletedAt: Date | null;
|
950
|
+
headers: {
|
951
|
+
key: string;
|
952
|
+
value: string;
|
953
|
+
}[] | null;
|
954
|
+
fileKey: string | null;
|
955
|
+
fileUrl: string | null;
|
515
956
|
fields: {
|
516
957
|
data: string[];
|
517
958
|
};
|
@@ -544,7 +985,7 @@ export declare const widgetContract: {
|
|
544
985
|
error?: any;
|
545
986
|
}>;
|
546
987
|
};
|
547
|
-
path: "widget/
|
988
|
+
path: "ms/widget/inbox_detail";
|
548
989
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
549
990
|
'x-tenant': z.ZodString;
|
550
991
|
'x-service-token': z.ZodString;
|
@@ -580,7 +1021,7 @@ export declare const widgetContract: {
|
|
580
1021
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
581
1022
|
name: z.ZodString;
|
582
1023
|
description: z.ZodNullable<z.ZodString>;
|
583
|
-
position: z.
|
1024
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
584
1025
|
fields: z.ZodObject<{
|
585
1026
|
data: z.ZodArray<z.ZodString, "many">;
|
586
1027
|
}, "strip", z.ZodTypeAny, {
|
@@ -589,27 +1030,57 @@ export declare const widgetContract: {
|
|
589
1030
|
data: string[];
|
590
1031
|
}>;
|
591
1032
|
url: z.ZodString;
|
1033
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
1034
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
1035
|
+
key: z.ZodString;
|
1036
|
+
value: z.ZodString;
|
1037
|
+
}, "strip", z.ZodTypeAny, {
|
1038
|
+
key: string;
|
1039
|
+
value: string;
|
1040
|
+
}, {
|
1041
|
+
key: string;
|
1042
|
+
value: string;
|
1043
|
+
}>, "many">>;
|
1044
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
1045
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
1046
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
592
1047
|
}, "strip", z.ZodTypeAny, {
|
593
1048
|
name: string;
|
1049
|
+
type: "custom" | "iframe" | null;
|
594
1050
|
id: string;
|
595
1051
|
url: string;
|
596
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1052
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1053
|
+
method: "get" | "post" | null;
|
597
1054
|
description: string | null;
|
598
1055
|
createdAt: Date;
|
599
1056
|
updatedAt: Date;
|
600
1057
|
deletedAt: Date | null;
|
1058
|
+
headers: {
|
1059
|
+
key: string;
|
1060
|
+
value: string;
|
1061
|
+
}[] | null;
|
1062
|
+
fileKey: string | null;
|
1063
|
+
fileUrl: string | null;
|
601
1064
|
fields: {
|
602
1065
|
data: string[];
|
603
1066
|
};
|
604
1067
|
}, {
|
605
1068
|
name: string;
|
1069
|
+
type: "custom" | "iframe" | null;
|
606
1070
|
id: string;
|
607
1071
|
url: string;
|
608
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1072
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1073
|
+
method: "get" | "post" | null;
|
609
1074
|
description: string | null;
|
610
1075
|
createdAt: Date;
|
611
1076
|
updatedAt: Date;
|
612
1077
|
deletedAt: Date | null;
|
1078
|
+
headers: {
|
1079
|
+
key: string;
|
1080
|
+
value: string;
|
1081
|
+
}[] | null;
|
1082
|
+
fileKey: string | null;
|
1083
|
+
fileUrl: string | null;
|
613
1084
|
fields: {
|
614
1085
|
data: string[];
|
615
1086
|
};
|
@@ -642,7 +1113,7 @@ export declare const widgetContract: {
|
|
642
1113
|
error?: any;
|
643
1114
|
}>;
|
644
1115
|
};
|
645
|
-
path: "widget/:id";
|
1116
|
+
path: "ms/widget/:id";
|
646
1117
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
647
1118
|
'x-tenant': z.ZodString;
|
648
1119
|
'x-service-token': z.ZodString;
|
@@ -676,13 +1147,54 @@ export declare const widgetContract: {
|
|
676
1147
|
responses: {
|
677
1148
|
201: z.ZodObject<{
|
678
1149
|
requestId: z.ZodString;
|
679
|
-
|
1150
|
+
widget: z.ZodObject<{
|
1151
|
+
token: z.ZodNullable<z.ZodString>;
|
1152
|
+
headers: z.ZodArray<z.ZodObject<{
|
1153
|
+
key: z.ZodString;
|
1154
|
+
value: z.ZodString;
|
1155
|
+
}, "strip", z.ZodTypeAny, {
|
1156
|
+
key: string;
|
1157
|
+
value: string;
|
1158
|
+
}, {
|
1159
|
+
key: string;
|
1160
|
+
value: string;
|
1161
|
+
}>, "many">;
|
1162
|
+
url: z.ZodString;
|
1163
|
+
}, "strip", z.ZodTypeAny, {
|
1164
|
+
url: string;
|
1165
|
+
headers: {
|
1166
|
+
key: string;
|
1167
|
+
value: string;
|
1168
|
+
}[];
|
1169
|
+
token: string | null;
|
1170
|
+
}, {
|
1171
|
+
url: string;
|
1172
|
+
headers: {
|
1173
|
+
key: string;
|
1174
|
+
value: string;
|
1175
|
+
}[];
|
1176
|
+
token: string | null;
|
1177
|
+
}>;
|
680
1178
|
}, "strip", z.ZodTypeAny, {
|
681
|
-
url: string;
|
682
1179
|
requestId: string;
|
1180
|
+
widget: {
|
1181
|
+
url: string;
|
1182
|
+
headers: {
|
1183
|
+
key: string;
|
1184
|
+
value: string;
|
1185
|
+
}[];
|
1186
|
+
token: string | null;
|
1187
|
+
};
|
683
1188
|
}, {
|
684
|
-
url: string;
|
685
1189
|
requestId: string;
|
1190
|
+
widget: {
|
1191
|
+
url: string;
|
1192
|
+
headers: {
|
1193
|
+
key: string;
|
1194
|
+
value: string;
|
1195
|
+
}[];
|
1196
|
+
token: string | null;
|
1197
|
+
};
|
686
1198
|
}>;
|
687
1199
|
400: z.ZodObject<{
|
688
1200
|
message: z.ZodString;
|
@@ -702,7 +1214,7 @@ export declare const widgetContract: {
|
|
702
1214
|
error?: any;
|
703
1215
|
}>;
|
704
1216
|
};
|
705
|
-
path: "widget/url_token/generate";
|
1217
|
+
path: "ms/widget/url_token/generate";
|
706
1218
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
707
1219
|
'x-tenant': z.ZodString;
|
708
1220
|
'x-service-token': z.ZodString;
|
@@ -723,9 +1235,9 @@ export declare const widgetContract: {
|
|
723
1235
|
updateWidget: {
|
724
1236
|
body: z.ZodObject<{
|
725
1237
|
name: z.ZodString;
|
726
|
-
description: z.ZodString
|
1238
|
+
description: z.ZodOptional<z.ZodString>;
|
727
1239
|
url: z.ZodString;
|
728
|
-
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
|
1240
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
729
1241
|
fields: z.ZodOptional<z.ZodObject<{
|
730
1242
|
data: z.ZodArray<z.ZodString, "many">;
|
731
1243
|
}, "strip", z.ZodTypeAny, {
|
@@ -733,22 +1245,49 @@ export declare const widgetContract: {
|
|
733
1245
|
}, {
|
734
1246
|
data: string[];
|
735
1247
|
}>>;
|
1248
|
+
type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
|
1249
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1250
|
+
key: z.ZodString;
|
1251
|
+
value: z.ZodString;
|
1252
|
+
}, "strip", z.ZodTypeAny, {
|
1253
|
+
key: string;
|
1254
|
+
value: string;
|
1255
|
+
}, {
|
1256
|
+
key: string;
|
1257
|
+
value: string;
|
1258
|
+
}>, "many">>;
|
1259
|
+
method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
1260
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
736
1261
|
}, "strip", z.ZodTypeAny, {
|
737
1262
|
name: string;
|
1263
|
+
type: "custom" | "iframe";
|
738
1264
|
url: string;
|
739
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
740
|
-
|
1265
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1266
|
+
fileKey: string | null;
|
1267
|
+
description?: string | undefined;
|
741
1268
|
fields?: {
|
742
1269
|
data: string[];
|
743
1270
|
} | undefined;
|
1271
|
+
headers?: {
|
1272
|
+
key: string;
|
1273
|
+
value: string;
|
1274
|
+
}[] | undefined;
|
1275
|
+
method?: "get" | "post" | undefined;
|
744
1276
|
}, {
|
745
1277
|
name: string;
|
1278
|
+
type: "custom" | "iframe";
|
746
1279
|
url: string;
|
747
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
748
|
-
|
1280
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1281
|
+
fileKey: string | null;
|
1282
|
+
description?: string | undefined;
|
749
1283
|
fields?: {
|
750
1284
|
data: string[];
|
751
1285
|
} | undefined;
|
1286
|
+
headers?: {
|
1287
|
+
key: string;
|
1288
|
+
value: string;
|
1289
|
+
}[] | undefined;
|
1290
|
+
method?: "get" | "post" | undefined;
|
752
1291
|
}>;
|
753
1292
|
summary: "Update a widget.";
|
754
1293
|
method: "PATCH";
|
@@ -769,7 +1308,7 @@ export declare const widgetContract: {
|
|
769
1308
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
770
1309
|
name: z.ZodString;
|
771
1310
|
description: z.ZodNullable<z.ZodString>;
|
772
|
-
position: z.
|
1311
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
773
1312
|
fields: z.ZodObject<{
|
774
1313
|
data: z.ZodArray<z.ZodString, "many">;
|
775
1314
|
}, "strip", z.ZodTypeAny, {
|
@@ -778,27 +1317,57 @@ export declare const widgetContract: {
|
|
778
1317
|
data: string[];
|
779
1318
|
}>;
|
780
1319
|
url: z.ZodString;
|
1320
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
1321
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
1322
|
+
key: z.ZodString;
|
1323
|
+
value: z.ZodString;
|
1324
|
+
}, "strip", z.ZodTypeAny, {
|
1325
|
+
key: string;
|
1326
|
+
value: string;
|
1327
|
+
}, {
|
1328
|
+
key: string;
|
1329
|
+
value: string;
|
1330
|
+
}>, "many">>;
|
1331
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
1332
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
1333
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
781
1334
|
}, "strip", z.ZodTypeAny, {
|
782
1335
|
name: string;
|
1336
|
+
type: "custom" | "iframe" | null;
|
783
1337
|
id: string;
|
784
1338
|
url: string;
|
785
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1339
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1340
|
+
method: "get" | "post" | null;
|
786
1341
|
description: string | null;
|
787
1342
|
createdAt: Date;
|
788
1343
|
updatedAt: Date;
|
789
1344
|
deletedAt: Date | null;
|
1345
|
+
headers: {
|
1346
|
+
key: string;
|
1347
|
+
value: string;
|
1348
|
+
}[] | null;
|
1349
|
+
fileKey: string | null;
|
1350
|
+
fileUrl: string | null;
|
790
1351
|
fields: {
|
791
1352
|
data: string[];
|
792
1353
|
};
|
793
1354
|
}, {
|
794
1355
|
name: string;
|
1356
|
+
type: "custom" | "iframe" | null;
|
795
1357
|
id: string;
|
796
1358
|
url: string;
|
797
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1359
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1360
|
+
method: "get" | "post" | null;
|
798
1361
|
description: string | null;
|
799
1362
|
createdAt: Date;
|
800
1363
|
updatedAt: Date;
|
801
1364
|
deletedAt: Date | null;
|
1365
|
+
headers: {
|
1366
|
+
key: string;
|
1367
|
+
value: string;
|
1368
|
+
}[] | null;
|
1369
|
+
fileKey: string | null;
|
1370
|
+
fileUrl: string | null;
|
802
1371
|
fields: {
|
803
1372
|
data: string[];
|
804
1373
|
};
|
@@ -807,13 +1376,21 @@ export declare const widgetContract: {
|
|
807
1376
|
requestId: string;
|
808
1377
|
widget: {
|
809
1378
|
name: string;
|
1379
|
+
type: "custom" | "iframe" | null;
|
810
1380
|
id: string;
|
811
1381
|
url: string;
|
812
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1382
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1383
|
+
method: "get" | "post" | null;
|
813
1384
|
description: string | null;
|
814
1385
|
createdAt: Date;
|
815
1386
|
updatedAt: Date;
|
816
1387
|
deletedAt: Date | null;
|
1388
|
+
headers: {
|
1389
|
+
key: string;
|
1390
|
+
value: string;
|
1391
|
+
}[] | null;
|
1392
|
+
fileKey: string | null;
|
1393
|
+
fileUrl: string | null;
|
817
1394
|
fields: {
|
818
1395
|
data: string[];
|
819
1396
|
};
|
@@ -822,13 +1399,21 @@ export declare const widgetContract: {
|
|
822
1399
|
requestId: string;
|
823
1400
|
widget: {
|
824
1401
|
name: string;
|
1402
|
+
type: "custom" | "iframe" | null;
|
825
1403
|
id: string;
|
826
1404
|
url: string;
|
827
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1405
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1406
|
+
method: "get" | "post" | null;
|
828
1407
|
description: string | null;
|
829
1408
|
createdAt: Date;
|
830
1409
|
updatedAt: Date;
|
831
1410
|
deletedAt: Date | null;
|
1411
|
+
headers: {
|
1412
|
+
key: string;
|
1413
|
+
value: string;
|
1414
|
+
}[] | null;
|
1415
|
+
fileKey: string | null;
|
1416
|
+
fileUrl: string | null;
|
832
1417
|
fields: {
|
833
1418
|
data: string[];
|
834
1419
|
};
|
@@ -852,7 +1437,7 @@ export declare const widgetContract: {
|
|
852
1437
|
error?: any;
|
853
1438
|
}>;
|
854
1439
|
};
|
855
|
-
path: "widget/:id";
|
1440
|
+
path: "ms/widget/:id";
|
856
1441
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
857
1442
|
'x-tenant': z.ZodString;
|
858
1443
|
'x-service-token': z.ZodString;
|
@@ -903,7 +1488,7 @@ export declare const widgetContract: {
|
|
903
1488
|
error?: any;
|
904
1489
|
}>;
|
905
1490
|
};
|
906
|
-
path: "widget/:id";
|
1491
|
+
path: "ms/widget/:id";
|
907
1492
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
908
1493
|
'x-tenant': z.ZodString;
|
909
1494
|
'x-service-token': z.ZodString;
|