@kl1/contracts 1.0.9 → 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 (98) hide show
  1. package/dist/index.js +1331 -1064
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1325 -1060
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/auth/index.d.ts +92 -0
  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/call-log/schema.d.ts +2 -2
  10. package/dist/src/category/index.d.ts +3 -3
  11. package/dist/src/channel/index.d.ts +1357 -0
  12. package/dist/src/channel/index.d.ts.map +1 -0
  13. package/dist/src/channel/schema.d.ts +385 -0
  14. package/dist/src/channel/schema.d.ts.map +1 -0
  15. package/dist/src/channel/validation.d.ts +337 -0
  16. package/dist/src/channel/validation.d.ts.map +1 -0
  17. package/dist/src/chat/index.d.ts +18857 -8629
  18. package/dist/src/chat/index.d.ts.map +1 -1
  19. package/dist/src/chat/schema.d.ts +2170 -641
  20. package/dist/src/chat/schema.d.ts.map +1 -1
  21. package/dist/src/chat/validation.d.ts +3078 -278
  22. package/dist/src/chat/validation.d.ts.map +1 -1
  23. package/dist/src/company/schema.d.ts +197 -12
  24. package/dist/src/company/schema.d.ts.map +1 -1
  25. package/dist/src/contact/index.d.ts +2539 -0
  26. package/dist/src/contact/index.d.ts.map +1 -0
  27. package/dist/src/contact/schema.d.ts +978 -6
  28. package/dist/src/contact/schema.d.ts.map +1 -1
  29. package/dist/src/contact/validation.d.ts +981 -0
  30. package/dist/src/contact/validation.d.ts.map +1 -0
  31. package/dist/src/contract.d.ts +37764 -21769
  32. package/dist/src/contract.d.ts.map +1 -1
  33. package/dist/src/custom-field-upload/schema.d.ts +2 -2
  34. package/dist/src/cx-log/index.d.ts +4 -4
  35. package/dist/src/cx-log/schema.d.ts +2 -2
  36. package/dist/src/extension/index.d.ts +226 -60
  37. package/dist/src/extension/index.d.ts.map +1 -1
  38. package/dist/src/extension/schema.d.ts +6 -6
  39. package/dist/src/extension/validation.d.ts +6 -12
  40. package/dist/src/extension/validation.d.ts.map +1 -1
  41. package/dist/src/index.d.ts +1 -0
  42. package/dist/src/index.d.ts.map +1 -1
  43. package/dist/src/line/index.d.ts +2 -2
  44. package/dist/src/line/validation.d.ts +2 -2
  45. package/dist/src/mail/account-contract.d.ts +2 -2
  46. package/dist/src/mail/mail-contract.d.ts +2871 -3707
  47. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  48. package/dist/src/mail/message-contract.d.ts +18 -18
  49. package/dist/src/mail/room-contract.d.ts +2860 -3696
  50. package/dist/src/mail/room-contract.d.ts.map +1 -1
  51. package/dist/src/mail/schemas/account-validation.schema.d.ts +2 -2
  52. package/dist/src/mail/schemas/message-validation.schema.d.ts +12 -12
  53. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  54. package/dist/src/mail/schemas/room-validation.schema.d.ts +70 -70
  55. package/dist/src/mail/schemas/room.schema.d.ts +50 -50
  56. package/dist/src/messenger/index.d.ts +2977 -0
  57. package/dist/src/messenger/index.d.ts.map +1 -0
  58. package/dist/src/messenger/schema.d.ts +2 -0
  59. package/dist/src/messenger/schema.d.ts.map +1 -0
  60. package/dist/src/messenger/validation.d.ts +2 -0
  61. package/dist/src/messenger/validation.d.ts.map +1 -0
  62. package/dist/src/permission/index.d.ts +2 -0
  63. package/dist/src/permission/index.d.ts.map +1 -1
  64. package/dist/src/role/index.d.ts +3 -3
  65. package/dist/src/telephony-agent-presence-status/index.d.ts +1376 -0
  66. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -0
  67. package/dist/src/telephony-agent-presence-status/schema.d.ts +366 -0
  68. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -0
  69. package/dist/src/telephony-agent-presence-status/validation.d.ts +18 -0
  70. package/dist/src/telephony-agent-presence-status/validation.d.ts.map +1 -0
  71. package/dist/src/telephony-cdr/schema.d.ts +2 -2
  72. package/dist/src/telephony-extension/index.d.ts +5 -5
  73. package/dist/src/telephony-extension/schema.d.ts +5 -5
  74. package/dist/src/tenant/schema.d.ts +36 -0
  75. package/dist/src/tenant/schema.d.ts.map +1 -0
  76. package/dist/src/upload/schema.d.ts +4 -4
  77. package/dist/src/user/index.d.ts +318 -14
  78. package/dist/src/user/index.d.ts.map +1 -1
  79. package/dist/src/user/schema.d.ts +64 -0
  80. package/dist/src/user/schema.d.ts.map +1 -1
  81. package/dist/src/user/validation.d.ts +11 -11
  82. package/dist/src/user-presence-status-log/index.d.ts +342 -0
  83. package/dist/src/user-presence-status-log/index.d.ts.map +1 -0
  84. package/dist/src/user-presence-status-log/schema.d.ts +382 -0
  85. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -0
  86. package/dist/src/user-presence-status-log/validation.d.ts +15 -0
  87. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -0
  88. package/dist/src/widget/index.d.ts +31 -29
  89. package/dist/src/widget/index.d.ts.map +1 -1
  90. package/dist/src/widget/schema.d.ts +3 -3
  91. package/dist/src/wrap-up-form/index.d.ts +30 -30
  92. package/dist/src/wrap-up-form/validation.d.ts +27 -27
  93. package/dist/utils.d.ts +6 -6
  94. package/package.json +1 -1
  95. package/dist/src/app/index.d.ts +0 -17
  96. package/dist/src/app/index.d.ts.map +0 -1
  97. package/dist/src/mail/mail-server.d.ts +0 -216
  98. package/dist/src/mail/mail-server.d.ts.map +0 -1
