@kl1/contracts 1.3.20 → 1.3.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/activity-log/index.d.ts +1 -1
- package/dist/api-contracts/src/attribute/index.d.ts +7 -7
- package/dist/api-contracts/src/auth/index.d.ts +1 -1
- package/dist/api-contracts/src/automation-queue/index.d.ts +10 -7
- package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
- package/dist/api-contracts/src/aws/index.d.ts +2 -2
- package/dist/api-contracts/src/botpress/index.d.ts +2 -2
- package/dist/api-contracts/src/business-calendar/index.d.ts +4 -4
- package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
- package/dist/api-contracts/src/category/index.d.ts +7 -7
- package/dist/api-contracts/src/channel/index.d.ts +4754 -3019
- package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
- package/dist/api-contracts/src/channel/schema.d.ts +36 -0
- package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/channel/validation.d.ts +23 -0
- package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/index.d.ts +2580 -2212
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/schema.d.ts +679 -603
- package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/validation.d.ts +500 -389
- package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/comment/index.d.ts +364 -364
- package/dist/api-contracts/src/comment/schema.d.ts +88 -88
- package/dist/api-contracts/src/contract.d.ts +40905 -35495
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/index.d.ts +76 -65
- package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/schema.d.ts +90 -81
- package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/index.d.ts +953 -49
- package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/schema.d.ts +164 -9
- package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/validation.d.ts +30 -1
- package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/evaluate-form/index.d.ts +1 -1
- package/dist/api-contracts/src/export/index.d.ts +2 -0
- package/dist/api-contracts/src/export/index.d.ts.map +1 -1
- package/dist/api-contracts/src/export/validation.d.ts +3 -0
- package/dist/api-contracts/src/export/validation.d.ts.map +1 -0
- package/dist/api-contracts/src/extension/index.d.ts +7 -7
- package/dist/api-contracts/src/facebook-feed/index.d.ts +395 -273
- package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/schema.d.ts +10 -3
- package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/validation.d.ts +5 -0
- package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
- package/dist/api-contracts/src/hold-label/index.d.ts +10 -10
- package/dist/api-contracts/src/index.d.ts +2 -0
- package/dist/api-contracts/src/index.d.ts.map +1 -1
- package/dist/api-contracts/src/instagram/index.d.ts +360 -261
- package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
- package/dist/api-contracts/src/line/index.d.ts +359 -268
- package/dist/api-contracts/src/line/index.d.ts.map +1 -1
- package/dist/api-contracts/src/line/validation.d.ts +16 -7
- package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +1 -1
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/mail-contract.d.ts +240 -240
- package/dist/api-contracts/src/mail/room-contract.d.ts +240 -240
- package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +80 -80
- package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +60 -60
- package/dist/api-contracts/src/messenger/index.d.ts +360 -261
- package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
- package/dist/api-contracts/src/messenger/validation.d.ts +5 -0
- package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/notification/index.d.ts +4 -4
- package/dist/api-contracts/src/permission/index.d.ts +1 -1
- package/dist/api-contracts/src/presence-status/index.d.ts +127 -55
- package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/schema.d.ts +16 -10
- package/dist/api-contracts/src/presence-status/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/validation.d.ts +30 -12
- package/dist/api-contracts/src/presence-status/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/role/index.d.ts +5 -5
- package/dist/api-contracts/src/sms/index.d.ts +44 -7
- package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
- package/dist/api-contracts/src/snippet/index.d.ts +8 -8
- package/dist/api-contracts/src/subscription/index.d.ts +5 -5
- package/dist/api-contracts/src/tag/index.d.ts +4 -4
- package/dist/api-contracts/src/telegram/index.d.ts +338 -261
- package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +62 -441
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +25 -13
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts +0 -3
- package/dist/api-contracts/src/telephony-agent-presence-status/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-cdr/index.d.ts +14 -14
- package/dist/api-contracts/src/telephony-extension/index.d.ts +1 -1
- package/dist/api-contracts/src/ticket/index.d.ts +672 -672
- package/dist/api-contracts/src/ticket/schema.d.ts +44 -44
- package/dist/api-contracts/src/ticket/validation.d.ts +20 -20
- package/dist/api-contracts/src/upload/index.d.ts +2 -2
- package/dist/api-contracts/src/user/index.d.ts +7 -7
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts +42 -18
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +50 -20
- package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/viber/index.d.ts +338 -261
- package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
- package/dist/api-contracts/src/webchat/index.d.ts +338 -261
- package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/whatsapp/index.d.ts +348 -261
- package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/index.d.ts +350 -48
- 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/api-contracts/src/workflow-rule/index.d.ts +323 -277
- package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
- package/dist/api-contracts/src/wrap-up-form/index.d.ts +187 -187
- package/dist/api-contracts/src/wrap-up-form/schema.d.ts +20 -20
- package/dist/entities/src/enums/chat.d.ts +12 -0
- package/dist/entities/src/enums/chat.d.ts.map +1 -1
- package/dist/index.js +872 -464
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +870 -464
- 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,7 @@ 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">]>;
|
486
655
|
fields: z.ZodObject<{
|
487
656
|
data: z.ZodArray<z.ZodString, "many">;
|
488
657
|
}, "strip", z.ZodTypeAny, {
|
@@ -491,27 +660,57 @@ export declare const widgetContract: {
|
|
491
660
|
data: string[];
|
492
661
|
}>;
|
493
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>;
|
494
677
|
}, "strip", z.ZodTypeAny, {
|
495
678
|
name: string;
|
679
|
+
type: "custom" | "iframe" | null;
|
496
680
|
id: string;
|
497
681
|
url: string;
|
498
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
682
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
683
|
+
method: "get" | "post" | null;
|
499
684
|
description: string | null;
|
500
685
|
createdAt: Date;
|
501
686
|
updatedAt: Date;
|
502
687
|
deletedAt: Date | null;
|
688
|
+
headers: {
|
689
|
+
key: string;
|
690
|
+
value: string;
|
691
|
+
}[] | null;
|
692
|
+
fileKey: string | null;
|
693
|
+
fileUrl: string | null;
|
503
694
|
fields: {
|
504
695
|
data: string[];
|
505
696
|
};
|
506
697
|
}, {
|
507
698
|
name: string;
|
699
|
+
type: "custom" | "iframe" | null;
|
508
700
|
id: string;
|
509
701
|
url: string;
|
510
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
702
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
703
|
+
method: "get" | "post" | null;
|
511
704
|
description: string | null;
|
512
705
|
createdAt: Date;
|
513
706
|
updatedAt: Date;
|
514
707
|
deletedAt: Date | null;
|
708
|
+
headers: {
|
709
|
+
key: string;
|
710
|
+
value: string;
|
711
|
+
}[] | null;
|
712
|
+
fileKey: string | null;
|
713
|
+
fileUrl: string | null;
|
515
714
|
fields: {
|
516
715
|
data: string[];
|
517
716
|
};
|
@@ -544,7 +743,7 @@ export declare const widgetContract: {
|
|
544
743
|
error?: any;
|
545
744
|
}>;
|
546
745
|
};
|
547
|
-
path: "widget/contact_detail";
|
746
|
+
path: "ms/widget/contact_detail";
|
548
747
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
549
748
|
'x-tenant': z.ZodString;
|
550
749
|
'x-service-token': z.ZodString;
|
@@ -580,7 +779,7 @@ export declare const widgetContract: {
|
|
580
779
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
581
780
|
name: z.ZodString;
|
582
781
|
description: z.ZodNullable<z.ZodString>;
|
583
|
-
position: z.
|
782
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
584
783
|
fields: z.ZodObject<{
|
585
784
|
data: z.ZodArray<z.ZodString, "many">;
|
586
785
|
}, "strip", z.ZodTypeAny, {
|
@@ -589,27 +788,57 @@ export declare const widgetContract: {
|
|
589
788
|
data: string[];
|
590
789
|
}>;
|
591
790
|
url: z.ZodString;
|
791
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
792
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
793
|
+
key: z.ZodString;
|
794
|
+
value: z.ZodString;
|
795
|
+
}, "strip", z.ZodTypeAny, {
|
796
|
+
key: string;
|
797
|
+
value: string;
|
798
|
+
}, {
|
799
|
+
key: string;
|
800
|
+
value: string;
|
801
|
+
}>, "many">>;
|
802
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
803
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
804
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
592
805
|
}, "strip", z.ZodTypeAny, {
|
593
806
|
name: string;
|
807
|
+
type: "custom" | "iframe" | null;
|
594
808
|
id: string;
|
595
809
|
url: string;
|
596
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
810
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
811
|
+
method: "get" | "post" | null;
|
597
812
|
description: string | null;
|
598
813
|
createdAt: Date;
|
599
814
|
updatedAt: Date;
|
600
815
|
deletedAt: Date | null;
|
816
|
+
headers: {
|
817
|
+
key: string;
|
818
|
+
value: string;
|
819
|
+
}[] | null;
|
820
|
+
fileKey: string | null;
|
821
|
+
fileUrl: string | null;
|
601
822
|
fields: {
|
602
823
|
data: string[];
|
603
824
|
};
|
604
825
|
}, {
|
605
826
|
name: string;
|
827
|
+
type: "custom" | "iframe" | null;
|
606
828
|
id: string;
|
607
829
|
url: string;
|
608
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
830
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
831
|
+
method: "get" | "post" | null;
|
609
832
|
description: string | null;
|
610
833
|
createdAt: Date;
|
611
834
|
updatedAt: Date;
|
612
835
|
deletedAt: Date | null;
|
836
|
+
headers: {
|
837
|
+
key: string;
|
838
|
+
value: string;
|
839
|
+
}[] | null;
|
840
|
+
fileKey: string | null;
|
841
|
+
fileUrl: string | null;
|
613
842
|
fields: {
|
614
843
|
data: string[];
|
615
844
|
};
|
@@ -642,7 +871,7 @@ export declare const widgetContract: {
|
|
642
871
|
error?: any;
|
643
872
|
}>;
|
644
873
|
};
|
645
|
-
path: "widget/:id";
|
874
|
+
path: "ms/widget/:id";
|
646
875
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
647
876
|
'x-tenant': z.ZodString;
|
648
877
|
'x-service-token': z.ZodString;
|
@@ -702,7 +931,7 @@ export declare const widgetContract: {
|
|
702
931
|
error?: any;
|
703
932
|
}>;
|
704
933
|
};
|
705
|
-
path: "widget/url_token/generate";
|
934
|
+
path: "ms/widget/url_token/generate";
|
706
935
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
707
936
|
'x-tenant': z.ZodString;
|
708
937
|
'x-service-token': z.ZodString;
|
@@ -723,9 +952,9 @@ export declare const widgetContract: {
|
|
723
952
|
updateWidget: {
|
724
953
|
body: z.ZodObject<{
|
725
954
|
name: z.ZodString;
|
726
|
-
description: z.ZodString
|
955
|
+
description: z.ZodOptional<z.ZodString>;
|
727
956
|
url: z.ZodString;
|
728
|
-
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">]>;
|
957
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
729
958
|
fields: z.ZodOptional<z.ZodObject<{
|
730
959
|
data: z.ZodArray<z.ZodString, "many">;
|
731
960
|
}, "strip", z.ZodTypeAny, {
|
@@ -733,22 +962,49 @@ export declare const widgetContract: {
|
|
733
962
|
}, {
|
734
963
|
data: string[];
|
735
964
|
}>>;
|
965
|
+
type: z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>;
|
966
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
967
|
+
key: z.ZodString;
|
968
|
+
value: z.ZodString;
|
969
|
+
}, "strip", z.ZodTypeAny, {
|
970
|
+
key: string;
|
971
|
+
value: string;
|
972
|
+
}, {
|
973
|
+
key: string;
|
974
|
+
value: string;
|
975
|
+
}>, "many">>;
|
976
|
+
method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
977
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
736
978
|
}, "strip", z.ZodTypeAny, {
|
737
979
|
name: string;
|
980
|
+
type: "custom" | "iframe";
|
738
981
|
url: string;
|
739
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
740
|
-
|
982
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
983
|
+
fileKey: string | null;
|
984
|
+
description?: string | undefined;
|
741
985
|
fields?: {
|
742
986
|
data: string[];
|
743
987
|
} | undefined;
|
988
|
+
headers?: {
|
989
|
+
key: string;
|
990
|
+
value: string;
|
991
|
+
}[] | undefined;
|
992
|
+
method?: "get" | "post" | undefined;
|
744
993
|
}, {
|
745
994
|
name: string;
|
995
|
+
type: "custom" | "iframe";
|
746
996
|
url: string;
|
747
|
-
position: "menu" | "ticket_detail" | "contact_detail";
|
748
|
-
|
997
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
998
|
+
fileKey: string | null;
|
999
|
+
description?: string | undefined;
|
749
1000
|
fields?: {
|
750
1001
|
data: string[];
|
751
1002
|
} | undefined;
|
1003
|
+
headers?: {
|
1004
|
+
key: string;
|
1005
|
+
value: string;
|
1006
|
+
}[] | undefined;
|
1007
|
+
method?: "get" | "post" | undefined;
|
752
1008
|
}>;
|
753
1009
|
summary: "Update a widget.";
|
754
1010
|
method: "PATCH";
|
@@ -769,7 +1025,7 @@ export declare const widgetContract: {
|
|
769
1025
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
770
1026
|
name: z.ZodString;
|
771
1027
|
description: z.ZodNullable<z.ZodString>;
|
772
|
-
position: z.
|
1028
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
773
1029
|
fields: z.ZodObject<{
|
774
1030
|
data: z.ZodArray<z.ZodString, "many">;
|
775
1031
|
}, "strip", z.ZodTypeAny, {
|
@@ -778,27 +1034,57 @@ export declare const widgetContract: {
|
|
778
1034
|
data: string[];
|
779
1035
|
}>;
|
780
1036
|
url: z.ZodString;
|
1037
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
1038
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
1039
|
+
key: z.ZodString;
|
1040
|
+
value: z.ZodString;
|
1041
|
+
}, "strip", z.ZodTypeAny, {
|
1042
|
+
key: string;
|
1043
|
+
value: string;
|
1044
|
+
}, {
|
1045
|
+
key: string;
|
1046
|
+
value: string;
|
1047
|
+
}>, "many">>;
|
1048
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
1049
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
1050
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
781
1051
|
}, "strip", z.ZodTypeAny, {
|
782
1052
|
name: string;
|
1053
|
+
type: "custom" | "iframe" | null;
|
783
1054
|
id: string;
|
784
1055
|
url: string;
|
785
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1056
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1057
|
+
method: "get" | "post" | null;
|
786
1058
|
description: string | null;
|
787
1059
|
createdAt: Date;
|
788
1060
|
updatedAt: Date;
|
789
1061
|
deletedAt: Date | null;
|
1062
|
+
headers: {
|
1063
|
+
key: string;
|
1064
|
+
value: string;
|
1065
|
+
}[] | null;
|
1066
|
+
fileKey: string | null;
|
1067
|
+
fileUrl: string | null;
|
790
1068
|
fields: {
|
791
1069
|
data: string[];
|
792
1070
|
};
|
793
1071
|
}, {
|
794
1072
|
name: string;
|
1073
|
+
type: "custom" | "iframe" | null;
|
795
1074
|
id: string;
|
796
1075
|
url: string;
|
797
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1076
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1077
|
+
method: "get" | "post" | null;
|
798
1078
|
description: string | null;
|
799
1079
|
createdAt: Date;
|
800
1080
|
updatedAt: Date;
|
801
1081
|
deletedAt: Date | null;
|
1082
|
+
headers: {
|
1083
|
+
key: string;
|
1084
|
+
value: string;
|
1085
|
+
}[] | null;
|
1086
|
+
fileKey: string | null;
|
1087
|
+
fileUrl: string | null;
|
802
1088
|
fields: {
|
803
1089
|
data: string[];
|
804
1090
|
};
|
@@ -807,13 +1093,21 @@ export declare const widgetContract: {
|
|
807
1093
|
requestId: string;
|
808
1094
|
widget: {
|
809
1095
|
name: string;
|
1096
|
+
type: "custom" | "iframe" | null;
|
810
1097
|
id: string;
|
811
1098
|
url: string;
|
812
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1099
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1100
|
+
method: "get" | "post" | null;
|
813
1101
|
description: string | null;
|
814
1102
|
createdAt: Date;
|
815
1103
|
updatedAt: Date;
|
816
1104
|
deletedAt: Date | null;
|
1105
|
+
headers: {
|
1106
|
+
key: string;
|
1107
|
+
value: string;
|
1108
|
+
}[] | null;
|
1109
|
+
fileKey: string | null;
|
1110
|
+
fileUrl: string | null;
|
817
1111
|
fields: {
|
818
1112
|
data: string[];
|
819
1113
|
};
|
@@ -822,13 +1116,21 @@ export declare const widgetContract: {
|
|
822
1116
|
requestId: string;
|
823
1117
|
widget: {
|
824
1118
|
name: string;
|
1119
|
+
type: "custom" | "iframe" | null;
|
825
1120
|
id: string;
|
826
1121
|
url: string;
|
827
|
-
position: "menu" | "ticket_detail" | "contact_detail" |
|
1122
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
1123
|
+
method: "get" | "post" | null;
|
828
1124
|
description: string | null;
|
829
1125
|
createdAt: Date;
|
830
1126
|
updatedAt: Date;
|
831
1127
|
deletedAt: Date | null;
|
1128
|
+
headers: {
|
1129
|
+
key: string;
|
1130
|
+
value: string;
|
1131
|
+
}[] | null;
|
1132
|
+
fileKey: string | null;
|
1133
|
+
fileUrl: string | null;
|
832
1134
|
fields: {
|
833
1135
|
data: string[];
|
834
1136
|
};
|
@@ -852,7 +1154,7 @@ export declare const widgetContract: {
|
|
852
1154
|
error?: any;
|
853
1155
|
}>;
|
854
1156
|
};
|
855
|
-
path: "widget/:id";
|
1157
|
+
path: "ms/widget/:id";
|
856
1158
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
857
1159
|
'x-tenant': z.ZodString;
|
858
1160
|
'x-service-token': z.ZodString;
|
@@ -903,7 +1205,7 @@ export declare const widgetContract: {
|
|
903
1205
|
error?: any;
|
904
1206
|
}>;
|
905
1207
|
};
|
906
|
-
path: "widget/:id";
|
1208
|
+
path: "ms/widget/:id";
|
907
1209
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
908
1210
|
'x-tenant': z.ZodString;
|
909
1211
|
'x-service-token': z.ZodString;
|