@kl1/contracts 1.0.10 → 1.0.11

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.
Files changed (94) hide show
  1. package/dist/index.js +1328 -1062
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1325 -1061
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/auth/index.d.ts +34 -24
  6. package/dist/src/auth/index.d.ts.map +1 -1
  7. package/dist/src/aws/index.d.ts +4 -4
  8. package/dist/src/aws/validation.d.ts +2 -2
  9. package/dist/src/category/index.d.ts +3 -3
  10. package/dist/src/channel/index.d.ts +1357 -0
  11. package/dist/src/channel/index.d.ts.map +1 -0
  12. package/dist/src/channel/schema.d.ts +385 -0
  13. package/dist/src/channel/schema.d.ts.map +1 -0
  14. package/dist/src/channel/validation.d.ts +337 -0
  15. package/dist/src/channel/validation.d.ts.map +1 -0
  16. package/dist/src/chat/index.d.ts +17033 -10471
  17. package/dist/src/chat/index.d.ts.map +1 -1
  18. package/dist/src/chat/schema.d.ts +1995 -900
  19. package/dist/src/chat/schema.d.ts.map +1 -1
  20. package/dist/src/chat/validation.d.ts +3097 -461
  21. package/dist/src/chat/validation.d.ts.map +1 -1
  22. package/dist/src/company/schema.d.ts +197 -12
  23. package/dist/src/company/schema.d.ts.map +1 -1
  24. package/dist/src/contact/index.d.ts +2539 -0
  25. package/dist/src/contact/index.d.ts.map +1 -0
  26. package/dist/src/contact/schema.d.ts +978 -6
  27. package/dist/src/contact/schema.d.ts.map +1 -1
  28. package/dist/src/contact/validation.d.ts +981 -0
  29. package/dist/src/contact/validation.d.ts.map +1 -0
  30. package/dist/src/contract.d.ts +36388 -24411
  31. package/dist/src/contract.d.ts.map +1 -1
  32. package/dist/src/custom-field-upload/schema.d.ts +2 -2
  33. package/dist/src/cx-log/index.d.ts +4 -4
  34. package/dist/src/cx-log/schema.d.ts +2 -2
  35. package/dist/src/extension/index.d.ts +226 -60
  36. package/dist/src/extension/index.d.ts.map +1 -1
  37. package/dist/src/extension/schema.d.ts +6 -6
  38. package/dist/src/extension/validation.d.ts +6 -12
  39. package/dist/src/extension/validation.d.ts.map +1 -1
  40. package/dist/src/index.d.ts +1 -0
  41. package/dist/src/index.d.ts.map +1 -1
  42. package/dist/src/mail/account-contract.d.ts +2 -2
  43. package/dist/src/mail/mail-contract.d.ts +2871 -3707
  44. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  45. package/dist/src/mail/message-contract.d.ts +18 -18
  46. package/dist/src/mail/room-contract.d.ts +2860 -3696
  47. package/dist/src/mail/room-contract.d.ts.map +1 -1
  48. package/dist/src/mail/schemas/account-validation.schema.d.ts +2 -2
  49. package/dist/src/mail/schemas/message-validation.schema.d.ts +12 -12
  50. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  51. package/dist/src/mail/schemas/room-validation.schema.d.ts +70 -70
  52. package/dist/src/mail/schemas/room.schema.d.ts +50 -50
  53. package/dist/src/messenger/index.d.ts +2977 -0
  54. package/dist/src/messenger/index.d.ts.map +1 -0
  55. package/dist/src/messenger/schema.d.ts +2 -0
  56. package/dist/src/messenger/schema.d.ts.map +1 -0
  57. package/dist/src/messenger/validation.d.ts +2 -0
  58. package/dist/src/messenger/validation.d.ts.map +1 -0
  59. package/dist/src/permission/index.d.ts +2 -0
  60. package/dist/src/permission/index.d.ts.map +1 -1
  61. package/dist/src/role/index.d.ts +3 -3
  62. package/dist/src/telephony-agent-presence-status/index.d.ts +1376 -0
  63. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -0
  64. package/dist/src/telephony-agent-presence-status/schema.d.ts +366 -0
  65. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -0
  66. package/dist/src/telephony-agent-presence-status/validation.d.ts +18 -0
  67. package/dist/src/telephony-agent-presence-status/validation.d.ts.map +1 -0
  68. package/dist/src/telephony-extension/index.d.ts +5 -5
  69. package/dist/src/telephony-extension/schema.d.ts +5 -5
  70. package/dist/src/tenant/schema.d.ts +36 -0
  71. package/dist/src/tenant/schema.d.ts.map +1 -0
  72. package/dist/src/upload/schema.d.ts +4 -4
  73. package/dist/src/user/index.d.ts +128 -94
  74. package/dist/src/user/index.d.ts.map +1 -1
  75. package/dist/src/user/schema.d.ts +22 -16
  76. package/dist/src/user/schema.d.ts.map +1 -1
  77. package/dist/src/user/validation.d.ts +11 -11
  78. package/dist/src/user-presence-status-log/index.d.ts +342 -0
  79. package/dist/src/user-presence-status-log/index.d.ts.map +1 -0
  80. package/dist/src/user-presence-status-log/schema.d.ts +382 -0
  81. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -0
  82. package/dist/src/user-presence-status-log/validation.d.ts +15 -0
  83. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -0
  84. package/dist/src/widget/index.d.ts +31 -29
  85. package/dist/src/widget/index.d.ts.map +1 -1
  86. package/dist/src/widget/schema.d.ts +3 -3
  87. package/dist/src/wrap-up-form/index.d.ts +30 -30
  88. package/dist/src/wrap-up-form/validation.d.ts +27 -27
  89. package/dist/utils.d.ts +6 -6
  90. package/package.json +1 -1
  91. package/dist/src/app/index.d.ts +0 -17
  92. package/dist/src/app/index.d.ts.map +0 -1
  93. package/dist/src/mail/mail-server.d.ts +0 -216
  94. package/dist/src/mail/mail-server.d.ts.map +0 -1
@@ -1,549 +1,991 @@
1
1
  import z from 'zod';
2
- /**
3
- * Channel Types Enum
4
- */
5
- export declare const ChannelTypeSchema: z.ZodUnion<[z.ZodLiteral<"messenger">, z.ZodLiteral<"line">, z.ZodLiteral<"viber">, z.ZodLiteral<"lazada">, z.ZodLiteral<"shopee">, z.ZodLiteral<"whatsapp">, z.ZodLiteral<"telegram">, z.ZodLiteral<"kakao">]>;
6
2
  /**
7
3
  * Directions Enum
8
4
  */
9
- export declare const MessageDirectionTypeSchema: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
10
- /**
11
- * Channel Status Type Enum
12
- */
13
- export declare const ChannelStatusTypeSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<0>]>;
5
+ export declare const MessageDirectionTypeSchema: z.ZodEnum<["incoming", "outgoing", "system"]>;
14
6
  /**
15
7
  * Message Type Enum
16
8
  */
