@kl1/contracts 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1809 -1627
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1807 -1627
- package/dist/index.mjs.map +1 -1
- package/dist/src/attribute/validation.d.ts.map +1 -1
- package/dist/src/call-log/validation.d.ts +2 -2
- package/dist/src/channel/index.d.ts +721 -299
- package/dist/src/channel/index.d.ts.map +1 -1
- package/dist/src/channel/validation.d.ts +0 -291
- package/dist/src/channel/validation.d.ts.map +1 -1
- package/dist/src/chat/index.d.ts +105 -104
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +16 -16
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +193 -67
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/company/index.d.ts +8 -85
- package/dist/src/company/index.d.ts.map +1 -1
- package/dist/src/company/schema.d.ts +137 -0
- package/dist/src/company/schema.d.ts.map +1 -1
- package/dist/src/company/validation.d.ts +0 -40
- package/dist/src/company/validation.d.ts.map +1 -1
- package/dist/src/contact/index.d.ts +1191 -1191
- package/dist/src/contract.d.ts +3159 -2340
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +22 -22
- package/dist/src/cx-log/schema.d.ts +16 -16
- package/dist/src/dashboard/index.d.ts +11 -7
- package/dist/src/dashboard/index.d.ts.map +1 -1
- package/dist/src/dashboard/schema.d.ts +127 -2
- package/dist/src/dashboard/schema.d.ts.map +1 -1
- package/dist/src/evaluate-form/schema.d.ts +6 -6
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +42 -42
- package/dist/src/mail/room-contract.d.ts +42 -42
- package/dist/src/mail/schemas/room-validation.schema.d.ts +14 -14
- package/dist/src/mail/schemas/room.schema.d.ts +10 -10
- package/dist/src/messenger/index.d.ts +1212 -707
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/messenger/validation.d.ts +108 -1
- package/dist/src/messenger/validation.d.ts.map +1 -1
- package/dist/src/ticket/index.d.ts +207 -342
- package/dist/src/ticket/index.d.ts.map +1 -1
- package/dist/src/ticket/validation.d.ts +168 -338
- package/dist/src/ticket/validation.d.ts.map +1 -1
- package/dist/src/widget/index.d.ts +72 -1
- package/dist/src/widget/index.d.ts.map +1 -1
- package/dist/src/widget/validation.d.ts +10 -0
- package/dist/src/widget/validation.d.ts.map +1 -1
- package/package.json +47 -46
- package/dist/src/app/index.d.ts +0 -17
- package/dist/src/app/index.d.ts.map +0 -1
- package/dist/src/mail/mail-server.d.ts +0 -216
- package/dist/src/mail/mail-server.d.ts.map +0 -1
- package/dist/src/platform-contact/schema.d.ts +0 -30
- package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -1,22 +1,26 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
import { GetFacebookPagesQuerySchema, GetFacebookPagesSchema } from './validation';
|
3
|
+
export type GetFacebookPagesResponse = z.infer<typeof GetFacebookPagesSchema>;
|
4
|
+
export type GetFacebookPagesQuery = z.infer<typeof GetFacebookPagesQuerySchema>;
|
1
5
|
export declare const messengerContract: {
|
2
6
|
sendMessage: {
|
3
|
-
body:
|
4
|
-
room:
|
5
|
-
id:
|
6
|
-
lastMessage:
|
7
|
-
handleTime:
|
8
|
-
isLatest:
|
9
|
-
direction:
|
10
|
-
platformContact:
|
11
|
-
channelId:
|
12
|
-
socialPlatformId:
|
13
|
-
type:
|
14
|
-
metadata:
|
15
|
-
id:
|
16
|
-
name:
|
17
|
-
picture:
|
18
|
-
additionalCredentials:
|
19
|
-
}, "strip",
|
7
|
+
body: z.ZodObject<{
|
8
|
+
room: z.ZodObject<{
|
9
|
+
id: z.ZodString;
|
10
|
+
lastMessage: z.ZodOptional<z.ZodString>;
|
11
|
+
handleTime: z.ZodOptional<z.ZodNumber>;
|
12
|
+
isLatest: z.ZodBoolean;
|
13
|
+
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
14
|
+
platformContact: z.ZodObject<{
|
15
|
+
channelId: z.ZodString;
|
16
|
+
socialPlatformId: z.ZodNullable<z.ZodString>;
|
17
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
18
|
+
metadata: z.ZodObject<{
|
19
|
+
id: z.ZodString;
|
20
|
+
name: z.ZodString;
|
21
|
+
picture: z.ZodOptional<z.ZodString>;
|
22
|
+
additionalCredentials: z.ZodAny;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
20
24
|
id: string;
|
21
25
|
name: string;
|
22
26
|
picture?: string | undefined;
|
@@ -27,14 +31,14 @@ export declare const messengerContract: {
|
|
27
31
|
picture?: string | undefined;
|
28
32
|
additionalCredentials?: any;
|
29
33
|
}>;
|
30
|
-
contact:
|
31
|
-
name:
|
32
|
-
address:
|
33
|
-
channel:
|
34
|
-
notes:
|
35
|
-
contactProfile:
|
36
|
-
socialProfileUrl:
|
37
|
-
}, "strip",
|
34
|
+
contact: z.ZodObject<{
|
35
|
+
name: z.ZodString;
|
36
|
+
address: z.ZodNullable<z.ZodString>;
|
37
|
+
channel: z.ZodNullable<z.ZodString>;
|
38
|
+
notes: z.ZodNullable<z.ZodString>;
|
39
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
40
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
38
42
|
channel: string | null;
|
39
43
|
address: string | null;
|
40
44
|
name: string;
|
@@ -49,7 +53,7 @@ export declare const messengerContract: {
|
|
49
53
|
contactProfile: string | null;
|
50
54
|
socialProfileUrl: string | null;
|
51
55
|
}>;
|
52
|
-
}, "strip",
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
53
57
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
54
58
|
metadata: {
|
55
59
|
id: string;
|
@@ -57,6 +61,7 @@ export declare const messengerContract: {
|
|
57
61
|
picture?: string | undefined;
|
58
62
|
additionalCredentials?: any;
|
59
63
|
};
|
64
|
+
channelId: string;
|
60
65
|
contact: {
|
61
66
|
channel: string | null;
|
62
67
|
address: string | null;
|
@@ -65,7 +70,6 @@ export declare const messengerContract: {
|
|
65
70
|
contactProfile: string | null;
|
66
71
|
socialProfileUrl: string | null;
|
67
72
|
};
|
68
|
-
channelId: string;
|
69
73
|
socialPlatformId: string | null;
|
70
74
|
}, {
|
71
75
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
@@ -75,6 +79,7 @@ export declare const messengerContract: {
|
|
75
79
|
picture?: string | undefined;
|
76
80
|
additionalCredentials?: any;
|
77
81
|
};
|
82
|
+
channelId: string;
|
78
83
|
contact: {
|
79
84
|
channel: string | null;
|
80
85
|
address: string | null;
|
@@ -83,15 +88,14 @@ export declare const messengerContract: {
|
|
83
88
|
contactProfile: string | null;
|
84
89
|
socialProfileUrl: string | null;
|
85
90
|
};
|
86
|
-
channelId: string;
|
87
91
|
socialPlatformId: string | null;
|
88
92
|
}>;
|
89
|
-
actor:
|
90
|
-
name:
|
91
|
-
email:
|
92
|
-
address:
|
93
|
-
phone:
|
94
|
-
}, "strip",
|
93
|
+
actor: z.ZodNullable<z.ZodObject<{
|
94
|
+
name: z.ZodString;
|
95
|
+
email: z.ZodString;
|
96
|
+
address: z.ZodNullable<z.ZodString>;
|
97
|
+
phone: z.ZodNullable<z.ZodString>;
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
95
99
|
address: string | null;
|
96
100
|
name: string;
|
97
101
|
email: string;
|
@@ -102,15 +106,15 @@ export declare const messengerContract: {
|
|
102
106
|
email: string;
|
103
107
|
phone: string | null;
|
104
108
|
}>>;
|
105
|
-
channel:
|
106
|
-
name:
|
107
|
-
type:
|
108
|
-
metadata:
|
109
|
-
id:
|
110
|
-
name:
|
111
|
-
accessToken:
|
112
|
-
additionalCredentials:
|
113
|
-
}, "strip",
|
109
|
+
channel: z.ZodObject<{
|
110
|
+
name: z.ZodString;
|
111
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
112
|
+
metadata: z.ZodObject<{
|
113
|
+
id: z.ZodString;
|
114
|
+
name: z.ZodString;
|
115
|
+
accessToken: z.ZodString;
|
116
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
114
118
|
id: string;
|
115
119
|
name: string;
|
116
120
|
accessToken: string;
|
@@ -121,13 +125,31 @@ export declare const messengerContract: {
|
|
121
125
|
accessToken: string;
|
122
126
|
additionalCredentials?: any;
|
123
127
|
}>;
|
124
|
-
|
125
|
-
|
126
|
-
status:
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
128
|
+
platformId: z.ZodString;
|
129
|
+
brandName: z.ZodString;
|
130
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
131
|
+
connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
132
|
+
connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
133
|
+
actor: z.ZodObject<{
|
134
|
+
id: z.ZodString;
|
135
|
+
name: z.ZodString;
|
136
|
+
email: z.ZodString;
|
137
|
+
address: z.ZodNullable<z.ZodString>;
|
138
|
+
phone: z.ZodNullable<z.ZodString>;
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
140
|
+
id: string;
|
141
|
+
address: string | null;
|
142
|
+
name: string;
|
143
|
+
email: string;
|
144
|
+
phone: string | null;
|
145
|
+
}, {
|
146
|
+
id: string;
|
147
|
+
address: string | null;
|
148
|
+
name: string;
|
149
|
+
email: string;
|
150
|
+
phone: string | null;
|
151
|
+
}>;
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
131
153
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
132
154
|
name: string;
|
133
155
|
metadata: {
|
@@ -139,7 +161,13 @@ export declare const messengerContract: {
|
|
139
161
|
status: boolean;
|
140
162
|
brandName: string;
|
141
163
|
platformId: string;
|
142
|
-
|
164
|
+
actor: {
|
165
|
+
id: string;
|
166
|
+
address: string | null;
|
167
|
+
name: string;
|
168
|
+
email: string;
|
169
|
+
phone: string | null;
|
170
|
+
};
|
143
171
|
connectedUserName?: string | null | undefined;
|
144
172
|
connectedUserId?: string | null | undefined;
|
145
173
|
}, {
|
@@ -154,11 +182,17 @@ export declare const messengerContract: {
|
|
154
182
|
status: boolean;
|
155
183
|
brandName: string;
|
156
184
|
platformId: string;
|
157
|
-
|
185
|
+
actor: {
|
186
|
+
id: string;
|
187
|
+
address: string | null;
|
188
|
+
name: string;
|
189
|
+
email: string;
|
190
|
+
phone: string | null;
|
191
|
+
};
|
158
192
|
connectedUserName?: string | null | undefined;
|
159
193
|
connectedUserId?: string | null | undefined;
|
160
194
|
}>;
|
161
|
-
}, "strip",
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
162
196
|
id: string;
|
163
197
|
channel: {
|
164
198
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
@@ -172,7 +206,13 @@ export declare const messengerContract: {
|
|
172
206
|
status: boolean;
|
173
207
|
brandName: string;
|
174
208
|
platformId: string;
|
175
|
-
|
209
|
+
actor: {
|
210
|
+
id: string;
|
211
|
+
address: string | null;
|
212
|
+
name: string;
|
213
|
+
email: string;
|
214
|
+
phone: string | null;
|
215
|
+
};
|
176
216
|
connectedUserName?: string | null | undefined;
|
177
217
|
connectedUserId?: string | null | undefined;
|
178
218
|
};
|
@@ -192,6 +232,7 @@ export declare const messengerContract: {
|
|
192
232
|
picture?: string | undefined;
|
193
233
|
additionalCredentials?: any;
|
194
234
|
};
|
235
|
+
channelId: string;
|
195
236
|
contact: {
|
196
237
|
channel: string | null;
|
197
238
|
address: string | null;
|
@@ -200,7 +241,6 @@ export declare const messengerContract: {
|
|
200
241
|
contactProfile: string | null;
|
201
242
|
socialProfileUrl: string | null;
|
202
243
|
};
|
203
|
-
channelId: string;
|
204
244
|
socialPlatformId: string | null;
|
205
245
|
};
|
206
246
|
lastMessage?: string | undefined;
|
@@ -219,7 +259,13 @@ export declare const messengerContract: {
|
|
219
259
|
status: boolean;
|
220
260
|
brandName: string;
|
221
261
|
platformId: string;
|
222
|
-
|
262
|
+
actor: {
|
263
|
+
id: string;
|
264
|
+
address: string | null;
|
265
|
+
name: string;
|
266
|
+
email: string;
|
267
|
+
phone: string | null;
|
268
|
+
};
|
223
269
|
connectedUserName?: string | null | undefined;
|
224
270
|
connectedUserId?: string | null | undefined;
|
225
271
|
};
|
@@ -239,6 +285,7 @@ export declare const messengerContract: {
|
|
239
285
|
picture?: string | undefined;
|
240
286
|
additionalCredentials?: any;
|
241
287
|
};
|
288
|
+
channelId: string;
|
242
289
|
contact: {
|
243
290
|
channel: string | null;
|
244
291
|
address: string | null;
|
@@ -247,36 +294,35 @@ export declare const messengerContract: {
|
|
247
294
|
contactProfile: string | null;
|
248
295
|
socialProfileUrl: string | null;
|
249
296
|
};
|
250
|
-
channelId: string;
|
251
297
|
socialPlatformId: string | null;
|
252
298
|
};
|
253
299
|
lastMessage?: string | undefined;
|
254
300
|
handleTime?: number | undefined;
|
255
301
|
}>;
|
256
|
-
message:
|
257
|
-
message:
|
258
|
-
direction:
|
259
|
-
type:
|
260
|
-
readAt:
|
261
|
-
metadata:
|
262
|
-
platformId:
|
263
|
-
platformMessageId:
|
264
|
-
replyPlatformMessageId:
|
265
|
-
template:
|
266
|
-
locale:
|
267
|
-
url:
|
268
|
-
previewUrl:
|
269
|
-
imageSetId:
|
270
|
-
upload:
|
271
|
-
id:
|
272
|
-
createdAt:
|
273
|
-
updatedAt:
|
274
|
-
deletedAt:
|
275
|
-
bucketName:
|
276
|
-
fileName:
|
277
|
-
fileSize:
|
278
|
-
fileKey:
|
279
|
-
}, "strip",
|
302
|
+
message: z.ZodObject<{
|
303
|
+
message: z.ZodOptional<z.ZodString>;
|
304
|
+
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
305
|
+
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
306
|
+
readAt: z.ZodOptional<z.ZodDate>;
|
307
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
308
|
+
platformId: z.ZodOptional<z.ZodString>;
|
309
|
+
platformMessageId: z.ZodOptional<z.ZodString>;
|
310
|
+
replyPlatformMessageId: z.ZodOptional<z.ZodString>;
|
311
|
+
template: z.ZodOptional<z.ZodAny>;
|
312
|
+
locale: z.ZodOptional<z.ZodEnum<["mm", "en", "th", ""]>>;
|
313
|
+
url: z.ZodOptional<z.ZodString>;
|
314
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
315
|
+
imageSetId: z.ZodOptional<z.ZodString>;
|
316
|
+
upload: z.ZodOptional<z.ZodObject<{
|
317
|
+
id: z.ZodString;
|
318
|
+
createdAt: z.ZodDate;
|
319
|
+
updatedAt: z.ZodDate;
|
320
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
321
|
+
bucketName: z.ZodString;
|
322
|
+
fileName: z.ZodString;
|
323
|
+
fileSize: z.ZodNumber;
|
324
|
+
fileKey: z.ZodString;
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
280
326
|
id: string;
|
281
327
|
createdAt: Date;
|
282
328
|
updatedAt: Date;
|
@@ -295,12 +341,12 @@ export declare const messengerContract: {
|
|
295
341
|
bucketName: string;
|
296
342
|
fileSize: number;
|
297
343
|
}>>;
|
298
|
-
sender:
|
299
|
-
name:
|
300
|
-
email:
|
301
|
-
address:
|
302
|
-
phone:
|
303
|
-
}, "strip",
|
344
|
+
sender: z.ZodObject<{
|
345
|
+
name: z.ZodString;
|
346
|
+
email: z.ZodString;
|
347
|
+
address: z.ZodNullable<z.ZodString>;
|
348
|
+
phone: z.ZodNullable<z.ZodString>;
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
304
350
|
address: string | null;
|
305
351
|
name: string;
|
306
352
|
email: string;
|
@@ -311,8 +357,8 @@ export declare const messengerContract: {
|
|
311
357
|
email: string;
|
312
358
|
phone: string | null;
|
313
359
|
}>;
|
314
|
-
}, "strip",
|
315
|
-
type: "
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
361
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
316
362
|
direction: "incoming" | "outgoing" | "system";
|
317
363
|
sender: {
|
318
364
|
address: string | null;
|
@@ -342,7 +388,7 @@ export declare const messengerContract: {
|
|
342
388
|
fileSize: number;
|
343
389
|
} | undefined;
|
344
390
|
}, {
|
345
|
-
type: "
|
391
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
346
392
|
direction: "incoming" | "outgoing" | "system";
|
347
393
|
sender: {
|
348
394
|
address: string | null;
|
@@ -372,9 +418,9 @@ export declare const messengerContract: {
|
|
372
418
|
fileSize: number;
|
373
419
|
} | undefined;
|
374
420
|
}>;
|
375
|
-
}, "strip",
|
421
|
+
}, "strip", z.ZodTypeAny, {
|
376
422
|
message: {
|
377
|
-
type: "
|
423
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
378
424
|
direction: "incoming" | "outgoing" | "system";
|
379
425
|
sender: {
|
380
426
|
address: string | null;
|
@@ -418,7 +464,13 @@ export declare const messengerContract: {
|
|
418
464
|
status: boolean;
|
419
465
|
brandName: string;
|
420
466
|
platformId: string;
|
421
|
-
|
467
|
+
actor: {
|
468
|
+
id: string;
|
469
|
+
address: string | null;
|
470
|
+
name: string;
|
471
|
+
email: string;
|
472
|
+
phone: string | null;
|
473
|
+
};
|
422
474
|
connectedUserName?: string | null | undefined;
|
423
475
|
connectedUserId?: string | null | undefined;
|
424
476
|
};
|
@@ -438,6 +490,7 @@ export declare const messengerContract: {
|
|
438
490
|
picture?: string | undefined;
|
439
491
|
additionalCredentials?: any;
|
440
492
|
};
|
493
|
+
channelId: string;
|
441
494
|
contact: {
|
442
495
|
channel: string | null;
|
443
496
|
address: string | null;
|
@@ -446,7 +499,6 @@ export declare const messengerContract: {
|
|
446
499
|
contactProfile: string | null;
|
447
500
|
socialProfileUrl: string | null;
|
448
501
|
};
|
449
|
-
channelId: string;
|
450
502
|
socialPlatformId: string | null;
|
451
503
|
};
|
452
504
|
lastMessage?: string | undefined;
|
@@ -454,7 +506,7 @@ export declare const messengerContract: {
|
|
454
506
|
};
|
455
507
|
}, {
|
456
508
|
message: {
|
457
|
-
type: "
|
509
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
458
510
|
direction: "incoming" | "outgoing" | "system";
|
459
511
|
sender: {
|
460
512
|
address: string | null;
|
@@ -498,7 +550,13 @@ export declare const messengerContract: {
|
|
498
550
|
status: boolean;
|
499
551
|
brandName: string;
|
500
552
|
platformId: string;
|
501
|
-
|
553
|
+
actor: {
|
554
|
+
id: string;
|
555
|
+
address: string | null;
|
556
|
+
name: string;
|
557
|
+
email: string;
|
558
|
+
phone: string | null;
|
559
|
+
};
|
502
560
|
connectedUserName?: string | null | undefined;
|
503
561
|
connectedUserId?: string | null | undefined;
|
504
562
|
};
|
@@ -518,6 +576,7 @@ export declare const messengerContract: {
|
|
518
576
|
picture?: string | undefined;
|
519
577
|
additionalCredentials?: any;
|
520
578
|
};
|
579
|
+
channelId: string;
|
521
580
|
contact: {
|
522
581
|
channel: string | null;
|
523
582
|
address: string | null;
|
@@ -526,7 +585,6 @@ export declare const messengerContract: {
|
|
526
585
|
contactProfile: string | null;
|
527
586
|
socialProfileUrl: string | null;
|
528
587
|
};
|
529
|
-
channelId: string;
|
530
588
|
socialPlatformId: string | null;
|
531
589
|
};
|
532
590
|
lastMessage?: string | undefined;
|
@@ -535,53 +593,53 @@ export declare const messengerContract: {
|
|
535
593
|
}>;
|
536
594
|
method: "POST";
|
537
595
|
responses: {
|
538
|
-
200:
|
539
|
-
requestId:
|
540
|
-
data:
|
541
|
-
id:
|
542
|
-
createdAt:
|
543
|
-
updatedAt:
|
544
|
-
deletedAt:
|
545
|
-
message:
|
546
|
-
direction:
|
547
|
-
type:
|
548
|
-
readAt:
|
549
|
-
metadata:
|
550
|
-
platformId:
|
551
|
-
platformMessageId:
|
552
|
-
replyPlatformMessageId:
|
553
|
-
template:
|
554
|
-
locale:
|
555
|
-
url:
|
556
|
-
previewUrl:
|
557
|
-
imageSetId:
|
558
|
-
room:
|
559
|
-
id:
|
560
|
-
createdAt:
|
561
|
-
updatedAt:
|
562
|
-
deletedAt:
|
563
|
-
lastMessage:
|
564
|
-
handleTime:
|
565
|
-
closeAt:
|
566
|
-
unreadCount:
|
567
|
-
firstResponseAt:
|
568
|
-
firstResponseTime:
|
569
|
-
isLatest:
|
570
|
-
direction:
|
571
|
-
platformContact:
|
572
|
-
id:
|
573
|
-
createdAt:
|
574
|
-
updatedAt:
|
575
|
-
deletedAt:
|
576
|
-
channelId:
|
577
|
-
socialPlatformId:
|
578
|
-
type:
|
579
|
-
metadata:
|
580
|
-
id:
|
581
|
-
name:
|
582
|
-
picture:
|
583
|
-
additionalCredentials:
|
584
|
-
}, "strip",
|
596
|
+
200: z.ZodObject<{
|
597
|
+
requestId: z.ZodString;
|
598
|
+
data: z.ZodObject<{
|
599
|
+
id: z.ZodString;
|
600
|
+
createdAt: z.ZodDate;
|
601
|
+
updatedAt: z.ZodDate;
|
602
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
603
|
+
message: z.ZodString;
|
604
|
+
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
605
|
+
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
606
|
+
readAt: z.ZodDate;
|
607
|
+
metadata: z.ZodAny;
|
608
|
+
platformId: z.ZodString;
|
609
|
+
platformMessageId: z.ZodString;
|
610
|
+
replyPlatformMessageId: z.ZodString;
|
611
|
+
template: z.ZodAny;
|
612
|
+
locale: z.ZodEnum<["mm", "en", "th", ""]>;
|
613
|
+
url: z.ZodString;
|
614
|
+
previewUrl: z.ZodString;
|
615
|
+
imageSetId: z.ZodString;
|
616
|
+
room: z.ZodObject<{
|
617
|
+
id: z.ZodString;
|
618
|
+
createdAt: z.ZodDate;
|
619
|
+
updatedAt: z.ZodDate;
|
620
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
621
|
+
lastMessage: z.ZodString;
|
622
|
+
handleTime: z.ZodNumber;
|
623
|
+
closeAt: z.ZodDate;
|
624
|
+
unreadCount: z.ZodNumber;
|
625
|
+
firstResponseAt: z.ZodDate;
|
626
|
+
firstResponseTime: z.ZodNumber;
|
627
|
+
isLatest: z.ZodBoolean;
|
628
|
+
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
629
|
+
platformContact: z.ZodObject<{
|
630
|
+
id: z.ZodString;
|
631
|
+
createdAt: z.ZodDate;
|
632
|
+
updatedAt: z.ZodDate;
|
633
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
634
|
+
channelId: z.ZodString;
|
635
|
+
socialPlatformId: z.ZodString;
|
636
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
637
|
+
metadata: z.ZodObject<{
|
638
|
+
id: z.ZodString;
|
639
|
+
name: z.ZodString;
|
640
|
+
picture: z.ZodOptional<z.ZodString>;
|
641
|
+
additionalCredentials: z.ZodAny;
|
642
|
+
}, "strip", z.ZodTypeAny, {
|
585
643
|
id: string;
|
586
644
|
name: string;
|
587
645
|
picture?: string | undefined;
|
@@ -592,24 +650,24 @@ export declare const messengerContract: {
|
|
592
650
|
picture?: string | undefined;
|
593
651
|
additionalCredentials?: any;
|
594
652
|
}>;
|
595
|
-
contact:
|
596
|
-
id:
|
597
|
-
createdAt:
|
598
|
-
updatedAt:
|
599
|
-
deletedAt:
|
600
|
-
name:
|
601
|
-
address:
|
602
|
-
channel:
|
603
|
-
notes:
|
604
|
-
contactProfile:
|
605
|
-
socialProfileUrl:
|
606
|
-
tags:
|
607
|
-
id:
|
608
|
-
createdAt:
|
609
|
-
updatedAt:
|
610
|
-
deletedAt:
|
611
|
-
name:
|
612
|
-
}, "strip",
|
653
|
+
contact: z.ZodObject<{
|
654
|
+
id: z.ZodString;
|
655
|
+
createdAt: z.ZodDate;
|
656
|
+
updatedAt: z.ZodDate;
|
657
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
658
|
+
name: z.ZodString;
|
659
|
+
address: z.ZodNullable<z.ZodString>;
|
660
|
+
channel: z.ZodNullable<z.ZodString>;
|
661
|
+
notes: z.ZodNullable<z.ZodString>;
|
662
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
663
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
664
|
+
tags: z.ZodArray<z.ZodObject<{
|
665
|
+
id: z.ZodString;
|
666
|
+
createdAt: z.ZodDate;
|
667
|
+
updatedAt: z.ZodDate;
|
668
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
669
|
+
name: z.ZodString;
|
670
|
+
}, "strip", z.ZodTypeAny, {
|
613
671
|
id: string;
|
614
672
|
name: string;
|
615
673
|
createdAt: Date;
|
@@ -622,44 +680,44 @@ export declare const messengerContract: {
|
|
622
680
|
updatedAt: Date;
|
623
681
|
deletedAt: Date | null;
|
624
682
|
}>, "many">;
|
625
|
-
company:
|
626
|
-
id:
|
627
|
-
createdAt:
|
628
|
-
updatedAt:
|
629
|
-
deletedAt:
|
630
|
-
name:
|
631
|
-
phone:
|
632
|
-
address:
|
633
|
-
industry:
|
634
|
-
customFields:
|
635
|
-
id:
|
636
|
-
createdAt:
|
637
|
-
updatedAt:
|
638
|
-
deletedAt:
|
639
|
-
textValue:
|
640
|
-
booleanValue:
|
641
|
-
numberValue:
|
642
|
-
dateValue:
|
643
|
-
attribute:
|
644
|
-
id:
|
645
|
-
createdAt:
|
646
|
-
updatedAt:
|
647
|
-
deletedAt:
|
648
|
-
systemName:
|
649
|
-
displayName:
|
650
|
-
type:
|
651
|
-
position:
|
652
|
-
isDefault:
|
653
|
-
isArchived:
|
654
|
-
isRequired:
|
655
|
-
isUnique:
|
656
|
-
options:
|
657
|
-
position:
|
658
|
-
value:
|
659
|
-
label:
|
660
|
-
isDefault:
|
661
|
-
id:
|
662
|
-
}, "strip",
|
683
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
684
|
+
id: z.ZodString;
|
685
|
+
createdAt: z.ZodDate;
|
686
|
+
updatedAt: z.ZodDate;
|
687
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
688
|
+
name: z.ZodOptional<z.ZodString>;
|
689
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
690
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
691
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
692
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
693
|
+
id: z.ZodString;
|
694
|
+
createdAt: z.ZodDate;
|
695
|
+
updatedAt: z.ZodDate;
|
696
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
697
|
+
textValue: z.ZodNullable<z.ZodString>;
|
698
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
699
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
700
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
701
|
+
attribute: z.ZodObject<Omit<{
|
702
|
+
id: z.ZodString;
|
703
|
+
createdAt: z.ZodDate;
|
704
|
+
updatedAt: z.ZodDate;
|
705
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
706
|
+
systemName: z.ZodString;
|
707
|
+
displayName: z.ZodString;
|
708
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
709
|
+
position: z.ZodNumber;
|
710
|
+
isDefault: z.ZodBoolean;
|
711
|
+
isArchived: z.ZodBoolean;
|
712
|
+
isRequired: z.ZodBoolean;
|
713
|
+
isUnique: z.ZodBoolean;
|
714
|
+
options: z.ZodArray<z.ZodObject<{
|
715
|
+
position: z.ZodNumber;
|
716
|
+
value: z.ZodString;
|
717
|
+
label: z.ZodString;
|
718
|
+
isDefault: z.ZodBoolean;
|
719
|
+
id: z.ZodString;
|
720
|
+
}, "strip", z.ZodTypeAny, {
|
663
721
|
id: string;
|
664
722
|
position: number;
|
665
723
|
value: string;
|
@@ -672,14 +730,14 @@ export declare const messengerContract: {
|
|
672
730
|
label: string;
|
673
731
|
isDefault: boolean;
|
674
732
|
}>, "many">;
|
675
|
-
group:
|
676
|
-
id:
|
677
|
-
createdAt:
|
678
|
-
updatedAt:
|
679
|
-
deletedAt:
|
680
|
-
systemName:
|
681
|
-
displayName:
|
682
|
-
}, "strip",
|
733
|
+
group: z.ZodObject<{
|
734
|
+
id: z.ZodString;
|
735
|
+
createdAt: z.ZodDate;
|
736
|
+
updatedAt: z.ZodDate;
|
737
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
738
|
+
systemName: z.ZodString;
|
739
|
+
displayName: z.ZodString;
|
740
|
+
}, "strip", z.ZodTypeAny, {
|
683
741
|
id: string;
|
684
742
|
createdAt: Date;
|
685
743
|
updatedAt: Date;
|
@@ -694,7 +752,7 @@ export declare const messengerContract: {
|
|
694
752
|
systemName: string;
|
695
753
|
displayName: string;
|
696
754
|
}>;
|
697
|
-
}, "options" | "group">, "strip",
|
755
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
698
756
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
699
757
|
id: string;
|
700
758
|
position: number;
|
@@ -721,7 +779,7 @@ export declare const messengerContract: {
|
|
721
779
|
isRequired: boolean;
|
722
780
|
isUnique: boolean;
|
723
781
|
}>;
|
724
|
-
}, "strip",
|
782
|
+
}, "strip", z.ZodTypeAny, {
|
725
783
|
id: string;
|
726
784
|
createdAt: Date;
|
727
785
|
updatedAt: Date;
|
@@ -768,7 +826,7 @@ export declare const messengerContract: {
|
|
768
826
|
numberValue: number | null;
|
769
827
|
dateValue: Date | null;
|
770
828
|
}>, "many">>;
|
771
|
-
}, "customFields">, "strip",
|
829
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
772
830
|
id: string;
|
773
831
|
createdAt: Date;
|
774
832
|
updatedAt: Date;
|
@@ -787,35 +845,35 @@ export declare const messengerContract: {
|
|
787
845
|
phone?: string | null | undefined;
|
788
846
|
industry?: string | null | undefined;
|
789
847
|
}>>;
|
790
|
-
customFields:
|
791
|
-
id:
|
792
|
-
createdAt:
|
793
|
-
updatedAt:
|
794
|
-
deletedAt:
|
795
|
-
textValue:
|
796
|
-
booleanValue:
|
797
|
-
numberValue:
|
798
|
-
dateValue:
|
799
|
-
attribute:
|
800
|
-
id:
|
801
|
-
createdAt:
|
802
|
-
updatedAt:
|
803
|
-
deletedAt:
|
804
|
-
systemName:
|
805
|
-
displayName:
|
806
|
-
type:
|
807
|
-
position:
|
808
|
-
isDefault:
|
809
|
-
isArchived:
|
810
|
-
isRequired:
|
811
|
-
isUnique:
|
812
|
-
options:
|
813
|
-
position:
|
814
|
-
value:
|
815
|
-
label:
|
816
|
-
isDefault:
|
817
|
-
id:
|
818
|
-
}, "strip",
|
848
|
+
customFields: z.ZodArray<z.ZodObject<{
|
849
|
+
id: z.ZodString;
|
850
|
+
createdAt: z.ZodDate;
|
851
|
+
updatedAt: z.ZodDate;
|
852
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
853
|
+
textValue: z.ZodNullable<z.ZodString>;
|
854
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
855
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
856
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
857
|
+
attribute: z.ZodObject<Omit<{
|
858
|
+
id: z.ZodString;
|
859
|
+
createdAt: z.ZodDate;
|
860
|
+
updatedAt: z.ZodDate;
|
861
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
862
|
+
systemName: z.ZodString;
|
863
|
+
displayName: z.ZodString;
|
864
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
865
|
+
position: z.ZodNumber;
|
866
|
+
isDefault: z.ZodBoolean;
|
867
|
+
isArchived: z.ZodBoolean;
|
868
|
+
isRequired: z.ZodBoolean;
|
869
|
+
isUnique: z.ZodBoolean;
|
870
|
+
options: z.ZodArray<z.ZodObject<{
|
871
|
+
position: z.ZodNumber;
|
872
|
+
value: z.ZodString;
|
873
|
+
label: z.ZodString;
|
874
|
+
isDefault: z.ZodBoolean;
|
875
|
+
id: z.ZodString;
|
876
|
+
}, "strip", z.ZodTypeAny, {
|
819
877
|
id: string;
|
820
878
|
position: number;
|
821
879
|
value: string;
|
@@ -828,14 +886,14 @@ export declare const messengerContract: {
|
|
828
886
|
label: string;
|
829
887
|
isDefault: boolean;
|
830
888
|
}>, "many">;
|
831
|
-
group:
|
832
|
-
id:
|
833
|
-
createdAt:
|
834
|
-
updatedAt:
|
835
|
-
deletedAt:
|
836
|
-
systemName:
|
837
|
-
displayName:
|
838
|
-
}, "strip",
|
889
|
+
group: z.ZodObject<{
|
890
|
+
id: z.ZodString;
|
891
|
+
createdAt: z.ZodDate;
|
892
|
+
updatedAt: z.ZodDate;
|
893
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
894
|
+
systemName: z.ZodString;
|
895
|
+
displayName: z.ZodString;
|
896
|
+
}, "strip", z.ZodTypeAny, {
|
839
897
|
id: string;
|
840
898
|
createdAt: Date;
|
841
899
|
updatedAt: Date;
|
@@ -850,7 +908,7 @@ export declare const messengerContract: {
|
|
850
908
|
systemName: string;
|
851
909
|
displayName: string;
|
852
910
|
}>;
|
853
|
-
}, "options" | "group">, "strip",
|
911
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
854
912
|
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
855
913
|
id: string;
|
856
914
|
position: number;
|
@@ -877,22 +935,22 @@ export declare const messengerContract: {
|
|
877
935
|
isRequired: boolean;
|
878
936
|
isUnique: boolean;
|
879
937
|
}>;
|
880
|
-
uploads:
|
881
|
-
id:
|
882
|
-
createdAt:
|
883
|
-
updatedAt:
|
884
|
-
deletedAt:
|
885
|
-
customFieldId:
|
886
|
-
upload:
|
887
|
-
id:
|
888
|
-
createdAt:
|
889
|
-
updatedAt:
|
890
|
-
deletedAt:
|
891
|
-
bucketName:
|
892
|
-
fileName:
|
893
|
-
fileSize:
|
894
|
-
fileKey:
|
895
|
-
}, "strip",
|
938
|
+
uploads: z.ZodArray<z.ZodObject<{
|
939
|
+
id: z.ZodString;
|
940
|
+
createdAt: z.ZodDate;
|
941
|
+
updatedAt: z.ZodDate;
|
942
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
943
|
+
customFieldId: z.ZodString;
|
944
|
+
upload: z.ZodObject<{
|
945
|
+
id: z.ZodString;
|
946
|
+
createdAt: z.ZodDate;
|
947
|
+
updatedAt: z.ZodDate;
|
948
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
949
|
+
bucketName: z.ZodString;
|
950
|
+
fileName: z.ZodString;
|
951
|
+
fileSize: z.ZodNumber;
|
952
|
+
fileKey: z.ZodString;
|
953
|
+
}, "strip", z.ZodTypeAny, {
|
896
954
|
id: string;
|
897
955
|
createdAt: Date;
|
898
956
|
updatedAt: Date;
|
@@ -911,7 +969,7 @@ export declare const messengerContract: {
|
|
911
969
|
bucketName: string;
|
912
970
|
fileSize: number;
|
913
971
|
}>;
|
914
|
-
}, "strip",
|
972
|
+
}, "strip", z.ZodTypeAny, {
|
915
973
|
id: string;
|
916
974
|
createdAt: Date;
|
917
975
|
updatedAt: Date;
|
@@ -944,7 +1002,7 @@ export declare const messengerContract: {
|
|
944
1002
|
fileSize: number;
|
945
1003
|
};
|
946
1004
|
}>, "many">;
|
947
|
-
}, "strip",
|
1005
|
+
}, "strip", z.ZodTypeAny, {
|
948
1006
|
id: string;
|
949
1007
|
createdAt: Date;
|
950
1008
|
updatedAt: Date;
|
@@ -1025,14 +1083,14 @@ export declare const messengerContract: {
|
|
1025
1083
|
};
|
1026
1084
|
}[];
|
1027
1085
|
}>, "many">;
|
1028
|
-
contactEmails:
|
1029
|
-
id:
|
1030
|
-
createdAt:
|
1031
|
-
updatedAt:
|
1032
|
-
deletedAt:
|
1033
|
-
email:
|
1034
|
-
isPrimary:
|
1035
|
-
}, "strip",
|
1086
|
+
contactEmails: z.ZodArray<z.ZodObject<{
|
1087
|
+
id: z.ZodString;
|
1088
|
+
createdAt: z.ZodDate;
|
1089
|
+
updatedAt: z.ZodDate;
|
1090
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1091
|
+
email: z.ZodString;
|
1092
|
+
isPrimary: z.ZodBoolean;
|
1093
|
+
}, "strip", z.ZodTypeAny, {
|
1036
1094
|
id: string;
|
1037
1095
|
isPrimary: boolean;
|
1038
1096
|
email: string;
|
@@ -1047,14 +1105,14 @@ export declare const messengerContract: {
|
|
1047
1105
|
updatedAt: Date;
|
1048
1106
|
deletedAt: Date | null;
|
1049
1107
|
}>, "many">;
|
1050
|
-
contactPhones:
|
1051
|
-
id:
|
1052
|
-
createdAt:
|
1053
|
-
updatedAt:
|
1054
|
-
deletedAt:
|
1055
|
-
phone:
|
1056
|
-
isPrimary:
|
1057
|
-
}, "strip",
|
1108
|
+
contactPhones: z.ZodArray<z.ZodObject<{
|
1109
|
+
id: z.ZodString;
|
1110
|
+
createdAt: z.ZodDate;
|
1111
|
+
updatedAt: z.ZodDate;
|
1112
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1113
|
+
phone: z.ZodString;
|
1114
|
+
isPrimary: z.ZodBoolean;
|
1115
|
+
}, "strip", z.ZodTypeAny, {
|
1058
1116
|
id: string;
|
1059
1117
|
isPrimary: boolean;
|
1060
1118
|
createdAt: Date;
|
@@ -1069,21 +1127,21 @@ export declare const messengerContract: {
|
|
1069
1127
|
deletedAt: Date | null;
|
1070
1128
|
phone: string;
|
1071
1129
|
}>, "many">;
|
1072
|
-
activityLogs:
|
1073
|
-
id:
|
1074
|
-
createdAt:
|
1075
|
-
updatedAt:
|
1076
|
-
deletedAt:
|
1077
|
-
entityId:
|
1078
|
-
description:
|
1079
|
-
entityType:
|
1080
|
-
id:
|
1081
|
-
createdAt:
|
1082
|
-
updatedAt:
|
1083
|
-
deletedAt:
|
1084
|
-
entity:
|
1085
|
-
description:
|
1086
|
-
}, "strip",
|
1130
|
+
activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1131
|
+
id: z.ZodString;
|
1132
|
+
createdAt: z.ZodDate;
|
1133
|
+
updatedAt: z.ZodDate;
|
1134
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1135
|
+
entityId: z.ZodString;
|
1136
|
+
description: z.ZodString;
|
1137
|
+
entityType: z.ZodObject<{
|
1138
|
+
id: z.ZodString;
|
1139
|
+
createdAt: z.ZodDate;
|
1140
|
+
updatedAt: z.ZodDate;
|
1141
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1142
|
+
entity: z.ZodString;
|
1143
|
+
description: z.ZodNullable<z.ZodString>;
|
1144
|
+
}, "strip", z.ZodTypeAny, {
|
1087
1145
|
id: string;
|
1088
1146
|
description: string | null;
|
1089
1147
|
createdAt: Date;
|
@@ -1098,7 +1156,7 @@ export declare const messengerContract: {
|
|
1098
1156
|
deletedAt: Date | null;
|
1099
1157
|
entity: string;
|
1100
1158
|
}>;
|
1101
|
-
}, "strip",
|
1159
|
+
}, "strip", z.ZodTypeAny, {
|
1102
1160
|
id: string;
|
1103
1161
|
description: string;
|
1104
1162
|
createdAt: Date;
|
@@ -1129,7 +1187,7 @@ export declare const messengerContract: {
|
|
1129
1187
|
entity: string;
|
1130
1188
|
};
|
1131
1189
|
}>, "many">>;
|
1132
|
-
}, "strip",
|
1190
|
+
}, "strip", z.ZodTypeAny, {
|
1133
1191
|
id: string;
|
1134
1192
|
channel: string | null;
|
1135
1193
|
address: string | null;
|
@@ -1332,7 +1390,7 @@ export declare const messengerContract: {
|
|
1332
1390
|
};
|
1333
1391
|
}[] | undefined;
|
1334
1392
|
}>;
|
1335
|
-
}, "strip",
|
1393
|
+
}, "strip", z.ZodTypeAny, {
|
1336
1394
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
1337
1395
|
id: string;
|
1338
1396
|
metadata: {
|
@@ -1344,6 +1402,7 @@ export declare const messengerContract: {
|
|
1344
1402
|
createdAt: Date;
|
1345
1403
|
updatedAt: Date;
|
1346
1404
|
deletedAt: Date | null;
|
1405
|
+
channelId: string;
|
1347
1406
|
contact: {
|
1348
1407
|
id: string;
|
1349
1408
|
channel: string | null;
|
@@ -1446,7 +1505,6 @@ export declare const messengerContract: {
|
|
1446
1505
|
};
|
1447
1506
|
}[] | undefined;
|
1448
1507
|
};
|
1449
|
-
channelId: string;
|
1450
1508
|
socialPlatformId: string;
|
1451
1509
|
}, {
|
1452
1510
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
@@ -1460,6 +1518,7 @@ export declare const messengerContract: {
|
|
1460
1518
|
createdAt: Date;
|
1461
1519
|
updatedAt: Date;
|
1462
1520
|
deletedAt: Date | null;
|
1521
|
+
channelId: string;
|
1463
1522
|
contact: {
|
1464
1523
|
id: string;
|
1465
1524
|
channel: string | null;
|
@@ -1562,38 +1621,37 @@ export declare const messengerContract: {
|
|
1562
1621
|
};
|
1563
1622
|
}[] | undefined;
|
1564
1623
|
};
|
1565
|
-
channelId: string;
|
1566
1624
|
socialPlatformId: string;
|
1567
1625
|
}>;
|
1568
|
-
actor:
|
1569
|
-
id:
|
1570
|
-
createdAt:
|
1571
|
-
updatedAt:
|
1572
|
-
deletedAt:
|
1573
|
-
name:
|
1574
|
-
email:
|
1575
|
-
emailVerifiedAt:
|
1576
|
-
password:
|
1577
|
-
address:
|
1578
|
-
phone:
|
1579
|
-
notificationCount:
|
1580
|
-
roles:
|
1581
|
-
id:
|
1582
|
-
createdAt:
|
1583
|
-
updatedAt:
|
1584
|
-
deletedAt:
|
1585
|
-
systemName:
|
1586
|
-
displayName:
|
1587
|
-
description:
|
1588
|
-
permissions:
|
1589
|
-
id:
|
1590
|
-
createdAt:
|
1591
|
-
updatedAt:
|
1592
|
-
deletedAt:
|
1593
|
-
systemName:
|
1594
|
-
displayName:
|
1595
|
-
description:
|
1596
|
-
}, "strip",
|
1626
|
+
actor: z.ZodObject<{
|
1627
|
+
id: z.ZodString;
|
1628
|
+
createdAt: z.ZodDate;
|
1629
|
+
updatedAt: z.ZodDate;
|
1630
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1631
|
+
name: z.ZodString;
|
1632
|
+
email: z.ZodString;
|
1633
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
1634
|
+
password: z.ZodString;
|
1635
|
+
address: z.ZodNullable<z.ZodString>;
|
1636
|
+
phone: z.ZodNullable<z.ZodString>;
|
1637
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
1638
|
+
roles: z.ZodArray<z.ZodObject<{
|
1639
|
+
id: z.ZodString;
|
1640
|
+
createdAt: z.ZodDate;
|
1641
|
+
updatedAt: z.ZodDate;
|
1642
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1643
|
+
systemName: z.ZodString;
|
1644
|
+
displayName: z.ZodString;
|
1645
|
+
description: z.ZodNullable<z.ZodString>;
|
1646
|
+
permissions: z.ZodArray<z.ZodObject<{
|
1647
|
+
id: z.ZodString;
|
1648
|
+
createdAt: z.ZodDate;
|
1649
|
+
updatedAt: z.ZodDate;
|
1650
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1651
|
+
systemName: z.ZodString;
|
1652
|
+
displayName: z.ZodString;
|
1653
|
+
description: z.ZodNullable<z.ZodString>;
|
1654
|
+
}, "strip", z.ZodTypeAny, {
|
1597
1655
|
id: string;
|
1598
1656
|
description: string | null;
|
1599
1657
|
createdAt: Date;
|
@@ -1610,7 +1668,7 @@ export declare const messengerContract: {
|
|
1610
1668
|
systemName: string;
|
1611
1669
|
displayName: string;
|
1612
1670
|
}>, "many">;
|
1613
|
-
}, "strip",
|
1671
|
+
}, "strip", z.ZodTypeAny, {
|
1614
1672
|
id: string;
|
1615
1673
|
description: string | null;
|
1616
1674
|
createdAt: Date;
|
@@ -1645,18 +1703,18 @@ export declare const messengerContract: {
|
|
1645
1703
|
displayName: string;
|
1646
1704
|
}[];
|
1647
1705
|
}>, "many">;
|
1648
|
-
extension:
|
1649
|
-
id:
|
1650
|
-
createdAt:
|
1651
|
-
updatedAt:
|
1652
|
-
deletedAt:
|
1653
|
-
userId:
|
1654
|
-
sipServerUrl:
|
1655
|
-
sipUserName:
|
1656
|
-
extensionId:
|
1657
|
-
extensionName:
|
1658
|
-
telephonySignature:
|
1659
|
-
}, "strip",
|
1706
|
+
extension: z.ZodOptional<z.ZodObject<{
|
1707
|
+
id: z.ZodString;
|
1708
|
+
createdAt: z.ZodDate;
|
1709
|
+
updatedAt: z.ZodDate;
|
1710
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1711
|
+
userId: z.ZodNullable<z.ZodString>;
|
1712
|
+
sipServerUrl: z.ZodString;
|
1713
|
+
sipUserName: z.ZodString;
|
1714
|
+
extensionId: z.ZodNumber;
|
1715
|
+
extensionName: z.ZodString;
|
1716
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
1717
|
+
}, "strip", z.ZodTypeAny, {
|
1660
1718
|
id: string;
|
1661
1719
|
createdAt: Date;
|
1662
1720
|
updatedAt: Date;
|
@@ -1679,7 +1737,7 @@ export declare const messengerContract: {
|
|
1679
1737
|
extensionName: string;
|
1680
1738
|
telephonySignature: string | null;
|
1681
1739
|
}>>;
|
1682
|
-
}, "strip",
|
1740
|
+
}, "strip", z.ZodTypeAny, {
|
1683
1741
|
id: string;
|
1684
1742
|
address: string | null;
|
1685
1743
|
name: string;
|
@@ -1764,35 +1822,35 @@ export declare const messengerContract: {
|
|
1764
1822
|
telephonySignature: string | null;
|
1765
1823
|
} | undefined;
|
1766
1824
|
}>;
|
1767
|
-
assignee:
|
1768
|
-
id:
|
1769
|
-
createdAt:
|
1770
|
-
updatedAt:
|
1771
|
-
deletedAt:
|
1772
|
-
name:
|
1773
|
-
email:
|
1774
|
-
emailVerifiedAt:
|
1775
|
-
password:
|
1776
|
-
address:
|
1777
|
-
phone:
|
1778
|
-
notificationCount:
|
1779
|
-
roles:
|
1780
|
-
id:
|
1781
|
-
createdAt:
|
1782
|
-
updatedAt:
|
1783
|
-
deletedAt:
|
1784
|
-
systemName:
|
1785
|
-
displayName:
|
1786
|
-
description:
|
1787
|
-
permissions:
|
1788
|
-
id:
|
1789
|
-
createdAt:
|
1790
|
-
updatedAt:
|
1791
|
-
deletedAt:
|
1792
|
-
systemName:
|
1793
|
-
displayName:
|
1794
|
-
description:
|
1795
|
-
}, "strip",
|
1825
|
+
assignee: z.ZodObject<{
|
1826
|
+
id: z.ZodString;
|
1827
|
+
createdAt: z.ZodDate;
|
1828
|
+
updatedAt: z.ZodDate;
|
1829
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1830
|
+
name: z.ZodString;
|
1831
|
+
email: z.ZodString;
|
1832
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
1833
|
+
password: z.ZodString;
|
1834
|
+
address: z.ZodNullable<z.ZodString>;
|
1835
|
+
phone: z.ZodNullable<z.ZodString>;
|
1836
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
1837
|
+
roles: z.ZodArray<z.ZodObject<{
|
1838
|
+
id: z.ZodString;
|
1839
|
+
createdAt: z.ZodDate;
|
1840
|
+
updatedAt: z.ZodDate;
|
1841
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1842
|
+
systemName: z.ZodString;
|
1843
|
+
displayName: z.ZodString;
|
1844
|
+
description: z.ZodNullable<z.ZodString>;
|
1845
|
+
permissions: z.ZodArray<z.ZodObject<{
|
1846
|
+
id: z.ZodString;
|
1847
|
+
createdAt: z.ZodDate;
|
1848
|
+
updatedAt: z.ZodDate;
|
1849
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1850
|
+
systemName: z.ZodString;
|
1851
|
+
displayName: z.ZodString;
|
1852
|
+
description: z.ZodNullable<z.ZodString>;
|
1853
|
+
}, "strip", z.ZodTypeAny, {
|
1796
1854
|
id: string;
|
1797
1855
|
description: string | null;
|
1798
1856
|
createdAt: Date;
|
@@ -1809,7 +1867,7 @@ export declare const messengerContract: {
|
|
1809
1867
|
systemName: string;
|
1810
1868
|
displayName: string;
|
1811
1869
|
}>, "many">;
|
1812
|
-
}, "strip",
|
1870
|
+
}, "strip", z.ZodTypeAny, {
|
1813
1871
|
id: string;
|
1814
1872
|
description: string | null;
|
1815
1873
|
createdAt: Date;
|
@@ -1844,18 +1902,18 @@ export declare const messengerContract: {
|
|
1844
1902
|
displayName: string;
|
1845
1903
|
}[];
|
1846
1904
|
}>, "many">;
|
1847
|
-
extension:
|
1848
|
-
id:
|
1849
|
-
createdAt:
|
1850
|
-
updatedAt:
|
1851
|
-
deletedAt:
|
1852
|
-
userId:
|
1853
|
-
sipServerUrl:
|
1854
|
-
sipUserName:
|
1855
|
-
extensionId:
|
1856
|
-
extensionName:
|
1857
|
-
telephonySignature:
|
1858
|
-
}, "strip",
|
1905
|
+
extension: z.ZodOptional<z.ZodObject<{
|
1906
|
+
id: z.ZodString;
|
1907
|
+
createdAt: z.ZodDate;
|
1908
|
+
updatedAt: z.ZodDate;
|
1909
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1910
|
+
userId: z.ZodNullable<z.ZodString>;
|
1911
|
+
sipServerUrl: z.ZodString;
|
1912
|
+
sipUserName: z.ZodString;
|
1913
|
+
extensionId: z.ZodNumber;
|
1914
|
+
extensionName: z.ZodString;
|
1915
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
1916
|
+
}, "strip", z.ZodTypeAny, {
|
1859
1917
|
id: string;
|
1860
1918
|
createdAt: Date;
|
1861
1919
|
updatedAt: Date;
|
@@ -1878,7 +1936,7 @@ export declare const messengerContract: {
|
|
1878
1936
|
extensionName: string;
|
1879
1937
|
telephonySignature: string | null;
|
1880
1938
|
}>>;
|
1881
|
-
}, "strip",
|
1939
|
+
}, "strip", z.ZodTypeAny, {
|
1882
1940
|
id: string;
|
1883
1941
|
address: string | null;
|
1884
1942
|
name: string;
|
@@ -1963,19 +2021,19 @@ export declare const messengerContract: {
|
|
1963
2021
|
telephonySignature: string | null;
|
1964
2022
|
} | undefined;
|
1965
2023
|
}>;
|
1966
|
-
channel:
|
1967
|
-
id:
|
1968
|
-
createdAt:
|
1969
|
-
updatedAt:
|
1970
|
-
deletedAt:
|
1971
|
-
name:
|
1972
|
-
type:
|
1973
|
-
metadata:
|
1974
|
-
id:
|
1975
|
-
name:
|
1976
|
-
accessToken:
|
1977
|
-
additionalCredentials:
|
1978
|
-
}, "strip",
|
2024
|
+
channel: z.ZodOptional<z.ZodObject<{
|
2025
|
+
id: z.ZodOptional<z.ZodString>;
|
2026
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
2027
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
2028
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
2029
|
+
name: z.ZodOptional<z.ZodString>;
|
2030
|
+
type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
|
2031
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
2032
|
+
id: z.ZodString;
|
2033
|
+
name: z.ZodString;
|
2034
|
+
accessToken: z.ZodString;
|
2035
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
2036
|
+
}, "strip", z.ZodTypeAny, {
|
1979
2037
|
id: string;
|
1980
2038
|
name: string;
|
1981
2039
|
accessToken: string;
|
@@ -1986,41 +2044,41 @@ export declare const messengerContract: {
|
|
1986
2044
|
accessToken: string;
|
1987
2045
|
additionalCredentials?: any;
|
1988
2046
|
}>>;
|
1989
|
-
brandName:
|
1990
|
-
platformId:
|
1991
|
-
status:
|
1992
|
-
isReloginRequired:
|
1993
|
-
connectedUserName:
|
1994
|
-
connectedUserId:
|
1995
|
-
actor:
|
1996
|
-
id:
|
1997
|
-
createdAt:
|
1998
|
-
updatedAt:
|
1999
|
-
deletedAt:
|
2000
|
-
name:
|
2001
|
-
email:
|
2002
|
-
emailVerifiedAt:
|
2003
|
-
password:
|
2004
|
-
address:
|
2005
|
-
phone:
|
2006
|
-
notificationCount:
|
2007
|
-
roles:
|
2008
|
-
id:
|
2009
|
-
createdAt:
|
2010
|
-
updatedAt:
|
2011
|
-
deletedAt:
|
2012
|
-
systemName:
|
2013
|
-
displayName:
|
2014
|
-
description:
|
2015
|
-
permissions:
|
2016
|
-
id:
|
2017
|
-
createdAt:
|
2018
|
-
updatedAt:
|
2019
|
-
deletedAt:
|
2020
|
-
systemName:
|
2021
|
-
displayName:
|
2022
|
-
description:
|
2023
|
-
}, "strip",
|
2047
|
+
brandName: z.ZodOptional<z.ZodString>;
|
2048
|
+
platformId: z.ZodOptional<z.ZodString>;
|
2049
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
|
2050
|
+
isReloginRequired: z.ZodOptional<z.ZodBoolean>;
|
2051
|
+
connectedUserName: z.ZodOptional<z.ZodString>;
|
2052
|
+
connectedUserId: z.ZodOptional<z.ZodString>;
|
2053
|
+
actor: z.ZodOptional<z.ZodObject<{
|
2054
|
+
id: z.ZodString;
|
2055
|
+
createdAt: z.ZodDate;
|
2056
|
+
updatedAt: z.ZodDate;
|
2057
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2058
|
+
name: z.ZodString;
|
2059
|
+
email: z.ZodString;
|
2060
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
2061
|
+
password: z.ZodString;
|
2062
|
+
address: z.ZodNullable<z.ZodString>;
|
2063
|
+
phone: z.ZodNullable<z.ZodString>;
|
2064
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
2065
|
+
roles: z.ZodArray<z.ZodObject<{
|
2066
|
+
id: z.ZodString;
|
2067
|
+
createdAt: z.ZodDate;
|
2068
|
+
updatedAt: z.ZodDate;
|
2069
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2070
|
+
systemName: z.ZodString;
|
2071
|
+
displayName: z.ZodString;
|
2072
|
+
description: z.ZodNullable<z.ZodString>;
|
2073
|
+
permissions: z.ZodArray<z.ZodObject<{
|
2074
|
+
id: z.ZodString;
|
2075
|
+
createdAt: z.ZodDate;
|
2076
|
+
updatedAt: z.ZodDate;
|
2077
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2078
|
+
systemName: z.ZodString;
|
2079
|
+
displayName: z.ZodString;
|
2080
|
+
description: z.ZodNullable<z.ZodString>;
|
2081
|
+
}, "strip", z.ZodTypeAny, {
|
2024
2082
|
id: string;
|
2025
2083
|
description: string | null;
|
2026
2084
|
createdAt: Date;
|
@@ -2037,7 +2095,7 @@ export declare const messengerContract: {
|
|
2037
2095
|
systemName: string;
|
2038
2096
|
displayName: string;
|
2039
2097
|
}>, "many">;
|
2040
|
-
}, "strip",
|
2098
|
+
}, "strip", z.ZodTypeAny, {
|
2041
2099
|
id: string;
|
2042
2100
|
description: string | null;
|
2043
2101
|
createdAt: Date;
|
@@ -2072,18 +2130,18 @@ export declare const messengerContract: {
|
|
2072
2130
|
displayName: string;
|
2073
2131
|
}[];
|
2074
2132
|
}>, "many">;
|
2075
|
-
extension:
|
2076
|
-
id:
|
2077
|
-
createdAt:
|
2078
|
-
updatedAt:
|
2079
|
-
deletedAt:
|
2080
|
-
userId:
|
2081
|
-
sipServerUrl:
|
2082
|
-
sipUserName:
|
2083
|
-
extensionId:
|
2084
|
-
extensionName:
|
2085
|
-
telephonySignature:
|
2086
|
-
}, "strip",
|
2133
|
+
extension: z.ZodOptional<z.ZodObject<{
|
2134
|
+
id: z.ZodString;
|
2135
|
+
createdAt: z.ZodDate;
|
2136
|
+
updatedAt: z.ZodDate;
|
2137
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2138
|
+
userId: z.ZodNullable<z.ZodString>;
|
2139
|
+
sipServerUrl: z.ZodString;
|
2140
|
+
sipUserName: z.ZodString;
|
2141
|
+
extensionId: z.ZodNumber;
|
2142
|
+
extensionName: z.ZodString;
|
2143
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
2144
|
+
}, "strip", z.ZodTypeAny, {
|
2087
2145
|
id: string;
|
2088
2146
|
createdAt: Date;
|
2089
2147
|
updatedAt: Date;
|
@@ -2106,7 +2164,7 @@ export declare const messengerContract: {
|
|
2106
2164
|
extensionName: string;
|
2107
2165
|
telephonySignature: string | null;
|
2108
2166
|
}>>;
|
2109
|
-
}, "strip",
|
2167
|
+
}, "strip", z.ZodTypeAny, {
|
2110
2168
|
id: string;
|
2111
2169
|
address: string | null;
|
2112
2170
|
name: string;
|
@@ -2191,7 +2249,7 @@ export declare const messengerContract: {
|
|
2191
2249
|
telephonySignature: string | null;
|
2192
2250
|
} | undefined;
|
2193
2251
|
}>>;
|
2194
|
-
}, "strip",
|
2252
|
+
}, "strip", z.ZodTypeAny, {
|
2195
2253
|
id?: string | undefined;
|
2196
2254
|
createdAt?: Date | undefined;
|
2197
2255
|
updatedAt?: Date | undefined;
|
@@ -2316,39 +2374,39 @@ export declare const messengerContract: {
|
|
2316
2374
|
} | undefined;
|
2317
2375
|
} | undefined;
|
2318
2376
|
}>>;
|
2319
|
-
cxlog:
|
2320
|
-
id:
|
2321
|
-
createdAt:
|
2322
|
-
updatedAt:
|
2323
|
-
deletedAt:
|
2324
|
-
caseId:
|
2325
|
-
entityId:
|
2326
|
-
entityName:
|
2327
|
-
contactId:
|
2328
|
-
channel:
|
2329
|
-
queueId:
|
2330
|
-
agentId:
|
2331
|
-
direction:
|
2332
|
-
startedDate:
|
2333
|
-
handledTime:
|
2334
|
-
firstResponseTime:
|
2335
|
-
disposition:
|
2336
|
-
wrapUpForm:
|
2337
|
-
id:
|
2338
|
-
createdAt:
|
2339
|
-
updatedAt:
|
2340
|
-
deletedAt:
|
2341
|
-
note:
|
2342
|
-
disposition:
|
2343
|
-
callFrom:
|
2344
|
-
callTo:
|
2345
|
-
tags:
|
2346
|
-
id:
|
2347
|
-
createdAt:
|
2348
|
-
updatedAt:
|
2349
|
-
deletedAt:
|
2350
|
-
name:
|
2351
|
-
}, "strip",
|
2377
|
+
cxlog: z.ZodObject<{
|
2378
|
+
id: z.ZodString;
|
2379
|
+
createdAt: z.ZodDate;
|
2380
|
+
updatedAt: z.ZodDate;
|
2381
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2382
|
+
caseId: z.ZodNumber;
|
2383
|
+
entityId: z.ZodString;
|
2384
|
+
entityName: z.ZodString;
|
2385
|
+
contactId: z.ZodNullable<z.ZodString>;
|
2386
|
+
channel: z.ZodNullable<z.ZodString>;
|
2387
|
+
queueId: z.ZodNullable<z.ZodString>;
|
2388
|
+
agentId: z.ZodNullable<z.ZodString>;
|
2389
|
+
direction: z.ZodNullable<z.ZodString>;
|
2390
|
+
startedDate: z.ZodNullable<z.ZodDate>;
|
2391
|
+
handledTime: z.ZodNullable<z.ZodNumber>;
|
2392
|
+
firstResponseTime: z.ZodNullable<z.ZodNumber>;
|
2393
|
+
disposition: z.ZodNullable<z.ZodString>;
|
2394
|
+
wrapUpForm: z.ZodNullable<z.ZodObject<{
|
2395
|
+
id: z.ZodString;
|
2396
|
+
createdAt: z.ZodDate;
|
2397
|
+
updatedAt: z.ZodDate;
|
2398
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2399
|
+
note: z.ZodNullable<z.ZodString>;
|
2400
|
+
disposition: z.ZodNullable<z.ZodString>;
|
2401
|
+
callFrom: z.ZodNullable<z.ZodString>;
|
2402
|
+
callTo: z.ZodNullable<z.ZodString>;
|
2403
|
+
tags: z.ZodArray<z.ZodObject<{
|
2404
|
+
id: z.ZodString;
|
2405
|
+
createdAt: z.ZodDate;
|
2406
|
+
updatedAt: z.ZodDate;
|
2407
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2408
|
+
name: z.ZodString;
|
2409
|
+
}, "strip", z.ZodTypeAny, {
|
2352
2410
|
id: string;
|
2353
2411
|
name: string;
|
2354
2412
|
createdAt: Date;
|
@@ -2361,7 +2419,7 @@ export declare const messengerContract: {
|
|
2361
2419
|
updatedAt: Date;
|
2362
2420
|
deletedAt: Date | null;
|
2363
2421
|
}>, "many">;
|
2364
|
-
}, "strip",
|
2422
|
+
}, "strip", z.ZodTypeAny, {
|
2365
2423
|
id: string;
|
2366
2424
|
disposition: string | null;
|
2367
2425
|
createdAt: Date;
|
@@ -2394,7 +2452,7 @@ export declare const messengerContract: {
|
|
2394
2452
|
callTo: string | null;
|
2395
2453
|
note: string | null;
|
2396
2454
|
}>>;
|
2397
|
-
}, "strip",
|
2455
|
+
}, "strip", z.ZodTypeAny, {
|
2398
2456
|
id: string;
|
2399
2457
|
channel: string | null;
|
2400
2458
|
disposition: string | null;
|
@@ -2463,7 +2521,7 @@ export declare const messengerContract: {
|
|
2463
2521
|
note: string | null;
|
2464
2522
|
} | null;
|
2465
2523
|
}>;
|
2466
|
-
}, "strip",
|
2524
|
+
}, "strip", z.ZodTypeAny, {
|
2467
2525
|
id: string;
|
2468
2526
|
direction: "incoming" | "outgoing" | "system";
|
2469
2527
|
createdAt: Date;
|
@@ -2531,6 +2589,7 @@ export declare const messengerContract: {
|
|
2531
2589
|
createdAt: Date;
|
2532
2590
|
updatedAt: Date;
|
2533
2591
|
deletedAt: Date | null;
|
2592
|
+
channelId: string;
|
2534
2593
|
contact: {
|
2535
2594
|
id: string;
|
2536
2595
|
channel: string | null;
|
@@ -2633,7 +2692,6 @@ export declare const messengerContract: {
|
|
2633
2692
|
};
|
2634
2693
|
}[] | undefined;
|
2635
2694
|
};
|
2636
|
-
channelId: string;
|
2637
2695
|
socialPlatformId: string;
|
2638
2696
|
};
|
2639
2697
|
assignee: {
|
@@ -2845,6 +2903,7 @@ export declare const messengerContract: {
|
|
2845
2903
|
createdAt: Date;
|
2846
2904
|
updatedAt: Date;
|
2847
2905
|
deletedAt: Date | null;
|
2906
|
+
channelId: string;
|
2848
2907
|
contact: {
|
2849
2908
|
id: string;
|
2850
2909
|
channel: string | null;
|
@@ -2947,7 +3006,6 @@ export declare const messengerContract: {
|
|
2947
3006
|
};
|
2948
3007
|
}[] | undefined;
|
2949
3008
|
};
|
2950
|
-
channelId: string;
|
2951
3009
|
socialPlatformId: string;
|
2952
3010
|
};
|
2953
3011
|
assignee: {
|
@@ -3092,16 +3150,16 @@ export declare const messengerContract: {
|
|
3092
3150
|
} | undefined;
|
3093
3151
|
} | undefined;
|
3094
3152
|
}>;
|
3095
|
-
upload:
|
3096
|
-
id:
|
3097
|
-
createdAt:
|
3098
|
-
updatedAt:
|
3099
|
-
deletedAt:
|
3100
|
-
bucketName:
|
3101
|
-
fileName:
|
3102
|
-
fileSize:
|
3103
|
-
fileKey:
|
3104
|
-
}, "strip",
|
3153
|
+
upload: z.ZodObject<{
|
3154
|
+
id: z.ZodString;
|
3155
|
+
createdAt: z.ZodDate;
|
3156
|
+
updatedAt: z.ZodDate;
|
3157
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3158
|
+
bucketName: z.ZodString;
|
3159
|
+
fileName: z.ZodString;
|
3160
|
+
fileSize: z.ZodNumber;
|
3161
|
+
fileKey: z.ZodString;
|
3162
|
+
}, "strip", z.ZodTypeAny, {
|
3105
3163
|
id: string;
|
3106
3164
|
createdAt: Date;
|
3107
3165
|
updatedAt: Date;
|
@@ -3120,35 +3178,35 @@ export declare const messengerContract: {
|
|
3120
3178
|
bucketName: string;
|
3121
3179
|
fileSize: number;
|
3122
3180
|
}>;
|
3123
|
-
actor:
|
3124
|
-
id:
|
3125
|
-
createdAt:
|
3126
|
-
updatedAt:
|
3127
|
-
deletedAt:
|
3128
|
-
name:
|
3129
|
-
email:
|
3130
|
-
emailVerifiedAt:
|
3131
|
-
password:
|
3132
|
-
address:
|
3133
|
-
phone:
|
3134
|
-
notificationCount:
|
3135
|
-
roles:
|
3136
|
-
id:
|
3137
|
-
createdAt:
|
3138
|
-
updatedAt:
|
3139
|
-
deletedAt:
|
3140
|
-
systemName:
|
3141
|
-
displayName:
|
3142
|
-
description:
|
3143
|
-
permissions:
|
3144
|
-
id:
|
3145
|
-
createdAt:
|
3146
|
-
updatedAt:
|
3147
|
-
deletedAt:
|
3148
|
-
systemName:
|
3149
|
-
displayName:
|
3150
|
-
description:
|
3151
|
-
}, "strip",
|
3181
|
+
actor: z.ZodObject<{
|
3182
|
+
id: z.ZodString;
|
3183
|
+
createdAt: z.ZodDate;
|
3184
|
+
updatedAt: z.ZodDate;
|
3185
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3186
|
+
name: z.ZodString;
|
3187
|
+
email: z.ZodString;
|
3188
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
3189
|
+
password: z.ZodString;
|
3190
|
+
address: z.ZodNullable<z.ZodString>;
|
3191
|
+
phone: z.ZodNullable<z.ZodString>;
|
3192
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
3193
|
+
roles: z.ZodArray<z.ZodObject<{
|
3194
|
+
id: z.ZodString;
|
3195
|
+
createdAt: z.ZodDate;
|
3196
|
+
updatedAt: z.ZodDate;
|
3197
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3198
|
+
systemName: z.ZodString;
|
3199
|
+
displayName: z.ZodString;
|
3200
|
+
description: z.ZodNullable<z.ZodString>;
|
3201
|
+
permissions: z.ZodArray<z.ZodObject<{
|
3202
|
+
id: z.ZodString;
|
3203
|
+
createdAt: z.ZodDate;
|
3204
|
+
updatedAt: z.ZodDate;
|
3205
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3206
|
+
systemName: z.ZodString;
|
3207
|
+
displayName: z.ZodString;
|
3208
|
+
description: z.ZodNullable<z.ZodString>;
|
3209
|
+
}, "strip", z.ZodTypeAny, {
|
3152
3210
|
id: string;
|
3153
3211
|
description: string | null;
|
3154
3212
|
createdAt: Date;
|
@@ -3165,7 +3223,7 @@ export declare const messengerContract: {
|
|
3165
3223
|
systemName: string;
|
3166
3224
|
displayName: string;
|
3167
3225
|
}>, "many">;
|
3168
|
-
}, "strip",
|
3226
|
+
}, "strip", z.ZodTypeAny, {
|
3169
3227
|
id: string;
|
3170
3228
|
description: string | null;
|
3171
3229
|
createdAt: Date;
|
@@ -3200,18 +3258,18 @@ export declare const messengerContract: {
|
|
3200
3258
|
displayName: string;
|
3201
3259
|
}[];
|
3202
3260
|
}>, "many">;
|
3203
|
-
extension:
|
3204
|
-
id:
|
3205
|
-
createdAt:
|
3206
|
-
updatedAt:
|
3207
|
-
deletedAt:
|
3208
|
-
userId:
|
3209
|
-
sipServerUrl:
|
3210
|
-
sipUserName:
|
3211
|
-
extensionId:
|
3212
|
-
extensionName:
|
3213
|
-
telephonySignature:
|
3214
|
-
}, "strip",
|
3261
|
+
extension: z.ZodOptional<z.ZodObject<{
|
3262
|
+
id: z.ZodString;
|
3263
|
+
createdAt: z.ZodDate;
|
3264
|
+
updatedAt: z.ZodDate;
|
3265
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3266
|
+
userId: z.ZodNullable<z.ZodString>;
|
3267
|
+
sipServerUrl: z.ZodString;
|
3268
|
+
sipUserName: z.ZodString;
|
3269
|
+
extensionId: z.ZodNumber;
|
3270
|
+
extensionName: z.ZodString;
|
3271
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
3272
|
+
}, "strip", z.ZodTypeAny, {
|
3215
3273
|
id: string;
|
3216
3274
|
createdAt: Date;
|
3217
3275
|
updatedAt: Date;
|
@@ -3234,7 +3292,7 @@ export declare const messengerContract: {
|
|
3234
3292
|
extensionName: string;
|
3235
3293
|
telephonySignature: string | null;
|
3236
3294
|
}>>;
|
3237
|
-
}, "strip",
|
3295
|
+
}, "strip", z.ZodTypeAny, {
|
3238
3296
|
id: string;
|
3239
3297
|
address: string | null;
|
3240
3298
|
name: string;
|
@@ -3319,35 +3377,35 @@ export declare const messengerContract: {
|
|
3319
3377
|
telephonySignature: string | null;
|
3320
3378
|
} | undefined;
|
3321
3379
|
}>;
|
3322
|
-
assignee:
|
3323
|
-
id:
|
3324
|
-
createdAt:
|
3325
|
-
updatedAt:
|
3326
|
-
deletedAt:
|
3327
|
-
name:
|
3328
|
-
email:
|
3329
|
-
emailVerifiedAt:
|
3330
|
-
password:
|
3331
|
-
address:
|
3332
|
-
phone:
|
3333
|
-
notificationCount:
|
3334
|
-
roles:
|
3335
|
-
id:
|
3336
|
-
createdAt:
|
3337
|
-
updatedAt:
|
3338
|
-
deletedAt:
|
3339
|
-
systemName:
|
3340
|
-
displayName:
|
3341
|
-
description:
|
3342
|
-
permissions:
|
3343
|
-
id:
|
3344
|
-
createdAt:
|
3345
|
-
updatedAt:
|
3346
|
-
deletedAt:
|
3347
|
-
systemName:
|
3348
|
-
displayName:
|
3349
|
-
description:
|
3350
|
-
}, "strip",
|
3380
|
+
assignee: z.ZodObject<{
|
3381
|
+
id: z.ZodString;
|
3382
|
+
createdAt: z.ZodDate;
|
3383
|
+
updatedAt: z.ZodDate;
|
3384
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3385
|
+
name: z.ZodString;
|
3386
|
+
email: z.ZodString;
|
3387
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
3388
|
+
password: z.ZodString;
|
3389
|
+
address: z.ZodNullable<z.ZodString>;
|
3390
|
+
phone: z.ZodNullable<z.ZodString>;
|
3391
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
3392
|
+
roles: z.ZodArray<z.ZodObject<{
|
3393
|
+
id: z.ZodString;
|
3394
|
+
createdAt: z.ZodDate;
|
3395
|
+
updatedAt: z.ZodDate;
|
3396
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3397
|
+
systemName: z.ZodString;
|
3398
|
+
displayName: z.ZodString;
|
3399
|
+
description: z.ZodNullable<z.ZodString>;
|
3400
|
+
permissions: z.ZodArray<z.ZodObject<{
|
3401
|
+
id: z.ZodString;
|
3402
|
+
createdAt: z.ZodDate;
|
3403
|
+
updatedAt: z.ZodDate;
|
3404
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3405
|
+
systemName: z.ZodString;
|
3406
|
+
displayName: z.ZodString;
|
3407
|
+
description: z.ZodNullable<z.ZodString>;
|
3408
|
+
}, "strip", z.ZodTypeAny, {
|
3351
3409
|
id: string;
|
3352
3410
|
description: string | null;
|
3353
3411
|
createdAt: Date;
|
@@ -3364,7 +3422,7 @@ export declare const messengerContract: {
|
|
3364
3422
|
systemName: string;
|
3365
3423
|
displayName: string;
|
3366
3424
|
}>, "many">;
|
3367
|
-
}, "strip",
|
3425
|
+
}, "strip", z.ZodTypeAny, {
|
3368
3426
|
id: string;
|
3369
3427
|
description: string | null;
|
3370
3428
|
createdAt: Date;
|
@@ -3399,18 +3457,18 @@ export declare const messengerContract: {
|
|
3399
3457
|
displayName: string;
|
3400
3458
|
}[];
|
3401
3459
|
}>, "many">;
|
3402
|
-
extension:
|
3403
|
-
id:
|
3404
|
-
createdAt:
|
3405
|
-
updatedAt:
|
3406
|
-
deletedAt:
|
3407
|
-
userId:
|
3408
|
-
sipServerUrl:
|
3409
|
-
sipUserName:
|
3410
|
-
extensionId:
|
3411
|
-
extensionName:
|
3412
|
-
telephonySignature:
|
3413
|
-
}, "strip",
|
3460
|
+
extension: z.ZodOptional<z.ZodObject<{
|
3461
|
+
id: z.ZodString;
|
3462
|
+
createdAt: z.ZodDate;
|
3463
|
+
updatedAt: z.ZodDate;
|
3464
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3465
|
+
userId: z.ZodNullable<z.ZodString>;
|
3466
|
+
sipServerUrl: z.ZodString;
|
3467
|
+
sipUserName: z.ZodString;
|
3468
|
+
extensionId: z.ZodNumber;
|
3469
|
+
extensionName: z.ZodString;
|
3470
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
3471
|
+
}, "strip", z.ZodTypeAny, {
|
3414
3472
|
id: string;
|
3415
3473
|
createdAt: Date;
|
3416
3474
|
updatedAt: Date;
|
@@ -3433,7 +3491,7 @@ export declare const messengerContract: {
|
|
3433
3491
|
extensionName: string;
|
3434
3492
|
telephonySignature: string | null;
|
3435
3493
|
}>>;
|
3436
|
-
}, "strip",
|
3494
|
+
}, "strip", z.ZodTypeAny, {
|
3437
3495
|
id: string;
|
3438
3496
|
address: string | null;
|
3439
3497
|
name: string;
|
@@ -3518,35 +3576,35 @@ export declare const messengerContract: {
|
|
3518
3576
|
telephonySignature: string | null;
|
3519
3577
|
} | undefined;
|
3520
3578
|
}>;
|
3521
|
-
sender:
|
3522
|
-
id:
|
3523
|
-
createdAt:
|
3524
|
-
updatedAt:
|
3525
|
-
deletedAt:
|
3526
|
-
name:
|
3527
|
-
email:
|
3528
|
-
emailVerifiedAt:
|
3529
|
-
password:
|
3530
|
-
address:
|
3531
|
-
phone:
|
3532
|
-
notificationCount:
|
3533
|
-
roles:
|
3534
|
-
id:
|
3535
|
-
createdAt:
|
3536
|
-
updatedAt:
|
3537
|
-
deletedAt:
|
3538
|
-
systemName:
|
3539
|
-
displayName:
|
3540
|
-
description:
|
3541
|
-
permissions:
|
3542
|
-
id:
|
3543
|
-
createdAt:
|
3544
|
-
updatedAt:
|
3545
|
-
deletedAt:
|
3546
|
-
systemName:
|
3547
|
-
displayName:
|
3548
|
-
description:
|
3549
|
-
}, "strip",
|
3579
|
+
sender: z.ZodObject<{
|
3580
|
+
id: z.ZodString;
|
3581
|
+
createdAt: z.ZodDate;
|
3582
|
+
updatedAt: z.ZodDate;
|
3583
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3584
|
+
name: z.ZodString;
|
3585
|
+
email: z.ZodString;
|
3586
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
3587
|
+
password: z.ZodString;
|
3588
|
+
address: z.ZodNullable<z.ZodString>;
|
3589
|
+
phone: z.ZodNullable<z.ZodString>;
|
3590
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
3591
|
+
roles: z.ZodArray<z.ZodObject<{
|
3592
|
+
id: z.ZodString;
|
3593
|
+
createdAt: z.ZodDate;
|
3594
|
+
updatedAt: z.ZodDate;
|
3595
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3596
|
+
systemName: z.ZodString;
|
3597
|
+
displayName: z.ZodString;
|
3598
|
+
description: z.ZodNullable<z.ZodString>;
|
3599
|
+
permissions: z.ZodArray<z.ZodObject<{
|
3600
|
+
id: z.ZodString;
|
3601
|
+
createdAt: z.ZodDate;
|
3602
|
+
updatedAt: z.ZodDate;
|
3603
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3604
|
+
systemName: z.ZodString;
|
3605
|
+
displayName: z.ZodString;
|
3606
|
+
description: z.ZodNullable<z.ZodString>;
|
3607
|
+
}, "strip", z.ZodTypeAny, {
|
3550
3608
|
id: string;
|
3551
3609
|
description: string | null;
|
3552
3610
|
createdAt: Date;
|
@@ -3563,7 +3621,7 @@ export declare const messengerContract: {
|
|
3563
3621
|
systemName: string;
|
3564
3622
|
displayName: string;
|
3565
3623
|
}>, "many">;
|
3566
|
-
}, "strip",
|
3624
|
+
}, "strip", z.ZodTypeAny, {
|
3567
3625
|
id: string;
|
3568
3626
|
description: string | null;
|
3569
3627
|
createdAt: Date;
|
@@ -3598,18 +3656,18 @@ export declare const messengerContract: {
|
|
3598
3656
|
displayName: string;
|
3599
3657
|
}[];
|
3600
3658
|
}>, "many">;
|
3601
|
-
extension:
|
3602
|
-
id:
|
3603
|
-
createdAt:
|
3604
|
-
updatedAt:
|
3605
|
-
deletedAt:
|
3606
|
-
userId:
|
3607
|
-
sipServerUrl:
|
3608
|
-
sipUserName:
|
3609
|
-
extensionId:
|
3610
|
-
extensionName:
|
3611
|
-
telephonySignature:
|
3612
|
-
}, "strip",
|
3659
|
+
extension: z.ZodOptional<z.ZodObject<{
|
3660
|
+
id: z.ZodString;
|
3661
|
+
createdAt: z.ZodDate;
|
3662
|
+
updatedAt: z.ZodDate;
|
3663
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
3664
|
+
userId: z.ZodNullable<z.ZodString>;
|
3665
|
+
sipServerUrl: z.ZodString;
|
3666
|
+
sipUserName: z.ZodString;
|
3667
|
+
extensionId: z.ZodNumber;
|
3668
|
+
extensionName: z.ZodString;
|
3669
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
3670
|
+
}, "strip", z.ZodTypeAny, {
|
3613
3671
|
id: string;
|
3614
3672
|
createdAt: Date;
|
3615
3673
|
updatedAt: Date;
|
@@ -3632,7 +3690,7 @@ export declare const messengerContract: {
|
|
3632
3690
|
extensionName: string;
|
3633
3691
|
telephonySignature: string | null;
|
3634
3692
|
}>>;
|
3635
|
-
}, "strip",
|
3693
|
+
}, "strip", z.ZodTypeAny, {
|
3636
3694
|
id: string;
|
3637
3695
|
address: string | null;
|
3638
3696
|
name: string;
|
@@ -3717,8 +3775,8 @@ export declare const messengerContract: {
|
|
3717
3775
|
telephonySignature: string | null;
|
3718
3776
|
} | undefined;
|
3719
3777
|
}>;
|
3720
|
-
}, "strip",
|
3721
|
-
type: "
|
3778
|
+
}, "strip", z.ZodTypeAny, {
|
3779
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
3722
3780
|
message: string;
|
3723
3781
|
id: string;
|
3724
3782
|
url: string;
|
@@ -3891,6 +3949,7 @@ export declare const messengerContract: {
|
|
3891
3949
|
createdAt: Date;
|
3892
3950
|
updatedAt: Date;
|
3893
3951
|
deletedAt: Date | null;
|
3952
|
+
channelId: string;
|
3894
3953
|
contact: {
|
3895
3954
|
id: string;
|
3896
3955
|
channel: string | null;
|
@@ -3993,7 +4052,6 @@ export declare const messengerContract: {
|
|
3993
4052
|
};
|
3994
4053
|
}[] | undefined;
|
3995
4054
|
};
|
3996
|
-
channelId: string;
|
3997
4055
|
socialPlatformId: string;
|
3998
4056
|
};
|
3999
4057
|
assignee: {
|
@@ -4190,7 +4248,7 @@ export declare const messengerContract: {
|
|
4190
4248
|
metadata?: any;
|
4191
4249
|
template?: any;
|
4192
4250
|
}, {
|
4193
|
-
type: "
|
4251
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
4194
4252
|
message: string;
|
4195
4253
|
id: string;
|
4196
4254
|
url: string;
|
@@ -4363,6 +4421,7 @@ export declare const messengerContract: {
|
|
4363
4421
|
createdAt: Date;
|
4364
4422
|
updatedAt: Date;
|
4365
4423
|
deletedAt: Date | null;
|
4424
|
+
channelId: string;
|
4366
4425
|
contact: {
|
4367
4426
|
id: string;
|
4368
4427
|
channel: string | null;
|
@@ -4465,7 +4524,6 @@ export declare const messengerContract: {
|
|
4465
4524
|
};
|
4466
4525
|
}[] | undefined;
|
4467
4526
|
};
|
4468
|
-
channelId: string;
|
4469
4527
|
socialPlatformId: string;
|
4470
4528
|
};
|
4471
4529
|
assignee: {
|
@@ -4662,9 +4720,9 @@ export declare const messengerContract: {
|
|
4662
4720
|
metadata?: any;
|
4663
4721
|
template?: any;
|
4664
4722
|
}>;
|
4665
|
-
}, "strip",
|
4723
|
+
}, "strip", z.ZodTypeAny, {
|
4666
4724
|
data: {
|
4667
|
-
type: "
|
4725
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
4668
4726
|
message: string;
|
4669
4727
|
id: string;
|
4670
4728
|
url: string;
|
@@ -4837,6 +4895,7 @@ export declare const messengerContract: {
|
|
4837
4895
|
createdAt: Date;
|
4838
4896
|
updatedAt: Date;
|
4839
4897
|
deletedAt: Date | null;
|
4898
|
+
channelId: string;
|
4840
4899
|
contact: {
|
4841
4900
|
id: string;
|
4842
4901
|
channel: string | null;
|
@@ -4939,7 +4998,6 @@ export declare const messengerContract: {
|
|
4939
4998
|
};
|
4940
4999
|
}[] | undefined;
|
4941
5000
|
};
|
4942
|
-
channelId: string;
|
4943
5001
|
socialPlatformId: string;
|
4944
5002
|
};
|
4945
5003
|
assignee: {
|
@@ -5139,7 +5197,7 @@ export declare const messengerContract: {
|
|
5139
5197
|
requestId: string;
|
5140
5198
|
}, {
|
5141
5199
|
data: {
|
5142
|
-
type: "
|
5200
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
5143
5201
|
message: string;
|
5144
5202
|
id: string;
|
5145
5203
|
url: string;
|
@@ -5312,6 +5370,7 @@ export declare const messengerContract: {
|
|
5312
5370
|
createdAt: Date;
|
5313
5371
|
updatedAt: Date;
|
5314
5372
|
deletedAt: Date | null;
|
5373
|
+
channelId: string;
|
5315
5374
|
contact: {
|
5316
5375
|
id: string;
|
5317
5376
|
channel: string | null;
|
@@ -5414,7 +5473,6 @@ export declare const messengerContract: {
|
|
5414
5473
|
};
|
5415
5474
|
}[] | undefined;
|
5416
5475
|
};
|
5417
|
-
channelId: string;
|
5418
5476
|
socialPlatformId: string;
|
5419
5477
|
};
|
5420
5478
|
assignee: {
|
@@ -5613,10 +5671,10 @@ export declare const messengerContract: {
|
|
5613
5671
|
};
|
5614
5672
|
requestId: string;
|
5615
5673
|
}>;
|
5616
|
-
500:
|
5617
|
-
message:
|
5618
|
-
error:
|
5619
|
-
}, "strip",
|
5674
|
+
500: z.ZodObject<{
|
5675
|
+
message: z.ZodString;
|
5676
|
+
error: z.ZodAny;
|
5677
|
+
}, "strip", z.ZodTypeAny, {
|
5620
5678
|
message: string;
|
5621
5679
|
error?: any;
|
5622
5680
|
}, {
|
@@ -5627,15 +5685,15 @@ export declare const messengerContract: {
|
|
5627
5685
|
path: "/message";
|
5628
5686
|
};
|
5629
5687
|
connectToService: {
|
5630
|
-
body:
|
5631
|
-
name:
|
5632
|
-
type:
|
5633
|
-
metadata:
|
5634
|
-
id:
|
5635
|
-
name:
|
5636
|
-
accessToken:
|
5637
|
-
additionalCredentials:
|
5638
|
-
}, "strip",
|
5688
|
+
body: z.ZodObject<{
|
5689
|
+
name: z.ZodOptional<z.ZodString>;
|
5690
|
+
type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
|
5691
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
5692
|
+
id: z.ZodString;
|
5693
|
+
name: z.ZodString;
|
5694
|
+
accessToken: z.ZodString;
|
5695
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
5696
|
+
}, "strip", z.ZodTypeAny, {
|
5639
5697
|
id: string;
|
5640
5698
|
name: string;
|
5641
5699
|
accessToken: string;
|
@@ -5645,57 +5703,87 @@ export declare const messengerContract: {
|
|
5645
5703
|
name: string;
|
5646
5704
|
accessToken: string;
|
5647
5705
|
additionalCredentials?: any;
|
5648
|
-
}
|
5649
|
-
|
5650
|
-
|
5651
|
-
status:
|
5652
|
-
|
5653
|
-
|
5654
|
-
|
5655
|
-
|
5656
|
-
|
5657
|
-
|
5658
|
-
|
5706
|
+
}>>;
|
5707
|
+
platformId: z.ZodOptional<z.ZodString>;
|
5708
|
+
brandName: z.ZodOptional<z.ZodString>;
|
5709
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
|
5710
|
+
connectedUserName: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
5711
|
+
connectedUserId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
5712
|
+
actor: z.ZodOptional<z.ZodObject<{
|
5713
|
+
id: z.ZodString;
|
5714
|
+
name: z.ZodString;
|
5715
|
+
email: z.ZodString;
|
5716
|
+
address: z.ZodNullable<z.ZodString>;
|
5717
|
+
phone: z.ZodNullable<z.ZodString>;
|
5718
|
+
}, "strip", z.ZodTypeAny, {
|
5719
|
+
id: string;
|
5720
|
+
address: string | null;
|
5721
|
+
name: string;
|
5722
|
+
email: string;
|
5723
|
+
phone: string | null;
|
5724
|
+
}, {
|
5725
|
+
id: string;
|
5726
|
+
address: string | null;
|
5727
|
+
name: string;
|
5728
|
+
email: string;
|
5729
|
+
phone: string | null;
|
5730
|
+
}>>;
|
5731
|
+
}, "strip", z.ZodTypeAny, {
|
5732
|
+
name?: string | undefined;
|
5733
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
5734
|
+
metadata?: {
|
5659
5735
|
id: string;
|
5660
5736
|
name: string;
|
5661
5737
|
accessToken: string;
|
5662
5738
|
additionalCredentials?: any;
|
5663
|
-
};
|
5664
|
-
|
5665
|
-
brandName
|
5666
|
-
|
5667
|
-
isReloginRequired: boolean;
|
5739
|
+
} | undefined;
|
5740
|
+
platformId?: string | undefined;
|
5741
|
+
brandName?: string | undefined;
|
5742
|
+
status?: boolean | undefined;
|
5668
5743
|
connectedUserName?: string | null | undefined;
|
5669
5744
|
connectedUserId?: string | null | undefined;
|
5745
|
+
actor?: {
|
5746
|
+
id: string;
|
5747
|
+
address: string | null;
|
5748
|
+
name: string;
|
5749
|
+
email: string;
|
5750
|
+
phone: string | null;
|
5751
|
+
} | undefined;
|
5670
5752
|
}, {
|
5671
|
-
|
5672
|
-
|
5673
|
-
metadata
|
5753
|
+
name?: string | undefined;
|
5754
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
5755
|
+
metadata?: {
|
5674
5756
|
id: string;
|
5675
5757
|
name: string;
|
5676
5758
|
accessToken: string;
|
5677
5759
|
additionalCredentials?: any;
|
5678
|
-
};
|
5679
|
-
|
5680
|
-
brandName
|
5681
|
-
|
5682
|
-
isReloginRequired: boolean;
|
5760
|
+
} | undefined;
|
5761
|
+
platformId?: string | undefined;
|
5762
|
+
brandName?: string | undefined;
|
5763
|
+
status?: boolean | undefined;
|
5683
5764
|
connectedUserName?: string | null | undefined;
|
5684
5765
|
connectedUserId?: string | null | undefined;
|
5766
|
+
actor?: {
|
5767
|
+
id: string;
|
5768
|
+
address: string | null;
|
5769
|
+
name: string;
|
5770
|
+
email: string;
|
5771
|
+
phone: string | null;
|
5772
|
+
} | undefined;
|
5685
5773
|
}>;
|
5686
5774
|
method: "POST";
|
5687
5775
|
responses: {
|
5688
|
-
200:
|
5689
|
-
requestId:
|
5690
|
-
data:
|
5691
|
-
name:
|
5692
|
-
type:
|
5693
|
-
metadata:
|
5694
|
-
id:
|
5695
|
-
name:
|
5696
|
-
accessToken:
|
5697
|
-
additionalCredentials:
|
5698
|
-
}, "strip",
|
5776
|
+
200: z.ZodObject<{
|
5777
|
+
requestId: z.ZodString;
|
5778
|
+
data: z.ZodObject<{
|
5779
|
+
name: z.ZodString;
|
5780
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
5781
|
+
metadata: z.ZodObject<{
|
5782
|
+
id: z.ZodString;
|
5783
|
+
name: z.ZodString;
|
5784
|
+
accessToken: z.ZodString;
|
5785
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
5786
|
+
}, "strip", z.ZodTypeAny, {
|
5699
5787
|
id: string;
|
5700
5788
|
name: string;
|
5701
5789
|
accessToken: string;
|
@@ -5706,13 +5794,31 @@ export declare const messengerContract: {
|
|
5706
5794
|
accessToken: string;
|
5707
5795
|
additionalCredentials?: any;
|
5708
5796
|
}>;
|
5709
|
-
|
5710
|
-
|
5711
|
-
status:
|
5712
|
-
|
5713
|
-
|
5714
|
-
|
5715
|
-
|
5797
|
+
platformId: z.ZodString;
|
5798
|
+
brandName: z.ZodString;
|
5799
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
5800
|
+
connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
5801
|
+
connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
5802
|
+
actor: z.ZodObject<{
|
5803
|
+
id: z.ZodString;
|
5804
|
+
name: z.ZodString;
|
5805
|
+
email: z.ZodString;
|
5806
|
+
address: z.ZodNullable<z.ZodString>;
|
5807
|
+
phone: z.ZodNullable<z.ZodString>;
|
5808
|
+
}, "strip", z.ZodTypeAny, {
|
5809
|
+
id: string;
|
5810
|
+
address: string | null;
|
5811
|
+
name: string;
|
5812
|
+
email: string;
|
5813
|
+
phone: string | null;
|
5814
|
+
}, {
|
5815
|
+
id: string;
|
5816
|
+
address: string | null;
|
5817
|
+
name: string;
|
5818
|
+
email: string;
|
5819
|
+
phone: string | null;
|
5820
|
+
}>;
|
5821
|
+
}, "strip", z.ZodTypeAny, {
|
5716
5822
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5717
5823
|
name: string;
|
5718
5824
|
metadata: {
|
@@ -5724,7 +5830,13 @@ export declare const messengerContract: {
|
|
5724
5830
|
status: boolean;
|
5725
5831
|
brandName: string;
|
5726
5832
|
platformId: string;
|
5727
|
-
|
5833
|
+
actor: {
|
5834
|
+
id: string;
|
5835
|
+
address: string | null;
|
5836
|
+
name: string;
|
5837
|
+
email: string;
|
5838
|
+
phone: string | null;
|
5839
|
+
};
|
5728
5840
|
connectedUserName?: string | null | undefined;
|
5729
5841
|
connectedUserId?: string | null | undefined;
|
5730
5842
|
}, {
|
@@ -5739,11 +5851,17 @@ export declare const messengerContract: {
|
|
5739
5851
|
status: boolean;
|
5740
5852
|
brandName: string;
|
5741
5853
|
platformId: string;
|
5742
|
-
|
5854
|
+
actor: {
|
5855
|
+
id: string;
|
5856
|
+
address: string | null;
|
5857
|
+
name: string;
|
5858
|
+
email: string;
|
5859
|
+
phone: string | null;
|
5860
|
+
};
|
5743
5861
|
connectedUserName?: string | null | undefined;
|
5744
5862
|
connectedUserId?: string | null | undefined;
|
5745
5863
|
}>;
|
5746
|
-
}, "strip",
|
5864
|
+
}, "strip", z.ZodTypeAny, {
|
5747
5865
|
data: {
|
5748
5866
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5749
5867
|
name: string;
|
@@ -5756,7 +5874,13 @@ export declare const messengerContract: {
|
|
5756
5874
|
status: boolean;
|
5757
5875
|
brandName: string;
|
5758
5876
|
platformId: string;
|
5759
|
-
|
5877
|
+
actor: {
|
5878
|
+
id: string;
|
5879
|
+
address: string | null;
|
5880
|
+
name: string;
|
5881
|
+
email: string;
|
5882
|
+
phone: string | null;
|
5883
|
+
};
|
5760
5884
|
connectedUserName?: string | null | undefined;
|
5761
5885
|
connectedUserId?: string | null | undefined;
|
5762
5886
|
};
|
@@ -5774,26 +5898,32 @@ export declare const messengerContract: {
|
|
5774
5898
|
status: boolean;
|
5775
5899
|
brandName: string;
|
5776
5900
|
platformId: string;
|
5777
|
-
|
5901
|
+
actor: {
|
5902
|
+
id: string;
|
5903
|
+
address: string | null;
|
5904
|
+
name: string;
|
5905
|
+
email: string;
|
5906
|
+
phone: string | null;
|
5907
|
+
};
|
5778
5908
|
connectedUserName?: string | null | undefined;
|
5779
5909
|
connectedUserId?: string | null | undefined;
|
5780
5910
|
};
|
5781
5911
|
requestId: string;
|
5782
5912
|
}>;
|
5783
|
-
500:
|
5784
|
-
message:
|
5785
|
-
error:
|
5786
|
-
}, "strip",
|
5913
|
+
500: z.ZodObject<{
|
5914
|
+
message: z.ZodString;
|
5915
|
+
error: z.ZodAny;
|
5916
|
+
}, "strip", z.ZodTypeAny, {
|
5787
5917
|
message: string;
|
5788
5918
|
error?: any;
|
5789
5919
|
}, {
|
5790
5920
|
message: string;
|
5791
5921
|
error?: any;
|
5792
5922
|
}>;
|
5793
|
-
400:
|
5794
|
-
message:
|
5795
|
-
error:
|
5796
|
-
}, "strip",
|
5923
|
+
400: z.ZodObject<{
|
5924
|
+
message: z.ZodString;
|
5925
|
+
error: z.ZodAny;
|
5926
|
+
}, "strip", z.ZodTypeAny, {
|
5797
5927
|
message: string;
|
5798
5928
|
error?: any;
|
5799
5929
|
}, {
|
@@ -5803,5 +5933,380 @@ export declare const messengerContract: {
|
|
5803
5933
|
};
|
5804
5934
|
path: "/connect";
|
5805
5935
|
};
|
5936
|
+
disconnectToService: {
|
5937
|
+
body: z.ZodObject<{
|
5938
|
+
name: z.ZodOptional<z.ZodString>;
|
5939
|
+
type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
|
5940
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
5941
|
+
id: z.ZodString;
|
5942
|
+
name: z.ZodString;
|
5943
|
+
accessToken: z.ZodString;
|
5944
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
5945
|
+
}, "strip", z.ZodTypeAny, {
|
5946
|
+
id: string;
|
5947
|
+
name: string;
|
5948
|
+
accessToken: string;
|
5949
|
+
additionalCredentials?: any;
|
5950
|
+
}, {
|
5951
|
+
id: string;
|
5952
|
+
name: string;
|
5953
|
+
accessToken: string;
|
5954
|
+
additionalCredentials?: any;
|
5955
|
+
}>>;
|
5956
|
+
platformId: z.ZodOptional<z.ZodString>;
|
5957
|
+
brandName: z.ZodOptional<z.ZodString>;
|
5958
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
|
5959
|
+
connectedUserName: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
5960
|
+
connectedUserId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
5961
|
+
actor: z.ZodOptional<z.ZodObject<{
|
5962
|
+
id: z.ZodString;
|
5963
|
+
name: z.ZodString;
|
5964
|
+
email: z.ZodString;
|
5965
|
+
address: z.ZodNullable<z.ZodString>;
|
5966
|
+
phone: z.ZodNullable<z.ZodString>;
|
5967
|
+
}, "strip", z.ZodTypeAny, {
|
5968
|
+
id: string;
|
5969
|
+
address: string | null;
|
5970
|
+
name: string;
|
5971
|
+
email: string;
|
5972
|
+
phone: string | null;
|
5973
|
+
}, {
|
5974
|
+
id: string;
|
5975
|
+
address: string | null;
|
5976
|
+
name: string;
|
5977
|
+
email: string;
|
5978
|
+
phone: string | null;
|
5979
|
+
}>>;
|
5980
|
+
}, "strip", z.ZodTypeAny, {
|
5981
|
+
name?: string | undefined;
|
5982
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
5983
|
+
metadata?: {
|
5984
|
+
id: string;
|
5985
|
+
name: string;
|
5986
|
+
accessToken: string;
|
5987
|
+
additionalCredentials?: any;
|
5988
|
+
} | undefined;
|
5989
|
+
platformId?: string | undefined;
|
5990
|
+
brandName?: string | undefined;
|
5991
|
+
status?: boolean | undefined;
|
5992
|
+
connectedUserName?: string | null | undefined;
|
5993
|
+
connectedUserId?: string | null | undefined;
|
5994
|
+
actor?: {
|
5995
|
+
id: string;
|
5996
|
+
address: string | null;
|
5997
|
+
name: string;
|
5998
|
+
email: string;
|
5999
|
+
phone: string | null;
|
6000
|
+
} | undefined;
|
6001
|
+
}, {
|
6002
|
+
name?: string | undefined;
|
6003
|
+
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
6004
|
+
metadata?: {
|
6005
|
+
id: string;
|
6006
|
+
name: string;
|
6007
|
+
accessToken: string;
|
6008
|
+
additionalCredentials?: any;
|
6009
|
+
} | undefined;
|
6010
|
+
platformId?: string | undefined;
|
6011
|
+
brandName?: string | undefined;
|
6012
|
+
status?: boolean | undefined;
|
6013
|
+
connectedUserName?: string | null | undefined;
|
6014
|
+
connectedUserId?: string | null | undefined;
|
6015
|
+
actor?: {
|
6016
|
+
id: string;
|
6017
|
+
address: string | null;
|
6018
|
+
name: string;
|
6019
|
+
email: string;
|
6020
|
+
phone: string | null;
|
6021
|
+
} | undefined;
|
6022
|
+
}>;
|
6023
|
+
method: "POST";
|
6024
|
+
responses: {
|
6025
|
+
200: z.ZodObject<{
|
6026
|
+
requestId: z.ZodString;
|
6027
|
+
data: z.ZodObject<{
|
6028
|
+
name: z.ZodString;
|
6029
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
6030
|
+
metadata: z.ZodObject<{
|
6031
|
+
id: z.ZodString;
|
6032
|
+
name: z.ZodString;
|
6033
|
+
accessToken: z.ZodString;
|
6034
|
+
additionalCredentials: z.ZodOptional<z.ZodAny>;
|
6035
|
+
}, "strip", z.ZodTypeAny, {
|
6036
|
+
id: string;
|
6037
|
+
name: string;
|
6038
|
+
accessToken: string;
|
6039
|
+
additionalCredentials?: any;
|
6040
|
+
}, {
|
6041
|
+
id: string;
|
6042
|
+
name: string;
|
6043
|
+
accessToken: string;
|
6044
|
+
additionalCredentials?: any;
|
6045
|
+
}>;
|
6046
|
+
platformId: z.ZodString;
|
6047
|
+
brandName: z.ZodString;
|
6048
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
6049
|
+
connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
6050
|
+
connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
6051
|
+
actor: z.ZodObject<{
|
6052
|
+
id: z.ZodString;
|
6053
|
+
name: z.ZodString;
|
6054
|
+
email: z.ZodString;
|
6055
|
+
address: z.ZodNullable<z.ZodString>;
|
6056
|
+
phone: z.ZodNullable<z.ZodString>;
|
6057
|
+
}, "strip", z.ZodTypeAny, {
|
6058
|
+
id: string;
|
6059
|
+
address: string | null;
|
6060
|
+
name: string;
|
6061
|
+
email: string;
|
6062
|
+
phone: string | null;
|
6063
|
+
}, {
|
6064
|
+
id: string;
|
6065
|
+
address: string | null;
|
6066
|
+
name: string;
|
6067
|
+
email: string;
|
6068
|
+
phone: string | null;
|
6069
|
+
}>;
|
6070
|
+
}, "strip", z.ZodTypeAny, {
|
6071
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
6072
|
+
name: string;
|
6073
|
+
metadata: {
|
6074
|
+
id: string;
|
6075
|
+
name: string;
|
6076
|
+
accessToken: string;
|
6077
|
+
additionalCredentials?: any;
|
6078
|
+
};
|
6079
|
+
status: boolean;
|
6080
|
+
brandName: string;
|
6081
|
+
platformId: string;
|
6082
|
+
actor: {
|
6083
|
+
id: string;
|
6084
|
+
address: string | null;
|
6085
|
+
name: string;
|
6086
|
+
email: string;
|
6087
|
+
phone: string | null;
|
6088
|
+
};
|
6089
|
+
connectedUserName?: string | null | undefined;
|
6090
|
+
connectedUserId?: string | null | undefined;
|
6091
|
+
}, {
|
6092
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
6093
|
+
name: string;
|
6094
|
+
metadata: {
|
6095
|
+
id: string;
|
6096
|
+
name: string;
|
6097
|
+
accessToken: string;
|
6098
|
+
additionalCredentials?: any;
|
6099
|
+
};
|
6100
|
+
status: boolean;
|
6101
|
+
brandName: string;
|
6102
|
+
platformId: string;
|
6103
|
+
actor: {
|
6104
|
+
id: string;
|
6105
|
+
address: string | null;
|
6106
|
+
name: string;
|
6107
|
+
email: string;
|
6108
|
+
phone: string | null;
|
6109
|
+
};
|
6110
|
+
connectedUserName?: string | null | undefined;
|
6111
|
+
connectedUserId?: string | null | undefined;
|
6112
|
+
}>;
|
6113
|
+
}, "strip", z.ZodTypeAny, {
|
6114
|
+
data: {
|
6115
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
6116
|
+
name: string;
|
6117
|
+
metadata: {
|
6118
|
+
id: string;
|
6119
|
+
name: string;
|
6120
|
+
accessToken: string;
|
6121
|
+
additionalCredentials?: any;
|
6122
|
+
};
|
6123
|
+
status: boolean;
|
6124
|
+
brandName: string;
|
6125
|
+
platformId: string;
|
6126
|
+
actor: {
|
6127
|
+
id: string;
|
6128
|
+
address: string | null;
|
6129
|
+
name: string;
|
6130
|
+
email: string;
|
6131
|
+
phone: string | null;
|
6132
|
+
};
|
6133
|
+
connectedUserName?: string | null | undefined;
|
6134
|
+
connectedUserId?: string | null | undefined;
|
6135
|
+
};
|
6136
|
+
requestId: string;
|
6137
|
+
}, {
|
6138
|
+
data: {
|
6139
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
6140
|
+
name: string;
|
6141
|
+
metadata: {
|
6142
|
+
id: string;
|
6143
|
+
name: string;
|
6144
|
+
accessToken: string;
|
6145
|
+
additionalCredentials?: any;
|
6146
|
+
};
|
6147
|
+
status: boolean;
|
6148
|
+
brandName: string;
|
6149
|
+
platformId: string;
|
6150
|
+
actor: {
|
6151
|
+
id: string;
|
6152
|
+
address: string | null;
|
6153
|
+
name: string;
|
6154
|
+
email: string;
|
6155
|
+
phone: string | null;
|
6156
|
+
};
|
6157
|
+
connectedUserName?: string | null | undefined;
|
6158
|
+
connectedUserId?: string | null | undefined;
|
6159
|
+
};
|
6160
|
+
requestId: string;
|
6161
|
+
}>;
|
6162
|
+
500: z.ZodObject<{
|
6163
|
+
message: z.ZodString;
|
6164
|
+
error: z.ZodAny;
|
6165
|
+
}, "strip", z.ZodTypeAny, {
|
6166
|
+
message: string;
|
6167
|
+
error?: any;
|
6168
|
+
}, {
|
6169
|
+
message: string;
|
6170
|
+
error?: any;
|
6171
|
+
}>;
|
6172
|
+
400: z.ZodObject<{
|
6173
|
+
message: z.ZodString;
|
6174
|
+
error: z.ZodAny;
|
6175
|
+
}, "strip", z.ZodTypeAny, {
|
6176
|
+
message: string;
|
6177
|
+
error?: any;
|
6178
|
+
}, {
|
6179
|
+
message: string;
|
6180
|
+
error?: any;
|
6181
|
+
}>;
|
6182
|
+
};
|
6183
|
+
path: "/disconnect";
|
6184
|
+
};
|
6185
|
+
getFacebookPages: {
|
6186
|
+
method: "GET";
|
6187
|
+
query: z.ZodObject<{
|
6188
|
+
accessToken: z.ZodString;
|
6189
|
+
userId: z.ZodString;
|
6190
|
+
}, "strip", z.ZodTypeAny, {
|
6191
|
+
userId: string;
|
6192
|
+
accessToken: string;
|
6193
|
+
}, {
|
6194
|
+
userId: string;
|
6195
|
+
accessToken: string;
|
6196
|
+
}>;
|
6197
|
+
responses: {
|
6198
|
+
200: z.ZodObject<{
|
6199
|
+
requestId: z.ZodString;
|
6200
|
+
data: z.ZodArray<z.ZodObject<{
|
6201
|
+
access_token: z.ZodString;
|
6202
|
+
category: z.ZodString;
|
6203
|
+
category_list: z.ZodArray<z.ZodObject<{
|
6204
|
+
id: z.ZodString;
|
6205
|
+
name: z.ZodString;
|
6206
|
+
}, "strip", z.ZodTypeAny, {
|
6207
|
+
id: string;
|
6208
|
+
name: string;
|
6209
|
+
}, {
|
6210
|
+
id: string;
|
6211
|
+
name: string;
|
6212
|
+
}>, "many">;
|
6213
|
+
id: z.ZodString;
|
6214
|
+
name: z.ZodString;
|
6215
|
+
tasks: z.ZodArray<z.ZodString, "many">;
|
6216
|
+
}, "strip", z.ZodTypeAny, {
|
6217
|
+
id: string;
|
6218
|
+
name: string;
|
6219
|
+
category: string;
|
6220
|
+
access_token: string;
|
6221
|
+
category_list: {
|
6222
|
+
id: string;
|
6223
|
+
name: string;
|
6224
|
+
}[];
|
6225
|
+
tasks: string[];
|
6226
|
+
}, {
|
6227
|
+
id: string;
|
6228
|
+
name: string;
|
6229
|
+
category: string;
|
6230
|
+
access_token: string;
|
6231
|
+
category_list: {
|
6232
|
+
id: string;
|
6233
|
+
name: string;
|
6234
|
+
}[];
|
6235
|
+
tasks: string[];
|
6236
|
+
}>, "many">;
|
6237
|
+
paging: z.ZodOptional<z.ZodObject<{
|
6238
|
+
cursors: z.ZodObject<{
|
6239
|
+
before: z.ZodOptional<z.ZodString>;
|
6240
|
+
after: z.ZodOptional<z.ZodString>;
|
6241
|
+
}, "strip", z.ZodTypeAny, {
|
6242
|
+
before?: string | undefined;
|
6243
|
+
after?: string | undefined;
|
6244
|
+
}, {
|
6245
|
+
before?: string | undefined;
|
6246
|
+
after?: string | undefined;
|
6247
|
+
}>;
|
6248
|
+
}, "strip", z.ZodTypeAny, {
|
6249
|
+
cursors: {
|
6250
|
+
before?: string | undefined;
|
6251
|
+
after?: string | undefined;
|
6252
|
+
};
|
6253
|
+
}, {
|
6254
|
+
cursors: {
|
6255
|
+
before?: string | undefined;
|
6256
|
+
after?: string | undefined;
|
6257
|
+
};
|
6258
|
+
}>>;
|
6259
|
+
}, "strip", z.ZodTypeAny, {
|
6260
|
+
data: {
|
6261
|
+
id: string;
|
6262
|
+
name: string;
|
6263
|
+
category: string;
|
6264
|
+
access_token: string;
|
6265
|
+
category_list: {
|
6266
|
+
id: string;
|
6267
|
+
name: string;
|
6268
|
+
}[];
|
6269
|
+
tasks: string[];
|
6270
|
+
}[];
|
6271
|
+
requestId: string;
|
6272
|
+
paging?: {
|
6273
|
+
cursors: {
|
6274
|
+
before?: string | undefined;
|
6275
|
+
after?: string | undefined;
|
6276
|
+
};
|
6277
|
+
} | undefined;
|
6278
|
+
}, {
|
6279
|
+
data: {
|
6280
|
+
id: string;
|
6281
|
+
name: string;
|
6282
|
+
category: string;
|
6283
|
+
access_token: string;
|
6284
|
+
category_list: {
|
6285
|
+
id: string;
|
6286
|
+
name: string;
|
6287
|
+
}[];
|
6288
|
+
tasks: string[];
|
6289
|
+
}[];
|
6290
|
+
requestId: string;
|
6291
|
+
paging?: {
|
6292
|
+
cursors: {
|
6293
|
+
before?: string | undefined;
|
6294
|
+
after?: string | undefined;
|
6295
|
+
};
|
6296
|
+
} | undefined;
|
6297
|
+
}>;
|
6298
|
+
500: z.ZodObject<{
|
6299
|
+
message: z.ZodString;
|
6300
|
+
error: z.ZodAny;
|
6301
|
+
}, "strip", z.ZodTypeAny, {
|
6302
|
+
message: string;
|
6303
|
+
error?: any;
|
6304
|
+
}, {
|
6305
|
+
message: string;
|
6306
|
+
error?: any;
|
6307
|
+
}>;
|
6308
|
+
};
|
6309
|
+
path: "/pages";
|
6310
|
+
};
|
5806
6311
|
};
|
5807
6312
|
//# sourceMappingURL=index.d.ts.map
|