@@ -1,389 +1,753 @@
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">;
487
+ contactEmails: z.ZodArray<z.ZodObject<{
488
+ id: z.ZodString;
489
+ createdAt: z.ZodDate;
490
+ updatedAt: z.ZodDate;
491
+ deletedAt: z.ZodNullable<z.ZodDate>;
492
+ email: z.ZodString;
493
+ isPrimary: z.ZodBoolean;
494
+ }, "strip", z.ZodTypeAny, {
495
+ id: string;
496
+ isPrimary: boolean;
497
+ email: string;
498
+ createdAt: Date;
499
+ updatedAt: Date;
500
+ deletedAt: Date | null;
501
+ }, {
502
+ id: string;
503
+ isPrimary: boolean;
504
+ email: string;
505
+ createdAt: Date;
506
+ updatedAt: Date;
507
+ deletedAt: Date | null;
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">>;
151
562
  }, "strip", z.ZodTypeAny, {
152
563
  id: string;
564
+ channel: string | null;
153
565
  address: string | null;
154
566
  name: string;
155
- email: string;
156
567
  createdAt: Date;
157
568
  updatedAt: Date;
158
569
  deletedAt: Date | null;
159
- phone: string | null;
160
- notificationCount: number | null;
161
- roles: {
570
+ customFields: {
162
571
  id: string;
163
- description: string | null;
164
572
  createdAt: Date;
165
573
  updatedAt: Date;
166
574
  deletedAt: Date | null;
167
- systemName: string;
168
- displayName: string;
169
- permissions: {
575
+ attribute: {
576
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
170
577
  id: string;
171
- description: string | null;
578
+ position: number;
172
579
  createdAt: Date;
173
580
  updatedAt: Date;
174
581
  deletedAt: Date | null;
582
+ isDefault: boolean;
175
583
  systemName: string;
176
584
  displayName: string;
177
- }[];
178
- }[];
179
- }, {
180
- id: string;
181
- address: string | null;
182
- name: string;
183
- email: string;
184
- createdAt: Date;
185
- updatedAt: Date;
186
- deletedAt: Date | null;
187
- phone: string | null;
188
- notificationCount: number | null;
189
- roles: {
190
- id: string;
191
- description: string | null;
192
- createdAt: Date;
193
- updatedAt: Date;
194
- deletedAt: Date | null;
195
- systemName: string;
196
- displayName: string;
197
- permissions: {
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: {
198
594
  id: string;
199
- description: string | null;
200
595
  createdAt: Date;
201
596
  updatedAt: Date;
202
597
  deletedAt: Date | null;
203
- systemName: string;
204
- displayName: string;
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
+ };
205
609
  }[];
206
610
  }[];
207
- }>>;
208
- }, "strip", z.ZodTypeAny, {
209
- id?: string | undefined;
210
- createdAt?: Date | undefined;
211
- updatedAt?: Date | undefined;
212
- deletedAt?: Date | null | undefined;
213
- name?: string | undefined;
214
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
215
- metadata?: {
216
- id: string;
217
- name: string;
218
- accessToken: string;
219
- additionalCredentials?: any;
220
- } | undefined;
221
- brandName?: string | undefined;
222
- platformId?: string | undefined;
223
- status?: 0 | 1 | undefined;
224
- isReloginRequired?: boolean | undefined;
225
- connectedUserName?: string | undefined;
226
- connectedUserId?: string | undefined;
227
- actor?: {
228
- id: string;
229
- address: string | null;
230
- name: string;
231
- email: string;
232
- createdAt: Date;
233
- updatedAt: Date;
234
- deletedAt: Date | null;
235
- phone: string | null;
236
- notificationCount: number | null;
237
- roles: {
611
+ notes: string | null;
612
+ contactProfile: string | null;
613
+ socialProfileUrl: string | null;
614
+ tags: {
238
615
  id: string;
239
- description: string | null;
616
+ name: string;
240
617
  createdAt: Date;
241
618
  updatedAt: Date;
242
619
  deletedAt: Date | null;
243
- systemName: string;
244
- displayName: string;
245
- permissions: {
246
- id: string;
247
- description: string | null;
248
- createdAt: Date;
249
- updatedAt: Date;
250
- deletedAt: Date | null;
251
- systemName: string;
252
- displayName: string;
253
- }[];
254
620
  }[];
255
- } | undefined;
256
- }, {
257
- id?: string | undefined;
258
- createdAt?: Date | undefined;
259
- updatedAt?: Date | undefined;
260
- deletedAt?: Date | null | undefined;
261
- name?: string | undefined;
262
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
263
- metadata?: {
264
- id: string;
265
- name: string;
266
- accessToken: string;
267
- additionalCredentials?: any;
268
- } | undefined;
269
- brandName?: string | undefined;
270
- platformId?: string | undefined;
271
- status?: 0 | 1 | undefined;
272
- isReloginRequired?: boolean | undefined;
273
- connectedUserName?: string | undefined;
274
- connectedUserId?: string | undefined;
275
- actor?: {
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;
655
+ }, {
276
656
  id: string;
657
+ channel: string | null;
277
658
  address: string | null;
278
659
  name: string;
279
- email: string;
280
660
  createdAt: Date;
281
661
  updatedAt: Date;
282
662
  deletedAt: Date | null;
283
- phone: string | null;
284
- notificationCount: number | null;
285
- roles: {
663
+ customFields: {
286
664
  id: string;
287
- description: string | null;
288
665
  createdAt: Date;
289
666
  updatedAt: Date;
290
667
  deletedAt: Date | null;
291
- systemName: string;
292
- displayName: string;
293
- permissions: {
668
+ attribute: {
669
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
294
670
  id: string;
295
- description: string | null;
671
+ position: number;
296
672
  createdAt: Date;
297
673
  updatedAt: Date;
298
674
  deletedAt: Date | null;
675
+ isDefault: boolean;
299
676
  systemName: string;
300
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
+ };
301
702
  }[];
302
703
  }[];
303
- } | undefined;
304
- }>>;
305
- /**
306
- * Channel metadata
307
- */
308
- export declare const PlatformContactMetadataSchema: z.ZodObject<{
309
- id: z.ZodString;
310
- name: z.ZodString;
311
- additionalCredentials: z.ZodAny;
312
- }, "strip", z.ZodTypeAny, {
313
- id: string;
314
- name: string;
315
- additionalCredentials?: any;
316
- }, {
317
- id: string;
318
- name: string;
319
- additionalCredentials?: any;
320
- }>;
321
- /**
322
- * Platform Contact
323
- */
324
- export declare const PlatformContactSchema: z.ZodObject<{
325
- id: z.ZodString;
326
- createdAt: z.ZodDate;
327
- updatedAt: z.ZodDate;
328
- deletedAt: z.ZodNullable<z.ZodDate>;
329
- channelId: z.ZodString;
330
- socialPlatformId: z.ZodString;
331
- 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">]>;
332
- metadata: z.ZodObject<{
333
- id: z.ZodString;
334
- name: z.ZodString;
335
- additionalCredentials: z.ZodAny;
336
- }, "strip", z.ZodTypeAny, {
337
- id: string;
338
- name: string;
339
- additionalCredentials?: any;
340
- }, {
341
- id: string;
342
- name: string;
343
- additionalCredentials?: any;
344
- }>;
345
- contact: z.ZodObject<{
346
- id: z.ZodString;
347
- createdAt: z.ZodDate;
348
- updatedAt: z.ZodDate;
349
- deletedAt: z.ZodNullable<z.ZodDate>;
350
- name: z.ZodString;
351
- address: z.ZodNullable<z.ZodString>;
352
- channel: z.ZodNullable<z.ZodString>;
353
- notes: z.ZodNullable<z.ZodString>;
354
- contactNumber: z.ZodNullable<z.ZodString>;
355
- companyId: z.ZodNullable<z.ZodString>;
356
- contactProfile: z.ZodNullable<z.ZodString>;
357
- socialProfileUrl: z.ZodNullable<z.ZodString>;
358
- }, "strip", z.ZodTypeAny, {
359
- id: string;
360
- channel: string | null;
361
- address: string | null;
362
- name: string;
363
- createdAt: Date;
364
- updatedAt: Date;
365
- deletedAt: Date | null;
366
- notes: string | null;
367
- contactNumber: string | null;
368
- companyId: string | null;
369
- contactProfile: string | null;
370
- socialProfileUrl: string | null;
371
- }, {
372
- id: string;
373
- channel: string | null;
374
- address: string | null;
375
- name: string;
376
- createdAt: Date;
377
- updatedAt: Date;
378
- deletedAt: Date | null;
379
704
  notes: string | null;
380
- contactNumber: string | null;
381
- companyId: string | null;
382
705
  contactProfile: string | null;
383
706
  socialProfileUrl: string | null;
707
+ tags: {
708
+ id: string;
709
+ name: string;
710
+ createdAt: Date;
711
+ updatedAt: Date;
712
+ deletedAt: Date | null;
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;
384
748
  }>;
385
749
  }, "strip", z.ZodTypeAny, {
386
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
750
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
387
751
  id: string;
388
752
  metadata: {
389
753
  id: string;
@@ -401,16 +765,96 @@ export declare const PlatformContactSchema: z.ZodObject<{
401
765
  createdAt: Date;
402
766
  updatedAt: Date;
403
767
  deletedAt: Date | null;
768
+ customFields: {
769
+ id: string;
770
+ createdAt: Date;
771
+ updatedAt: Date;
772
+ deletedAt: Date | null;
773
+ attribute: {
774
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
775
+ id: string;
776
+ position: number;
777
+ createdAt: Date;
778
+ updatedAt: Date;
779
+ deletedAt: Date | null;
780
+ isDefault: boolean;
781
+ systemName: string;
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
+ };
807
+ }[];
808
+ }[];
404
809
  notes: string | null;
405
- contactNumber: string | null;
406
- companyId: string | null;
407
810
  contactProfile: string | null;
408
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: {
820
+ id: string;
821
+ createdAt: Date;
822
+ updatedAt: Date;
823
+ deletedAt: Date | null;
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;
409
853
  };
410
854
  channelId: string;
411
855
  socialPlatformId: string;
412
856
  }, {
413
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
857
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
414
858
  id: string;
415
859
  metadata: {
416
860
  id: string;
@@ -428,24 +872,104 @@ export declare const PlatformContactSchema: z.ZodObject<{
428
872
  createdAt: Date;
429
873
  updatedAt: Date;
430
874
  deletedAt: Date | null;
875
+ customFields: {
876
+ id: string;
877
+ createdAt: Date;
878
+ updatedAt: Date;
879
+ deletedAt: Date | null;
880
+ attribute: {
881
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
882
+ id: string;
883
+ position: number;
884
+ createdAt: Date;
885
+ updatedAt: Date;
886
+ deletedAt: Date | null;
887
+ isDefault: boolean;
888
+ systemName: string;
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
+ };
914
+ }[];
915
+ }[];
431
916
  notes: string | null;
432
- contactNumber: string | null;
433
- companyId: string | null;
434
917
  contactProfile: string | null;
435
918
  socialProfileUrl: string | null;
436
- };
437
- channelId: string;
438
- socialPlatformId: string;
439
- }>;
440
- /**
441
- * Room
442
- */
443
- export declare const RoomSchema: z.ZodObject<{
444
- id: z.ZodString;
445
- createdAt: z.ZodDate;
446
- updatedAt: z.ZodDate;
447
- deletedAt: z.ZodNullable<z.ZodDate>;
448
- lastMessage: z.ZodString;
919
+ tags: {
920
+ id: string;
921
+ name: string;
922
+ createdAt: Date;
923
+ updatedAt: Date;
924
+ deletedAt: Date | null;
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;
963
+ }>;
964
+ /**
965
+ * Room
966
+ */
967
+ export declare const RoomSchema: z.ZodObject<{
968
+ id: z.ZodString;
969
+ createdAt: z.ZodDate;
970
+ updatedAt: z.ZodDate;
971
+ deletedAt: z.ZodNullable<z.ZodDate>;
972
+ lastMessage: z.ZodString;
449
973
  handleTime: z.ZodNumber;
450
974
  isSolved: z.ZodBoolean;
451
975
  notes: z.ZodString;
@@ -453,7 +977,7 @@ export declare const RoomSchema: z.ZodObject<{
453
977
  unreadCount: z.ZodNumber;
454
978
  firstResponseTime: z.ZodDate;
455
979
  isLatest: z.ZodBoolean;
456
- direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
980
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
457
981
  platformContact: z.ZodObject<{
458
982
  id: z.ZodString;
459
983
  createdAt: z.ZodDate;
@@ -461,7 +985,7 @@ export declare const RoomSchema: z.ZodObject<{
461
985
  deletedAt: z.ZodNullable<z.ZodDate>;
462
986
  channelId: z.ZodString;
463
987
  socialPlatformId: z.ZodString;
464
- 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"]>;
465
989
  metadata: z.ZodObject<{
466
990
  id: z.ZodString;
467
991
  name: z.ZodString;
@@ -484,10 +1008,505 @@ export declare const RoomSchema: z.ZodObject<{
484
1008
  address: z.ZodNullable<z.ZodString>;
485
1009
  channel: z.ZodNullable<z.ZodString>;
486
1010
  notes: z.ZodNullable<z.ZodString>;
487
- contactNumber: z.ZodNullable<z.ZodString>;
488
- companyId: z.ZodNullable<z.ZodString>;
489
1011
  contactProfile: z.ZodNullable<z.ZodString>;
490
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">>;
491
1510
  }, "strip", z.ZodTypeAny, {
492
1511
  id: string;
493
1512
  channel: string | null;
@@ -496,11 +1515,91 @@ export declare const RoomSchema: z.ZodObject<{
496
1515
  createdAt: Date;
497
1516
  updatedAt: Date;
498
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
+ }[];
499
1559
  notes: string | null;
500
- contactNumber: string | null;
501
- companyId: string | null;
502
1560
  contactProfile: string | null;
503
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;
504
1603
  }, {
505
1604
  id: string;
506
1605
  channel: string | null;
@@ -509,14 +1608,94 @@ export declare const RoomSchema: z.ZodObject<{
509
1608
  createdAt: Date;
510
1609
  updatedAt: Date;
511
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
+ }[];
512
1652
  notes: string | null;
513
- contactNumber: string | null;
514
- companyId: string | null;
515
1653
  contactProfile: string | null;
516
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;
517
1696
  }>;
518
1697
  }, "strip", z.ZodTypeAny, {
519
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
1698
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
520
1699
  id: string;
521
1700
  metadata: {
522
1701
  id: string;
@@ -534,16 +1713,96 @@ export declare const RoomSchema: z.ZodObject<{
534
1713
  createdAt: Date;
535
1714
  updatedAt: Date;
536
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
+ }[];
537
1757
  notes: string | null;
538
- contactNumber: string | null;
539
- companyId: string | null;
540
1758
  contactProfile: string | null;
541
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;
542
1801
  };
543
1802
  channelId: string;
544
1803
  socialPlatformId: string;
545
1804
  }, {
546
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
1805
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
547
1806
  id: string;
548
1807
  metadata: {
549
1808
  id: string;
@@ -561,11 +1820,91 @@ export declare const RoomSchema: z.ZodObject<{
561
1820
  createdAt: Date;
562
1821
  updatedAt: Date;
563
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
+ }[];
564
1864
  notes: string | null;
565
- contactNumber: string | null;
566
- companyId: string | null;
567
1865
  contactProfile: string | null;
568
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;
569
1908
  };
570
1909
  channelId: string;
571
1910
  socialPlatformId: string;
@@ -577,6 +1916,8 @@ export declare const RoomSchema: z.ZodObject<{
577
1916
  deletedAt: z.ZodNullable<z.ZodDate>;
578
1917
  name: z.ZodString;
579
1918
  email: z.ZodString;
1919
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1920
+ password: z.ZodString;
580
1921
  address: z.ZodNullable<z.ZodString>;
581
1922
  phone: z.ZodNullable<z.ZodString>;
582
1923
  notificationCount: z.ZodNullable<z.ZodNumber>;
@@ -648,6 +1989,40 @@ export declare const RoomSchema: z.ZodObject<{
648
1989
  displayName: string;
649
1990
  }[];
650
1991
  }>, "many">;
1992
+ extension: z.ZodOptional<z.ZodObject<{
1993
+ id: z.ZodString;
1994
+ createdAt: z.ZodDate;
1995
+ updatedAt: z.ZodDate;
1996
+ deletedAt: z.ZodNullable<z.ZodDate>;
1997
+ userId: z.ZodNullable<z.ZodString>;
1998
+ sipServerUrl: z.ZodString;
1999
+ sipUserName: z.ZodString;
2000
+ extensionId: z.ZodNumber;
2001
+ extensionName: z.ZodString;
2002
+ telephonySignature: z.ZodNullable<z.ZodString>;
2003
+ }, "strip", z.ZodTypeAny, {
2004
+ id: string;
2005
+ createdAt: Date;
2006
+ updatedAt: Date;
2007
+ deletedAt: Date | null;
2008
+ userId: string | null;
2009
+ sipServerUrl: string;
2010
+ sipUserName: string;
2011
+ extensionId: number;
2012
+ extensionName: string;
2013
+ telephonySignature: string | null;
2014
+ }, {
2015
+ id: string;
2016
+ createdAt: Date;
2017
+ updatedAt: Date;
2018
+ deletedAt: Date | null;
2019
+ userId: string | null;
2020
+ sipServerUrl: string;
2021
+ sipUserName: string;
2022
+ extensionId: number;
2023
+ extensionName: string;
2024
+ telephonySignature: string | null;
2025
+ }>>;
651
2026
  }, "strip", z.ZodTypeAny, {
652
2027
  id: string;
653
2028
  address: string | null;
@@ -656,6 +2031,8 @@ export declare const RoomSchema: z.ZodObject<{
656
2031
  createdAt: Date;
657
2032
  updatedAt: Date;
658
2033
  deletedAt: Date | null;
2034
+ emailVerifiedAt: Date | null;
2035
+ password: string;
659
2036
  phone: string | null;
660
2037
  notificationCount: number | null;
661
2038
  roles: {
@@ -676,6 +2053,18 @@ export declare const RoomSchema: z.ZodObject<{
676
2053
  displayName: string;
677
2054
  }[];
678
2055
  }[];
2056
+ extension?: {
2057
+ id: string;
2058
+ createdAt: Date;
2059
+ updatedAt: Date;
2060
+ deletedAt: Date | null;
2061
+ userId: string | null;
2062
+ sipServerUrl: string;
2063
+ sipUserName: string;
2064
+ extensionId: number;
2065
+ extensionName: string;
2066
+ telephonySignature: string | null;
2067
+ } | undefined;
679
2068
  }, {
680
2069
  id: string;
681
2070
  address: string | null;
@@ -684,6 +2073,8 @@ export declare const RoomSchema: z.ZodObject<{
684
2073
  createdAt: Date;
685
2074
  updatedAt: Date;
686
2075
  deletedAt: Date | null;
2076
+ emailVerifiedAt: Date | null;
2077
+ password: string;
687
2078
  phone: string | null;
688
2079
  notificationCount: number | null;
689
2080
  roles: {
@@ -704,6 +2095,18 @@ export declare const RoomSchema: z.ZodObject<{
704
2095
  displayName: string;
705
2096
  }[];
706
2097
  }[];
2098
+ extension?: {
2099
+ id: string;
2100
+ createdAt: Date;
2101
+ updatedAt: Date;
2102
+ deletedAt: Date | null;
2103
+ userId: string | null;
2104
+ sipServerUrl: string;
2105
+ sipUserName: string;
2106
+ extensionId: number;
2107
+ extensionName: string;
2108
+ telephonySignature: string | null;
2109
+ } | undefined;
707
2110
  }>;
708
2111
  assignee: z.ZodObject<{
709
2112
  id: z.ZodString;
@@ -712,6 +2115,8 @@ export declare const RoomSchema: z.ZodObject<{
712
2115
  deletedAt: z.ZodNullable<z.ZodDate>;
713
2116
  name: z.ZodString;
714
2117
  email: z.ZodString;
2118
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2119
+ password: z.ZodString;
715
2120
  address: z.ZodNullable<z.ZodString>;
716
2121
  phone: z.ZodNullable<z.ZodString>;
717
2122
  notificationCount: z.ZodNullable<z.ZodNumber>;
@@ -783,6 +2188,40 @@ export declare const RoomSchema: z.ZodObject<{
783
2188
  displayName: string;
784
2189
  }[];
785
2190
  }>, "many">;
2191
+ extension: z.ZodOptional<z.ZodObject<{
2192
+ id: z.ZodString;
2193
+ createdAt: z.ZodDate;
2194
+ updatedAt: z.ZodDate;
2195
+ deletedAt: z.ZodNullable<z.ZodDate>;
2196
+ userId: z.ZodNullable<z.ZodString>;
2197
+ sipServerUrl: z.ZodString;
2198
+ sipUserName: z.ZodString;
2199
+ extensionId: z.ZodNumber;
2200
+ extensionName: z.ZodString;
2201
+ telephonySignature: z.ZodNullable<z.ZodString>;
2202
+ }, "strip", z.ZodTypeAny, {
2203
+ id: string;
2204
+ createdAt: Date;
2205
+ updatedAt: Date;
2206
+ deletedAt: Date | null;
2207
+ userId: string | null;
2208
+ sipServerUrl: string;
2209
+ sipUserName: string;
2210
+ extensionId: number;
2211
+ extensionName: string;
2212
+ telephonySignature: string | null;
2213
+ }, {
2214
+ id: string;
2215
+ createdAt: Date;
2216
+ updatedAt: Date;
2217
+ deletedAt: Date | null;
2218
+ userId: string | null;
2219
+ sipServerUrl: string;
2220
+ sipUserName: string;
2221
+ extensionId: number;
2222
+ extensionName: string;
2223
+ telephonySignature: string | null;
2224
+ }>>;
786
2225
  }, "strip", z.ZodTypeAny, {
787
2226
  id: string;
788
2227
  address: string | null;
@@ -791,6 +2230,8 @@ export declare const RoomSchema: z.ZodObject<{
791
2230
  createdAt: Date;
792
2231
  updatedAt: Date;
793
2232
  deletedAt: Date | null;
2233
+ emailVerifiedAt: Date | null;
2234
+ password: string;
794
2235
  phone: string | null;
795
2236
  notificationCount: number | null;
796
2237
  roles: {
@@ -811,6 +2252,18 @@ export declare const RoomSchema: z.ZodObject<{
811
2252
  displayName: string;
812
2253
  }[];
813
2254
  }[];
2255
+ extension?: {
2256
+ id: string;
2257
+ createdAt: Date;
2258
+ updatedAt: Date;
2259
+ deletedAt: Date | null;
2260
+ userId: string | null;
2261
+ sipServerUrl: string;
2262
+ sipUserName: string;
2263
+ extensionId: number;
2264
+ extensionName: string;
2265
+ telephonySignature: string | null;
2266
+ } | undefined;
814
2267
  }, {
815
2268
  id: string;
816
2269
  address: string | null;
@@ -819,6 +2272,8 @@ export declare const RoomSchema: z.ZodObject<{
819
2272
  createdAt: Date;
820
2273
  updatedAt: Date;
821
2274
  deletedAt: Date | null;
2275
+ emailVerifiedAt: Date | null;
2276
+ password: string;
822
2277
  phone: string | null;
823
2278
  notificationCount: number | null;
824
2279
  roles: {
@@ -839,19 +2294,31 @@ export declare const RoomSchema: z.ZodObject<{
839
2294
  displayName: string;
840
2295
  }[];
841
2296
  }[];
2297
+ extension?: {
2298
+ id: string;
2299
+ createdAt: Date;
2300
+ updatedAt: Date;
2301
+ deletedAt: Date | null;
2302
+ userId: string | null;
2303
+ sipServerUrl: string;
2304
+ sipUserName: string;
2305
+ extensionId: number;
2306
+ extensionName: string;
2307
+ telephonySignature: string | null;
2308
+ } | undefined;
842
2309
  }>;
843
- channel: z.ZodOptional<z.ZodObject<{
844
- id: z.ZodOptional<z.ZodString>;
845
- createdAt: z.ZodOptional<z.ZodDate>;
846
- updatedAt: z.ZodOptional<z.ZodDate>;
847
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
848
- name: z.ZodOptional<z.ZodString>;
849
- 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">]>>;
850
- 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<{
851
2318
  id: z.ZodString;
852
2319
  name: z.ZodString;
853
2320
  accessToken: z.ZodString;
854
- additionalCredentials: z.ZodAny;
2321
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
855
2322
  }, "strip", z.ZodTypeAny, {
856
2323
  id: string;
857
2324
  name: string;
@@ -862,245 +2329,55 @@ export declare const RoomSchema: z.ZodObject<{
862
2329
  name: string;
863
2330
  accessToken: string;
864
2331
  additionalCredentials?: any;
865
- }>>;
866
- brandName: z.ZodOptional<z.ZodString>;
867
- platformId: z.ZodOptional<z.ZodString>;
868
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<0>]>>;
869
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
870
- connectedUserName: z.ZodOptional<z.ZodString>;
871
- connectedUserId: z.ZodOptional<z.ZodString>;
872
- actor: z.ZodOptional<z.ZodObject<{
873
- id: z.ZodString;
874
- createdAt: z.ZodDate;
875
- updatedAt: z.ZodDate;
876
- deletedAt: z.ZodNullable<z.ZodDate>;
877
- name: z.ZodString;
878
- email: z.ZodString;
879
- address: z.ZodNullable<z.ZodString>;
880
- phone: z.ZodNullable<z.ZodString>;
881
- notificationCount: z.ZodNullable<z.ZodNumber>;
882
- roles: z.ZodArray<z.ZodObject<{
883
- id: z.ZodString;
884
- createdAt: z.ZodDate;
885
- updatedAt: z.ZodDate;
886
- deletedAt: z.ZodNullable<z.ZodDate>;
887
- systemName: z.ZodString;
888
- displayName: z.ZodString;
889
- description: z.ZodNullable<z.ZodString>;
890
- permissions: z.ZodArray<z.ZodObject<{
891
- id: z.ZodString;
892
- createdAt: z.ZodDate;
893
- updatedAt: z.ZodDate;
894
- deletedAt: z.ZodNullable<z.ZodDate>;
895
- systemName: z.ZodString;
896
- displayName: z.ZodString;
897
- description: z.ZodNullable<z.ZodString>;
898
- }, "strip", z.ZodTypeAny, {
899
- id: string;
900
- description: string | null;
901
- createdAt: Date;
902
- updatedAt: Date;
903
- deletedAt: Date | null;
904
- systemName: string;
905
- displayName: string;
906
- }, {
907
- id: string;
908
- description: string | null;
909
- createdAt: Date;
910
- updatedAt: Date;
911
- deletedAt: Date | null;
912
- systemName: string;
913
- displayName: string;
914
- }>, "many">;
915
- }, "strip", z.ZodTypeAny, {
916
- id: string;
917
- description: string | null;
918
- createdAt: Date;
919
- updatedAt: Date;
920
- deletedAt: Date | null;
921
- systemName: string;
922
- displayName: string;
923
- permissions: {
924
- id: string;
925
- description: string | null;
926
- createdAt: Date;
927
- updatedAt: Date;
928
- deletedAt: Date | null;
929
- systemName: string;
930
- displayName: string;
931
- }[];
932
- }, {
933
- id: string;
934
- description: string | null;
935
- createdAt: Date;
936
- updatedAt: Date;
937
- deletedAt: Date | null;
938
- systemName: string;
939
- displayName: string;
940
- permissions: {
941
- id: string;
942
- description: string | null;
943
- createdAt: Date;
944
- updatedAt: Date;
945
- deletedAt: Date | null;
946
- systemName: string;
947
- displayName: string;
948
- }[];
949
- }>, "many">;
950
- }, "strip", z.ZodTypeAny, {
951
- id: string;
952
- address: string | null;
953
- name: string;
954
- email: string;
955
- createdAt: Date;
956
- updatedAt: Date;
957
- deletedAt: Date | null;
958
- phone: string | null;
959
- notificationCount: number | null;
960
- roles: {
961
- id: string;
962
- description: string | null;
963
- createdAt: Date;
964
- updatedAt: Date;
965
- deletedAt: Date | null;
966
- systemName: string;
967
- displayName: string;
968
- permissions: {
969
- id: string;
970
- description: string | null;
971
- createdAt: Date;
972
- updatedAt: Date;
973
- deletedAt: Date | null;
974
- systemName: string;
975
- displayName: string;
976
- }[];
977
- }[];
978
- }, {
979
- id: string;
980
- address: string | null;
981
- name: string;
982
- email: string;
983
- createdAt: Date;
984
- updatedAt: Date;
985
- deletedAt: Date | null;
986
- phone: string | null;
987
- notificationCount: number | null;
988
- roles: {
989
- id: string;
990
- description: string | null;
991
- createdAt: Date;
992
- updatedAt: Date;
993
- deletedAt: Date | null;
994
- systemName: string;
995
- displayName: string;
996
- permissions: {
997
- id: string;
998
- description: string | null;
999
- createdAt: Date;
1000
- updatedAt: Date;
1001
- deletedAt: Date | null;
1002
- systemName: string;
1003
- displayName: string;
1004
- }[];
1005
- }[];
1006
- }>>;
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;
1007
2340
  }, "strip", z.ZodTypeAny, {
1008
- id?: string | undefined;
1009
- createdAt?: Date | undefined;
1010
- updatedAt?: Date | undefined;
1011
- deletedAt?: Date | null | undefined;
1012
- name?: string | undefined;
1013
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
1014
- metadata?: {
2341
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2342
+ id: string;
2343
+ name: string;
2344
+ metadata: {
1015
2345
  id: string;
1016
2346
  name: string;
1017
2347
  accessToken: string;
1018
2348
  additionalCredentials?: any;
1019
- } | undefined;
1020
- brandName?: string | undefined;
1021
- platformId?: string | undefined;
1022
- status?: 0 | 1 | undefined;
1023
- isReloginRequired?: boolean | undefined;
1024
- connectedUserName?: string | undefined;
1025
- connectedUserId?: string | undefined;
1026
- actor?: {
1027
- id: string;
1028
- address: string | null;
1029
- name: string;
1030
- email: string;
1031
- createdAt: Date;
1032
- updatedAt: Date;
1033
- deletedAt: Date | null;
1034
- phone: string | null;
1035
- notificationCount: number | null;
1036
- roles: {
1037
- id: string;
1038
- description: string | null;
1039
- createdAt: Date;
1040
- updatedAt: Date;
1041
- deletedAt: Date | null;
1042
- systemName: string;
1043
- displayName: string;
1044
- permissions: {
1045
- id: string;
1046
- description: string | null;
1047
- createdAt: Date;
1048
- updatedAt: Date;
1049
- deletedAt: Date | null;
1050
- systemName: string;
1051
- displayName: string;
1052
- }[];
1053
- }[];
1054
- } | undefined;
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;
1055
2360
  }, {
1056
- id?: string | undefined;
1057
- createdAt?: Date | undefined;
1058
- updatedAt?: Date | undefined;
1059
- deletedAt?: Date | null | undefined;
1060
- name?: string | undefined;
1061
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
1062
- metadata?: {
2361
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2362
+ id: string;
2363
+ name: string;
2364
+ metadata: {
1063
2365
  id: string;
1064
2366
  name: string;
1065
2367
  accessToken: string;
1066
2368
  additionalCredentials?: any;
1067
- } | undefined;
1068
- brandName?: string | undefined;
1069
- platformId?: string | undefined;
1070
- status?: 0 | 1 | undefined;
1071
- isReloginRequired?: boolean | undefined;
1072
- connectedUserName?: string | undefined;
1073
- connectedUserId?: string | undefined;
1074
- actor?: {
1075
- id: string;
1076
- address: string | null;
1077
- name: string;
1078
- email: string;
1079
- createdAt: Date;
1080
- updatedAt: Date;
1081
- deletedAt: Date | null;
1082
- phone: string | null;
1083
- notificationCount: number | null;
1084
- roles: {
1085
- id: string;
1086
- description: string | null;
1087
- createdAt: Date;
1088
- updatedAt: Date;
1089
- deletedAt: Date | null;
1090
- systemName: string;
1091
- displayName: string;
1092
- permissions: {
1093
- id: string;
1094
- description: string | null;
1095
- createdAt: Date;
1096
- updatedAt: Date;
1097
- deletedAt: Date | null;
1098
- systemName: string;
1099
- displayName: string;
1100
- }[];
1101
- }[];
1102
- } | undefined;
1103
- }>>;
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
+ }>;
1104
2381
  tags: z.ZodArray<z.ZodObject<{
1105
2382
  id: z.ZodString;
1106
2383
  createdAt: z.ZodDate;
@@ -1122,11 +2399,31 @@ export declare const RoomSchema: z.ZodObject<{
1122
2399
  }>, "many">;
1123
2400
  }, "strip", z.ZodTypeAny, {
1124
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
+ };
1125
2423
  direction: "incoming" | "outgoing" | "system";
1126
2424
  createdAt: Date;
1127
2425
  updatedAt: Date;
1128
2426
  deletedAt: Date | null;
1129
- notes: string;
1130
2427
  actor: {
1131
2428
  id: string;
1132
2429
  address: string | null;
@@ -1135,6 +2432,8 @@ export declare const RoomSchema: z.ZodObject<{
1135
2432
  createdAt: Date;
1136
2433
  updatedAt: Date;
1137
2434
  deletedAt: Date | null;
2435
+ emailVerifiedAt: Date | null;
2436
+ password: string;
1138
2437
  phone: string | null;
1139
2438
  notificationCount: number | null;
1140
2439
  roles: {
@@ -1155,7 +2454,27 @@ export declare const RoomSchema: z.ZodObject<{
1155
2454
  displayName: string;
1156
2455
  }[];
1157
2456
  }[];
2457
+ extension?: {
2458
+ id: string;
2459
+ createdAt: Date;
2460
+ updatedAt: Date;
2461
+ deletedAt: Date | null;
2462
+ userId: string | null;
2463
+ sipServerUrl: string;
2464
+ sipUserName: string;
2465
+ extensionId: number;
2466
+ extensionName: string;
2467
+ telephonySignature: string | null;
2468
+ } | undefined;
1158
2469
  };
2470
+ notes: string;
2471
+ tags: {
2472
+ id: string;
2473
+ name: string;
2474
+ createdAt: Date;
2475
+ updatedAt: Date;
2476
+ deletedAt: Date | null;
2477
+ }[];
1159
2478
  lastMessage: string;
1160
2479
  handleTime: number;
1161
2480
  isSolved: boolean;
@@ -1164,7 +2483,7 @@ export declare const RoomSchema: z.ZodObject<{
1164
2483
  firstResponseTime: Date;
1165
2484
  isLatest: boolean;
1166
2485
  platformContact: {
1167
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
2486
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1168
2487
  id: string;
1169
2488
  metadata: {
1170
2489
  id: string;
@@ -1182,11 +2501,91 @@ export declare const RoomSchema: z.ZodObject<{
1182
2501
  createdAt: Date;
1183
2502
  updatedAt: Date;
1184
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
+ }[];
1185
2545
  notes: string | null;
1186
- contactNumber: string | null;
1187
- companyId: string | null;
1188
2546
  contactProfile: string | null;
1189
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;
1190
2589
  };
1191
2590
  channelId: string;
1192
2591
  socialPlatformId: string;
@@ -1199,6 +2598,8 @@ export declare const RoomSchema: z.ZodObject<{
1199
2598
  createdAt: Date;
1200
2599
  updatedAt: Date;
1201
2600
  deletedAt: Date | null;
2601
+ emailVerifiedAt: Date | null;
2602
+ password: string;
1202
2603
  phone: string | null;
1203
2604
  notificationCount: number | null;
1204
2605
  roles: {
@@ -1219,70 +2620,46 @@ export declare const RoomSchema: z.ZodObject<{
1219
2620
  displayName: string;
1220
2621
  }[];
1221
2622
  }[];
1222
- };
1223
- tags: {
1224
- id: string;
1225
- name: string;
1226
- createdAt: Date;
1227
- updatedAt: Date;
1228
- deletedAt: Date | null;
1229
- }[];
1230
- channel?: {
1231
- id?: string | undefined;
1232
- createdAt?: Date | undefined;
1233
- updatedAt?: Date | undefined;
1234
- deletedAt?: Date | null | undefined;
1235
- name?: string | undefined;
1236
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
1237
- metadata?: {
1238
- id: string;
1239
- name: string;
1240
- accessToken: string;
1241
- additionalCredentials?: any;
1242
- } | undefined;
1243
- brandName?: string | undefined;
1244
- platformId?: string | undefined;
1245
- status?: 0 | 1 | undefined;
1246
- isReloginRequired?: boolean | undefined;
1247
- connectedUserName?: string | undefined;
1248
- connectedUserId?: string | undefined;
1249
- actor?: {
2623
+ extension?: {
1250
2624
  id: string;
1251
- address: string | null;
1252
- name: string;
1253
- email: string;
1254
2625
  createdAt: Date;
1255
2626
  updatedAt: Date;
1256
2627
  deletedAt: Date | null;
1257
- phone: string | null;
1258
- notificationCount: number | null;
1259
- roles: {
1260
- id: string;
1261
- description: string | null;
1262
- createdAt: Date;
1263
- updatedAt: Date;
1264
- deletedAt: Date | null;
1265
- systemName: string;
1266
- displayName: string;
1267
- permissions: {
1268
- id: string;
1269
- description: string | null;
1270
- createdAt: Date;
1271
- updatedAt: Date;
1272
- deletedAt: Date | null;
1273
- systemName: string;
1274
- displayName: string;
1275
- }[];
1276
- }[];
2628
+ userId: string | null;
2629
+ sipServerUrl: string;
2630
+ sipUserName: string;
2631
+ extensionId: number;
2632
+ extensionName: string;
2633
+ telephonySignature: string | null;
1277
2634
  } | undefined;
1278
- } | undefined;
2635
+ };
1279
2636
  }, {
1280
2637
  id: string;
2638
+ channel: {
2639
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
2640
+ id: string;
2641
+ name: string;
2642
+ metadata: {
2643
+ id: string;
2644
+ name: string;
2645
+ accessToken: string;
2646
+ additionalCredentials?: any;
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
+ };
1281
2659
  direction: "incoming" | "outgoing" | "system";
1282
2660
  createdAt: Date;
1283
2661
  updatedAt: Date;
1284
2662
  deletedAt: Date | null;
1285
- notes: string;
1286
2663
  actor: {
1287
2664
  id: string;
1288
2665
  address: string | null;
@@ -1291,6 +2668,8 @@ export declare const RoomSchema: z.ZodObject<{
1291
2668
  createdAt: Date;
1292
2669
  updatedAt: Date;
1293
2670
  deletedAt: Date | null;
2671
+ emailVerifiedAt: Date | null;
2672
+ password: string;
1294
2673
  phone: string | null;
1295
2674
  notificationCount: number | null;
1296
2675
  roles: {
@@ -1311,7 +2690,27 @@ export declare const RoomSchema: z.ZodObject<{
1311
2690
  displayName: string;
1312
2691
  }[];
1313
2692
  }[];
2693
+ extension?: {
2694
+ id: string;
2695
+ createdAt: Date;
2696
+ updatedAt: Date;
2697
+ deletedAt: Date | null;
2698
+ userId: string | null;
2699
+ sipServerUrl: string;
2700
+ sipUserName: string;
2701
+ extensionId: number;
2702
+ extensionName: string;
2703
+ telephonySignature: string | null;
2704
+ } | undefined;
1314
2705
  };
2706
+ notes: string;
2707
+ tags: {
2708
+ id: string;
2709
+ name: string;
2710
+ createdAt: Date;
2711
+ updatedAt: Date;
2712
+ deletedAt: Date | null;
2713
+ }[];
1315
2714
  lastMessage: string;
1316
2715
  handleTime: number;
1317
2716
  isSolved: boolean;
@@ -1320,7 +2719,7 @@ export declare const RoomSchema: z.ZodObject<{
1320
2719
  firstResponseTime: Date;
1321
2720
  isLatest: boolean;
1322
2721
  platformContact: {
1323
- platform: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao";
2722
+ platform: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada";
1324
2723
  id: string;
1325
2724
  metadata: {
1326
2725
  id: string;
@@ -1338,11 +2737,91 @@ export declare const RoomSchema: z.ZodObject<{
1338
2737
  createdAt: Date;
1339
2738
  updatedAt: Date;
1340
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
+ }[];
1341
2781
  notes: string | null;
1342
- contactNumber: string | null;
1343
- companyId: string | null;
1344
2782
  contactProfile: string | null;
1345
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;
1346
2825
  };
1347
2826
  channelId: string;
1348
2827
  socialPlatformId: string;
@@ -1355,6 +2834,8 @@ export declare const RoomSchema: z.ZodObject<{
1355
2834
  createdAt: Date;
1356
2835
  updatedAt: Date;
1357
2836
  deletedAt: Date | null;
2837
+ emailVerifiedAt: Date | null;
2838
+ password: string;
1358
2839
  phone: string | null;
1359
2840
  notificationCount: number | null;
1360
2841
  roles: {
@@ -1375,63 +2856,19 @@ export declare const RoomSchema: z.ZodObject<{
1375
2856
  displayName: string;
1376
2857
  }[];
1377
2858
  }[];
1378
- };
1379
- tags: {
1380
- id: string;
1381
- name: string;
1382
- createdAt: Date;
1383
- updatedAt: Date;
1384
- deletedAt: Date | null;
1385
- }[];
1386
- channel?: {
1387
- id?: string | undefined;
1388
- createdAt?: Date | undefined;
1389
- updatedAt?: Date | undefined;
1390
- deletedAt?: Date | null | undefined;
1391
- name?: string | undefined;
1392
- type?: "line" | "messenger" | "viber" | "lazada" | "shopee" | "whatsapp" | "telegram" | "kakao" | undefined;
1393
- metadata?: {
2859
+ extension?: {
1394
2860
  id: string;
1395
- name: string;
1396
- accessToken: string;
1397
- additionalCredentials?: any;
1398
- } | undefined;
1399
- brandName?: string | undefined;
1400
- platformId?: string | undefined;
1401
- status?: 0 | 1 | undefined;
1402
- isReloginRequired?: boolean | undefined;
1403
- connectedUserName?: string | undefined;
1404
- connectedUserId?: string | undefined;
1405
- actor?: {
1406
- id: string;
1407
- address: string | null;
1408
- name: string;
1409
- email: string;
1410
2861
  createdAt: Date;
1411
2862
  updatedAt: Date;
1412
2863
  deletedAt: Date | null;
1413
- phone: string | null;
1414
- notificationCount: number | null;
1415
- roles: {
1416
- id: string;
1417
- description: string | null;
1418
- createdAt: Date;
1419
- updatedAt: Date;
1420
- deletedAt: Date | null;
1421
- systemName: string;
1422
- displayName: string;
1423
- permissions: {
1424
- id: string;
1425
- description: string | null;
1426
- createdAt: Date;
1427
- updatedAt: Date;
1428
- deletedAt: Date | null;
1429
- systemName: string;
1430
- displayName: string;
1431
- }[];
1432
- }[];
2864
+ userId: string | null;
2865
+ sipServerUrl: string;
2866
+ sipUserName: string;
2867
+ extensionId: number;
2868
+ extensionName: string;
2869
+ telephonySignature: string | null;
1433
2870
  } | undefined;
1434
- } | undefined;
2871
+ };
1435
2872
  }>;
1436
2873
  /**
1437
2874
  * Message
@@ -1442,8 +2879,8 @@ export declare const MessageSchema: z.ZodObject<{
1442
2879
  updatedAt: z.ZodDate;
1443
2880
  deletedAt: z.ZodNullable<z.ZodDate>;
1444
2881
  message: z.ZodString;
1445
- direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1446
- 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"]>;
1447
2884
  user: z.ZodObject<{
1448
2885
  id: z.ZodString;
1449
2886
  createdAt: z.ZodDate;
@@ -1451,6 +2888,8 @@ export declare const MessageSchema: z.ZodObject<{
1451
2888
  deletedAt: z.ZodNullable<z.ZodDate>;
1452
2889
  name: z.ZodString;
1453
2890
  email: z.ZodString;
2891
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2892
+ password: z.ZodString;
1454
2893
  address: z.ZodNullable<z.ZodString>;
1455
2894
  phone: z.ZodNullable<z.ZodString>;
1456
2895
  notificationCount: z.ZodNullable<z.ZodNumber>;
@@ -1522,6 +2961,40 @@ export declare const MessageSchema: z.ZodObject<{
1522
2961
  displayName: string;
1523
2962
  }[];
1524
2963
  }>, "many">;
2964
+ extension: z.ZodOptional<z.ZodObject<{
2965
+ id: z.ZodString;
2966
+ createdAt: z.ZodDate;
2967
+ updatedAt: z.ZodDate;
2968
+ deletedAt: z.ZodNullable<z.ZodDate>;
2969
+ userId: z.ZodNullable<z.ZodString>;
2970
+ sipServerUrl: z.ZodString;
2971
+ sipUserName: z.ZodString;
2972
+ extensionId: z.ZodNumber;
2973
+ extensionName: z.ZodString;
2974
+ telephonySignature: z.ZodNullable<z.ZodString>;
2975
+ }, "strip", z.ZodTypeAny, {
2976
+ id: string;
2977
+ createdAt: Date;
2978
+ updatedAt: Date;
2979
+ deletedAt: Date | null;
2980
+ userId: string | null;
2981
+ sipServerUrl: string;
2982
+ sipUserName: string;
2983
+ extensionId: number;
2984
+ extensionName: string;
2985
+ telephonySignature: string | null;
2986
+ }, {
2987
+ id: string;
2988
+ createdAt: Date;
2989
+ updatedAt: Date;
2990
+ deletedAt: Date | null;
2991
+ userId: string | null;
2992
+ sipServerUrl: string;
2993
+ sipUserName: string;
2994
+ extensionId: number;
2995
+ extensionName: string;
2996
+ telephonySignature: string | null;
2997
+ }>>;
1525
2998
  }, "strip", z.ZodTypeAny, {
1526
2999
  id: string;
1527
3000
  address: string | null;
@@ -1530,6 +3003,8 @@ export declare const MessageSchema: z.ZodObject<{
1530
3003
  createdAt: Date;
1531
3004
  updatedAt: Date;
1532
3005
  deletedAt: Date | null;
3006
+ emailVerifiedAt: Date | null;
3007
+ password: string;
1533
3008
  phone: string | null;
1534
3009
  notificationCount: number | null;
1535
3010
  roles: {
@@ -1550,6 +3025,18 @@ export declare const MessageSchema: z.ZodObject<{
1550
3025
  displayName: string;
1551
3026
  }[];
1552
3027
  }[];
3028
+ extension?: {
3029
+ id: string;
3030
+ createdAt: Date;
3031
+ updatedAt: Date;
3032
+ deletedAt: Date | null;
3033
+ userId: string | null;
3034
+ sipServerUrl: string;
3035
+ sipUserName: string;
3036
+ extensionId: number;
3037
+ extensionName: string;
3038
+ telephonySignature: string | null;
3039
+ } | undefined;
1553
3040
  }, {
1554
3041
  id: string;
1555
3042
  address: string | null;
@@ -1558,6 +3045,8 @@ export declare const MessageSchema: z.ZodObject<{
1558
3045
  createdAt: Date;
1559
3046
  updatedAt: Date;
1560
3047
  deletedAt: Date | null;
3048
+ emailVerifiedAt: Date | null;
3049
+ password: string;
1561
3050
  phone: string | null;
1562
3051
  notificationCount: number | null;
1563
3052
  roles: {
@@ -1578,6 +3067,18 @@ export declare const MessageSchema: z.ZodObject<{
1578
3067
  displayName: string;
1579
3068
  }[];
1580
3069
  }[];
3070
+ extension?: {
3071
+ id: string;
3072
+ createdAt: Date;
3073
+ updatedAt: Date;
3074
+ deletedAt: Date | null;
3075
+ userId: string | null;
3076
+ sipServerUrl: string;
3077
+ sipUserName: string;
3078
+ extensionId: number;
3079
+ extensionName: string;
3080
+ telephonySignature: string | null;
3081
+ } | undefined;
1581
3082
  }>;
1582
3083
  readAt: z.ZodDate;
1583
3084
  metadata: z.ZodAny;
@@ -1598,22 +3099,22 @@ export declare const MessageSchema: z.ZodObject<{
1598
3099
  createdAt: Date;
1599
3100
  updatedAt: Date;
1600
3101
  deletedAt: Date | null;
1601
- bucketName: string;
1602
3102
  fileName: string;
1603
- fileSize: number;
1604
3103
  fileKey: string;
3104
+ bucketName: string;
3105
+ fileSize: number;
1605
3106
  }, {
1606
3107
  id: string;
1607
3108
  createdAt: Date;
1608
3109
  updatedAt: Date;
1609
3110
  deletedAt: Date | null;
1610
- bucketName: string;
1611
3111
  fileName: string;
1612
- fileSize: number;
1613
3112
  fileKey: string;
3113
+ bucketName: string;
3114
+ fileSize: number;
1614
3115
  }>;
1615
3116
  template: z.ZodAny;
1616
- locale: z.ZodUnion<[z.ZodLiteral<"mm">, z.ZodLiteral<"en">, z.ZodLiteral<"th">]>;
3117
+ locale: z.ZodEnum<["mm", "en", "th"]>;
1617
3118
  isSent: z.ZodBoolean;
1618
3119
  }, "strip", z.ZodTypeAny, {
1619
3120
  type: "attachment" | "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "assign" | "solve" | "reopen" | "sticker" | "handed_over" | "updated" | "started";
@@ -1628,6 +3129,8 @@ export declare const MessageSchema: z.ZodObject<{
1628
3129
  createdAt: Date;
1629
3130
  updatedAt: Date;
1630
3131
  deletedAt: Date | null;
3132
+ emailVerifiedAt: Date | null;
3133
+ password: string;
1631
3134
  phone: string | null;
1632
3135
  notificationCount: number | null;
1633
3136
  roles: {
@@ -1648,24 +3151,36 @@ export declare const MessageSchema: z.ZodObject<{
1648
3151
  displayName: string;
1649
3152
  }[];
1650
3153
  }[];
3154
+ extension?: {
3155
+ id: string;
3156
+ createdAt: Date;
3157
+ updatedAt: Date;
3158
+ deletedAt: Date | null;
3159
+ userId: string | null;
3160
+ sipServerUrl: string;
3161
+ sipUserName: string;
3162
+ extensionId: number;
3163
+ extensionName: string;
3164
+ telephonySignature: string | null;
3165
+ } | undefined;
1651
3166
  };
1652
3167
  createdAt: Date;
1653
3168
  updatedAt: Date;
1654
3169
  deletedAt: Date | null;
1655
3170
  platformId: string;
1656
- readAt: Date;
1657
- replyPlatformMessageId: string;
1658
- platformMessageId: string;
1659
3171
  upload: {
1660
3172
  id: string;
1661
3173
  createdAt: Date;
1662
3174
  updatedAt: Date;
1663
3175
  deletedAt: Date | null;
1664
- bucketName: string;
1665
3176
  fileName: string;
1666
- fileSize: number;
1667
3177
  fileKey: string;
3178
+ bucketName: string;
3179
+ fileSize: number;
1668
3180
  };
3181
+ readAt: Date;
3182
+ replyPlatformMessageId: string;
3183
+ platformMessageId: string;
1669
3184
  locale: "th" | "mm" | "en";
1670
3185
  isSent: boolean;
1671
3186
  metadata?: any;
@@ -1683,6 +3198,8 @@ export declare const MessageSchema: z.ZodObject<{
1683
3198
  createdAt: Date;
1684
3199
  updatedAt: Date;
1685
3200
  deletedAt: Date | null;
3201
+ emailVerifiedAt: Date | null;
3202
+ password: string;
1686
3203
  phone: string | null;
1687
3204
  notificationCount: number | null;
1688
3205
  roles: {
@@ -1703,24 +3220,36 @@ export declare const MessageSchema: z.ZodObject<{
1703
3220
  displayName: string;
1704
3221
  }[];
1705
3222
  }[];
3223
+ extension?: {
3224
+ id: string;
3225
+ createdAt: Date;
3226
+ updatedAt: Date;
3227
+ deletedAt: Date | null;
3228
+ userId: string | null;
3229
+ sipServerUrl: string;
3230
+ sipUserName: string;
3231
+ extensionId: number;
3232
+ extensionName: string;
3233
+ telephonySignature: string | null;
3234
+ } | undefined;
1706
3235
  };
1707
3236
  createdAt: Date;
1708
3237
  updatedAt: Date;
1709
3238
  deletedAt: Date | null;
1710
3239
  platformId: string;
1711
- readAt: Date;
1712
- replyPlatformMessageId: string;
1713
- platformMessageId: string;
1714
3240
  upload: {
1715
3241
  id: string;
1716
3242
  createdAt: Date;
1717
3243
  updatedAt: Date;
1718
3244
  deletedAt: Date | null;
1719
- bucketName: string;
1720
3245
  fileName: string;
1721
- fileSize: number;
1722
3246
  fileKey: string;
3247
+ bucketName: string;
3248
+ fileSize: number;
1723
3249
  };
3250
+ readAt: Date;
3251
+ replyPlatformMessageId: string;
3252
+ platformMessageId: string;
1724
3253
  locale: "th" | "mm" | "en";
1725
3254
  isSent: boolean;
1726
3255
  metadata?: any;