17
- export declare const MessageTypeSchema: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"video">, z.ZodLiteral<"audio">, z.ZodLiteral<"file">, z.ZodLiteral<"fallback">, z.ZodLiteral<"location">, z.ZodLiteral<"attachment">, z.ZodLiteral<"assign">, z.ZodLiteral<"solve">, z.ZodLiteral<"reopen">, z.ZodLiteral<"open">, z.ZodLiteral<"sticker">, z.ZodLiteral<"closed">, z.ZodLiteral<"handed_over">, z.ZodLiteral<"updated">, z.ZodLiteral<"started">]>;
9
+ export declare const MessageTypeSchema: z.ZodEnum<["text", "image", "video", "audio", "file", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
18
10
  /**
19
11
  * Message Type Enum
20
12
  */
21
- export declare const MessageLocaleTypeSchema: z.ZodUnion<[z.ZodLiteral<"mm">, z.ZodLiteral<"en">, z.ZodLiteral<"th">]>;
13
+ export declare const MessageLocaleTypeSchema: z.ZodEnum<["mm", "en", "th"]>;
22
14
  /**
23
15
  * Channel metadata
24
16
  */
25
- export declare const ChannelMetadataSchema: z.ZodObject<{
17
+ export declare const PlatformContactMetadataSchema: z.ZodObject<{
26
18
  id: z.ZodString;
27
19
  name: z.ZodString;
28
- accessToken: z.ZodString;
29
20
  additionalCredentials: z.ZodAny;
30
21
  }, "strip", z.ZodTypeAny, {
31
22
  id: string;
32
23
  name: string;
33
- accessToken: string;
34
24
  additionalCredentials?: any;
35
25
  }, {
36
26
  id: string;
37
27
  name: string;
38
- accessToken: string;
39
28
  additionalCredentials?: any;
40
29
  }>;
41
30
  /**
42
- * Connect channel schema
31
+ * Platform Contact
43
32
  */
44
- export declare const ChannelSchema: z.ZodOptional<z.ZodObject<{
45
- id: z.ZodOptional<z.ZodString>;
46
- createdAt: z.ZodOptional<z.ZodDate>;
47
- updatedAt: z.ZodOptional<z.ZodDate>;
48
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
49
- name: z.ZodOptional<z.ZodString>;
50
- type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"messenger">, z.ZodLiteral<"line">, z.ZodLiteral<"viber">, z.ZodLiteral<"lazada">, z.ZodLiteral<"shopee">, z.ZodLiteral<"whatsapp">, z.ZodLiteral<"telegram">, z.ZodLiteral<"kakao">]>>;
51
- metadata: z.ZodOptional<z.ZodObject<{
33
+ export declare const PlatformContactSchema: z.ZodObject<{
34
+ id: z.ZodString;
35
+ createdAt: z.ZodDate;
36
+ updatedAt: z.ZodDate;
37
+ deletedAt: z.ZodNullable<z.ZodDate>;
38
+ channelId: z.ZodString;
39
+ socialPlatformId: z.ZodString;
40
+ platform: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"]>;
41
+ metadata: z.ZodObject<{
52
42
  id: z.ZodString;
53
43
  name: z.ZodString;
54
- accessToken: z.ZodString;
55
44
  additionalCredentials: z.ZodAny;
56
45
  }, "strip", z.ZodTypeAny, {
57
46
  id: string;
58
47
  name: string;
59
- accessToken: string;
60
48
  additionalCredentials?: any;
61
49
  }, {
62
50
  id: string;
63
51
  name: string;
64
- accessToken: string;
65
52
  additionalCredentials?: any;
66
- }>>;
67
- brandName: z.ZodOptional<z.ZodString>;
68
- platformId: z.ZodOptional<z.ZodString>;
69
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<0>]>>;
70
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
71
- connectedUserName: z.ZodOptional<z.ZodString>;
72
- connectedUserId: z.ZodOptional<z.ZodString>;
73
- actor: z.ZodOptional<z.ZodObject<{
53
+ }>;
54
+ contact: z.ZodObject<{
74
55
  id: z.ZodString;
75
56
  createdAt: z.ZodDate;
76
57
  updatedAt: z.ZodDate;
77
58
  deletedAt: z.ZodNullable<z.ZodDate>;
78
59
  name: z.ZodString;
79
- email: z.ZodString;
80
60
  address: z.ZodNullable<z.ZodString>;
81
- phone: z.ZodNullable<z.ZodString>;
82
- notificationCount: z.ZodNullable<z.ZodNumber>;
83
- roles: z.ZodArray<z.ZodObject<{
61
+ channel: z.ZodNullable<z.ZodString>;
62
+ notes: z.ZodNullable<z.ZodString>;
63
+ contactProfile: z.ZodNullable<z.ZodString>;
64
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
65
+ tags: z.ZodArray<z.ZodObject<{
84
66
  id: z.ZodString;
85
67
  createdAt: z.ZodDate;
86
68
  updatedAt: z.ZodDate;
87
69
  deletedAt: z.ZodNullable<z.ZodDate>;
88
- systemName: z.ZodString;
89
- displayName: z.ZodString;
90
- description: z.ZodNullable<z.ZodString>;
91
- permissions: z.ZodArray<z.ZodObject<{
70
+ name: z.ZodString;
71
+ }, "strip", z.ZodTypeAny, {
72
+ id: string;
73
+ name: string;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ deletedAt: Date | null;
77
+ }, {
78
+ id: string;
79
+ name: string;
80
+ createdAt: Date;
81
+ updatedAt: Date;
82
+ deletedAt: Date | null;
83
+ }>, "many">;
84
+ company: z.ZodNullable<z.ZodObject<Omit<{
85
+ id: z.ZodString;
86
+ createdAt: z.ZodDate;
87
+ updatedAt: z.ZodDate;
88
+ deletedAt: z.ZodNullable<z.ZodDate>;
89
+ name: z.ZodOptional<z.ZodString>;
90
+ phone: z.ZodOptional<z.ZodString>;
91
+ address: z.ZodOptional<z.ZodString>;
92
+ industry: z.ZodOptional<z.ZodString>;
93
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
94
+ id: z.ZodString;
95
+ createdAt: z.ZodDate;
96
+ updatedAt: z.ZodDate;
97
+ deletedAt: z.ZodNullable<z.ZodDate>;
98
+ textValue: z.ZodNullable<z.ZodString>;
99
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
100
+ numberValue: z.ZodNullable<z.ZodNumber>;
101
+ dateValue: z.ZodNullable<z.ZodString>;
102
+ attribute: z.ZodObject<Omit<{
103
+ id: z.ZodString;
104
+ createdAt: z.ZodDate;
105
+ updatedAt: z.ZodDate;
106
+ deletedAt: z.ZodNullable<z.ZodDate>;
107
+ systemName: z.ZodString;
108
+ displayName: z.ZodString;
109
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
110
+ position: z.ZodNumber;
111
+ isDefault: z.ZodBoolean;
112
+ isArchived: z.ZodBoolean;
113
+ isRequired: z.ZodBoolean;
114
+ isUnique: z.ZodBoolean;
115
+ options: z.ZodArray<z.ZodObject<{
116
+ position: z.ZodNumber;
117
+ value: z.ZodString;
118
+ label: z.ZodString;
119
+ isDefault: z.ZodBoolean;
120
+ id: z.ZodString;
121
+ }, "strip", z.ZodTypeAny, {
122
+ id: string;
123
+ position: number;
124
+ value: string;
125
+ label: string;
126
+ isDefault: boolean;
127
+ }, {
128
+ id: string;
129
+ position: number;
130
+ value: string;
131
+ label: string;
132
+ isDefault: boolean;
133
+ }>, "many">;
134
+ group: z.ZodObject<{
135
+ id: z.ZodString;
136
+ createdAt: z.ZodDate;
137
+ updatedAt: z.ZodDate;
138
+ deletedAt: z.ZodNullable<z.ZodDate>;
139
+ systemName: z.ZodString;
140
+ displayName: z.ZodString;
141
+ }, "strip", z.ZodTypeAny, {
142
+ id: string;
143
+ createdAt: Date;
144
+ updatedAt: Date;
145
+ deletedAt: Date | null;
146
+ systemName: string;
147
+ displayName: string;
148
+ }, {
149
+ id: string;
150
+ createdAt: Date;
151
+ updatedAt: Date;
152
+ deletedAt: Date | null;
153
+ systemName: string;
154
+ displayName: string;
155
+ }>;
156
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
157
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
158
+ id: string;
159
+ position: number;
160
+ createdAt: Date;
161
+ updatedAt: Date;
162
+ deletedAt: Date | null;
163
+ isDefault: boolean;
164
+ systemName: string;
165
+ displayName: string;
166
+ isArchived: boolean;
167
+ isRequired: boolean;
168
+ isUnique: boolean;
169
+ }, {
170
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
171
+ id: string;
172
+ position: number;
173
+ createdAt: Date;
174
+ updatedAt: Date;
175
+ deletedAt: Date | null;
176
+ isDefault: boolean;
177
+ systemName: string;
178
+ displayName: string;
179
+ isArchived: boolean;
180
+ isRequired: boolean;
181
+ isUnique: boolean;
182
+ }>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ id: string;
185
+ createdAt: Date;
186
+ updatedAt: Date;
187
+ deletedAt: Date | null;
188
+ attribute: {
189
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
190
+ id: string;
191
+ position: number;
192
+ createdAt: Date;
193
+ updatedAt: Date;
194
+ deletedAt: Date | null;
195
+ isDefault: boolean;
196
+ systemName: string;
197
+ displayName: string;
198
+ isArchived: boolean;
199
+ isRequired: boolean;
200
+ isUnique: boolean;
201
+ };
202
+ textValue: string | null;
203
+ booleanValue: boolean | null;
204
+ numberValue: number | null;
205
+ dateValue: string | null;
206
+ }, {
207
+ id: string;
208
+ createdAt: Date;
209
+ updatedAt: Date;
210
+ deletedAt: Date | null;
211
+ attribute: {
212
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
213
+ id: string;
214
+ position: number;
215
+ createdAt: Date;
216
+ updatedAt: Date;
217
+ deletedAt: Date | null;
218
+ isDefault: boolean;
219
+ systemName: string;
220
+ displayName: string;
221
+ isArchived: boolean;
222
+ isRequired: boolean;
223
+ isUnique: boolean;
224
+ };
225
+ textValue: string | null;
226
+ booleanValue: boolean | null;
227
+ numberValue: number | null;
228
+ dateValue: string | null;
229
+ }>, "many">>;
230
+ }, "customFields">, "strip", z.ZodTypeAny, {
231
+ id: string;
232
+ createdAt: Date;
233
+ updatedAt: Date;
234
+ deletedAt: Date | null;
235
+ address?: string | undefined;
236
+ name?: string | undefined;
237
+ phone?: string | undefined;
238
+ industry?: string | undefined;
239
+ }, {
240
+ id: string;
241
+ createdAt: Date;
242
+ updatedAt: Date;
243
+ deletedAt: Date | null;
244
+ address?: string | undefined;
245
+ name?: string | undefined;
246
+ phone?: string | undefined;
247
+ industry?: string | undefined;
248
+ }>>;
249
+ customFields: z.ZodArray<z.ZodObject<{
250
+ id: z.ZodString;
251
+ createdAt: z.ZodDate;
252
+ updatedAt: z.ZodDate;
253
+ deletedAt: z.ZodNullable<z.ZodDate>;
254
+ textValue: z.ZodNullable<z.ZodString>;
255
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
256
+ numberValue: z.ZodNullable<z.ZodNumber>;
257
+ dateValue: z.ZodNullable<z.ZodDate>;
258
+ attribute: z.ZodObject<Omit<{
92
259
  id: z.ZodString;
93
260
  createdAt: z.ZodDate;
94
261
  updatedAt: z.ZodDate;
95
262
  deletedAt: z.ZodNullable<z.ZodDate>;
96
263
  systemName: z.ZodString;
97
264
  displayName: z.ZodString;
98
- description: z.ZodNullable<z.ZodString>;
99
- }, "strip", z.ZodTypeAny, {
265
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
266
+ position: z.ZodNumber;
267
+ isDefault: z.ZodBoolean;
268
+ isArchived: z.ZodBoolean;
269
+ isRequired: z.ZodBoolean;
270
+ isUnique: z.ZodBoolean;
271
+ options: z.ZodArray<z.ZodObject<{
272
+ position: z.ZodNumber;
273
+ value: z.ZodString;
274
+ label: z.ZodString;
275
+ isDefault: z.ZodBoolean;
276
+ id: z.ZodString;
277
+ }, "strip", z.ZodTypeAny, {
278
+ id: string;
279
+ position: number;
280
+ value: string;
281
+ label: string;
282
+ isDefault: boolean;
283
+ }, {
284
+ id: string;
285
+ position: number;
286
+ value: string;
287
+ label: string;
288
+ isDefault: boolean;
289
+ }>, "many">;
290
+ group: z.ZodObject<{
291
+ id: z.ZodString;
292
+ createdAt: z.ZodDate;
293
+ updatedAt: z.ZodDate;
294
+ deletedAt: z.ZodNullable<z.ZodDate>;
295
+ systemName: z.ZodString;
296
+ displayName: z.ZodString;
297
+ }, "strip", z.ZodTypeAny, {
298
+ id: string;
299
+ createdAt: Date;
300
+ updatedAt: Date;
301
+ deletedAt: Date | null;
302
+ systemName: string;
303
+ displayName: string;
304
+ }, {
305
+ id: string;
306
+ createdAt: Date;
307
+ updatedAt: Date;
308
+ deletedAt: Date | null;
309
+ systemName: string;
310
+ displayName: string;
311
+ }>;
312
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
313
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
100
314
  id: string;
101
- description: string | null;
315
+ position: number;
102
316
  createdAt: Date;
103
317
  updatedAt: Date;
104
318
  deletedAt: Date | null;
319
+ isDefault: boolean;
105
320
  systemName: string;
106
321
  displayName: string;
322
+ isArchived: boolean;
323
+ isRequired: boolean;
324
+ isUnique: boolean;
107
325
  }, {
326
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
108
327
  id: string;
109
- description: string | null;
328
+ position: number;
110
329
  createdAt: Date;
111
330
  updatedAt: Date;
112
331
  deletedAt: Date | null;
332
+ isDefault: boolean;
113
333
  systemName: string;
114
334
  displayName: string;
335
+ isArchived: boolean;
336
+ isRequired: boolean;
337
+ isUnique: boolean;
338
+ }>;
339
+ uploads: z.ZodArray<z.ZodObject<{
340
+ id: z.ZodString;
341
+ createdAt: z.ZodDate;
342
+ updatedAt: z.ZodDate;
343
+ deletedAt: z.ZodNullable<z.ZodDate>;
344
+ customFieldId: z.ZodString;
345
+ upload: z.ZodObject<{
346
+ id: z.ZodString;
347
+ createdAt: z.ZodDate;
348
+ updatedAt: z.ZodDate;
349
+ deletedAt: z.ZodNullable<z.ZodDate>;
350
+ bucketName: z.ZodString;
351
+ fileName: z.ZodString;
352
+ fileSize: z.ZodNumber;
353
+ fileKey: z.ZodString;
354
+ }, "strip", z.ZodTypeAny, {
355
+ id: string;
356
+ createdAt: Date;
357
+ updatedAt: Date;
358
+ deletedAt: Date | null;
359
+ fileName: string;
360
+ fileKey: string;
361
+ bucketName: string;
362
+ fileSize: number;
363
+ }, {
364
+ id: string;
365
+ createdAt: Date;
366
+ updatedAt: Date;
367
+ deletedAt: Date | null;
368
+ fileName: string;
369
+ fileKey: string;
370
+ bucketName: string;
371
+ fileSize: number;
372
+ }>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ id: string;
375
+ createdAt: Date;
376
+ updatedAt: Date;
377
+ deletedAt: Date | null;
378
+ customFieldId: string;
379
+ upload: {
380
+ id: string;
381
+ createdAt: Date;
382
+ updatedAt: Date;
383
+ deletedAt: Date | null;
384
+ fileName: string;
385
+ fileKey: string;
386
+ bucketName: string;
387
+ fileSize: number;
388
+ };
389
+ }, {
390
+ id: string;
391
+ createdAt: Date;
392
+ updatedAt: Date;
393
+ deletedAt: Date | null;
394
+ customFieldId: string;
395
+ upload: {
396
+ id: string;
397
+ createdAt: Date;
398
+ updatedAt: Date;
399
+ deletedAt: Date | null;
400
+ fileName: string;
401
+ fileKey: string;
402
+ bucketName: string;
403
+ fileSize: number;
404
+ };
115
405
  }>, "many">;
116
406
  }, "strip", z.ZodTypeAny, {
117
407
  id: string;
118
- description: string | null;
119
408
  createdAt: Date;
120
409
  updatedAt: Date;
121
410
  deletedAt: Date | null;
122
- systemName: string;
123
- displayName: string;
124
- permissions: {
411
+ attribute: {
412
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
125
413
  id: string;
126
- description: string | null;
414
+ position: number;
127
415
  createdAt: Date;
128
416
  updatedAt: Date;
129
417
  deletedAt: Date | null;
418
+ isDefault: boolean;
130
419
  systemName: string;
131
420
  displayName: string;
421
+ isArchived: boolean;
422
+ isRequired: boolean;
423
+ isUnique: boolean;
424
+ };
425
+ textValue: string | null;
426
+ booleanValue: boolean | null;
427
+ numberValue: number | null;
428
+ dateValue: Date | null;
429
+ uploads: {
430
+ id: string;
431
+ createdAt: Date;
432
+ updatedAt: Date;
433
+ deletedAt: Date | null;
434
+ customFieldId: string;
435
+ upload: {
436
+ id: string;
437
+ createdAt: Date;
438
+ updatedAt: Date;
439
+ deletedAt: Date | null;
440
+ fileName: string;
441
+ fileKey: string;
442
+ bucketName: string;
443
+ fileSize: number;
444
+ };
132
445
  }[];
133
446
  }, {
134
447
  id: string;
135
- description: string | null;
136
448
  createdAt: Date;
137
449
  updatedAt: Date;
138
450
  deletedAt: Date | null;
139
- systemName: string;
140
- displayName: string;
141
- permissions: {
451
+ attribute: {
452
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
142
453
  id: string;
143
- description: string | null;
454
+ position: number;
144
455
  createdAt: Date;
145
456
  updatedAt: Date;
146
457
  deletedAt: Date | null;
458
+ isDefault: boolean;
147
459
  systemName: string;
148
460
  displayName: string;
461
+ isArchived: boolean;
462
+ isRequired: boolean;
463
+ isUnique: boolean;
464
+ };
465
+ textValue: string | null;
466
+ booleanValue: boolean | null;
467
+ numberValue: number | null;
468
+ dateValue: Date | null;
469
+ uploads: {
470
+ id: string;
471
+ createdAt: Date;
472
+ updatedAt: Date;
473
+ deletedAt: Date | null;
474
+ customFieldId: string;
475
+ upload: {
476
+ id: string;
477
+ createdAt: Date;
478
+ updatedAt: Date;
479
+ deletedAt: Date | null;
480
+ fileName: string;
481
+ fileKey: string;
482
+ bucketName: string;
483
+ fileSize: number;
484
+ };
149
485
  }[];
150
486
  }>, "many">;
151
- extension: z.ZodObject<{
487
+ contactEmails: z.ZodArray<z.ZodObject<{
152
488
  id: z.ZodString;
153
489
  createdAt: z.ZodDate;
154
490
  updatedAt: z.ZodDate;
155
491
  deletedAt: z.ZodNullable<z.ZodDate>;
156
- userId: z.ZodNullable<z.ZodString>;
157
- sipServerUrl: z.ZodString;
158
- sipUserName: z.ZodString;
159
- extensionId: z.ZodNullable<z.ZodNumber>;
160
- extensionName: z.ZodNullable<z.ZodString>;
161
- telephonySignature: z.ZodNullable<z.ZodString>;
492
+ email: z.ZodString;
493
+ isPrimary: z.ZodBoolean;
162
494
  }, "strip", z.ZodTypeAny, {
163
495
  id: string;
496
+ isPrimary: boolean;
497
+ email: string;
164
498
  createdAt: Date;
165
499
  updatedAt: Date;
166
500
  deletedAt: Date | null;
167
- userId: string | null;
168
- sipServerUrl: string;
169
- sipUserName: string;
170
- extensionId: number | null;
171
- extensionName: string | null;
172
- telephonySignature: string | null;
173
501
  }, {
174
502
  id: string;
503
+ isPrimary: boolean;
504
+ email: string;
175
505
  createdAt: Date;
176
506
  updatedAt: Date;
177
507
  deletedAt: Date | null;
178
- userId: string | null;
179
- sipServerUrl: string;
180
- sipUserName: string;
181
- extensionId: number | null;
182
- extensionName: string | null;
183
- telephonySignature: string | null;
184
- }>;
508
+ }>, "many">;
509
+ contactPhones: z.ZodArray<z.ZodObject<{
510
+ id: z.ZodString;
511
+ createdAt: z.ZodDate;
512
+ updatedAt: z.ZodDate;
513
+ deletedAt: z.ZodNullable<z.ZodDate>;
514
+ phone: z.ZodString;
515
+ isPrimary: z.ZodBoolean;
516
+ }, "strip", z.ZodTypeAny, {
517
+ id: string;
518
+ isPrimary: boolean;
519
+ createdAt: Date;
520
+ updatedAt: Date;
521
+ deletedAt: Date | null;
522
+ phone: string;
523
+ }, {
524
+ id: string;
525
+ isPrimary: boolean;
526
+ createdAt: Date;
527
+ updatedAt: Date;
528
+ deletedAt: Date | null;
529
+ phone: string;
530
+ }>, "many">;
531
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
532
+ entityId: z.ZodString;
533
+ description: z.ZodString;
534
+ entityType: z.ZodObject<{
535
+ entity: z.ZodString;
536
+ /**
537
+ * Platform Contact
538
+ */
539
+ description: z.ZodNullable<z.ZodString>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ description: string | null;
542
+ entity: string;
543
+ }, {
544
+ description: string | null;
545
+ entity: string;
546
+ }>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ description: string;
549
+ entityId: string;
550
+ entityType: {
551
+ description: string | null;
552
+ entity: string;
553
+ };
554
+ }, {
555
+ description: string;
556
+ entityId: string;
557
+ entityType: {
558
+ description: string | null;
559
+ entity: string;
560
+ };
561
+ }>, "many">>;
185
562
  }, "strip", z.ZodTypeAny, {
186
563
  id: string;
564
+ channel: string | null;
187
565
  address: string | null;
188
566
  name: string;
189
- email: string;
190
567
  createdAt: Date;
191
568
  updatedAt: Date;
192
569
  deletedAt: Date | null;
193
- phone: string | null;
194
- notificationCount: number | null;
195
- roles: {
570
+ customFields: {
196
571
  id: string;
197
- description: string | null;
198
572
  createdAt: Date;
199
573
  updatedAt: Date;
200
574
  deletedAt: Date | null;
201
- systemName: string;
202
- displayName: string;
203
- permissions: {
575
+ attribute: {
576
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
204
577
  id: string;
205
- description: string | null;
578
+ position: number;
206
579
  createdAt: Date;
207
580
  updatedAt: Date;
208
581
  deletedAt: Date | null;
582
+ isDefault: boolean;
209
583
  systemName: string;
210
584
  displayName: string;
211
- }[];
212
- }[];
213
- extension: {
585
+ isArchived: boolean;
586
+ isRequired: boolean;
587
+ isUnique: boolean;
588
+ };
589
+ textValue: string | null;
590
+ booleanValue: boolean | null;
591
+ numberValue: number | null;
592
+ dateValue: Date | null;
593
+ uploads: {
594
+ id: string;
595
+ createdAt: Date;
596
+ updatedAt: Date;
597
+ deletedAt: Date | null;
598
+ customFieldId: string;
599
+ upload: {
600
+ id: string;
601
+ createdAt: Date;
602
+ updatedAt: Date;
603
+ deletedAt: Date | null;
604
+ fileName: string;
605
+ fileKey: string;
606
+ bucketName: string;
607
+ fileSize: number;
608
+ };
609
+ }[];
610
+ }[];
611
+ notes: string | null;
612
+ contactProfile: string | null;
613
+ socialProfileUrl: string | null;
614
+ tags: {
214
615
  id: string;
616
+ name: string;
215
617
  createdAt: Date;
216
618
  updatedAt: Date;
217
619
  deletedAt: Date | null;
218
- userId: string | null;
219
- sipServerUrl: string;
220
- sipUserName: string;
221
- extensionId: number | null;
222
- extensionName: string | null;
223
- telephonySignature: string | null;
224
- };
620
+ }[];
621
+ company: {
622
+ id: string;
623
+ createdAt: Date;
624
+ updatedAt: Date;
625
+ deletedAt: Date | null;
626
+ address?: string | undefined;
627
+ name?: string | undefined;
628
+ phone?: string | undefined;
629
+ industry?: string | undefined;
630
+ } | null;
631
+ contactEmails: {
632
+ id: string;
633
+ isPrimary: boolean;
634
+ email: string;
635
+ createdAt: Date;
636
+ updatedAt: Date;
637
+ deletedAt: Date | null;
638
+ }[];
639
+ contactPhones: {
640
+ id: string;
641
+ isPrimary: boolean;
642
+ createdAt: Date;
643
+ updatedAt: Date;
644
+ deletedAt: Date | null;
645
+ phone: string;
646
+ }[];
647
+ activityLogs?: {
648
+ description: string;
649
+ entityId: string;
650
+ entityType: {
651
+ description: string | null;
652
+ entity: string;
653
+ };
654
+ }[] | undefined;
225
655
  }, {
226
656
  id: string;
657
+ channel: string | null;
227
658
  address: string | null;
228
659
  name: string;
229
- email: string;
230
660
  createdAt: Date;
231
661
  updatedAt: Date;
232
662
  deletedAt: Date | null;
233
- phone: string | null;
234
- notificationCount: number | null;
235
- roles: {
663
+ customFields: {
236
664
  id: string;
237
- description: string | null;
238
665
  createdAt: Date;
239
666
  updatedAt: Date;
240
667
  deletedAt: Date | null;
241
- systemName: string;
242
- displayName: string;
243
- permissions: {
668
+ attribute: {
669
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
244
670
  id: string;
245
- description: string | null;
671
+ position: number;
246
672
  createdAt: Date;
247
673
  updatedAt: Date;
248
674
  deletedAt: Date | null;
675
+ isDefault: boolean;
249
676
  systemName: string;
250
677
  displayName: string;
678
+ isArchived: boolean;
679
+ isRequired: boolean;
680
+ isUnique: boolean;
681
+ };
682
+ textValue: string | null;
683
+ booleanValue: boolean | null;
684
+ numberValue: number | null;
685
+ dateValue: Date | null;
686
+ uploads: {
687
+ id: string;
688
+ createdAt: Date;
689
+ updatedAt: Date;
690
+ deletedAt: Date | null;
691
+ customFieldId: string;
692
+ upload: {
693
+ id: string;
694
+ createdAt: Date;
695
+ updatedAt: Date;
696
+ deletedAt: Date | null;
697
+ fileName: string;
698
+ fileKey: string;
699
+ bucketName: string;
700
+ fileSize: number;
701
+ };
251
702
  }[];
252
703
  }[];
253
- extension: {
704
+ notes: string | null;
705
+ contactProfile: string | null;
706
+ socialProfileUrl: string | null;
707
+ tags: {
254
708
  id: string;
709
+ name: string;
255
710
  createdAt: Date;
256
711
  updatedAt: Date;
257
712
  deletedAt: Date | null;
258
- userId: string | null;
259
- sipServerUrl: string;
260
- sipUserName: string;
261
- extensionId: number | null;
262
- extensionName: string | null;
263
- telephonySignature: string | null;
264
- };
265
- }>>;
713
+ }[];
714
+ company: {
715
+ id: string;
716
+ createdAt: Date;
717
+ updatedAt: Date;
718
+ deletedAt: Date | null;
719
+ address?: string | undefined;
720
+ name?: string | undefined;
721
+ phone?: string | undefined;
722
+ industry?: string | undefined;
723
+ } | null;
724
+ contactEmails: {
725
+ id: string;
726
+ isPrimary: boolean;
727
+ email: string;
728
+ createdAt: Date;
729
+ updatedAt: Date;
730
+ deletedAt: Date | null;
731
+ }[];
732
+ contactPhones: {
733
+ id: string;
734
+ isPrimary: boolean;
735
+ createdAt: Date;
736
+ updatedAt: Date;
737
+ deletedAt: Date | null;
738
+ phone: string;
739
+ }[];
740
+ activityLogs?: {
741
+ description: string;
742
+ entityId: string;
743
+ entityType: {
744
+ description: string | null;
745
+ entity: string;
746
+ };
747
+ }[] | undefined;
748
+ }>;
266
749
  }, "strip", z.ZodTypeAny, {
267
- id?: string | undefined;
268
- createdAt?: Date | undefined;
269
- updatedAt?: Date | undefined;
270
- deletedAt?: Date | null | undefined;
271
- name?: string | undefined;
272
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
273
- metadata?: {
750
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
751
+ id: string;
752
+ metadata: {
274
753
  id: string;
275
754
  name: string;
276
- accessToken: string;
277
755
  additionalCredentials?: any;
278
- } | undefined;
279
- brandName?: string | undefined;
280
- platformId?: string | undefined;
281
- status?: 0 | 1 | undefined;
282
- isReloginRequired?: boolean | undefined;
283
- connectedUserName?: string | undefined;
284
- connectedUserId?: string | undefined;
285
- actor?: {
756
+ };
757
+ createdAt: Date;
758
+ updatedAt: Date;
759
+ deletedAt: Date | null;
760
+ contact: {
286
761
  id: string;
762
+ channel: string | null;
287
763
  address: string | null;
288
764
  name: string;
289
- email: string;
290
765
  createdAt: Date;
291
766
  updatedAt: Date;
292
767
  deletedAt: Date | null;
293
- phone: string | null;
294
- notificationCount: number | null;
295
- roles: {
768
+ customFields: {
296
769
  id: string;
297
- description: string | null;
298
770
  createdAt: Date;
299
771
  updatedAt: Date;
300
772
  deletedAt: Date | null;
301
- systemName: string;
302
- displayName: string;
303
- permissions: {
773
+ attribute: {
774
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
304
775
  id: string;
305
- description: string | null;
776
+ position: number;
306
777
  createdAt: Date;
307
778
  updatedAt: Date;
308
779
  deletedAt: Date | null;
780
+ isDefault: boolean;
309
781
  systemName: string;
310
782
  displayName: string;
783
+ isArchived: boolean;
784
+ isRequired: boolean;
785
+ isUnique: boolean;
786
+ };
787
+ textValue: string | null;
788
+ booleanValue: boolean | null;
789
+ numberValue: number | null;
790
+ dateValue: Date | null;
791
+ uploads: {
792
+ id: string;
793
+ createdAt: Date;
794
+ updatedAt: Date;
795
+ deletedAt: Date | null;
796
+ customFieldId: string;
797
+ upload: {
798
+ id: string;
799
+ createdAt: Date;
800
+ updatedAt: Date;
801
+ deletedAt: Date | null;
802
+ fileName: string;
803
+ fileKey: string;
804
+ bucketName: string;
805
+ fileSize: number;
806
+ };
311
807
  }[];
312
808
  }[];
313
- extension: {
809
+ notes: string | null;
810
+ contactProfile: string | null;
811
+ socialProfileUrl: string | null;
812
+ tags: {
813
+ id: string;
814
+ name: string;
815
+ createdAt: Date;
816
+ updatedAt: Date;
817
+ deletedAt: Date | null;
818
+ }[];
819
+ company: {
314
820
  id: string;
315
821
  createdAt: Date;
316
822
  updatedAt: Date;
317
823
  deletedAt: Date | null;
318
- userId: string | null;
319
- sipServerUrl: string;
320
- sipUserName: string;
321
- extensionId: number | null;
322
- extensionName: string | null;
323
- telephonySignature: string | null;
324
- };
325
- } | undefined;
824
+ address?: string | undefined;
825
+ name?: string | undefined;
826
+ phone?: string | undefined;
827
+ industry?: string | undefined;
828
+ } | null;
829
+ contactEmails: {
830
+ id: string;
831
+ isPrimary: boolean;
832
+ email: string;
833
+ createdAt: Date;
834
+ updatedAt: Date;
835
+ deletedAt: Date | null;
836
+ }[];
837
+ contactPhones: {
838
+ id: string;
839
+ isPrimary: boolean;
840
+ createdAt: Date;
841
+ updatedAt: Date;
842
+ deletedAt: Date | null;
843
+ phone: string;
844
+ }[];
845
+ activityLogs?: {
846
+ description: string;
847
+ entityId: string;
848
+ entityType: {
849
+ description: string | null;
850
+ entity: string;
851
+ };
852
+ }[] | undefined;
853
+ };
854
+ channelId: string;
855
+ socialPlatformId: string;
326
856
  }, {
327
- id?: string | undefined;
328
- createdAt?: Date | undefined;
329
- updatedAt?: Date | undefined;
330
- deletedAt?: Date | null | undefined;
331
- name?: string | undefined;
332
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
333
- metadata?: {
857
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
858
+ id: string;
859
+ metadata: {
334
860
  id: string;
335
861
  name: string;
336
- accessToken: string;
337
862
  additionalCredentials?: any;
338
- } | undefined;
339
- brandName?: string | undefined;
340
- platformId?: string | undefined;
341
- status?: 0 | 1 | undefined;
342
- isReloginRequired?: boolean | undefined;
343
- connectedUserName?: string | undefined;
344
- connectedUserId?: string | undefined;
345
- actor?: {
863
+ };
864
+ createdAt: Date;
865
+ updatedAt: Date;
866
+ deletedAt: Date | null;
867
+ contact: {
346
868
  id: string;
869
+ channel: string | null;
347
870
  address: string | null;
348
871
  name: string;
349
- email: string;
350
872
  createdAt: Date;
351
873
  updatedAt: Date;
352
874
  deletedAt: Date | null;
353
- phone: string | null;
354
- notificationCount: number | null;
355
- roles: {
875
+ customFields: {
356
876
  id: string;
357
- description: string | null;
358
877
  createdAt: Date;
359
878
  updatedAt: Date;
360
879
  deletedAt: Date | null;
361
- systemName: string;
362
- displayName: string;
363
- permissions: {
880
+ attribute: {
881
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
364
882
  id: string;
365
- description: string | null;
883
+ position: number;
366
884
  createdAt: Date;
367
885
  updatedAt: Date;
368
886
  deletedAt: Date | null;
887
+ isDefault: boolean;
369
888
  systemName: string;
370
889
  displayName: string;
890
+ isArchived: boolean;
891
+ isRequired: boolean;
892
+ isUnique: boolean;
893
+ };
894
+ textValue: string | null;
895
+ booleanValue: boolean | null;
896
+ numberValue: number | null;
897
+ dateValue: Date | null;
898
+ uploads: {
899
+ id: string;
900
+ createdAt: Date;
901
+ updatedAt: Date;
902
+ deletedAt: Date | null;
903
+ customFieldId: string;
904
+ upload: {
905
+ id: string;
906
+ createdAt: Date;
907
+ updatedAt: Date;
908
+ deletedAt: Date | null;
909
+ fileName: string;
910
+ fileKey: string;
911
+ bucketName: string;
912
+ fileSize: number;
913
+ };
371
914
  }[];
372
915
  }[];
373
- extension: {
916
+ notes: string | null;
917
+ contactProfile: string | null;
918
+ socialProfileUrl: string | null;
919
+ tags: {
374
920
  id: string;
921
+ name: string;
375
922
  createdAt: Date;
376
923
  updatedAt: Date;
377
924
  deletedAt: Date | null;
378
- userId: string | null;
379
- sipServerUrl: string;
380
- sipUserName: string;
381
- extensionId: number | null;
382
- extensionName: string | null;
383
- telephonySignature: string | null;
384
- };
385
- } | undefined;
386
- }>>;
387
- /**
388
- * Channel metadata
389
- */
390
- export declare const PlatformContactMetadataSchema: z.ZodObject<{
391
- id: z.ZodString;
392
- name: z.ZodString;
393
- additionalCredentials: z.ZodAny;
394
- }, "strip", z.ZodTypeAny, {
395
- id: string;
396
- name: string;
397
- additionalCredentials?: any;
398
- }, {
399
- id: string;
400
- name: string;
401
- additionalCredentials?: any;
925
+ }[];
926
+ company: {
927
+ id: string;
928
+ createdAt: Date;
929
+ updatedAt: Date;
930
+ deletedAt: Date | null;
931
+ address?: string | undefined;
932
+ name?: string | undefined;
933
+ phone?: string | undefined;
934
+ industry?: string | undefined;
935
+ } | null;
936
+ contactEmails: {
937
+ id: string;
938
+ isPrimary: boolean;
939
+ email: string;
940
+ createdAt: Date;
941
+ updatedAt: Date;
942
+ deletedAt: Date | null;
943
+ }[];
944
+ contactPhones: {
945
+ id: string;
946
+ isPrimary: boolean;
947
+ createdAt: Date;
948
+ updatedAt: Date;
949
+ deletedAt: Date | null;
950
+ phone: string;
951
+ }[];
952
+ activityLogs?: {
953
+ description: string;
954
+ entityId: string;
955
+ entityType: {
956
+ description: string | null;
957
+ entity: string;
958
+ };
959
+ }[] | undefined;
960
+ };
961
+ channelId: string;
962
+ socialPlatformId: string;
402
963
  }>;
403
964
  /**
404
- * Platform Contact
965
+ * Room
405
966
  */
406
- export declare const PlatformContactSchema: z.ZodObject<{
967
+ export declare const RoomSchema: z.ZodObject<{
407
968
  id: z.ZodString;
408
969
  createdAt: z.ZodDate;
409
970
  updatedAt: z.ZodDate;
410
971
  deletedAt: z.ZodNullable<z.ZodDate>;
411
- channelId: z.ZodString;
412
- socialPlatformId: z.ZodString;
413
- platform: z.ZodUnion<[z.ZodLiteral<"messenger">, z.ZodLiteral<"line">, z.ZodLiteral<"viber">, z.ZodLiteral<"lazada">, z.ZodLiteral<"shopee">, z.ZodLiteral<"whatsapp">, z.ZodLiteral<"telegram">, z.ZodLiteral<"kakao">]>;
414
- metadata: z.ZodObject<{
415
- id: z.ZodString;
416
- name: z.ZodString;
417
- additionalCredentials: z.ZodAny;
418
- }, "strip", z.ZodTypeAny, {
419
- id: string;
420
- name: string;
421
- additionalCredentials?: any;
422
- }, {
423
- id: string;
424
- name: string;
425
- additionalCredentials?: any;
426
- }>;
427
- contact: z.ZodObject<{
428
- id: z.ZodString;
429
- createdAt: z.ZodDate;
430
- updatedAt: z.ZodDate;
431
- deletedAt: z.ZodNullable<z.ZodDate>;
432
- name: z.ZodString;
433
- address: z.ZodNullable<z.ZodString>;
434
- channel: z.ZodNullable<z.ZodString>;
435
- notes: z.ZodNullable<z.ZodString>;
436
- contactNumber: z.ZodNullable<z.ZodString>;
437
- companyId: z.ZodNullable<z.ZodString>;
438
- contactProfile: z.ZodNullable<z.ZodString>;
439
- socialProfileUrl: z.ZodNullable<z.ZodString>;
440
- }, "strip", z.ZodTypeAny, {
441
- id: string;
442
- channel: string | null;
443
- address: string | null;
444
- name: string;
445
- createdAt: Date;
446
- updatedAt: Date;
447
- deletedAt: Date | null;
448
- notes: string | null;
449
- contactNumber: string | null;
450
- companyId: string | null;
451
- contactProfile: string | null;
452
- socialProfileUrl: string | null;
453
- }, {
454
- id: string;
455
- channel: string | null;
456
- address: string | null;
457
- name: string;
458
- createdAt: Date;
459
- updatedAt: Date;
460
- deletedAt: Date | null;
461
- notes: string | null;
462
- contactNumber: string | null;
463
- companyId: string | null;
464
- contactProfile: string | null;
465
- socialProfileUrl: string | null;
466
- }>;
467
- }, "strip", z.ZodTypeAny, {
468
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
469
- id: string;
470
- metadata: {
471
- id: string;
472
- name: string;
473
- additionalCredentials?: any;
474
- };
475
- createdAt: Date;
476
- updatedAt: Date;
477
- deletedAt: Date | null;
478
- contact: {
479
- id: string;
480
- channel: string | null;
481
- address: string | null;
482
- name: string;
483
- createdAt: Date;
484
- updatedAt: Date;
485
- deletedAt: Date | null;
486
- notes: string | null;
487
- contactNumber: string | null;
488
- companyId: string | null;
489
- contactProfile: string | null;
490
- socialProfileUrl: string | null;
491
- };
492
- channelId: string;
493
- socialPlatformId: string;
494
- }, {
495
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
496
- id: string;
497
- metadata: {
498
- id: string;
499
- name: string;
500
- additionalCredentials?: any;
501
- };
502
- createdAt: Date;
503
- updatedAt: Date;
504
- deletedAt: Date | null;
505
- contact: {
506
- id: string;
507
- channel: string | null;
508
- address: string | null;
509
- name: string;
510
- createdAt: Date;
511
- updatedAt: Date;
512
- deletedAt: Date | null;
513
- notes: string | null;
514
- contactNumber: string | null;
515
- companyId: string | null;
516
- contactProfile: string | null;
517
- socialProfileUrl: string | null;
518
- };
519
- channelId: string;
520
- socialPlatformId: string;
521
- }>;
522
- /**
523
- * Room
524
- */
525
- export declare const RoomSchema: z.ZodObject<{
526
- id: z.ZodString;
527
- createdAt: z.ZodDate;
528
- updatedAt: z.ZodDate;
529
- deletedAt: z.ZodNullable<z.ZodDate>;
530
- lastMessage: z.ZodString;
531
- handleTime: z.ZodNumber;
532
- isSolved: z.ZodBoolean;
533
- notes: z.ZodString;
534
- closeAt: z.ZodDate;
535
- unreadCount: z.ZodNumber;
536
- firstResponseTime: z.ZodDate;
537
- isLatest: z.ZodBoolean;
538
- direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
539
- platformContact: z.ZodObject<{
972
+ lastMessage: z.ZodString;
973
+ handleTime: z.ZodNumber;
974
+ isSolved: z.ZodBoolean;
975
+ notes: z.ZodString;
976
+ closeAt: z.ZodDate;
977
+ unreadCount: z.ZodNumber;
978
+ firstResponseTime: z.ZodDate;
979
+ isLatest: z.ZodBoolean;
980
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
981
+ platformContact: z.ZodObject<{
540
982
  id: z.ZodString;
541
983
  createdAt: z.ZodDate;
542
984
  updatedAt: z.ZodDate;
543
985
  deletedAt: z.ZodNullable<z.ZodDate>;
544
986
  channelId: z.ZodString;
545
987
  socialPlatformId: z.ZodString;
546
- platform: z.ZodUnion<[z.ZodLiteral<"messenger">, z.ZodLiteral<"line">, z.ZodLiteral<"viber">, z.ZodLiteral<"lazada">, z.ZodLiteral<"shopee">, z.ZodLiteral<"whatsapp">, z.ZodLiteral<"telegram">, z.ZodLiteral<"kakao">]>;
988
+ platform: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"]>;
547
989
  metadata: z.ZodObject<{
548
990
  id: z.ZodString;
549
991
  name: z.ZodString;
@@ -566,10 +1008,505 @@ export declare const RoomSchema: z.ZodObject<{
566
1008
  address: z.ZodNullable<z.ZodString>;
567
1009
  channel: z.ZodNullable<z.ZodString>;
568
1010
  notes: z.ZodNullable<z.ZodString>;
569
- contactNumber: z.ZodNullable<z.ZodString>;
570
- companyId: z.ZodNullable<z.ZodString>;
571
1011
  contactProfile: z.ZodNullable<z.ZodString>;
572
1012
  socialProfileUrl: z.ZodNullable<z.ZodString>;
1013
+ tags: z.ZodArray<z.ZodObject<{
1014
+ id: z.ZodString;
1015
+ createdAt: z.ZodDate;
1016
+ updatedAt: z.ZodDate;
1017
+ deletedAt: z.ZodNullable<z.ZodDate>;
1018
+ name: z.ZodString;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ id: string;
1021
+ name: string;
1022
+ createdAt: Date;
1023
+ updatedAt: Date;
1024
+ deletedAt: Date | null;
1025
+ }, {
1026
+ id: string;
1027
+ name: string;
1028
+ createdAt: Date;
1029
+ updatedAt: Date;
1030
+ deletedAt: Date | null;
1031
+ }>, "many">;
1032
+ company: z.ZodNullable<z.ZodObject<Omit<{
1033
+ id: z.ZodString;
1034
+ createdAt: z.ZodDate;
1035
+ updatedAt: z.ZodDate;
1036
+ deletedAt: z.ZodNullable<z.ZodDate>;
1037
+ name: z.ZodOptional<z.ZodString>;
1038
+ phone: z.ZodOptional<z.ZodString>;
1039
+ address: z.ZodOptional<z.ZodString>;
1040
+ industry: z.ZodOptional<z.ZodString>;
1041
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1042
+ id: z.ZodString;
1043
+ createdAt: z.ZodDate;
1044
+ updatedAt: z.ZodDate;
1045
+ deletedAt: z.ZodNullable<z.ZodDate>;
1046
+ textValue: z.ZodNullable<z.ZodString>;
1047
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1048
+ numberValue: z.ZodNullable<z.ZodNumber>;
1049
+ dateValue: z.ZodNullable<z.ZodString>;
1050
+ attribute: z.ZodObject<Omit<{
1051
+ id: z.ZodString;
1052
+ createdAt: z.ZodDate;
1053
+ updatedAt: z.ZodDate;
1054
+ deletedAt: z.ZodNullable<z.ZodDate>;
1055
+ systemName: z.ZodString;
1056
+ displayName: z.ZodString;
1057
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1058
+ position: z.ZodNumber;
1059
+ isDefault: z.ZodBoolean;
1060
+ isArchived: z.ZodBoolean;
1061
+ isRequired: z.ZodBoolean;
1062
+ isUnique: z.ZodBoolean;
1063
+ options: z.ZodArray<z.ZodObject<{
1064
+ position: z.ZodNumber;
1065
+ value: z.ZodString;
1066
+ label: z.ZodString;
1067
+ isDefault: z.ZodBoolean;
1068
+ id: z.ZodString;
1069
+ }, "strip", z.ZodTypeAny, {
1070
+ id: string;
1071
+ position: number;
1072
+ value: string;
1073
+ label: string;
1074
+ isDefault: boolean;
1075
+ }, {
1076
+ id: string;
1077
+ position: number;
1078
+ value: string;
1079
+ label: string;
1080
+ isDefault: boolean;
1081
+ }>, "many">;
1082
+ group: z.ZodObject<{
1083
+ id: z.ZodString;
1084
+ createdAt: z.ZodDate;
1085
+ updatedAt: z.ZodDate;
1086
+ deletedAt: z.ZodNullable<z.ZodDate>;
1087
+ systemName: z.ZodString;
1088
+ displayName: z.ZodString;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ id: string;
1091
+ createdAt: Date;
1092
+ updatedAt: Date;
1093
+ deletedAt: Date | null;
1094
+ systemName: string;
1095
+ displayName: string;
1096
+ }, {
1097
+ id: string;
1098
+ createdAt: Date;
1099
+ updatedAt: Date;
1100
+ deletedAt: Date | null;
1101
+ systemName: string;
1102
+ displayName: string;
1103
+ }>;
1104
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1105
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1106
+ id: string;
1107
+ position: number;
1108
+ createdAt: Date;
1109
+ updatedAt: Date;
1110
+ deletedAt: Date | null;
1111
+ isDefault: boolean;
1112
+ systemName: string;
1113
+ displayName: string;
1114
+ isArchived: boolean;
1115
+ isRequired: boolean;
1116
+ isUnique: boolean;
1117
+ }, {
1118
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1119
+ id: string;
1120
+ position: number;
1121
+ createdAt: Date;
1122
+ updatedAt: Date;
1123
+ deletedAt: Date | null;
1124
+ isDefault: boolean;
1125
+ systemName: string;
1126
+ displayName: string;
1127
+ isArchived: boolean;
1128
+ isRequired: boolean;
1129
+ isUnique: boolean;
1130
+ }>;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ id: string;
1133
+ createdAt: Date;
1134
+ updatedAt: Date;
1135
+ deletedAt: Date | null;
1136
+ attribute: {
1137
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1138
+ id: string;
1139
+ position: number;
1140
+ createdAt: Date;
1141
+ updatedAt: Date;
1142
+ deletedAt: Date | null;
1143
+ isDefault: boolean;
1144
+ systemName: string;
1145
+ displayName: string;
1146
+ isArchived: boolean;
1147
+ isRequired: boolean;
1148
+ isUnique: boolean;
1149
+ };
1150
+ textValue: string | null;
1151
+ booleanValue: boolean | null;
1152
+ numberValue: number | null;
1153
+ dateValue: string | null;
1154
+ }, {
1155
+ id: string;
1156
+ createdAt: Date;
1157
+ updatedAt: Date;
1158
+ deletedAt: Date | null;
1159
+ attribute: {
1160
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1161
+ id: string;
1162
+ position: number;
1163
+ createdAt: Date;
1164
+ updatedAt: Date;
1165
+ deletedAt: Date | null;
1166
+ isDefault: boolean;
1167
+ systemName: string;
1168
+ displayName: string;
1169
+ isArchived: boolean;
1170
+ isRequired: boolean;
1171
+ isUnique: boolean;
1172
+ };
1173
+ textValue: string | null;
1174
+ booleanValue: boolean | null;
1175
+ numberValue: number | null;
1176
+ dateValue: string | null;
1177
+ }>, "many">>;
1178
+ }, "customFields">, "strip", z.ZodTypeAny, {
1179
+ id: string;
1180
+ createdAt: Date;
1181
+ updatedAt: Date;
1182
+ deletedAt: Date | null;
1183
+ address?: string | undefined;
1184
+ name?: string | undefined;
1185
+ phone?: string | undefined;
1186
+ industry?: string | undefined;
1187
+ }, {
1188
+ id: string;
1189
+ createdAt: Date;
1190
+ updatedAt: Date;
1191
+ deletedAt: Date | null;
1192
+ address?: string | undefined;
1193
+ name?: string | undefined;
1194
+ phone?: string | undefined;
1195
+ industry?: string | undefined;
1196
+ }>>;
1197
+ customFields: z.ZodArray<z.ZodObject<{
1198
+ id: z.ZodString;
1199
+ createdAt: z.ZodDate;
1200
+ updatedAt: z.ZodDate;
1201
+ deletedAt: z.ZodNullable<z.ZodDate>;
1202
+ textValue: z.ZodNullable<z.ZodString>;
1203
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1204
+ numberValue: z.ZodNullable<z.ZodNumber>;
1205
+ dateValue: z.ZodNullable<z.ZodDate>;
1206
+ attribute: z.ZodObject<Omit<{
1207
+ id: z.ZodString;
1208
+ createdAt: z.ZodDate;
1209
+ updatedAt: z.ZodDate;
1210
+ deletedAt: z.ZodNullable<z.ZodDate>;
1211
+ systemName: z.ZodString;
1212
+ displayName: z.ZodString;
1213
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1214
+ position: z.ZodNumber;
1215
+ isDefault: z.ZodBoolean;
1216
+ isArchived: z.ZodBoolean;
1217
+ isRequired: z.ZodBoolean;
1218
+ isUnique: z.ZodBoolean;
1219
+ options: z.ZodArray<z.ZodObject<{
1220
+ position: z.ZodNumber;
1221
+ value: z.ZodString;
1222
+ label: z.ZodString;
1223
+ isDefault: z.ZodBoolean;
1224
+ id: z.ZodString;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ id: string;
1227
+ position: number;
1228
+ value: string;
1229
+ label: string;
1230
+ isDefault: boolean;
1231
+ }, {
1232
+ id: string;
1233
+ position: number;
1234
+ value: string;
1235
+ label: string;
1236
+ isDefault: boolean;
1237
+ }>, "many">;
1238
+ group: z.ZodObject<{
1239
+ id: z.ZodString;
1240
+ createdAt: z.ZodDate;
1241
+ updatedAt: z.ZodDate;
1242
+ deletedAt: z.ZodNullable<z.ZodDate>;
1243
+ systemName: z.ZodString;
1244
+ displayName: z.ZodString;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ id: string;
1247
+ createdAt: Date;
1248
+ updatedAt: Date;
1249
+ deletedAt: Date | null;
1250
+ systemName: string;
1251
+ displayName: string;
1252
+ }, {
1253
+ id: string;
1254
+ createdAt: Date;
1255
+ updatedAt: Date;
1256
+ deletedAt: Date | null;
1257
+ systemName: string;
1258
+ displayName: string;
1259
+ }>;
1260
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1261
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1262
+ id: string;
1263
+ position: number;
1264
+ createdAt: Date;
1265
+ updatedAt: Date;
1266
+ deletedAt: Date | null;
1267
+ isDefault: boolean;
1268
+ systemName: string;
1269
+ displayName: string;
1270
+ isArchived: boolean;
1271
+ isRequired: boolean;
1272
+ isUnique: boolean;
1273
+ }, {
1274
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1275
+ id: string;
1276
+ position: number;
1277
+ createdAt: Date;
1278
+ updatedAt: Date;
1279
+ deletedAt: Date | null;
1280
+ isDefault: boolean;
1281
+ systemName: string;
1282
+ displayName: string;
1283
+ isArchived: boolean;
1284
+ isRequired: boolean;
1285
+ isUnique: boolean;
1286
+ }>;
1287
+ uploads: z.ZodArray<z.ZodObject<{
1288
+ id: z.ZodString;
1289
+ createdAt: z.ZodDate;
1290
+ updatedAt: z.ZodDate;
1291
+ deletedAt: z.ZodNullable<z.ZodDate>;
1292
+ customFieldId: z.ZodString;
1293
+ upload: z.ZodObject<{
1294
+ id: z.ZodString;
1295
+ createdAt: z.ZodDate;
1296
+ updatedAt: z.ZodDate;
1297
+ deletedAt: z.ZodNullable<z.ZodDate>;
1298
+ bucketName: z.ZodString;
1299
+ fileName: z.ZodString;
1300
+ fileSize: z.ZodNumber;
1301
+ fileKey: z.ZodString;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ id: string;
1304
+ createdAt: Date;
1305
+ updatedAt: Date;
1306
+ deletedAt: Date | null;
1307
+ fileName: string;
1308
+ fileKey: string;
1309
+ bucketName: string;
1310
+ fileSize: number;
1311
+ }, {
1312
+ id: string;
1313
+ createdAt: Date;
1314
+ updatedAt: Date;
1315
+ deletedAt: Date | null;
1316
+ fileName: string;
1317
+ fileKey: string;
1318
+ bucketName: string;
1319
+ fileSize: number;
1320
+ }>;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ id: string;
1323
+ createdAt: Date;
1324
+ updatedAt: Date;
1325
+ deletedAt: Date | null;
1326
+ customFieldId: string;
1327
+ upload: {
1328
+ id: string;
1329
+ createdAt: Date;
1330
+ updatedAt: Date;
1331
+ deletedAt: Date | null;
1332
+ fileName: string;
1333
+ fileKey: string;
1334
+ bucketName: string;
1335
+ fileSize: number;
1336
+ };
1337
+ }, {
1338
+ id: string;
1339
+ createdAt: Date;
1340
+ updatedAt: Date;
1341
+ deletedAt: Date | null;
1342
+ customFieldId: string;
1343
+ upload: {
1344
+ id: string;
1345
+ createdAt: Date;
1346
+ updatedAt: Date;
1347
+ deletedAt: Date | null;
1348
+ fileName: string;
1349
+ fileKey: string;
1350
+ bucketName: string;
1351
+ fileSize: number;
1352
+ };
1353
+ }>, "many">;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ id: string;
1356
+ createdAt: Date;
1357
+ updatedAt: Date;
1358
+ deletedAt: Date | null;
1359
+ attribute: {
1360
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1361
+ id: string;
1362
+ position: number;
1363
+ createdAt: Date;
1364
+ updatedAt: Date;
1365
+ deletedAt: Date | null;
1366
+ isDefault: boolean;
1367
+ systemName: string;
1368
+ displayName: string;
1369
+ isArchived: boolean;
1370
+ isRequired: boolean;
1371
+ isUnique: boolean;
1372
+ };
1373
+ textValue: string | null;
1374
+ booleanValue: boolean | null;
1375
+ numberValue: number | null;
1376
+ dateValue: Date | null;
1377
+ uploads: {
1378
+ id: string;
1379
+ createdAt: Date;
1380
+ updatedAt: Date;
1381
+ deletedAt: Date | null;
1382
+ customFieldId: string;
1383
+ upload: {
1384
+ id: string;
1385
+ createdAt: Date;
1386
+ updatedAt: Date;
1387
+ deletedAt: Date | null;
1388
+ fileName: string;
1389
+ fileKey: string;
1390
+ bucketName: string;
1391
+ fileSize: number;
1392
+ };
1393
+ }[];
1394
+ }, {
1395
+ id: string;
1396
+ createdAt: Date;
1397
+ updatedAt: Date;
1398
+ deletedAt: Date | null;
1399
+ attribute: {
1400
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1401
+ id: string;
1402
+ position: number;
1403
+ createdAt: Date;
1404
+ updatedAt: Date;
1405
+ deletedAt: Date | null;
1406
+ isDefault: boolean;
1407
+ systemName: string;
1408
+ displayName: string;
1409
+ isArchived: boolean;
1410
+ isRequired: boolean;
1411
+ isUnique: boolean;
1412
+ };
1413
+ textValue: string | null;
1414
+ booleanValue: boolean | null;
1415
+ numberValue: number | null;
1416
+ dateValue: Date | null;
1417
+ uploads: {
1418
+ id: string;
1419
+ createdAt: Date;
1420
+ updatedAt: Date;
1421
+ deletedAt: Date | null;
1422
+ customFieldId: string;
1423
+ upload: {
1424
+ id: string;
1425
+ createdAt: Date;
1426
+ updatedAt: Date;
1427
+ deletedAt: Date | null;
1428
+ fileName: string;
1429
+ fileKey: string;
1430
+ bucketName: string;
1431
+ fileSize: number;
1432
+ };
1433
+ }[];
1434
+ }>, "many">;
1435
+ contactEmails: z.ZodArray<z.ZodObject<{
1436
+ id: z.ZodString;
1437
+ createdAt: z.ZodDate;
1438
+ updatedAt: z.ZodDate;
1439
+ deletedAt: z.ZodNullable<z.ZodDate>;
1440
+ email: z.ZodString;
1441
+ isPrimary: z.ZodBoolean;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ id: string;
1444
+ isPrimary: boolean;
1445
+ email: string;
1446
+ createdAt: Date;
1447
+ updatedAt: Date;
1448
+ deletedAt: Date | null;
1449
+ }, {
1450
+ id: string;
1451
+ isPrimary: boolean;
1452
+ email: string;
1453
+ createdAt: Date;
1454
+ updatedAt: Date;
1455
+ deletedAt: Date | null;
1456
+ }>, "many">;
1457
+ contactPhones: z.ZodArray<z.ZodObject<{
1458
+ id: z.ZodString;
1459
+ createdAt: z.ZodDate;
1460
+ updatedAt: z.ZodDate;
1461
+ deletedAt: z.ZodNullable<z.ZodDate>;
1462
+ phone: z.ZodString;
1463
+ isPrimary: z.ZodBoolean;
1464
+ }, "strip", z.ZodTypeAny, {
1465
+ id: string;
1466
+ isPrimary: boolean;
1467
+ createdAt: Date;
1468
+ updatedAt: Date;
1469
+ deletedAt: Date | null;
1470
+ phone: string;
1471
+ }, {
1472
+ id: string;
1473
+ isPrimary: boolean;
1474
+ createdAt: Date;
1475
+ updatedAt: Date;
1476
+ deletedAt: Date | null;
1477
+ phone: string;
1478
+ }>, "many">;
1479
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1480
+ entityId: z.ZodString;
1481
+ description: z.ZodString;
1482
+ entityType: z.ZodObject<{
1483
+ entity: z.ZodString;
1484
+ /**
1485
+ * Platform Contact
1486
+ */
1487
+ description: z.ZodNullable<z.ZodString>;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ description: string | null;
1490
+ entity: string;
1491
+ }, {
1492
+ description: string | null;
1493
+ entity: string;
1494
+ }>;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ description: string;
1497
+ entityId: string;
1498
+ entityType: {
1499
+ description: string | null;
1500
+ entity: string;
1501
+ };
1502
+ }, {
1503
+ description: string;
1504
+ entityId: string;
1505
+ entityType: {
1506
+ description: string | null;
1507
+ entity: string;
1508
+ };
1509
+ }>, "many">>;
573
1510
  }, "strip", z.ZodTypeAny, {
574
1511
  id: string;
575
1512
  channel: string | null;
@@ -578,11 +1515,91 @@ export declare const RoomSchema: z.ZodObject<{
578
1515
  createdAt: Date;
579
1516
  updatedAt: Date;
580
1517
  deletedAt: Date | null;
1518
+ customFields: {
1519
+ id: string;
1520
+ createdAt: Date;
1521
+ updatedAt: Date;
1522
+ deletedAt: Date | null;
1523
+ attribute: {
1524
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1525
+ id: string;
1526
+ position: number;
1527
+ createdAt: Date;
1528
+ updatedAt: Date;
1529
+ deletedAt: Date | null;
1530
+ isDefault: boolean;
1531
+ systemName: string;
1532
+ displayName: string;
1533
+ isArchived: boolean;
1534
+ isRequired: boolean;
1535
+ isUnique: boolean;
1536
+ };
1537
+ textValue: string | null;
1538
+ booleanValue: boolean | null;
1539
+ numberValue: number | null;
1540
+ dateValue: Date | null;
1541
+ uploads: {
1542
+ id: string;
1543
+ createdAt: Date;
1544
+ updatedAt: Date;
1545
+ deletedAt: Date | null;
1546
+ customFieldId: string;
1547
+ upload: {
1548
+ id: string;
1549
+ createdAt: Date;
1550
+ updatedAt: Date;
1551
+ deletedAt: Date | null;
1552
+ fileName: string;
1553
+ fileKey: string;
1554
+ bucketName: string;
1555
+ fileSize: number;
1556
+ };
1557
+ }[];
1558
+ }[];
581
1559
  notes: string | null;
582
- contactNumber: string | null;
583
- companyId: string | null;
584
1560
  contactProfile: string | null;
585
1561
  socialProfileUrl: string | null;
1562
+ tags: {
1563
+ id: string;
1564
+ name: string;
1565
+ createdAt: Date;
1566
+ updatedAt: Date;
1567
+ deletedAt: Date | null;
1568
+ }[];
1569
+ company: {
1570
+ id: string;
1571
+ createdAt: Date;
1572
+ updatedAt: Date;
1573
+ deletedAt: Date | null;
1574
+ address?: string | undefined;
1575
+ name?: string | undefined;
1576
+ phone?: string | undefined;
1577
+ industry?: string | undefined;
1578
+ } | null;
1579
+ contactEmails: {
1580
+ id: string;
1581
+ isPrimary: boolean;
1582
+ email: string;
1583
+ createdAt: Date;
1584
+ updatedAt: Date;
1585
+ deletedAt: Date | null;
1586
+ }[];
1587
+ contactPhones: {
1588
+ id: string;
1589
+ isPrimary: boolean;
1590
+ createdAt: Date;
1591
+ updatedAt: Date;
1592
+ deletedAt: Date | null;
1593
+ phone: string;
1594
+ }[];
1595
+ activityLogs?: {
1596
+ description: string;
1597
+ entityId: string;
1598
+ entityType: {
1599
+ description: string | null;
1600
+ entity: string;
1601
+ };
1602
+ }[] | undefined;
586
1603
  }, {
587
1604
  id: string;
588
1605
  channel: string | null;
@@ -591,14 +1608,94 @@ export declare const RoomSchema: z.ZodObject<{
591
1608
  createdAt: Date;
592
1609
  updatedAt: Date;
593
1610
  deletedAt: Date | null;
1611
+ customFields: {
1612
+ id: string;
1613
+ createdAt: Date;
1614
+ updatedAt: Date;
1615
+ deletedAt: Date | null;
1616
+ attribute: {
1617
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1618
+ id: string;
1619
+ position: number;
1620
+ createdAt: Date;
1621
+ updatedAt: Date;
1622
+ deletedAt: Date | null;
1623
+ isDefault: boolean;
1624
+ systemName: string;
1625
+ displayName: string;
1626
+ isArchived: boolean;
1627
+ isRequired: boolean;
1628
+ isUnique: boolean;
1629
+ };
1630
+ textValue: string | null;
1631
+ booleanValue: boolean | null;
1632
+ numberValue: number | null;
1633
+ dateValue: Date | null;
1634
+ uploads: {
1635
+ id: string;
1636
+ createdAt: Date;
1637
+ updatedAt: Date;
1638
+ deletedAt: Date | null;
1639
+ customFieldId: string;
1640
+ upload: {
1641
+ id: string;
1642
+ createdAt: Date;
1643
+ updatedAt: Date;
1644
+ deletedAt: Date | null;
1645
+ fileName: string;
1646
+ fileKey: string;
1647
+ bucketName: string;
1648
+ fileSize: number;
1649
+ };
1650
+ }[];
1651
+ }[];
594
1652
  notes: string | null;
595
- contactNumber: string | null;
596
- companyId: string | null;
597
1653
  contactProfile: string | null;
598
1654
  socialProfileUrl: string | null;
1655
+ tags: {
1656
+ id: string;
1657
+ name: string;
1658
+ createdAt: Date;
1659
+ updatedAt: Date;
1660
+ deletedAt: Date | null;
1661
+ }[];
1662
+ company: {
1663
+ id: string;
1664
+ createdAt: Date;
1665
+ updatedAt: Date;
1666
+ deletedAt: Date | null;
1667
+ address?: string | undefined;
1668
+ name?: string | undefined;
1669
+ phone?: string | undefined;
1670
+ industry?: string | undefined;
1671
+ } | null;
1672
+ contactEmails: {
1673
+ id: string;
1674
+ isPrimary: boolean;
1675
+ email: string;
1676
+ createdAt: Date;
1677
+ updatedAt: Date;
1678
+ deletedAt: Date | null;
1679
+ }[];
1680
+ contactPhones: {
1681
+ id: string;
1682
+ isPrimary: boolean;
1683
+ createdAt: Date;
1684
+ updatedAt: Date;
1685
+ deletedAt: Date | null;
1686
+ phone: string;
1687
+ }[];
1688
+ activityLogs?: {
1689
+ description: string;
1690
+ entityId: string;
1691
+ entityType: {
1692
+ description: string | null;
1693
+ entity: string;
1694
+ };
1695
+ }[] | undefined;
599
1696
  }>;
600
1697
  }, "strip", z.ZodTypeAny, {
601
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
1698
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
602
1699
  id: string;
603
1700
  metadata: {
604
1701
  id: string;
@@ -616,16 +1713,96 @@ export declare const RoomSchema: z.ZodObject<{
616
1713
  createdAt: Date;
617
1714
  updatedAt: Date;
618
1715
  deletedAt: Date | null;
1716
+ customFields: {
1717
+ id: string;
1718
+ createdAt: Date;
1719
+ updatedAt: Date;
1720
+ deletedAt: Date | null;
1721
+ attribute: {
1722
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1723
+ id: string;
1724
+ position: number;
1725
+ createdAt: Date;
1726
+ updatedAt: Date;
1727
+ deletedAt: Date | null;
1728
+ isDefault: boolean;
1729
+ systemName: string;
1730
+ displayName: string;
1731
+ isArchived: boolean;
1732
+ isRequired: boolean;
1733
+ isUnique: boolean;
1734
+ };
1735
+ textValue: string | null;
1736
+ booleanValue: boolean | null;
1737
+ numberValue: number | null;
1738
+ dateValue: Date | null;
1739
+ uploads: {
1740
+ id: string;
1741
+ createdAt: Date;
1742
+ updatedAt: Date;
1743
+ deletedAt: Date | null;
1744
+ customFieldId: string;
1745
+ upload: {
1746
+ id: string;
1747
+ createdAt: Date;
1748
+ updatedAt: Date;
1749
+ deletedAt: Date | null;
1750
+ fileName: string;
1751
+ fileKey: string;
1752
+ bucketName: string;
1753
+ fileSize: number;
1754
+ };
1755
+ }[];
1756
+ }[];
619
1757
  notes: string | null;
620
- contactNumber: string | null;
621
- companyId: string | null;
622
1758
  contactProfile: string | null;
623
1759
  socialProfileUrl: string | null;
1760
+ tags: {
1761
+ id: string;
1762
+ name: string;
1763
+ createdAt: Date;
1764
+ updatedAt: Date;
1765
+ deletedAt: Date | null;
1766
+ }[];
1767
+ company: {
1768
+ id: string;
1769
+ createdAt: Date;
1770
+ updatedAt: Date;
1771
+ deletedAt: Date | null;
1772
+ address?: string | undefined;
1773
+ name?: string | undefined;
1774
+ phone?: string | undefined;
1775
+ industry?: string | undefined;
1776
+ } | null;
1777
+ contactEmails: {
1778
+ id: string;
1779
+ isPrimary: boolean;
1780
+ email: string;
1781
+ createdAt: Date;
1782
+ updatedAt: Date;
1783
+ deletedAt: Date | null;
1784
+ }[];
1785
+ contactPhones: {
1786
+ id: string;
1787
+ isPrimary: boolean;
1788
+ createdAt: Date;
1789
+ updatedAt: Date;
1790
+ deletedAt: Date | null;
1791
+ phone: string;
1792
+ }[];
1793
+ activityLogs?: {
1794
+ description: string;
1795
+ entityId: string;
1796
+ entityType: {
1797
+ description: string | null;
1798
+ entity: string;
1799
+ };
1800
+ }[] | undefined;
624
1801
  };
625
1802
  channelId: string;
626
1803
  socialPlatformId: string;
627
1804
  }, {
628
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
1805
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
629
1806
  id: string;
630
1807
  metadata: {
631
1808
  id: string;
@@ -643,11 +1820,91 @@ export declare const RoomSchema: z.ZodObject<{
643
1820
  createdAt: Date;
644
1821
  updatedAt: Date;
645
1822
  deletedAt: Date | null;
1823
+ customFields: {
1824
+ id: string;
1825
+ createdAt: Date;
1826
+ updatedAt: Date;
1827
+ deletedAt: Date | null;
1828
+ attribute: {
1829
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1830
+ id: string;
1831
+ position: number;
1832
+ createdAt: Date;
1833
+ updatedAt: Date;
1834
+ deletedAt: Date | null;
1835
+ isDefault: boolean;
1836
+ systemName: string;
1837
+ displayName: string;
1838
+ isArchived: boolean;
1839
+ isRequired: boolean;
1840
+ isUnique: boolean;
1841
+ };
1842
+ textValue: string | null;
1843
+ booleanValue: boolean | null;
1844
+ numberValue: number | null;
1845
+ dateValue: Date | null;
1846
+ uploads: {
1847
+ id: string;
1848
+ createdAt: Date;
1849
+ updatedAt: Date;
1850
+ deletedAt: Date | null;
1851
+ customFieldId: string;
1852
+ upload: {
1853
+ id: string;
1854
+ createdAt: Date;
1855
+ updatedAt: Date;
1856
+ deletedAt: Date | null;
1857
+ fileName: string;
1858
+ fileKey: string;
1859
+ bucketName: string;
1860
+ fileSize: number;
1861
+ };
1862
+ }[];
1863
+ }[];
646
1864
  notes: string | null;
647
- contactNumber: string | null;
648
- companyId: string | null;
649
1865
  contactProfile: string | null;
650
1866
  socialProfileUrl: string | null;
1867
+ tags: {
1868
+ id: string;
1869
+ name: string;
1870
+ createdAt: Date;
1871
+ updatedAt: Date;
1872
+ deletedAt: Date | null;
1873
+ }[];
1874
+ company: {
1875
+ id: string;
1876
+ createdAt: Date;
1877
+ updatedAt: Date;
1878
+ deletedAt: Date | null;
1879
+ address?: string | undefined;
1880
+ name?: string | undefined;
1881
+ phone?: string | undefined;
1882
+ industry?: string | undefined;
1883
+ } | null;
1884
+ contactEmails: {
1885
+ id: string;
1886
+ isPrimary: boolean;
1887
+ email: string;
1888
+ createdAt: Date;
1889
+ updatedAt: Date;
1890
+ deletedAt: Date | null;
1891
+ }[];
1892
+ contactPhones: {
1893
+ id: string;
1894
+ isPrimary: boolean;
1895
+ createdAt: Date;
1896
+ updatedAt: Date;
1897
+ deletedAt: Date | null;
1898
+ phone: string;
1899
+ }[];
1900
+ activityLogs?: {
1901
+ description: string;
1902
+ entityId: string;
1903
+ entityType: {
1904
+ description: string | null;
1905
+ entity: string;
1906
+ };
1907
+ }[] | undefined;
651
1908
  };
652
1909
  channelId: string;
653
1910
  socialPlatformId: string;
@@ -659,6 +1916,8 @@ export declare const RoomSchema: z.ZodObject<{
659
1916
  deletedAt: z.ZodNullable<z.ZodDate>;
660
1917
  name: z.ZodString;
661
1918
  email: z.ZodString;
1919
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1920
+ password: z.ZodString;
662
1921
  address: z.ZodNullable<z.ZodString>;
663
1922
  phone: z.ZodNullable<z.ZodString>;
664
1923
  notificationCount: z.ZodNullable<z.ZodNumber>;
@@ -730,7 +1989,7 @@ export declare const RoomSchema: z.ZodObject<{
730
1989
  displayName: string;
731
1990
  }[];
732
1991
  }>, "many">;
733
- extension: z.ZodObject<{
1992
+ extension: z.ZodOptional<z.ZodObject<{
734
1993
  id: z.ZodString;
735
1994
  createdAt: z.ZodDate;
736
1995
  updatedAt: z.ZodDate;
@@ -738,8 +1997,8 @@ export declare const RoomSchema: z.ZodObject<{
738
1997
  userId: z.ZodNullable<z.ZodString>;
739
1998
  sipServerUrl: z.ZodString;
740
1999
  sipUserName: z.ZodString;
741
- extensionId: z.ZodNullable<z.ZodNumber>;
742
- extensionName: z.ZodNullable<z.ZodString>;
2000
+ extensionId: z.ZodNumber;
2001
+ extensionName: z.ZodString;
743
2002
  telephonySignature: z.ZodNullable<z.ZodString>;
744
2003
  }, "strip", z.ZodTypeAny, {
745
2004
  id: string;
@@ -749,8 +2008,8 @@ export declare const RoomSchema: z.ZodObject<{
749
2008
  userId: string | null;
750
2009
  sipServerUrl: string;
751
2010
  sipUserName: string;
752
- extensionId: number | null;
753
- extensionName: string | null;
2011
+ extensionId: number;
2012
+ extensionName: string;
754
2013
  telephonySignature: string | null;
755
2014
  }, {
756
2015
  id: string;
@@ -760,10 +2019,10 @@ export declare const RoomSchema: z.ZodObject<{
760
2019
  userId: string | null;
761
2020
  sipServerUrl: string;
762
2021
  sipUserName: string;
763
- extensionId: number | null;
764
- extensionName: string | null;
2022
+ extensionId: number;
2023
+ extensionName: string;
765
2024
  telephonySignature: string | null;
766
- }>;
2025
+ }>>;
767
2026
  }, "strip", z.ZodTypeAny, {
768
2027
  id: string;
769
2028
  address: string | null;
@@ -772,6 +2031,8 @@ export declare const RoomSchema: z.ZodObject<{
772
2031
  createdAt: Date;
773
2032
  updatedAt: Date;
774
2033
  deletedAt: Date | null;
2034
+ emailVerifiedAt: Date | null;
2035
+ password: string;
775
2036
  phone: string | null;
776
2037
  notificationCount: number | null;
777
2038
  roles: {
@@ -792,7 +2053,7 @@ export declare const RoomSchema: z.ZodObject<{
792
2053
  displayName: string;
793
2054
  }[];
794
2055
  }[];
795
- extension: {
2056
+ extension?: {
796
2057
  id: string;
797
2058
  createdAt: Date;
798
2059
  updatedAt: Date;
@@ -800,10 +2061,10 @@ export declare const RoomSchema: z.ZodObject<{
800
2061
  userId: string | null;
801
2062
  sipServerUrl: string;
802
2063
  sipUserName: string;
803
- extensionId: number | null;
804
- extensionName: string | null;
2064
+ extensionId: number;
2065
+ extensionName: string;
805
2066
  telephonySignature: string | null;
806
- };
2067
+ } | undefined;
807
2068
  }, {
808
2069
  id: string;
809
2070
  address: string | null;
@@ -812,6 +2073,8 @@ export declare const RoomSchema: z.ZodObject<{
812
2073
  createdAt: Date;
813
2074
  updatedAt: Date;
814
2075
  deletedAt: Date | null;
2076
+ emailVerifiedAt: Date | null;
2077
+ password: string;
815
2078
  phone: string | null;
816
2079
  notificationCount: number | null;
817
2080
  roles: {
@@ -832,7 +2095,7 @@ export declare const RoomSchema: z.ZodObject<{
832
2095
  displayName: string;
833
2096
  }[];
834
2097
  }[];
835
- extension: {
2098
+ extension?: {
836
2099
  id: string;
837
2100
  createdAt: Date;
838
2101
  updatedAt: Date;
@@ -840,10 +2103,10 @@ export declare const RoomSchema: z.ZodObject<{
840
2103
  userId: string | null;
841
2104
  sipServerUrl: string;
842
2105
  sipUserName: string;
843
- extensionId: number | null;
844
- extensionName: string | null;
2106
+ extensionId: number;
2107
+ extensionName: string;
845
2108
  telephonySignature: string | null;
846
- };
2109
+ } | undefined;
847
2110
  }>;
848
2111
  assignee: z.ZodObject<{
849
2112
  id: z.ZodString;
@@ -852,6 +2115,8 @@ export declare const RoomSchema: z.ZodObject<{
852
2115
  deletedAt: z.ZodNullable<z.ZodDate>;
853
2116
  name: z.ZodString;
854
2117
  email: z.ZodString;
2118
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2119
+ password: z.ZodString;
855
2120
  address: z.ZodNullable<z.ZodString>;
856
2121
  phone: z.ZodNullable<z.ZodString>;
857
2122
  notificationCount: z.ZodNullable<z.ZodNumber>;
@@ -923,7 +2188,7 @@ export declare const RoomSchema: z.ZodObject<{
923
2188
  displayName: string;
924
2189
  }[];
925
2190
  }>, "many">;
926
- extension: z.ZodObject<{
2191
+ extension: z.ZodOptional<z.ZodObject<{
927
2192
  id: z.ZodString;
928
2193
  createdAt: z.ZodDate;
929
2194
  updatedAt: z.ZodDate;
@@ -931,8 +2196,8 @@ export declare const RoomSchema: z.ZodObject<{
931
2196
  userId: z.ZodNullable<z.ZodString>;
932
2197
  sipServerUrl: z.ZodString;
933
2198
  sipUserName: z.ZodString;
934
- extensionId: z.ZodNullable<z.ZodNumber>;
935
- extensionName: z.ZodNullable<z.ZodString>;
2199
+ extensionId: z.ZodNumber;
2200
+ extensionName: z.ZodString;
936
2201
  telephonySignature: z.ZodNullable<z.ZodString>;
937
2202
  }, "strip", z.ZodTypeAny, {
938
2203
  id: string;
@@ -942,8 +2207,8 @@ export declare const RoomSchema: z.ZodObject<{
942
2207
  userId: string | null;
943
2208
  sipServerUrl: string;
944
2209
  sipUserName: string;
945
- extensionId: number | null;
946
- extensionName: string | null;
2210
+ extensionId: number;
2211
+ extensionName: string;
947
2212
  telephonySignature: string | null;
948
2213
  }, {
949
2214
  id: string;
@@ -953,10 +2218,10 @@ export declare const RoomSchema: z.ZodObject<{
953
2218
  userId: string | null;
954
2219
  sipServerUrl: string;
955
2220
  sipUserName: string;
956
- extensionId: number | null;
957
- extensionName: string | null;
2221
+ extensionId: number;
2222
+ extensionName: string;
958
2223
  telephonySignature: string | null;
959
- }>;
2224
+ }>>;
960
2225
  }, "strip", z.ZodTypeAny, {
961
2226
  id: string;
962
2227
  address: string | null;
@@ -965,6 +2230,8 @@ export declare const RoomSchema: z.ZodObject<{
965
2230
  createdAt: Date;
966
2231
  updatedAt: Date;
967
2232
  deletedAt: Date | null;
2233
+ emailVerifiedAt: Date | null;
2234
+ password: string;
968
2235
  phone: string | null;
969
2236
  notificationCount: number | null;
970
2237
  roles: {
@@ -985,7 +2252,7 @@ export declare const RoomSchema: z.ZodObject<{
985
2252
  displayName: string;
986
2253
  }[];
987
2254
  }[];
988
- extension: {
2255
+ extension?: {
989
2256
  id: string;
990
2257
  createdAt: Date;
991
2258
  updatedAt: Date;
@@ -993,10 +2260,10 @@ export declare const RoomSchema: z.ZodObject<{
993
2260
  userId: string | null;
994
2261
  sipServerUrl: string;
995
2262
  sipUserName: string;
996
- extensionId: number | null;
997
- extensionName: string | null;
2263
+ extensionId: number;
2264
+ extensionName: string;
998
2265
  telephonySignature: string | null;
999
- };
2266
+ } | undefined;
1000
2267
  }, {
1001
2268
  id: string;
1002
2269
  address: string | null;
@@ -1005,6 +2272,8 @@ export declare const RoomSchema: z.ZodObject<{
1005
2272
  createdAt: Date;
1006
2273
  updatedAt: Date;
1007
2274
  deletedAt: Date | null;
2275
+ emailVerifiedAt: Date | null;
2276
+ password: string;
1008
2277
  phone: string | null;
1009
2278
  notificationCount: number | null;
1010
2279
  roles: {
@@ -1025,7 +2294,7 @@ export declare const RoomSchema: z.ZodObject<{
1025
2294
  displayName: string;
1026
2295
  }[];
1027
2296
  }[];
1028
- extension: {
2297
+ extension?: {
1029
2298
  id: string;
1030
2299
  createdAt: Date;
1031
2300
  updatedAt: Date;
@@ -1033,23 +2302,23 @@ export declare const RoomSchema: z.ZodObject<{
1033
2302
  userId: string | null;
1034
2303
  sipServerUrl: string;
1035
2304
  sipUserName: string;
1036
- extensionId: number | null;
1037
- extensionName: string | null;
2305
+ extensionId: number;
2306
+ extensionName: string;
1038
2307
  telephonySignature: string | null;
1039
- };
2308
+ } | undefined;
1040
2309
  }>;
1041
- channel: z.ZodOptional<z.ZodObject<{
1042
- id: z.ZodOptional<z.ZodString>;
1043
- createdAt: z.ZodOptional<z.ZodDate>;
1044
- updatedAt: z.ZodOptional<z.ZodDate>;
1045
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1046
- name: z.ZodOptional<z.ZodString>;
1047
- type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"messenger">, z.ZodLiteral<"line">, z.ZodLiteral<"viber">, z.ZodLiteral<"lazada">, z.ZodLiteral<"shopee">, z.ZodLiteral<"whatsapp">, z.ZodLiteral<"telegram">, z.ZodLiteral<"kakao">]>>;
1048
- metadata: z.ZodOptional<z.ZodObject<{
2310
+ channel: z.ZodObject<{
2311
+ id: z.ZodString;
2312
+ createdAt: z.ZodDate;
2313
+ updatedAt: z.ZodDate;
2314
+ deletedAt: z.ZodNullable<z.ZodDate>;
2315
+ name: z.ZodString;
2316
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada"]>;
2317
+ metadata: z.ZodObject<{
1049
2318
  id: z.ZodString;
1050
2319
  name: z.ZodString;
1051
2320
  accessToken: z.ZodString;
1052
- additionalCredentials: z.ZodAny;
2321
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
1053
2322
  }, "strip", z.ZodTypeAny, {
1054
2323
  id: string;
1055
2324
  name: string;
@@ -1060,327 +2329,55 @@ export declare const RoomSchema: z.ZodObject<{
1060
2329
  name: string;
1061
2330
  accessToken: string;
1062
2331
  additionalCredentials?: any;
1063
- }>>;
1064
- brandName: z.ZodOptional<z.ZodString>;
1065
- platformId: z.ZodOptional<z.ZodString>;
1066
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<0>]>>;
1067
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
1068
- connectedUserName: z.ZodOptional<z.ZodString>;
1069
- connectedUserId: z.ZodOptional<z.ZodString>;
1070
- actor: z.ZodOptional<z.ZodObject<{
1071
- id: z.ZodString;
1072
- createdAt: z.ZodDate;
1073
- updatedAt: z.ZodDate;
1074
- deletedAt: z.ZodNullable<z.ZodDate>;
1075
- name: z.ZodString;
1076
- email: z.ZodString;
1077
- address: z.ZodNullable<z.ZodString>;
1078
- phone: z.ZodNullable<z.ZodString>;
1079
- notificationCount: z.ZodNullable<z.ZodNumber>;
1080
- roles: z.ZodArray<z.ZodObject<{
1081
- id: z.ZodString;
1082
- createdAt: z.ZodDate;
1083
- updatedAt: z.ZodDate;
1084
- deletedAt: z.ZodNullable<z.ZodDate>;
1085
- systemName: z.ZodString;
1086
- displayName: z.ZodString;
1087
- description: z.ZodNullable<z.ZodString>;
1088
- permissions: z.ZodArray<z.ZodObject<{
1089
- id: z.ZodString;
1090
- createdAt: z.ZodDate;
1091
- updatedAt: z.ZodDate;
1092
- deletedAt: z.ZodNullable<z.ZodDate>;
1093
- systemName: z.ZodString;
1094
- displayName: z.ZodString;
1095
- description: z.ZodNullable<z.ZodString>;
1096
- }, "strip", z.ZodTypeAny, {
1097
- id: string;
1098
- description: string | null;
1099
- createdAt: Date;
1100
- updatedAt: Date;
1101
- deletedAt: Date | null;
1102
- systemName: string;
1103
- displayName: string;
1104
- }, {
1105
- id: string;
1106
- description: string | null;
1107
- createdAt: Date;
1108
- updatedAt: Date;
1109
- deletedAt: Date | null;
1110
- systemName: string;
1111
- displayName: string;
1112
- }>, "many">;
1113
- }, "strip", z.ZodTypeAny, {
1114
- id: string;
1115
- description: string | null;
1116
- createdAt: Date;
1117
- updatedAt: Date;
1118
- deletedAt: Date | null;
1119
- systemName: string;
1120
- displayName: string;
1121
- permissions: {
1122
- id: string;
1123
- description: string | null;
1124
- createdAt: Date;
1125
- updatedAt: Date;
1126
- deletedAt: Date | null;
1127
- systemName: string;
1128
- displayName: string;
1129
- }[];
1130
- }, {
1131
- id: string;
1132
- description: string | null;
1133
- createdAt: Date;
1134
- updatedAt: Date;
1135
- deletedAt: Date | null;
1136
- systemName: string;
1137
- displayName: string;
1138
- permissions: {
1139
- id: string;
1140
- description: string | null;
1141
- createdAt: Date;
1142
- updatedAt: Date;
1143
- deletedAt: Date | null;
1144
- systemName: string;
1145
- displayName: string;
1146
- }[];
1147
- }>, "many">;
1148
- extension: z.ZodObject<{
1149
- id: z.ZodString;
1150
- createdAt: z.ZodDate;
1151
- updatedAt: z.ZodDate;
1152
- deletedAt: z.ZodNullable<z.ZodDate>;
1153
- userId: z.ZodNullable<z.ZodString>;
1154
- sipServerUrl: z.ZodString;
1155
- sipUserName: z.ZodString;
1156
- extensionId: z.ZodNullable<z.ZodNumber>;
1157
- extensionName: z.ZodNullable<z.ZodString>;
1158
- telephonySignature: z.ZodNullable<z.ZodString>;
1159
- }, "strip", z.ZodTypeAny, {
1160
- id: string;
1161
- createdAt: Date;
1162
- updatedAt: Date;
1163
- deletedAt: Date | null;
1164
- userId: string | null;
1165
- sipServerUrl: string;
1166
- sipUserName: string;
1167
- extensionId: number | null;
1168
- extensionName: string | null;
1169
- telephonySignature: string | null;
1170
- }, {
1171
- id: string;
1172
- createdAt: Date;
1173
- updatedAt: Date;
1174
- deletedAt: Date | null;
1175
- userId: string | null;
1176
- sipServerUrl: string;
1177
- sipUserName: string;
1178
- extensionId: number | null;
1179
- extensionName: string | null;
1180
- telephonySignature: string | null;
1181
- }>;
1182
- }, "strip", z.ZodTypeAny, {
1183
- id: string;
1184
- address: string | null;
1185
- name: string;
1186
- email: string;
1187
- createdAt: Date;
1188
- updatedAt: Date;
1189
- deletedAt: Date | null;
1190
- phone: string | null;
1191
- notificationCount: number | null;
1192
- roles: {
1193
- id: string;
1194
- description: string | null;
1195
- createdAt: Date;
1196
- updatedAt: Date;
1197
- deletedAt: Date | null;
1198
- systemName: string;
1199
- displayName: string;
1200
- permissions: {
1201
- id: string;
1202
- description: string | null;
1203
- createdAt: Date;
1204
- updatedAt: Date;
1205
- deletedAt: Date | null;
1206
- systemName: string;
1207
- displayName: string;
1208
- }[];
1209
- }[];
1210
- extension: {
1211
- id: string;
1212
- createdAt: Date;
1213
- updatedAt: Date;
1214
- deletedAt: Date | null;
1215
- userId: string | null;
1216
- sipServerUrl: string;
1217
- sipUserName: string;
1218
- extensionId: number | null;
1219
- extensionName: string | null;
1220
- telephonySignature: string | null;
1221
- };
1222
- }, {
1223
- id: string;
1224
- address: string | null;
1225
- name: string;
1226
- email: string;
1227
- createdAt: Date;
1228
- updatedAt: Date;
1229
- deletedAt: Date | null;
1230
- phone: string | null;
1231
- notificationCount: number | null;
1232
- roles: {
1233
- id: string;
1234
- description: string | null;
1235
- createdAt: Date;
1236
- updatedAt: Date;
1237
- deletedAt: Date | null;
1238
- systemName: string;
1239
- displayName: string;
1240
- permissions: {
1241
- id: string;
1242
- description: string | null;
1243
- createdAt: Date;
1244
- updatedAt: Date;
1245
- deletedAt: Date | null;
1246
- systemName: string;
1247
- displayName: string;
1248
- }[];
1249
- }[];
1250
- extension: {
1251
- id: string;
1252
- createdAt: Date;
1253
- updatedAt: Date;
1254
- deletedAt: Date | null;
1255
- userId: string | null;
1256
- sipServerUrl: string;
1257
- sipUserName: string;
1258
- extensionId: number | null;
1259
- extensionName: string | null;
1260
- telephonySignature: string | null;
1261
- };
1262
- }>>;
2332
+ }>;
2333
+ brandName: z.ZodString;
2334
+ platformId: z.ZodString;
2335
+ status: z.ZodLazy<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<0>]>>;
2336
+ isReloginRequired: z.ZodBoolean;
2337
+ connectedUserName: z.ZodString;
2338
+ connectedUserId: z.ZodString;
2339
+ actor: z.ZodAny;
1263
2340
  }, "strip", z.ZodTypeAny, {
1264
- id?: string | undefined;
1265
- createdAt?: Date | undefined;
1266
- updatedAt?: Date | undefined;
1267
- deletedAt?: Date | null | undefined;
1268
- name?: string | undefined;
1269
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
1270
- metadata?: {
1271
- id: string;
1272
- name: string;
1273
- accessToken: string;
1274
- additionalCredentials?: any;
1275
- } | undefined;
1276
- brandName?: string | undefined;
1277
- platformId?: string | undefined;
1278
- status?: 0 | 1 | undefined;
1279
- isReloginRequired?: boolean | undefined;
1280
- connectedUserName?: string | undefined;
1281
- connectedUserId?: string | undefined;
1282
- actor?: {
1283
- id: string;
1284
- address: string | null;
1285
- name: string;
1286
- email: string;
1287
- createdAt: Date;
1288
- updatedAt: Date;
1289
- deletedAt: Date | null;
1290
- phone: string | null;
1291
- notificationCount: number | null;
1292
- roles: {
1293
- id: string;
1294
- description: string | null;
1295
- createdAt: Date;
1296
- updatedAt: Date;
1297
- deletedAt: Date | null;
1298
- systemName: string;
1299
- displayName: string;
1300
- permissions: {
1301
- id: string;
1302
- description: string | null;
1303
- createdAt: Date;
1304
- updatedAt: Date;
1305
- deletedAt: Date | null;
1306
- systemName: string;
1307
- displayName: string;
1308
- }[];
1309
- }[];
1310
- extension: {
1311
- id: string;
1312
- createdAt: Date;
1313
- updatedAt: Date;
1314
- deletedAt: Date | null;
1315
- userId: string | null;
1316
- sipServerUrl: string;
1317
- sipUserName: string;
1318
- extensionId: number | null;
1319
- extensionName: string | null;
1320
- telephonySignature: string | null;
1321
- };
1322
- } | undefined;
1323
- }, {
1324
- id?: string | undefined;
1325
- createdAt?: Date | undefined;
1326
- updatedAt?: Date | undefined;
1327
- deletedAt?: Date | null | undefined;
1328
- name?: string | undefined;
1329
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
1330
- metadata?: {
1331
- id: string;
1332
- name: string;
1333
- accessToken: string;
1334
- additionalCredentials?: any;
1335
- } | undefined;
1336
- brandName?: string | undefined;
1337
- platformId?: string | undefined;
1338
- status?: 0 | 1 | undefined;
1339
- isReloginRequired?: boolean | undefined;
1340
- connectedUserName?: string | undefined;
1341
- connectedUserId?: string | undefined;
1342
- actor?: {
1343
- id: string;
1344
- address: string | null;
1345
- name: string;
1346
- email: string;
1347
- createdAt: Date;
1348
- updatedAt: Date;
1349
- deletedAt: Date | null;
1350
- phone: string | null;
1351
- notificationCount: number | null;
1352
- roles: {
1353
- id: string;
1354
- description: string | null;
1355
- createdAt: Date;
1356
- updatedAt: Date;
1357
- deletedAt: Date | null;
1358
- systemName: string;
1359
- displayName: string;
1360
- permissions: {
1361
- id: string;
1362
- description: string | null;
1363
- createdAt: Date;
1364
- updatedAt: Date;
1365
- deletedAt: Date | null;
1366
- systemName: string;
1367
- displayName: string;
1368
- }[];
1369
- }[];
1370
- extension: {
1371
- id: string;
1372
- createdAt: Date;
1373
- updatedAt: Date;
1374
- deletedAt: Date | null;
1375
- userId: string | null;
1376
- sipServerUrl: string;
1377
- sipUserName: string;
1378
- extensionId: number | null;
1379
- extensionName: string | null;
1380
- telephonySignature: string | null;
1381
- };
1382
- } | undefined;
1383
- }>>;
2341
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2342
+ id: string;
2343
+ name: string;
2344
+ metadata: {
2345
+ id: string;
2346
+ name: string;
2347
+ accessToken: string;
2348
+ additionalCredentials?: any;
2349
+ };
2350
+ status: 0 | 1;
2351
+ createdAt: Date;
2352
+ updatedAt: Date;
2353
+ deletedAt: Date | null;
2354
+ brandName: string;
2355
+ platformId: string;
2356
+ isReloginRequired: boolean;
2357
+ connectedUserName: string;
2358
+ connectedUserId: string;
2359
+ actor?: any;
2360
+ }, {
2361
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2362
+ id: string;
2363
+ name: string;
2364
+ metadata: {
2365
+ id: string;
2366
+ name: string;
2367
+ accessToken: string;
2368
+ additionalCredentials?: any;
2369
+ };
2370
+ status: 0 | 1;
2371
+ createdAt: Date;
2372
+ updatedAt: Date;
2373
+ deletedAt: Date | null;
2374
+ brandName: string;
2375
+ platformId: string;
2376
+ isReloginRequired: boolean;
2377
+ connectedUserName: string;
2378
+ connectedUserId: string;
2379
+ actor?: any;
2380
+ }>;
1384
2381
  tags: z.ZodArray<z.ZodObject<{
1385
2382
  id: z.ZodString;
1386
2383
  createdAt: z.ZodDate;
@@ -1402,11 +2399,31 @@ export declare const RoomSchema: z.ZodObject<{
1402
2399
  }>, "many">;
1403
2400
  }, "strip", z.ZodTypeAny, {
1404
2401
  id: string;
2402
+ channel: {
2403
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2404
+ id: string;
2405
+ name: string;
2406
+ metadata: {
2407
+ id: string;
2408
+ name: string;
2409
+ accessToken: string;
2410
+ additionalCredentials?: any;
2411
+ };
2412
+ status: 0 | 1;
2413
+ createdAt: Date;
2414
+ updatedAt: Date;
2415
+ deletedAt: Date | null;
2416
+ brandName: string;
2417
+ platformId: string;
2418
+ isReloginRequired: boolean;
2419
+ connectedUserName: string;
2420
+ connectedUserId: string;
2421
+ actor?: any;
2422
+ };
1405
2423
  direction: "incoming" | "outgoing" | "system";
1406
2424
  createdAt: Date;
1407
2425
  updatedAt: Date;
1408
2426
  deletedAt: Date | null;
1409
- notes: string;
1410
2427
  actor: {
1411
2428
  id: string;
1412
2429
  address: string | null;
@@ -1415,6 +2432,8 @@ export declare const RoomSchema: z.ZodObject<{
1415
2432
  createdAt: Date;
1416
2433
  updatedAt: Date;
1417
2434
  deletedAt: Date | null;
2435
+ emailVerifiedAt: Date | null;
2436
+ password: string;
1418
2437
  phone: string | null;
1419
2438
  notificationCount: number | null;
1420
2439
  roles: {
@@ -1435,7 +2454,7 @@ export declare const RoomSchema: z.ZodObject<{
1435
2454
  displayName: string;
1436
2455
  }[];
1437
2456
  }[];
1438
- extension: {
2457
+ extension?: {
1439
2458
  id: string;
1440
2459
  createdAt: Date;
1441
2460
  updatedAt: Date;
@@ -1443,11 +2462,19 @@ export declare const RoomSchema: z.ZodObject<{
1443
2462
  userId: string | null;
1444
2463
  sipServerUrl: string;
1445
2464
  sipUserName: string;
1446
- extensionId: number | null;
1447
- extensionName: string | null;
2465
+ extensionId: number;
2466
+ extensionName: string;
1448
2467
  telephonySignature: string | null;
1449
- };
2468
+ } | undefined;
1450
2469
  };
2470
+ notes: string;
2471
+ tags: {
2472
+ id: string;
2473
+ name: string;
2474
+ createdAt: Date;
2475
+ updatedAt: Date;
2476
+ deletedAt: Date | null;
2477
+ }[];
1451
2478
  lastMessage: string;
1452
2479
  handleTime: number;
1453
2480
  isSolved: boolean;
@@ -1456,7 +2483,7 @@ export declare const RoomSchema: z.ZodObject<{
1456
2483
  firstResponseTime: Date;
1457
2484
  isLatest: boolean;
1458
2485
  platformContact: {
1459
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
2486
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1460
2487
  id: string;
1461
2488
  metadata: {
1462
2489
  id: string;
@@ -1474,11 +2501,91 @@ export declare const RoomSchema: z.ZodObject<{
1474
2501
  createdAt: Date;
1475
2502
  updatedAt: Date;
1476
2503
  deletedAt: Date | null;
2504
+ customFields: {
2505
+ id: string;
2506
+ createdAt: Date;
2507
+ updatedAt: Date;
2508
+ deletedAt: Date | null;
2509
+ attribute: {
2510
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2511
+ id: string;
2512
+ position: number;
2513
+ createdAt: Date;
2514
+ updatedAt: Date;
2515
+ deletedAt: Date | null;
2516
+ isDefault: boolean;
2517
+ systemName: string;
2518
+ displayName: string;
2519
+ isArchived: boolean;
2520
+ isRequired: boolean;
2521
+ isUnique: boolean;
2522
+ };
2523
+ textValue: string | null;
2524
+ booleanValue: boolean | null;
2525
+ numberValue: number | null;
2526
+ dateValue: Date | null;
2527
+ uploads: {
2528
+ id: string;
2529
+ createdAt: Date;
2530
+ updatedAt: Date;
2531
+ deletedAt: Date | null;
2532
+ customFieldId: string;
2533
+ upload: {
2534
+ id: string;
2535
+ createdAt: Date;
2536
+ updatedAt: Date;
2537
+ deletedAt: Date | null;
2538
+ fileName: string;
2539
+ fileKey: string;
2540
+ bucketName: string;
2541
+ fileSize: number;
2542
+ };
2543
+ }[];
2544
+ }[];
1477
2545
  notes: string | null;
1478
- contactNumber: string | null;
1479
- companyId: string | null;
1480
2546
  contactProfile: string | null;
1481
2547
  socialProfileUrl: string | null;
2548
+ tags: {
2549
+ id: string;
2550
+ name: string;
2551
+ createdAt: Date;
2552
+ updatedAt: Date;
2553
+ deletedAt: Date | null;
2554
+ }[];
2555
+ company: {
2556
+ id: string;
2557
+ createdAt: Date;
2558
+ updatedAt: Date;
2559
+ deletedAt: Date | null;
2560
+ address?: string | undefined;
2561
+ name?: string | undefined;
2562
+ phone?: string | undefined;
2563
+ industry?: string | undefined;
2564
+ } | null;
2565
+ contactEmails: {
2566
+ id: string;
2567
+ isPrimary: boolean;
2568
+ email: string;
2569
+ createdAt: Date;
2570
+ updatedAt: Date;
2571
+ deletedAt: Date | null;
2572
+ }[];
2573
+ contactPhones: {
2574
+ id: string;
2575
+ isPrimary: boolean;
2576
+ createdAt: Date;
2577
+ updatedAt: Date;
2578
+ deletedAt: Date | null;
2579
+ phone: string;
2580
+ }[];
2581
+ activityLogs?: {
2582
+ description: string;
2583
+ entityId: string;
2584
+ entityType: {
2585
+ description: string | null;
2586
+ entity: string;
2587
+ };
2588
+ }[] | undefined;
1482
2589
  };
1483
2590
  channelId: string;
1484
2591
  socialPlatformId: string;
@@ -1491,6 +2598,8 @@ export declare const RoomSchema: z.ZodObject<{
1491
2598
  createdAt: Date;
1492
2599
  updatedAt: Date;
1493
2600
  deletedAt: Date | null;
2601
+ emailVerifiedAt: Date | null;
2602
+ password: string;
1494
2603
  phone: string | null;
1495
2604
  notificationCount: number | null;
1496
2605
  roles: {
@@ -1511,7 +2620,7 @@ export declare const RoomSchema: z.ZodObject<{
1511
2620
  displayName: string;
1512
2621
  }[];
1513
2622
  }[];
1514
- extension: {
2623
+ extension?: {
1515
2624
  id: string;
1516
2625
  createdAt: Date;
1517
2626
  updatedAt: Date;
@@ -1519,86 +2628,38 @@ export declare const RoomSchema: z.ZodObject<{
1519
2628
  userId: string | null;
1520
2629
  sipServerUrl: string;
1521
2630
  sipUserName: string;
1522
- extensionId: number | null;
1523
- extensionName: string | null;
2631
+ extensionId: number;
2632
+ extensionName: string;
1524
2633
  telephonySignature: string | null;
1525
- };
2634
+ } | undefined;
1526
2635
  };
1527
- tags: {
2636
+ }, {
2637
+ id: string;
2638
+ channel: {
2639
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1528
2640
  id: string;
1529
2641
  name: string;
1530
- createdAt: Date;
1531
- updatedAt: Date;
1532
- deletedAt: Date | null;
1533
- }[];
1534
- channel?: {
1535
- id?: string | undefined;
1536
- createdAt?: Date | undefined;
1537
- updatedAt?: Date | undefined;
1538
- deletedAt?: Date | null | undefined;
1539
- name?: string | undefined;
1540
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
1541
- metadata?: {
2642
+ metadata: {
1542
2643
  id: string;
1543
2644
  name: string;
1544
2645
  accessToken: string;
1545
2646
  additionalCredentials?: any;
1546
- } | undefined;
1547
- brandName?: string | undefined;
1548
- platformId?: string | undefined;
1549
- status?: 0 | 1 | undefined;
1550
- isReloginRequired?: boolean | undefined;
1551
- connectedUserName?: string | undefined;
1552
- connectedUserId?: string | undefined;
1553
- actor?: {
1554
- id: string;
1555
- address: string | null;
1556
- name: string;
1557
- email: string;
1558
- createdAt: Date;
1559
- updatedAt: Date;
1560
- deletedAt: Date | null;
1561
- phone: string | null;
1562
- notificationCount: number | null;
1563
- roles: {
1564
- id: string;
1565
- description: string | null;
1566
- createdAt: Date;
1567
- updatedAt: Date;
1568
- deletedAt: Date | null;
1569
- systemName: string;
1570
- displayName: string;
1571
- permissions: {
1572
- id: string;
1573
- description: string | null;
1574
- createdAt: Date;
1575
- updatedAt: Date;
1576
- deletedAt: Date | null;
1577
- systemName: string;
1578
- displayName: string;
1579
- }[];
1580
- }[];
1581
- extension: {
1582
- id: string;
1583
- createdAt: Date;
1584
- updatedAt: Date;
1585
- deletedAt: Date | null;
1586
- userId: string | null;
1587
- sipServerUrl: string;
1588
- sipUserName: string;
1589
- extensionId: number | null;
1590
- extensionName: string | null;
1591
- telephonySignature: string | null;
1592
- };
1593
- } | undefined;
1594
- } | undefined;
1595
- }, {
1596
- id: string;
2647
+ };
2648
+ status: 0 | 1;
2649
+ createdAt: Date;
2650
+ updatedAt: Date;
2651
+ deletedAt: Date | null;
2652
+ brandName: string;
2653
+ platformId: string;
2654
+ isReloginRequired: boolean;
2655
+ connectedUserName: string;
2656
+ connectedUserId: string;
2657
+ actor?: any;
2658
+ };
1597
2659
  direction: "incoming" | "outgoing" | "system";
1598
2660
  createdAt: Date;
1599
2661
  updatedAt: Date;
1600
2662
  deletedAt: Date | null;
1601
- notes: string;
1602
2663
  actor: {
1603
2664
  id: string;
1604
2665
  address: string | null;
@@ -1607,6 +2668,8 @@ export declare const RoomSchema: z.ZodObject<{
1607
2668
  createdAt: Date;
1608
2669
  updatedAt: Date;
1609
2670
  deletedAt: Date | null;
2671
+ emailVerifiedAt: Date | null;
2672
+ password: string;
1610
2673
  phone: string | null;
1611
2674
  notificationCount: number | null;
1612
2675
  roles: {
@@ -1627,7 +2690,7 @@ export declare const RoomSchema: z.ZodObject<{
1627
2690
  displayName: string;
1628
2691
  }[];
1629
2692
  }[];
1630
- extension: {
2693
+ extension?: {
1631
2694
  id: string;
1632
2695
  createdAt: Date;
1633
2696
  updatedAt: Date;
@@ -1635,11 +2698,19 @@ export declare const RoomSchema: z.ZodObject<{
1635
2698
  userId: string | null;
1636
2699
  sipServerUrl: string;
1637
2700
  sipUserName: string;
1638
- extensionId: number | null;
1639
- extensionName: string | null;
2701
+ extensionId: number;
2702
+ extensionName: string;
1640
2703
  telephonySignature: string | null;
1641
- };
2704
+ } | undefined;
1642
2705
  };
2706
+ notes: string;
2707
+ tags: {
2708
+ id: string;
2709
+ name: string;
2710
+ createdAt: Date;
2711
+ updatedAt: Date;
2712
+ deletedAt: Date | null;
2713
+ }[];
1643
2714
  lastMessage: string;
1644
2715
  handleTime: number;
1645
2716
  isSolved: boolean;
@@ -1648,7 +2719,7 @@ export declare const RoomSchema: z.ZodObject<{
1648
2719
  firstResponseTime: Date;
1649
2720
  isLatest: boolean;
1650
2721
  platformContact: {
1651
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
2722
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1652
2723
  id: string;
1653
2724
  metadata: {
1654
2725
  id: string;
@@ -1666,11 +2737,91 @@ export declare const RoomSchema: z.ZodObject<{
1666
2737
  createdAt: Date;
1667
2738
  updatedAt: Date;
1668
2739
  deletedAt: Date | null;
2740
+ customFields: {
2741
+ id: string;
2742
+ createdAt: Date;
2743
+ updatedAt: Date;
2744
+ deletedAt: Date | null;
2745
+ attribute: {
2746
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2747
+ id: string;
2748
+ position: number;
2749
+ createdAt: Date;
2750
+ updatedAt: Date;
2751
+ deletedAt: Date | null;
2752
+ isDefault: boolean;
2753
+ systemName: string;
2754
+ displayName: string;
2755
+ isArchived: boolean;
2756
+ isRequired: boolean;
2757
+ isUnique: boolean;
2758
+ };
2759
+ textValue: string | null;
2760
+ booleanValue: boolean | null;
2761
+ numberValue: number | null;
2762
+ dateValue: Date | null;
2763
+ uploads: {
2764
+ id: string;
2765
+ createdAt: Date;
2766
+ updatedAt: Date;
2767
+ deletedAt: Date | null;
2768
+ customFieldId: string;
2769
+ upload: {
2770
+ id: string;
2771
+ createdAt: Date;
2772
+ updatedAt: Date;
2773
+ deletedAt: Date | null;
2774
+ fileName: string;
2775
+ fileKey: string;
2776
+ bucketName: string;
2777
+ fileSize: number;
2778
+ };
2779
+ }[];
2780
+ }[];
1669
2781
  notes: string | null;
1670
- contactNumber: string | null;
1671
- companyId: string | null;
1672
2782
  contactProfile: string | null;
1673
2783
  socialProfileUrl: string | null;
2784
+ tags: {
2785
+ id: string;
2786
+ name: string;
2787
+ createdAt: Date;
2788
+ updatedAt: Date;
2789
+ deletedAt: Date | null;
2790
+ }[];
2791
+ company: {
2792
+ id: string;
2793
+ createdAt: Date;
2794
+ updatedAt: Date;
2795
+ deletedAt: Date | null;
2796
+ address?: string | undefined;
2797
+ name?: string | undefined;
2798
+ phone?: string | undefined;
2799
+ industry?: string | undefined;
2800
+ } | null;
2801
+ contactEmails: {
2802
+ id: string;
2803
+ isPrimary: boolean;
2804
+ email: string;
2805
+ createdAt: Date;
2806
+ updatedAt: Date;
2807
+ deletedAt: Date | null;
2808
+ }[];
2809
+ contactPhones: {
2810
+ id: string;
2811
+ isPrimary: boolean;
2812
+ createdAt: Date;
2813
+ updatedAt: Date;
2814
+ deletedAt: Date | null;
2815
+ phone: string;
2816
+ }[];
2817
+ activityLogs?: {
2818
+ description: string;
2819
+ entityId: string;
2820
+ entityType: {
2821
+ description: string | null;
2822
+ entity: string;
2823
+ };
2824
+ }[] | undefined;
1674
2825
  };
1675
2826
  channelId: string;
1676
2827
  socialPlatformId: string;
@@ -1683,6 +2834,8 @@ export declare const RoomSchema: z.ZodObject<{
1683
2834
  createdAt: Date;
1684
2835
  updatedAt: Date;
1685
2836
  deletedAt: Date | null;
2837
+ emailVerifiedAt: Date | null;
2838
+ password: string;
1686
2839
  phone: string | null;
1687
2840
  notificationCount: number | null;
1688
2841
  roles: {
@@ -1703,7 +2856,7 @@ export declare const RoomSchema: z.ZodObject<{
1703
2856
  displayName: string;
1704
2857
  }[];
1705
2858
  }[];
1706
- extension: {
2859
+ extension?: {
1707
2860
  id: string;
1708
2861
  createdAt: Date;
1709
2862
  updatedAt: Date;
@@ -1711,79 +2864,11 @@ export declare const RoomSchema: z.ZodObject<{
1711
2864
  userId: string | null;
1712
2865
  sipServerUrl: string;
1713
2866
  sipUserName: string;
1714
- extensionId: number | null;
1715
- extensionName: string | null;
2867
+ extensionId: number;
2868
+ extensionName: string;
1716
2869
  telephonySignature: string | null;
1717
- };
1718
- };
1719
- tags: {
1720
- id: string;
1721
- name: string;
1722
- createdAt: Date;
1723
- updatedAt: Date;
1724
- deletedAt: Date | null;
1725
- }[];
1726
- channel?: {
1727
- id?: string | undefined;
1728
- createdAt?: Date | undefined;
1729
- updatedAt?: Date | undefined;
1730
- deletedAt?: Date | null | undefined;
1731
- name?: string | undefined;
1732
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
1733
- metadata?: {
1734
- id: string;
1735
- name: string;
1736
- accessToken: string;
1737
- additionalCredentials?: any;
1738
- } | undefined;
1739
- brandName?: string | undefined;
1740
- platformId?: string | undefined;
1741
- status?: 0 | 1 | undefined;
1742
- isReloginRequired?: boolean | undefined;
1743
- connectedUserName?: string | undefined;
1744
- connectedUserId?: string | undefined;
1745
- actor?: {
1746
- id: string;
1747
- address: string | null;
1748
- name: string;
1749
- email: string;
1750
- createdAt: Date;
1751
- updatedAt: Date;
1752
- deletedAt: Date | null;
1753
- phone: string | null;
1754
- notificationCount: number | null;
1755
- roles: {
1756
- id: string;
1757
- description: string | null;
1758
- createdAt: Date;
1759
- updatedAt: Date;
1760
- deletedAt: Date | null;
1761
- systemName: string;
1762
- displayName: string;
1763
- permissions: {
1764
- id: string;
1765
- description: string | null;
1766
- createdAt: Date;
1767
- updatedAt: Date;
1768
- deletedAt: Date | null;
1769
- systemName: string;
1770
- displayName: string;
1771
- }[];
1772
- }[];
1773
- extension: {
1774
- id: string;
1775
- createdAt: Date;
1776
- updatedAt: Date;
1777
- deletedAt: Date | null;
1778
- userId: string | null;
1779
- sipServerUrl: string;
1780
- sipUserName: string;
1781
- extensionId: number | null;
1782
- extensionName: string | null;
1783
- telephonySignature: string | null;
1784
- };
1785
2870
  } | undefined;
1786
- } | undefined;
2871
+ };
1787
2872
  }>;
1788
2873
  /**
1789
2874
  * Message
@@ -1794,8 +2879,8 @@ export declare const MessageSchema: z.ZodObject<{
1794
2879
  updatedAt: z.ZodDate;
1795
2880
  deletedAt: z.ZodNullable<z.ZodDate>;
1796
2881
  message: z.ZodString;
1797
- direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1798
- type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"video">, z.ZodLiteral<"audio">, z.ZodLiteral<"file">, z.ZodLiteral<"fallback">, z.ZodLiteral<"location">, z.ZodLiteral<"attachment">, z.ZodLiteral<"assign">, z.ZodLiteral<"solve">, z.ZodLiteral<"reopen">, z.ZodLiteral<"open">, z.ZodLiteral<"sticker">, z.ZodLiteral<"closed">, z.ZodLiteral<"handed_over">, z.ZodLiteral<"updated">, z.ZodLiteral<"started">]>;
2882
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
2883
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "fallback", "location", "attachment", "assign", "solve", "reopen", "open", "sticker", "closed", "handed_over", "updated", "started"]>;
1799
2884
  user: z.ZodObject<{
1800
2885
  id: z.ZodString;
1801
2886
  createdAt: z.ZodDate;
@@ -1803,6 +2888,8 @@ export declare const MessageSchema: z.ZodObject<{
1803
2888
  deletedAt: z.ZodNullable<z.ZodDate>;
1804
2889
  name: z.ZodString;
1805
2890
  email: z.ZodString;
2891
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2892
+ password: z.ZodString;
1806
2893
  address: z.ZodNullable<z.ZodString>;
1807
2894
  phone: z.ZodNullable<z.ZodString>;
1808
2895
  notificationCount: z.ZodNullable<z.ZodNumber>;
@@ -1874,7 +2961,7 @@ export declare const MessageSchema: z.ZodObject<{
1874
2961
  displayName: string;
1875
2962
  }[];
1876
2963
  }>, "many">;
1877
- extension: z.ZodObject<{
2964
+ extension: z.ZodOptional<z.ZodObject<{
1878
2965
  id: z.ZodString;
1879
2966
  createdAt: z.ZodDate;
1880
2967
  updatedAt: z.ZodDate;
@@ -1882,8 +2969,8 @@ export declare const MessageSchema: z.ZodObject<{
1882
2969
  userId: z.ZodNullable<z.ZodString>;
1883
2970
  sipServerUrl: z.ZodString;
1884
2971
  sipUserName: z.ZodString;
1885
- extensionId: z.ZodNullable<z.ZodNumber>;
1886
- extensionName: z.ZodNullable<z.ZodString>;
2972
+ extensionId: z.ZodNumber;
2973
+ extensionName: z.ZodString;
1887
2974
  telephonySignature: z.ZodNullable<z.ZodString>;
1888
2975
  }, "strip", z.ZodTypeAny, {
1889
2976
  id: string;
@@ -1893,8 +2980,8 @@ export declare const MessageSchema: z.ZodObject<{
1893
2980
  userId: string | null;
1894
2981
  sipServerUrl: string;
1895
2982
  sipUserName: string;
1896
- extensionId: number | null;
1897
- extensionName: string | null;
2983
+ extensionId: number;
2984
+ extensionName: string;
1898
2985
  telephonySignature: string | null;
1899
2986
  }, {
1900
2987
  id: string;
@@ -1904,10 +2991,10 @@ export declare const MessageSchema: z.ZodObject<{
1904
2991
  userId: string | null;
1905
2992
  sipServerUrl: string;
1906
2993
  sipUserName: string;
1907
- extensionId: number | null;
1908
- extensionName: string | null;
2994
+ extensionId: number;
2995
+ extensionName: string;
1909
2996
  telephonySignature: string | null;
1910
- }>;
2997
+ }>>;
1911
2998
  }, "strip", z.ZodTypeAny, {
1912
2999
  id: string;
1913
3000
  address: string | null;
@@ -1916,6 +3003,8 @@ export declare const MessageSchema: z.ZodObject<{
1916
3003
  createdAt: Date;
1917
3004
  updatedAt: Date;
1918
3005
  deletedAt: Date | null;
3006
+ emailVerifiedAt: Date | null;
3007
+ password: string;
1919
3008
  phone: string | null;
1920
3009
  notificationCount: number | null;
1921
3010
  roles: {
@@ -1936,7 +3025,7 @@ export declare const MessageSchema: z.ZodObject<{
1936
3025
  displayName: string;
1937
3026
  }[];
1938
3027
  }[];
1939
- extension: {
3028
+ extension?: {
1940
3029
  id: string;
1941
3030
  createdAt: Date;
1942
3031
  updatedAt: Date;
@@ -1944,10 +3033,10 @@ export declare const MessageSchema: z.ZodObject<{
1944
3033
  userId: string | null;
1945
3034
  sipServerUrl: string;
1946
3035
  sipUserName: string;
1947
- extensionId: number | null;
1948
- extensionName: string | null;
3036
+ extensionId: number;
3037
+ extensionName: string;
1949
3038
  telephonySignature: string | null;
1950
- };
3039
+ } | undefined;
1951
3040
  }, {
1952
3041
  id: string;
1953
3042
  address: string | null;
@@ -1956,6 +3045,8 @@ export declare const MessageSchema: z.ZodObject<{
1956
3045
  createdAt: Date;
1957
3046
  updatedAt: Date;
1958
3047
  deletedAt: Date | null;
3048
+ emailVerifiedAt: Date | null;
3049
+ password: string;
1959
3050
  phone: string | null;
1960
3051
  notificationCount: number | null;
1961
3052
  roles: {
@@ -1976,7 +3067,7 @@ export declare const MessageSchema: z.ZodObject<{
1976
3067
  displayName: string;
1977
3068
  }[];
1978
3069
  }[];
1979
- extension: {
3070
+ extension?: {
1980
3071
  id: string;
1981
3072
  createdAt: Date;
1982
3073
  updatedAt: Date;
@@ -1984,10 +3075,10 @@ export declare const MessageSchema: z.ZodObject<{
1984
3075
  userId: string | null;
1985
3076
  sipServerUrl: string;
1986
3077
  sipUserName: string;
1987
- extensionId: number | null;
1988
- extensionName: string | null;
3078
+ extensionId: number;
3079
+ extensionName: string;
1989
3080
  telephonySignature: string | null;
1990
- };
3081
+ } | undefined;
1991
3082
  }>;
1992
3083
  readAt: z.ZodDate;
1993
3084
  metadata: z.ZodAny;
@@ -2008,22 +3099,22 @@ export declare const MessageSchema: z.ZodObject<{
2008
3099
  createdAt: Date;
2009
3100
  updatedAt: Date;
2010
3101
  deletedAt: Date | null;
2011
- bucketName: string;
2012
3102
  fileName: string;
2013
- fileSize: number;
2014
3103
  fileKey: string;
3104
+ bucketName: string;
3105
+ fileSize: number;
2015
3106
  }, {
2016
3107
  id: string;
2017
3108
  createdAt: Date;
2018
3109
  updatedAt: Date;
2019
3110
  deletedAt: Date | null;
2020
- bucketName: string;
2021
3111
  fileName: string;
2022
- fileSize: number;
2023
3112
  fileKey: string;
3113
+ bucketName: string;
3114
+ fileSize: number;
2024
3115
  }>;
2025
3116
  template: z.ZodAny;
2026
- locale: z.ZodUnion<[z.ZodLiteral<"mm">, z.ZodLiteral<"en">, z.ZodLiteral<"th">]>;
3117
+ locale: z.ZodEnum<["mm", "en", "th"]>;
2027
3118
  isSent: z.ZodBoolean;
2028
3119
  }, "strip", z.ZodTypeAny, {
2029
3120
  type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
@@ -2038,6 +3129,8 @@ export declare const MessageSchema: z.ZodObject<{
2038
3129
  createdAt: Date;
2039
3130
  updatedAt: Date;
2040
3131
  deletedAt: Date | null;
3132
+ emailVerifiedAt: Date | null;
3133
+ password: string;
2041
3134
  phone: string | null;
2042
3135
  notificationCount: number | null;
2043
3136
  roles: {
@@ -2058,7 +3151,7 @@ export declare const MessageSchema: z.ZodObject<{
2058
3151
  displayName: string;
2059
3152
  }[];
2060
3153
  }[];
2061
- extension: {
3154
+ extension?: {
2062
3155
  id: string;
2063
3156
  createdAt: Date;
2064
3157
  updatedAt: Date;
@@ -2066,28 +3159,28 @@ export declare const MessageSchema: z.ZodObject<{
2066
3159
  userId: string | null;
2067
3160
  sipServerUrl: string;
2068
3161
  sipUserName: string;
2069
- extensionId: number | null;
2070
- extensionName: string | null;
3162
+ extensionId: number;
3163
+ extensionName: string;
2071
3164
  telephonySignature: string | null;
2072
- };
3165
+ } | undefined;
2073
3166
  };
2074
3167
  createdAt: Date;
2075
3168
  updatedAt: Date;
2076
3169
  deletedAt: Date | null;
2077
3170
  platformId: string;
2078
- readAt: Date;
2079
- replyPlatformMessageId: string;
2080
- platformMessageId: string;
2081
3171
  upload: {
2082
3172
  id: string;
2083
3173
  createdAt: Date;
2084
3174
  updatedAt: Date;
2085
3175
  deletedAt: Date | null;
2086
- bucketName: string;
2087
3176
  fileName: string;
2088
- fileSize: number;
2089
3177
  fileKey: string;
3178
+ bucketName: string;
3179
+ fileSize: number;
2090
3180
  };
3181
+ readAt: Date;
3182
+ replyPlatformMessageId: string;
3183
+ platformMessageId: string;
2091
3184
  locale: "th" | "mm" | "en";
2092
3185
  isSent: boolean;
2093
3186
  metadata?: any;
@@ -2105,6 +3198,8 @@ export declare const MessageSchema: z.ZodObject<{
2105
3198
  createdAt: Date;
2106
3199
  updatedAt: Date;
2107
3200
  deletedAt: Date | null;
3201
+ emailVerifiedAt: Date | null;
3202
+ password: string;
2108
3203
  phone: string | null;
2109
3204
  notificationCount: number | null;
2110
3205
  roles: {
@@ -2125,7 +3220,7 @@ export declare const MessageSchema: z.ZodObject<{
2125
3220
  displayName: string;
2126
3221
  }[];
2127
3222
  }[];
2128
- extension: {
3223
+ extension?: {
2129
3224
  id: string;
2130
3225
  createdAt: Date;
2131
3226
  updatedAt: Date;
@@ -2133,28 +3228,28 @@ export declare const MessageSchema: z.ZodObject<{
2133
3228
  userId: string | null;
2134
3229
  sipServerUrl: string;
2135
3230
  sipUserName: string;
2136
- extensionId: number | null;
2137
- extensionName: string | null;
3231
+ extensionId: number;
3232
+ extensionName: string;
2138
3233
  telephonySignature: string | null;
2139
- };
3234
+ } | undefined;
2140
3235
  };
2141
3236
  createdAt: Date;
2142
3237
  updatedAt: Date;
2143
3238
  deletedAt: Date | null;
2144
3239
  platformId: string;
2145
- readAt: Date;
2146
- replyPlatformMessageId: string;
2147
- platformMessageId: string;
2148
3240
  upload: {
2149
3241
  id: string;
2150
3242
  createdAt: Date;
2151
3243
  updatedAt: Date;
2152
3244
  deletedAt: Date | null;
2153
- bucketName: string;
2154
3245
  fileName: string;
2155
- fileSize: number;
2156
3246
  fileKey: string;
3247
+ bucketName: string;
3248
+ fileSize: number;
2157
3249
  };
3250
+ readAt: Date;
3251
+ replyPlatformMessageId: string;
3252
+ platformMessageId: string;
2158
3253
  locale: "th" | "mm" | "en";
2159
3254
  isSent: boolean;
2160
3255
  metadata?: any;