@kl1/contracts 1.0.77 → 1.0.79

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 (73) hide show
  1. package/dist/index.js +2391 -2040
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2390 -2040
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/call-log/schema.d.ts +6 -6
  6. package/dist/src/call-log/validation.d.ts +4 -4
  7. package/dist/src/channel/index.d.ts +92 -88
  8. package/dist/src/channel/index.d.ts.map +1 -1
  9. package/dist/src/channel/schema.d.ts +4 -4
  10. package/dist/src/channel/schema.d.ts.map +1 -1
  11. package/dist/src/channel/validation.d.ts +3 -3
  12. package/dist/src/chat/index.d.ts +7108 -3826
  13. package/dist/src/chat/index.d.ts.map +1 -1
  14. package/dist/src/chat/schema.d.ts +3391 -1087
  15. package/dist/src/chat/schema.d.ts.map +1 -1
  16. package/dist/src/chat/validation.d.ts +1945 -304
  17. package/dist/src/chat/validation.d.ts.map +1 -1
  18. package/dist/src/comment/index.d.ts +584 -584
  19. package/dist/src/comment/schema.d.ts +144 -144
  20. package/dist/src/contact/index.d.ts +4 -1
  21. package/dist/src/contact/index.d.ts.map +1 -1
  22. package/dist/src/contact/schema.d.ts +156 -0
  23. package/dist/src/contact/schema.d.ts.map +1 -1
  24. package/dist/src/contract.d.ts +25050 -10486
  25. package/dist/src/contract.d.ts.map +1 -1
  26. package/dist/src/cx-log/index.d.ts +948 -205
  27. package/dist/src/cx-log/index.d.ts.map +1 -1
  28. package/dist/src/cx-log/schema.d.ts +920 -263
  29. package/dist/src/cx-log/schema.d.ts.map +1 -1
  30. package/dist/src/dashboard/index.d.ts +4 -4
  31. package/dist/src/dashboard/schema.d.ts +2 -2
  32. package/dist/src/index.d.ts +0 -1
  33. package/dist/src/index.d.ts.map +1 -1
  34. package/dist/src/instagram/index.d.ts +2162 -343
  35. package/dist/src/instagram/index.d.ts.map +1 -1
  36. package/dist/src/line/index.d.ts +1912 -271
  37. package/dist/src/line/index.d.ts.map +1 -1
  38. package/dist/src/mail/mail-contract.d.ts +130 -130
  39. package/dist/src/mail/message-contract.d.ts +6 -6
  40. package/dist/src/mail/room-contract.d.ts +124 -124
  41. package/dist/src/mail/schemas/message.schema.d.ts +4 -4
  42. package/dist/src/mail/schemas/room-validation.schema.d.ts +40 -40
  43. package/dist/src/mail/schemas/room.schema.d.ts +30 -30
  44. package/dist/src/messenger/index.d.ts +2520 -520
  45. package/dist/src/messenger/index.d.ts.map +1 -1
  46. package/dist/src/messenger/validation.d.ts +1523 -0
  47. package/dist/src/messenger/validation.d.ts.map +1 -1
  48. package/dist/src/notification/index.d.ts +742 -0
  49. package/dist/src/notification/index.d.ts.map +1 -0
  50. package/dist/src/notification/schema.d.ts +48 -0
  51. package/dist/src/notification/schema.d.ts.map +1 -0
  52. package/dist/src/notification/validation.d.ts +148 -0
  53. package/dist/src/notification/validation.d.ts.map +1 -0
  54. package/dist/src/telephony-cdr/index.d.ts +2376 -404
  55. package/dist/src/telephony-cdr/index.d.ts.map +1 -1
  56. package/dist/src/telephony-cdr/schema.d.ts +839 -63
  57. package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
  58. package/dist/src/telephony-cdr/validation.d.ts +4 -4
  59. package/dist/src/ticket/index.d.ts +1106 -1106
  60. package/dist/src/ticket/schema.d.ts +72 -72
  61. package/dist/src/ticket/validation.d.ts +12 -12
  62. package/dist/src/viber/index.d.ts +3614 -1248
  63. package/dist/src/viber/index.d.ts.map +1 -1
  64. package/dist/src/wrap-up-form/index.d.ts +19 -19
  65. package/dist/src/wrap-up-form/schema.d.ts +2 -2
  66. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  67. package/package.json +1 -1
  68. package/dist/src/app/index.d.ts +0 -17
  69. package/dist/src/app/index.d.ts.map +0 -1
  70. package/dist/src/mail/mail-server.d.ts +0 -216
  71. package/dist/src/mail/mail-server.d.ts.map +0 -1
  72. package/dist/src/platform-contact/schema.d.ts +0 -30
  73. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -56,9 +56,9 @@ export declare const CxLogSchema: z.ZodObject<{
56
56
  updatedAt: Date;
57
57
  deletedAt: Date | null;
58
58
  }[];
59
- note: string | null;
60
59
  callFrom: string | null;
61
60
  callTo: string | null;
61
+ note: string | null;
62
62
  }, {
63
63
  id: string;
64
64
  disposition: string | null;
@@ -72,9 +72,9 @@ export declare const CxLogSchema: z.ZodObject<{
72
72
  updatedAt: Date;
73
73
  deletedAt: Date | null;
74
74
  }[];
75
- note: string | null;
76
75
  callFrom: string | null;
77
76
  callTo: string | null;
77
+ note: string | null;
78
78
  }>>;
79
79
  }, "strip", z.ZodTypeAny, {
80
80
  id: string;
@@ -84,14 +84,14 @@ export declare const CxLogSchema: z.ZodObject<{
84
84
  updatedAt: Date;
85
85
  deletedAt: Date | null;
86
86
  entityId: string;
87
- firstResponseTime: number | null;
87
+ queueId: string | null;
88
+ contactId: string | null;
88
89
  caseId: number;
89
90
  entityName: string;
90
- contactId: string | null;
91
- queueId: string | null;
92
91
  agentId: string | null;
93
92
  startedDate: Date | null;
94
93
  handledTime: number | null;
94
+ firstResponseTime: number | null;
95
95
  wrapUpForm: {
96
96
  id: string;
97
97
  disposition: string | null;
@@ -105,9 +105,9 @@ export declare const CxLogSchema: z.ZodObject<{
105
105
  updatedAt: Date;
106
106
  deletedAt: Date | null;
107
107
  }[];
108
- note: string | null;
109
108
  callFrom: string | null;
110
109
  callTo: string | null;
110
+ note: string | null;
111
111
  } | null;
112
112
  }, {
113
113
  id: string;
@@ -117,14 +117,14 @@ export declare const CxLogSchema: z.ZodObject<{
117
117
  updatedAt: Date;
118
118
  deletedAt: Date | null;
119
119
  entityId: string;
120
- firstResponseTime: number | null;
120
+ queueId: string | null;
121
+ contactId: string | null;
121
122
  caseId: number;
122
123
  entityName: string;
123
- contactId: string | null;
124
- queueId: string | null;
125
124
  agentId: string | null;
126
125
  startedDate: Date | null;
127
126
  handledTime: number | null;
127
+ firstResponseTime: number | null;
128
128
  wrapUpForm: {
129
129
  id: string;
130
130
  disposition: string | null;
@@ -138,9 +138,9 @@ export declare const CxLogSchema: z.ZodObject<{
138
138
  updatedAt: Date;
139
139
  deletedAt: Date | null;
140
140
  }[];
141
- note: string | null;
142
141
  callFrom: string | null;
143
142
  callTo: string | null;
143
+ note: string | null;
144
144
  } | null;
145
145
  }>;
146
146
  export declare const CxLogSchemaWithRelations: z.ZodObject<{
@@ -225,9 +225,9 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
225
225
  updatedAt: Date;
226
226
  deletedAt: Date | null;
227
227
  }[];
228
- note: string | null;
229
228
  callFrom: string | null;
230
229
  callTo: string | null;
230
+ note: string | null;
231
231
  }, {
232
232
  id: string;
233
233
  disposition: string | null;
@@ -241,9 +241,9 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
241
241
  updatedAt: Date;
242
242
  deletedAt: Date | null;
243
243
  }[];
244
- note: string | null;
245
244
  callFrom: string | null;
246
245
  callTo: string | null;
246
+ note: string | null;
247
247
  }>>;
248
248
  room: z.ZodNullable<z.ZodObject<{
249
249
  id: z.ZodString;
@@ -265,7 +265,7 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
265
265
  deletedAt: z.ZodNullable<z.ZodDate>;
266
266
  channelId: z.ZodString;
267
267
  socialPlatformId: z.ZodString;
268
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
268
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
269
269
  metadata: z.ZodObject<{
270
270
  id: z.ZodString;
271
271
  name: z.ZodString;
@@ -970,7 +970,7 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
970
970
  }[] | undefined;
971
971
  }>;
972
972
  }, "strip", z.ZodTypeAny, {
973
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
973
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
974
974
  id: string;
975
975
  metadata: {
976
976
  id: string;
@@ -1081,7 +1081,7 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1081
1081
  channelId: string;
1082
1082
  socialPlatformId: string;
1083
1083
  }, {
1084
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1084
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1085
1085
  id: string;
1086
1086
  metadata: {
1087
1087
  id: string;
@@ -1606,7 +1606,7 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1606
1606
  updatedAt: z.ZodDate;
1607
1607
  deletedAt: z.ZodNullable<z.ZodDate>;
1608
1608
  name: z.ZodString;
1609
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
1609
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
1610
1610
  metadata: z.ZodObject<{
1611
1611
  id: z.ZodString;
1612
1612
  name: z.ZodString;
@@ -1837,7 +1837,7 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1837
1837
  };
1838
1838
  }>;
1839
1839
  }, "strip", z.ZodTypeAny, {
1840
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1840
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1841
1841
  id: string;
1842
1842
  name: string;
1843
1843
  metadata: {
@@ -1901,7 +1901,7 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1901
1901
  connectedUserName: string;
1902
1902
  connectedUserId: string;
1903
1903
  }, {
1904
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1904
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1905
1905
  id: string;
1906
1906
  name: string;
1907
1907
  metadata: {
@@ -1968,7 +1968,7 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1968
1968
  }, "strip", z.ZodTypeAny, {
1969
1969
  id: string;
1970
1970
  channel: {
1971
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1971
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1972
1972
  id: string;
1973
1973
  name: string;
1974
1974
  metadata: {
@@ -2080,15 +2080,15 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
2080
2080
  telephonySignature: string | null;
2081
2081
  };
2082
2082
  };
2083
+ firstResponseTime: number;
2083
2084
  lastMessage: string;
2084
2085
  handleTime: number;
2085
2086
  closeAt: Date;
2086
2087
  unreadCount: number;
2087
2088
  firstResponseAt: Date;
2088
- firstResponseTime: number;
2089
2089
  isLatest: boolean;
2090
2090
  platformContact: {
2091
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
2091
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
2092
2092
  id: string;
2093
2093
  metadata: {
2094
2094
  id: string;
@@ -2246,7 +2246,7 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
2246
2246
  }, {
2247
2247
  id: string;
2248
2248
  channel: {
2249
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
2249
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
2250
2250
  id: string;
2251
2251
  name: string;
2252
2252
  metadata: {
@@ -2358,15 +2358,15 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
2358
2358
  telephonySignature: string | null;
2359
2359
  };
2360
2360
  };
2361
+ firstResponseTime: number;
2361
2362
  lastMessage: string;
2362
2363
  handleTime: number;
2363
2364
  closeAt: Date;
2364
2365
  unreadCount: number;
2365
2366
  firstResponseAt: Date;
2366
- firstResponseTime: number;
2367
2367
  isLatest: boolean;
2368
2368
  platformContact: {
2369
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
2369
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
2370
2370
  id: string;
2371
2371
  metadata: {
2372
2372
  id: string;
@@ -3257,75 +3257,23 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3257
3257
  didNumber: z.ZodNullable<z.ZodString>;
3258
3258
  agentRingTime: z.ZodNullable<z.ZodNumber>;
3259
3259
  uploadId: z.ZodNullable<z.ZodString>;
3260
- upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3261
- id: z.ZodString;
3262
- createdAt: z.ZodDate;
3263
- updatedAt: z.ZodDate;
3264
- deletedAt: z.ZodNullable<z.ZodDate>;
3265
- bucketName: z.ZodString;
3266
- fileName: z.ZodString;
3267
- fileSize: z.ZodNumber;
3268
- fileKey: z.ZodString;
3269
- fileUrl: z.ZodNullable<z.ZodString>;
3270
- status: z.ZodOptional<z.ZodString>;
3271
- }, "strip", z.ZodTypeAny, {
3272
- id: string;
3273
- createdAt: Date;
3274
- updatedAt: Date;
3275
- deletedAt: Date | null;
3276
- fileName: string;
3277
- fileKey: string;
3278
- bucketName: string;
3279
- fileSize: number;
3280
- fileUrl: string | null;
3281
- status?: string | undefined;
3282
- }, {
3283
- id: string;
3284
- createdAt: Date;
3285
- updatedAt: Date;
3286
- deletedAt: Date | null;
3287
- fileName: string;
3288
- fileKey: string;
3289
- bucketName: string;
3290
- fileSize: number;
3291
- fileUrl: string | null;
3292
- status?: string | undefined;
3293
- }>>>;
3294
3260
  serialNumber: z.ZodNullable<z.ZodString>;
3295
- extensionId: z.ZodNullable<z.ZodString>;
3296
- extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3297
- id: z.ZodString;
3298
- createdAt: z.ZodDate;
3299
- updatedAt: z.ZodDate;
3300
- deletedAt: z.ZodNullable<z.ZodDate>;
3301
- userId: z.ZodNullable<z.ZodString>;
3302
- sipServerUrl: z.ZodString;
3303
- sipUserName: z.ZodString;
3304
- webphoneLoginUser: z.ZodString;
3305
- extensionId: z.ZodNullable<z.ZodString>;
3306
- extensionName: z.ZodString;
3307
- telephonySignature: z.ZodNullable<z.ZodString>;
3308
- user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3261
+ callParticipants: z.ZodNullable<z.ZodObject<{
3262
+ callTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3309
3263
  id: z.ZodString;
3310
- createdAt: z.ZodDate;
3311
- updatedAt: z.ZodDate;
3312
- deletedAt: z.ZodNullable<z.ZodDate>;
3313
- name: z.ZodString;
3314
- email: z.ZodString;
3315
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3316
- password: z.ZodString;
3317
- address: z.ZodNullable<z.ZodString>;
3318
- phone: z.ZodNullable<z.ZodString>;
3319
- notificationCount: z.ZodNullable<z.ZodNumber>;
3320
- roles: z.ZodArray<z.ZodObject<{
3264
+ user: z.ZodNullable<z.ZodObject<Omit<{
3321
3265
  id: z.ZodString;
3322
3266
  createdAt: z.ZodDate;
3323
3267
  updatedAt: z.ZodDate;
3324
3268
  deletedAt: z.ZodNullable<z.ZodDate>;
3325
- systemName: z.ZodString;
3326
- displayName: z.ZodString;
3327
- description: z.ZodNullable<z.ZodString>;
3328
- permissions: z.ZodArray<z.ZodObject<{
3269
+ name: z.ZodString;
3270
+ email: z.ZodString;
3271
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3272
+ password: z.ZodString;
3273
+ address: z.ZodNullable<z.ZodString>;
3274
+ phone: z.ZodNullable<z.ZodString>;
3275
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3276
+ roles: z.ZodArray<z.ZodObject<{
3329
3277
  id: z.ZodString;
3330
3278
  createdAt: z.ZodDate;
3331
3279
  updatedAt: z.ZodDate;
@@ -3333,6 +3281,31 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3333
3281
  systemName: z.ZodString;
3334
3282
  displayName: z.ZodString;
3335
3283
  description: z.ZodNullable<z.ZodString>;
3284
+ permissions: z.ZodArray<z.ZodObject<{
3285
+ id: z.ZodString;
3286
+ createdAt: z.ZodDate;
3287
+ updatedAt: z.ZodDate;
3288
+ deletedAt: z.ZodNullable<z.ZodDate>;
3289
+ systemName: z.ZodString;
3290
+ displayName: z.ZodString;
3291
+ description: z.ZodNullable<z.ZodString>;
3292
+ }, "strip", z.ZodTypeAny, {
3293
+ id: string;
3294
+ description: string | null;
3295
+ createdAt: Date;
3296
+ updatedAt: Date;
3297
+ deletedAt: Date | null;
3298
+ systemName: string;
3299
+ displayName: string;
3300
+ }, {
3301
+ id: string;
3302
+ description: string | null;
3303
+ createdAt: Date;
3304
+ updatedAt: Date;
3305
+ deletedAt: Date | null;
3306
+ systemName: string;
3307
+ displayName: string;
3308
+ }>, "many">;
3336
3309
  }, "strip", z.ZodTypeAny, {
3337
3310
  id: string;
3338
3311
  description: string | null;
@@ -3341,6 +3314,15 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3341
3314
  deletedAt: Date | null;
3342
3315
  systemName: string;
3343
3316
  displayName: string;
3317
+ permissions: {
3318
+ id: string;
3319
+ description: string | null;
3320
+ createdAt: Date;
3321
+ updatedAt: Date;
3322
+ deletedAt: Date | null;
3323
+ systemName: string;
3324
+ displayName: string;
3325
+ }[];
3344
3326
  }, {
3345
3327
  id: string;
3346
3328
  description: string | null;
@@ -3349,100 +3331,187 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3349
3331
  deletedAt: Date | null;
3350
3332
  systemName: string;
3351
3333
  displayName: string;
3334
+ permissions: {
3335
+ id: string;
3336
+ description: string | null;
3337
+ createdAt: Date;
3338
+ updatedAt: Date;
3339
+ deletedAt: Date | null;
3340
+ systemName: string;
3341
+ displayName: string;
3342
+ }[];
3352
3343
  }>, "many">;
3353
- }, "strip", z.ZodTypeAny, {
3354
- id: string;
3355
- description: string | null;
3356
- createdAt: Date;
3357
- updatedAt: Date;
3358
- deletedAt: Date | null;
3359
- systemName: string;
3360
- displayName: string;
3361
- permissions: {
3344
+ extension: z.ZodObject<{
3345
+ id: z.ZodString;
3346
+ createdAt: z.ZodDate;
3347
+ updatedAt: z.ZodDate;
3348
+ deletedAt: z.ZodNullable<z.ZodDate>;
3349
+ userId: z.ZodNullable<z.ZodString>;
3350
+ sipServerUrl: z.ZodString;
3351
+ sipUserName: z.ZodString;
3352
+ webphoneLoginUser: z.ZodString;
3353
+ extensionId: z.ZodNullable<z.ZodString>;
3354
+ extensionName: z.ZodString;
3355
+ telephonySignature: z.ZodNullable<z.ZodString>;
3356
+ }, "strip", z.ZodTypeAny, {
3362
3357
  id: string;
3363
- description: string | null;
3364
3358
  createdAt: Date;
3365
3359
  updatedAt: Date;
3366
3360
  deletedAt: Date | null;
3367
- systemName: string;
3368
- displayName: string;
3369
- }[];
3370
- }, {
3371
- id: string;
3372
- description: string | null;
3373
- createdAt: Date;
3374
- updatedAt: Date;
3375
- deletedAt: Date | null;
3376
- systemName: string;
3377
- displayName: string;
3378
- permissions: {
3361
+ userId: string | null;
3362
+ sipServerUrl: string;
3363
+ sipUserName: string;
3364
+ webphoneLoginUser: string;
3365
+ extensionId: string | null;
3366
+ extensionName: string;
3367
+ telephonySignature: string | null;
3368
+ }, {
3379
3369
  id: string;
3380
- description: string | null;
3381
3370
  createdAt: Date;
3382
3371
  updatedAt: Date;
3383
3372
  deletedAt: Date | null;
3384
- systemName: string;
3385
- displayName: string;
3386
- }[];
3387
- }>, "many">;
3388
- extension: z.ZodObject<{
3389
- id: z.ZodString;
3390
- createdAt: z.ZodDate;
3391
- updatedAt: z.ZodDate;
3392
- deletedAt: z.ZodNullable<z.ZodDate>;
3393
- userId: z.ZodNullable<z.ZodString>;
3394
- sipServerUrl: z.ZodString;
3395
- sipUserName: z.ZodString;
3396
- webphoneLoginUser: z.ZodString;
3397
- extensionId: z.ZodNullable<z.ZodString>;
3398
- extensionName: z.ZodString;
3399
- telephonySignature: z.ZodNullable<z.ZodString>;
3400
- }, "strip", z.ZodTypeAny, {
3373
+ userId: string | null;
3374
+ sipServerUrl: string;
3375
+ sipUserName: string;
3376
+ webphoneLoginUser: string;
3377
+ extensionId: string | null;
3378
+ extensionName: string;
3379
+ telephonySignature: string | null;
3380
+ }>;
3381
+ }, "roles" | "extension">, "strip", z.ZodTypeAny, {
3401
3382
  id: string;
3383
+ address: string | null;
3384
+ name: string;
3385
+ email: string;
3402
3386
  createdAt: Date;
3403
3387
  updatedAt: Date;
3404
3388
  deletedAt: Date | null;
3405
- userId: string | null;
3406
- sipServerUrl: string;
3407
- sipUserName: string;
3408
- webphoneLoginUser: string;
3409
- extensionId: string | null;
3410
- extensionName: string;
3411
- telephonySignature: string | null;
3389
+ emailVerifiedAt: Date | null;
3390
+ password: string;
3391
+ phone: string | null;
3392
+ notificationCount: number | null;
3412
3393
  }, {
3413
3394
  id: string;
3395
+ address: string | null;
3396
+ name: string;
3397
+ email: string;
3414
3398
  createdAt: Date;
3415
3399
  updatedAt: Date;
3416
3400
  deletedAt: Date | null;
3417
- userId: string | null;
3418
- sipServerUrl: string;
3419
- sipUserName: string;
3420
- webphoneLoginUser: string;
3421
- extensionId: string | null;
3422
- extensionName: string;
3423
- telephonySignature: string | null;
3424
- }>;
3401
+ emailVerifiedAt: Date | null;
3402
+ password: string;
3403
+ phone: string | null;
3404
+ notificationCount: number | null;
3405
+ }>>;
3406
+ userId: z.ZodString;
3407
+ createdAt: z.ZodOptional<z.ZodString>;
3408
+ deletedAt: z.ZodNullable<z.ZodString>;
3409
+ updatedAt: z.ZodOptional<z.ZodString>;
3410
+ extensionId: z.ZodNullable<z.ZodString>;
3411
+ sipUserName: z.ZodNullable<z.ZodString>;
3412
+ sipServerUrl: z.ZodNullable<z.ZodString>;
3413
+ extensionName: z.ZodNullable<z.ZodString>;
3414
+ webphoneLoginUser: z.ZodNullable<z.ZodString>;
3415
+ telephonySignature: z.ZodNullable<z.ZodString>;
3425
3416
  }, "strip", z.ZodTypeAny, {
3426
3417
  id: string;
3427
- address: string | null;
3428
- name: string;
3429
- email: string;
3430
- createdAt: Date;
3431
- updatedAt: Date;
3432
- deletedAt: Date | null;
3433
- emailVerifiedAt: Date | null;
3434
- password: string;
3435
- phone: string | null;
3436
- notificationCount: number | null;
3437
- roles: {
3418
+ user: {
3438
3419
  id: string;
3439
- description: string | null;
3420
+ address: string | null;
3421
+ name: string;
3422
+ email: string;
3440
3423
  createdAt: Date;
3441
3424
  updatedAt: Date;
3442
3425
  deletedAt: Date | null;
3443
- systemName: string;
3444
- displayName: string;
3445
- permissions: {
3426
+ emailVerifiedAt: Date | null;
3427
+ password: string;
3428
+ phone: string | null;
3429
+ notificationCount: number | null;
3430
+ } | null;
3431
+ deletedAt: string | null;
3432
+ userId: string;
3433
+ sipServerUrl: string | null;
3434
+ sipUserName: string | null;
3435
+ webphoneLoginUser: string | null;
3436
+ extensionId: string | null;
3437
+ extensionName: string | null;
3438
+ telephonySignature: string | null;
3439
+ createdAt?: string | undefined;
3440
+ updatedAt?: string | undefined;
3441
+ }, {
3442
+ id: string;
3443
+ user: {
3444
+ id: string;
3445
+ address: string | null;
3446
+ name: string;
3447
+ email: string;
3448
+ createdAt: Date;
3449
+ updatedAt: Date;
3450
+ deletedAt: Date | null;
3451
+ emailVerifiedAt: Date | null;
3452
+ password: string;
3453
+ phone: string | null;
3454
+ notificationCount: number | null;
3455
+ } | null;
3456
+ deletedAt: string | null;
3457
+ userId: string;
3458
+ sipServerUrl: string | null;
3459
+ sipUserName: string | null;
3460
+ webphoneLoginUser: string | null;
3461
+ extensionId: string | null;
3462
+ extensionName: string | null;
3463
+ telephonySignature: string | null;
3464
+ createdAt?: string | undefined;
3465
+ updatedAt?: string | undefined;
3466
+ }>>>;
3467
+ callFrom: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3468
+ id: z.ZodString;
3469
+ user: z.ZodNullable<z.ZodObject<Omit<{
3470
+ id: z.ZodString;
3471
+ createdAt: z.ZodDate;
3472
+ updatedAt: z.ZodDate;
3473
+ deletedAt: z.ZodNullable<z.ZodDate>;
3474
+ name: z.ZodString;
3475
+ email: z.ZodString;
3476
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3477
+ password: z.ZodString;
3478
+ address: z.ZodNullable<z.ZodString>;
3479
+ phone: z.ZodNullable<z.ZodString>;
3480
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3481
+ roles: z.ZodArray<z.ZodObject<{
3482
+ id: z.ZodString;
3483
+ createdAt: z.ZodDate;
3484
+ updatedAt: z.ZodDate;
3485
+ deletedAt: z.ZodNullable<z.ZodDate>;
3486
+ systemName: z.ZodString;
3487
+ displayName: z.ZodString;
3488
+ description: z.ZodNullable<z.ZodString>;
3489
+ permissions: z.ZodArray<z.ZodObject<{
3490
+ id: z.ZodString;
3491
+ createdAt: z.ZodDate;
3492
+ updatedAt: z.ZodDate;
3493
+ deletedAt: z.ZodNullable<z.ZodDate>;
3494
+ systemName: z.ZodString;
3495
+ displayName: z.ZodString;
3496
+ description: z.ZodNullable<z.ZodString>;
3497
+ }, "strip", z.ZodTypeAny, {
3498
+ id: string;
3499
+ description: string | null;
3500
+ createdAt: Date;
3501
+ updatedAt: Date;
3502
+ deletedAt: Date | null;
3503
+ systemName: string;
3504
+ displayName: string;
3505
+ }, {
3506
+ id: string;
3507
+ description: string | null;
3508
+ createdAt: Date;
3509
+ updatedAt: Date;
3510
+ deletedAt: Date | null;
3511
+ systemName: string;
3512
+ displayName: string;
3513
+ }>, "many">;
3514
+ }, "strip", z.ZodTypeAny, {
3446
3515
  id: string;
3447
3516
  description: string | null;
3448
3517
  createdAt: Date;
@@ -3450,18 +3519,434 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3450
3519
  deletedAt: Date | null;
3451
3520
  systemName: string;
3452
3521
  displayName: string;
3453
- }[];
3454
- }[];
3455
- extension: {
3456
- id: string;
3457
- createdAt: Date;
3458
- updatedAt: Date;
3459
- deletedAt: Date | null;
3460
- userId: string | null;
3461
- sipServerUrl: string;
3462
- sipUserName: string;
3463
- webphoneLoginUser: string;
3464
- extensionId: string | null;
3522
+ permissions: {
3523
+ id: string;
3524
+ description: string | null;
3525
+ createdAt: Date;
3526
+ updatedAt: Date;
3527
+ deletedAt: Date | null;
3528
+ systemName: string;
3529
+ displayName: string;
3530
+ }[];
3531
+ }, {
3532
+ id: string;
3533
+ description: string | null;
3534
+ createdAt: Date;
3535
+ updatedAt: Date;
3536
+ deletedAt: Date | null;
3537
+ systemName: string;
3538
+ displayName: string;
3539
+ permissions: {
3540
+ id: string;
3541
+ description: string | null;
3542
+ createdAt: Date;
3543
+ updatedAt: Date;
3544
+ deletedAt: Date | null;
3545
+ systemName: string;
3546
+ displayName: string;
3547
+ }[];
3548
+ }>, "many">;
3549
+ extension: z.ZodObject<{
3550
+ id: z.ZodString;
3551
+ createdAt: z.ZodDate;
3552
+ updatedAt: z.ZodDate;
3553
+ deletedAt: z.ZodNullable<z.ZodDate>;
3554
+ userId: z.ZodNullable<z.ZodString>;
3555
+ sipServerUrl: z.ZodString;
3556
+ sipUserName: z.ZodString;
3557
+ webphoneLoginUser: z.ZodString;
3558
+ extensionId: z.ZodNullable<z.ZodString>;
3559
+ extensionName: z.ZodString;
3560
+ telephonySignature: z.ZodNullable<z.ZodString>;
3561
+ }, "strip", z.ZodTypeAny, {
3562
+ id: string;
3563
+ createdAt: Date;
3564
+ updatedAt: Date;
3565
+ deletedAt: Date | null;
3566
+ userId: string | null;
3567
+ sipServerUrl: string;
3568
+ sipUserName: string;
3569
+ webphoneLoginUser: string;
3570
+ extensionId: string | null;
3571
+ extensionName: string;
3572
+ telephonySignature: string | null;
3573
+ }, {
3574
+ id: string;
3575
+ createdAt: Date;
3576
+ updatedAt: Date;
3577
+ deletedAt: Date | null;
3578
+ userId: string | null;
3579
+ sipServerUrl: string;
3580
+ sipUserName: string;
3581
+ webphoneLoginUser: string;
3582
+ extensionId: string | null;
3583
+ extensionName: string;
3584
+ telephonySignature: string | null;
3585
+ }>;
3586
+ }, "roles" | "extension">, "strip", z.ZodTypeAny, {
3587
+ id: string;
3588
+ address: string | null;
3589
+ name: string;
3590
+ email: string;
3591
+ createdAt: Date;
3592
+ updatedAt: Date;
3593
+ deletedAt: Date | null;
3594
+ emailVerifiedAt: Date | null;
3595
+ password: string;
3596
+ phone: string | null;
3597
+ notificationCount: number | null;
3598
+ }, {
3599
+ id: string;
3600
+ address: string | null;
3601
+ name: string;
3602
+ email: string;
3603
+ createdAt: Date;
3604
+ updatedAt: Date;
3605
+ deletedAt: Date | null;
3606
+ emailVerifiedAt: Date | null;
3607
+ password: string;
3608
+ phone: string | null;
3609
+ notificationCount: number | null;
3610
+ }>>;
3611
+ userId: z.ZodString;
3612
+ createdAt: z.ZodOptional<z.ZodString>;
3613
+ deletedAt: z.ZodNullable<z.ZodString>;
3614
+ updatedAt: z.ZodOptional<z.ZodString>;
3615
+ extensionId: z.ZodNullable<z.ZodString>;
3616
+ sipUserName: z.ZodNullable<z.ZodString>;
3617
+ sipServerUrl: z.ZodNullable<z.ZodString>;
3618
+ extensionName: z.ZodNullable<z.ZodString>;
3619
+ webphoneLoginUser: z.ZodNullable<z.ZodString>;
3620
+ telephonySignature: z.ZodNullable<z.ZodString>;
3621
+ }, "strip", z.ZodTypeAny, {
3622
+ id: string;
3623
+ user: {
3624
+ id: string;
3625
+ address: string | null;
3626
+ name: string;
3627
+ email: string;
3628
+ createdAt: Date;
3629
+ updatedAt: Date;
3630
+ deletedAt: Date | null;
3631
+ emailVerifiedAt: Date | null;
3632
+ password: string;
3633
+ phone: string | null;
3634
+ notificationCount: number | null;
3635
+ } | null;
3636
+ deletedAt: string | null;
3637
+ userId: string;
3638
+ sipServerUrl: string | null;
3639
+ sipUserName: string | null;
3640
+ webphoneLoginUser: string | null;
3641
+ extensionId: string | null;
3642
+ extensionName: string | null;
3643
+ telephonySignature: string | null;
3644
+ createdAt?: string | undefined;
3645
+ updatedAt?: string | undefined;
3646
+ }, {
3647
+ id: string;
3648
+ user: {
3649
+ id: string;
3650
+ address: string | null;
3651
+ name: string;
3652
+ email: string;
3653
+ createdAt: Date;
3654
+ updatedAt: Date;
3655
+ deletedAt: Date | null;
3656
+ emailVerifiedAt: Date | null;
3657
+ password: string;
3658
+ phone: string | null;
3659
+ notificationCount: number | null;
3660
+ } | null;
3661
+ deletedAt: string | null;
3662
+ userId: string;
3663
+ sipServerUrl: string | null;
3664
+ sipUserName: string | null;
3665
+ webphoneLoginUser: string | null;
3666
+ extensionId: string | null;
3667
+ extensionName: string | null;
3668
+ telephonySignature: string | null;
3669
+ createdAt?: string | undefined;
3670
+ updatedAt?: string | undefined;
3671
+ }>>>;
3672
+ }, "strip", z.ZodTypeAny, {
3673
+ callTo?: {
3674
+ id: string;
3675
+ user: {
3676
+ id: string;
3677
+ address: string | null;
3678
+ name: string;
3679
+ email: string;
3680
+ createdAt: Date;
3681
+ updatedAt: Date;
3682
+ deletedAt: Date | null;
3683
+ emailVerifiedAt: Date | null;
3684
+ password: string;
3685
+ phone: string | null;
3686
+ notificationCount: number | null;
3687
+ } | null;
3688
+ deletedAt: string | null;
3689
+ userId: string;
3690
+ sipServerUrl: string | null;
3691
+ sipUserName: string | null;
3692
+ webphoneLoginUser: string | null;
3693
+ extensionId: string | null;
3694
+ extensionName: string | null;
3695
+ telephonySignature: string | null;
3696
+ createdAt?: string | undefined;
3697
+ updatedAt?: string | undefined;
3698
+ } | null | undefined;
3699
+ callFrom?: {
3700
+ id: string;
3701
+ user: {
3702
+ id: string;
3703
+ address: string | null;
3704
+ name: string;
3705
+ email: string;
3706
+ createdAt: Date;
3707
+ updatedAt: Date;
3708
+ deletedAt: Date | null;
3709
+ emailVerifiedAt: Date | null;
3710
+ password: string;
3711
+ phone: string | null;
3712
+ notificationCount: number | null;
3713
+ } | null;
3714
+ deletedAt: string | null;
3715
+ userId: string;
3716
+ sipServerUrl: string | null;
3717
+ sipUserName: string | null;
3718
+ webphoneLoginUser: string | null;
3719
+ extensionId: string | null;
3720
+ extensionName: string | null;
3721
+ telephonySignature: string | null;
3722
+ createdAt?: string | undefined;
3723
+ updatedAt?: string | undefined;
3724
+ } | null | undefined;
3725
+ }, {
3726
+ callTo?: {
3727
+ id: string;
3728
+ user: {
3729
+ id: string;
3730
+ address: string | null;
3731
+ name: string;
3732
+ email: string;
3733
+ createdAt: Date;
3734
+ updatedAt: Date;
3735
+ deletedAt: Date | null;
3736
+ emailVerifiedAt: Date | null;
3737
+ password: string;
3738
+ phone: string | null;
3739
+ notificationCount: number | null;
3740
+ } | null;
3741
+ deletedAt: string | null;
3742
+ userId: string;
3743
+ sipServerUrl: string | null;
3744
+ sipUserName: string | null;
3745
+ webphoneLoginUser: string | null;
3746
+ extensionId: string | null;
3747
+ extensionName: string | null;
3748
+ telephonySignature: string | null;
3749
+ createdAt?: string | undefined;
3750
+ updatedAt?: string | undefined;
3751
+ } | null | undefined;
3752
+ callFrom?: {
3753
+ id: string;
3754
+ user: {
3755
+ id: string;
3756
+ address: string | null;
3757
+ name: string;
3758
+ email: string;
3759
+ createdAt: Date;
3760
+ updatedAt: Date;
3761
+ deletedAt: Date | null;
3762
+ emailVerifiedAt: Date | null;
3763
+ password: string;
3764
+ phone: string | null;
3765
+ notificationCount: number | null;
3766
+ } | null;
3767
+ deletedAt: string | null;
3768
+ userId: string;
3769
+ sipServerUrl: string | null;
3770
+ sipUserName: string | null;
3771
+ webphoneLoginUser: string | null;
3772
+ extensionId: string | null;
3773
+ extensionName: string | null;
3774
+ telephonySignature: string | null;
3775
+ createdAt?: string | undefined;
3776
+ updatedAt?: string | undefined;
3777
+ } | null | undefined;
3778
+ }>>;
3779
+ isQueueMissedCall: z.ZodBoolean;
3780
+ extensionId: z.ZodNullable<z.ZodString>;
3781
+ extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3782
+ id: z.ZodString;
3783
+ createdAt: z.ZodDate;
3784
+ updatedAt: z.ZodDate;
3785
+ deletedAt: z.ZodNullable<z.ZodDate>;
3786
+ userId: z.ZodNullable<z.ZodString>;
3787
+ sipServerUrl: z.ZodString;
3788
+ sipUserName: z.ZodString;
3789
+ webphoneLoginUser: z.ZodString;
3790
+ extensionId: z.ZodNullable<z.ZodString>;
3791
+ extensionName: z.ZodString;
3792
+ telephonySignature: z.ZodNullable<z.ZodString>;
3793
+ user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3794
+ id: z.ZodString;
3795
+ createdAt: z.ZodDate;
3796
+ updatedAt: z.ZodDate;
3797
+ deletedAt: z.ZodNullable<z.ZodDate>;
3798
+ name: z.ZodString;
3799
+ email: z.ZodString;
3800
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3801
+ password: z.ZodString;
3802
+ address: z.ZodNullable<z.ZodString>;
3803
+ phone: z.ZodNullable<z.ZodString>;
3804
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3805
+ roles: z.ZodArray<z.ZodObject<{
3806
+ id: z.ZodString;
3807
+ createdAt: z.ZodDate;
3808
+ updatedAt: z.ZodDate;
3809
+ deletedAt: z.ZodNullable<z.ZodDate>;
3810
+ systemName: z.ZodString;
3811
+ displayName: z.ZodString;
3812
+ description: z.ZodNullable<z.ZodString>;
3813
+ permissions: z.ZodArray<z.ZodObject<{
3814
+ id: z.ZodString;
3815
+ createdAt: z.ZodDate;
3816
+ updatedAt: z.ZodDate;
3817
+ deletedAt: z.ZodNullable<z.ZodDate>;
3818
+ systemName: z.ZodString;
3819
+ displayName: z.ZodString;
3820
+ description: z.ZodNullable<z.ZodString>;
3821
+ }, "strip", z.ZodTypeAny, {
3822
+ id: string;
3823
+ description: string | null;
3824
+ createdAt: Date;
3825
+ updatedAt: Date;
3826
+ deletedAt: Date | null;
3827
+ systemName: string;
3828
+ displayName: string;
3829
+ }, {
3830
+ id: string;
3831
+ description: string | null;
3832
+ createdAt: Date;
3833
+ updatedAt: Date;
3834
+ deletedAt: Date | null;
3835
+ systemName: string;
3836
+ displayName: string;
3837
+ }>, "many">;
3838
+ }, "strip", z.ZodTypeAny, {
3839
+ id: string;
3840
+ description: string | null;
3841
+ createdAt: Date;
3842
+ updatedAt: Date;
3843
+ deletedAt: Date | null;
3844
+ systemName: string;
3845
+ displayName: string;
3846
+ permissions: {
3847
+ id: string;
3848
+ description: string | null;
3849
+ createdAt: Date;
3850
+ updatedAt: Date;
3851
+ deletedAt: Date | null;
3852
+ systemName: string;
3853
+ displayName: string;
3854
+ }[];
3855
+ }, {
3856
+ id: string;
3857
+ description: string | null;
3858
+ createdAt: Date;
3859
+ updatedAt: Date;
3860
+ deletedAt: Date | null;
3861
+ systemName: string;
3862
+ displayName: string;
3863
+ permissions: {
3864
+ id: string;
3865
+ description: string | null;
3866
+ createdAt: Date;
3867
+ updatedAt: Date;
3868
+ deletedAt: Date | null;
3869
+ systemName: string;
3870
+ displayName: string;
3871
+ }[];
3872
+ }>, "many">;
3873
+ extension: z.ZodObject<{
3874
+ id: z.ZodString;
3875
+ createdAt: z.ZodDate;
3876
+ updatedAt: z.ZodDate;
3877
+ deletedAt: z.ZodNullable<z.ZodDate>;
3878
+ userId: z.ZodNullable<z.ZodString>;
3879
+ sipServerUrl: z.ZodString;
3880
+ sipUserName: z.ZodString;
3881
+ webphoneLoginUser: z.ZodString;
3882
+ extensionId: z.ZodNullable<z.ZodString>;
3883
+ extensionName: z.ZodString;
3884
+ telephonySignature: z.ZodNullable<z.ZodString>;
3885
+ }, "strip", z.ZodTypeAny, {
3886
+ id: string;
3887
+ createdAt: Date;
3888
+ updatedAt: Date;
3889
+ deletedAt: Date | null;
3890
+ userId: string | null;
3891
+ sipServerUrl: string;
3892
+ sipUserName: string;
3893
+ webphoneLoginUser: string;
3894
+ extensionId: string | null;
3895
+ extensionName: string;
3896
+ telephonySignature: string | null;
3897
+ }, {
3898
+ id: string;
3899
+ createdAt: Date;
3900
+ updatedAt: Date;
3901
+ deletedAt: Date | null;
3902
+ userId: string | null;
3903
+ sipServerUrl: string;
3904
+ sipUserName: string;
3905
+ webphoneLoginUser: string;
3906
+ extensionId: string | null;
3907
+ extensionName: string;
3908
+ telephonySignature: string | null;
3909
+ }>;
3910
+ }, "strip", z.ZodTypeAny, {
3911
+ id: string;
3912
+ address: string | null;
3913
+ name: string;
3914
+ email: string;
3915
+ createdAt: Date;
3916
+ updatedAt: Date;
3917
+ deletedAt: Date | null;
3918
+ emailVerifiedAt: Date | null;
3919
+ password: string;
3920
+ phone: string | null;
3921
+ notificationCount: number | null;
3922
+ roles: {
3923
+ id: string;
3924
+ description: string | null;
3925
+ createdAt: Date;
3926
+ updatedAt: Date;
3927
+ deletedAt: Date | null;
3928
+ systemName: string;
3929
+ displayName: string;
3930
+ permissions: {
3931
+ id: string;
3932
+ description: string | null;
3933
+ createdAt: Date;
3934
+ updatedAt: Date;
3935
+ deletedAt: Date | null;
3936
+ systemName: string;
3937
+ displayName: string;
3938
+ }[];
3939
+ }[];
3940
+ extension: {
3941
+ id: string;
3942
+ createdAt: Date;
3943
+ updatedAt: Date;
3944
+ deletedAt: Date | null;
3945
+ userId: string | null;
3946
+ sipServerUrl: string;
3947
+ sipUserName: string;
3948
+ webphoneLoginUser: string;
3949
+ extensionId: string | null;
3465
3950
  extensionName: string;
3466
3951
  telephonySignature: string | null;
3467
3952
  };
@@ -3633,11 +4118,10 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3633
4118
  updatedAt: Date;
3634
4119
  deletedAt: Date | null;
3635
4120
  extensionId: string | null;
3636
- contactId: string | null;
3637
- callFrom: string;
3638
- callTo: string;
3639
4121
  uniqueCallId: string;
3640
4122
  timeStart: string;
4123
+ callFrom: string;
4124
+ callTo: string;
3641
4125
  callDuration: number | null;
3642
4126
  talkDuration: number | null;
3643
4127
  srcTrunkName: string | null;
@@ -3647,7 +4131,63 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3647
4131
  agentRingTime: number | null;
3648
4132
  uploadId: string | null;
3649
4133
  serialNumber: string | null;
4134
+ callParticipants: {
4135
+ callTo?: {
4136
+ id: string;
4137
+ user: {
4138
+ id: string;
4139
+ address: string | null;
4140
+ name: string;
4141
+ email: string;
4142
+ createdAt: Date;
4143
+ updatedAt: Date;
4144
+ deletedAt: Date | null;
4145
+ emailVerifiedAt: Date | null;
4146
+ password: string;
4147
+ phone: string | null;
4148
+ notificationCount: number | null;
4149
+ } | null;
4150
+ deletedAt: string | null;
4151
+ userId: string;
4152
+ sipServerUrl: string | null;
4153
+ sipUserName: string | null;
4154
+ webphoneLoginUser: string | null;
4155
+ extensionId: string | null;
4156
+ extensionName: string | null;
4157
+ telephonySignature: string | null;
4158
+ createdAt?: string | undefined;
4159
+ updatedAt?: string | undefined;
4160
+ } | null | undefined;
4161
+ callFrom?: {
4162
+ id: string;
4163
+ user: {
4164
+ id: string;
4165
+ address: string | null;
4166
+ name: string;
4167
+ email: string;
4168
+ createdAt: Date;
4169
+ updatedAt: Date;
4170
+ deletedAt: Date | null;
4171
+ emailVerifiedAt: Date | null;
4172
+ password: string;
4173
+ phone: string | null;
4174
+ notificationCount: number | null;
4175
+ } | null;
4176
+ deletedAt: string | null;
4177
+ userId: string;
4178
+ sipServerUrl: string | null;
4179
+ sipUserName: string | null;
4180
+ webphoneLoginUser: string | null;
4181
+ extensionId: string | null;
4182
+ extensionName: string | null;
4183
+ telephonySignature: string | null;
4184
+ createdAt?: string | undefined;
4185
+ updatedAt?: string | undefined;
4186
+ } | null | undefined;
4187
+ } | null;
4188
+ isQueueMissedCall: boolean;
3650
4189
  telephonyQueueId: string | null;
4190
+ contactId: string | null;
3651
4191
  contact?: {
3652
4192
  id: string;
3653
4193
  channel: string | null;
@@ -3755,18 +4295,6 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3755
4295
  queueNumber: string;
3756
4296
  maximumWaitingTime: number;
3757
4297
  } | null | undefined;
3758
- upload?: {
3759
- id: string;
3760
- createdAt: Date;
3761
- updatedAt: Date;
3762
- deletedAt: Date | null;
3763
- fileName: string;
3764
- fileKey: string;
3765
- bucketName: string;
3766
- fileSize: number;
3767
- fileUrl: string | null;
3768
- status?: string | undefined;
3769
- } | null | undefined;
3770
4298
  extension?: {
3771
4299
  id: string;
3772
4300
  createdAt: Date;
@@ -3833,11 +4361,10 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3833
4361
  updatedAt: Date;
3834
4362
  deletedAt: Date | null;
3835
4363
  extensionId: string | null;
3836
- contactId: string | null;
3837
- callFrom: string;
3838
- callTo: string;
3839
4364
  uniqueCallId: string;
3840
4365
  timeStart: string;
4366
+ callFrom: string;
4367
+ callTo: string;
3841
4368
  callDuration: number | null;
3842
4369
  talkDuration: number | null;
3843
4370
  srcTrunkName: string | null;
@@ -3847,7 +4374,63 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3847
4374
  agentRingTime: number | null;
3848
4375
  uploadId: string | null;
3849
4376
  serialNumber: string | null;
4377
+ callParticipants: {
4378
+ callTo?: {
4379
+ id: string;
4380
+ user: {
4381
+ id: string;
4382
+ address: string | null;
4383
+ name: string;
4384
+ email: string;
4385
+ createdAt: Date;
4386
+ updatedAt: Date;
4387
+ deletedAt: Date | null;
4388
+ emailVerifiedAt: Date | null;
4389
+ password: string;
4390
+ phone: string | null;
4391
+ notificationCount: number | null;
4392
+ } | null;
4393
+ deletedAt: string | null;
4394
+ userId: string;
4395
+ sipServerUrl: string | null;
4396
+ sipUserName: string | null;
4397
+ webphoneLoginUser: string | null;
4398
+ extensionId: string | null;
4399
+ extensionName: string | null;
4400
+ telephonySignature: string | null;
4401
+ createdAt?: string | undefined;
4402
+ updatedAt?: string | undefined;
4403
+ } | null | undefined;
4404
+ callFrom?: {
4405
+ id: string;
4406
+ user: {
4407
+ id: string;
4408
+ address: string | null;
4409
+ name: string;
4410
+ email: string;
4411
+ createdAt: Date;
4412
+ updatedAt: Date;
4413
+ deletedAt: Date | null;
4414
+ emailVerifiedAt: Date | null;
4415
+ password: string;
4416
+ phone: string | null;
4417
+ notificationCount: number | null;
4418
+ } | null;
4419
+ deletedAt: string | null;
4420
+ userId: string;
4421
+ sipServerUrl: string | null;
4422
+ sipUserName: string | null;
4423
+ webphoneLoginUser: string | null;
4424
+ extensionId: string | null;
4425
+ extensionName: string | null;
4426
+ telephonySignature: string | null;
4427
+ createdAt?: string | undefined;
4428
+ updatedAt?: string | undefined;
4429
+ } | null | undefined;
4430
+ } | null;
4431
+ isQueueMissedCall: boolean;
3850
4432
  telephonyQueueId: string | null;
4433
+ contactId: string | null;
3851
4434
  contact?: {
3852
4435
  id: string;
3853
4436
  channel: string | null;
@@ -3955,18 +4538,6 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
3955
4538
  queueNumber: string;
3956
4539
  maximumWaitingTime: number;
3957
4540
  } | null | undefined;
3958
- upload?: {
3959
- id: string;
3960
- createdAt: Date;
3961
- updatedAt: Date;
3962
- deletedAt: Date | null;
3963
- fileName: string;
3964
- fileKey: string;
3965
- bucketName: string;
3966
- fileSize: number;
3967
- fileUrl: string | null;
3968
- status?: string | undefined;
3969
- } | null | undefined;
3970
4541
  extension?: {
3971
4542
  id: string;
3972
4543
  createdAt: Date;
@@ -5029,11 +5600,11 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5029
5600
  };
5030
5601
  }[] | undefined;
5031
5602
  } | null;
5032
- firstResponseTime: string | null;
5033
5603
  caseId: number;
5034
5604
  entityName: string;
5035
5605
  startedDate: string | null;
5036
5606
  handledTime: string | null;
5607
+ firstResponseTime: string | null;
5037
5608
  wrapUpForm: {
5038
5609
  id: string;
5039
5610
  disposition: string | null;
@@ -5047,14 +5618,26 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5047
5618
  updatedAt: Date;
5048
5619
  deletedAt: Date | null;
5049
5620
  }[];
5050
- note: string | null;
5051
5621
  callFrom: string | null;
5052
5622
  callTo: string | null;
5623
+ note: string | null;
5624
+ } | null;
5625
+ customerPhone: string | null;
5626
+ channelType: string | null;
5627
+ slaMeet: string | null;
5628
+ evaluateForm: {
5629
+ id: string;
5630
+ createdAt: Date;
5631
+ updatedAt: Date;
5632
+ deletedAt: Date | null;
5633
+ cxLogId: string;
5634
+ sentimentScore?: string | null | undefined;
5635
+ csatScore?: string | null | undefined;
5053
5636
  } | null;
5054
5637
  room: {
5055
5638
  id: string;
5056
5639
  channel: {
5057
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5640
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
5058
5641
  id: string;
5059
5642
  name: string;
5060
5643
  metadata: {
@@ -5166,15 +5749,15 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5166
5749
  telephonySignature: string | null;
5167
5750
  };
5168
5751
  };
5752
+ firstResponseTime: number;
5169
5753
  lastMessage: string;
5170
5754
  handleTime: number;
5171
5755
  closeAt: Date;
5172
5756
  unreadCount: number;
5173
5757
  firstResponseAt: Date;
5174
- firstResponseTime: number;
5175
5758
  isLatest: boolean;
5176
5759
  platformContact: {
5177
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5760
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
5178
5761
  id: string;
5179
5762
  metadata: {
5180
5763
  id: string;
@@ -5330,18 +5913,6 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5330
5913
  };
5331
5914
  };
5332
5915
  } | null;
5333
- customerPhone: string | null;
5334
- channelType: string | null;
5335
- slaMeet: string | null;
5336
- evaluateForm: {
5337
- id: string;
5338
- createdAt: Date;
5339
- updatedAt: Date;
5340
- deletedAt: Date | null;
5341
- cxLogId: string;
5342
- sentimentScore?: string | null | undefined;
5343
- csatScore?: string | null | undefined;
5344
- } | null;
5345
5916
  telephonyCdr: {
5346
5917
  type: string;
5347
5918
  id: string;
@@ -5351,11 +5922,10 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5351
5922
  updatedAt: Date;
5352
5923
  deletedAt: Date | null;
5353
5924
  extensionId: string | null;
5354
- contactId: string | null;
5355
- callFrom: string;
5356
- callTo: string;
5357
5925
  uniqueCallId: string;
5358
5926
  timeStart: string;
5927
+ callFrom: string;
5928
+ callTo: string;
5359
5929
  callDuration: number | null;
5360
5930
  talkDuration: number | null;
5361
5931
  srcTrunkName: string | null;
@@ -5365,7 +5935,63 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5365
5935
  agentRingTime: number | null;
5366
5936
  uploadId: string | null;
5367
5937
  serialNumber: string | null;
5938
+ callParticipants: {
5939
+ callTo?: {
5940
+ id: string;
5941
+ user: {
5942
+ id: string;
5943
+ address: string | null;
5944
+ name: string;
5945
+ email: string;
5946
+ createdAt: Date;
5947
+ updatedAt: Date;
5948
+ deletedAt: Date | null;
5949
+ emailVerifiedAt: Date | null;
5950
+ password: string;
5951
+ phone: string | null;
5952
+ notificationCount: number | null;
5953
+ } | null;
5954
+ deletedAt: string | null;
5955
+ userId: string;
5956
+ sipServerUrl: string | null;
5957
+ sipUserName: string | null;
5958
+ webphoneLoginUser: string | null;
5959
+ extensionId: string | null;
5960
+ extensionName: string | null;
5961
+ telephonySignature: string | null;
5962
+ createdAt?: string | undefined;
5963
+ updatedAt?: string | undefined;
5964
+ } | null | undefined;
5965
+ callFrom?: {
5966
+ id: string;
5967
+ user: {
5968
+ id: string;
5969
+ address: string | null;
5970
+ name: string;
5971
+ email: string;
5972
+ createdAt: Date;
5973
+ updatedAt: Date;
5974
+ deletedAt: Date | null;
5975
+ emailVerifiedAt: Date | null;
5976
+ password: string;
5977
+ phone: string | null;
5978
+ notificationCount: number | null;
5979
+ } | null;
5980
+ deletedAt: string | null;
5981
+ userId: string;
5982
+ sipServerUrl: string | null;
5983
+ sipUserName: string | null;
5984
+ webphoneLoginUser: string | null;
5985
+ extensionId: string | null;
5986
+ extensionName: string | null;
5987
+ telephonySignature: string | null;
5988
+ createdAt?: string | undefined;
5989
+ updatedAt?: string | undefined;
5990
+ } | null | undefined;
5991
+ } | null;
5992
+ isQueueMissedCall: boolean;
5368
5993
  telephonyQueueId: string | null;
5994
+ contactId: string | null;
5369
5995
  contact?: {
5370
5996
  id: string;
5371
5997
  channel: string | null;
@@ -5473,18 +6099,6 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5473
6099
  queueNumber: string;
5474
6100
  maximumWaitingTime: number;
5475
6101
  } | null | undefined;
5476
- upload?: {
5477
- id: string;
5478
- createdAt: Date;
5479
- updatedAt: Date;
5480
- deletedAt: Date | null;
5481
- fileName: string;
5482
- fileKey: string;
5483
- bucketName: string;
5484
- fileSize: number;
5485
- fileUrl: string | null;
5486
- status?: string | undefined;
5487
- } | null | undefined;
5488
6102
  extension?: {
5489
6103
  id: string;
5490
6104
  createdAt: Date;
@@ -5696,11 +6310,11 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5696
6310
  };
5697
6311
  }[] | undefined;
5698
6312
  } | null;
5699
- firstResponseTime: string | null;
5700
6313
  caseId: number;
5701
6314
  entityName: string;
5702
6315
  startedDate: string | null;
5703
6316
  handledTime: string | null;
6317
+ firstResponseTime: string | null;
5704
6318
  wrapUpForm: {
5705
6319
  id: string;
5706
6320
  disposition: string | null;
@@ -5714,14 +6328,26 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5714
6328
  updatedAt: Date;
5715
6329
  deletedAt: Date | null;
5716
6330
  }[];
5717
- note: string | null;
5718
6331
  callFrom: string | null;
5719
6332
  callTo: string | null;
6333
+ note: string | null;
6334
+ } | null;
6335
+ customerPhone: string | null;
6336
+ channelType: string | null;
6337
+ slaMeet: string | null;
6338
+ evaluateForm: {
6339
+ id: string;
6340
+ createdAt: Date;
6341
+ updatedAt: Date;
6342
+ deletedAt: Date | null;
6343
+ cxLogId: string;
6344
+ sentimentScore?: string | null | undefined;
6345
+ csatScore?: string | null | undefined;
5720
6346
  } | null;
5721
6347
  room: {
5722
6348
  id: string;
5723
6349
  channel: {
5724
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6350
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
5725
6351
  id: string;
5726
6352
  name: string;
5727
6353
  metadata: {
@@ -5833,15 +6459,15 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5833
6459
  telephonySignature: string | null;
5834
6460
  };
5835
6461
  };
6462
+ firstResponseTime: number;
5836
6463
  lastMessage: string;
5837
6464
  handleTime: number;
5838
6465
  closeAt: Date;
5839
6466
  unreadCount: number;
5840
6467
  firstResponseAt: Date;
5841
- firstResponseTime: number;
5842
6468
  isLatest: boolean;
5843
6469
  platformContact: {
5844
- type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
6470
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
5845
6471
  id: string;
5846
6472
  metadata: {
5847
6473
  id: string;
@@ -5997,18 +6623,6 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5997
6623
  };
5998
6624
  };
5999
6625
  } | null;
6000
- customerPhone: string | null;
6001
- channelType: string | null;
6002
- slaMeet: string | null;
6003
- evaluateForm: {
6004
- id: string;
6005
- createdAt: Date;
6006
- updatedAt: Date;
6007
- deletedAt: Date | null;
6008
- cxLogId: string;
6009
- sentimentScore?: string | null | undefined;
6010
- csatScore?: string | null | undefined;
6011
- } | null;
6012
6626
  telephonyCdr: {
6013
6627
  type: string;
6014
6628
  id: string;
@@ -6018,11 +6632,10 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
6018
6632
  updatedAt: Date;
6019
6633
  deletedAt: Date | null;
6020
6634
  extensionId: string | null;
6021
- contactId: string | null;
6022
- callFrom: string;
6023
- callTo: string;
6024
6635
  uniqueCallId: string;
6025
6636
  timeStart: string;
6637
+ callFrom: string;
6638
+ callTo: string;
6026
6639
  callDuration: number | null;
6027
6640
  talkDuration: number | null;
6028
6641
  srcTrunkName: string | null;
@@ -6032,7 +6645,63 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
6032
6645
  agentRingTime: number | null;
6033
6646
  uploadId: string | null;
6034
6647
  serialNumber: string | null;
6648
+ callParticipants: {
6649
+ callTo?: {
6650
+ id: string;
6651
+ user: {
6652
+ id: string;
6653
+ address: string | null;
6654
+ name: string;
6655
+ email: string;
6656
+ createdAt: Date;
6657
+ updatedAt: Date;
6658
+ deletedAt: Date | null;
6659
+ emailVerifiedAt: Date | null;
6660
+ password: string;
6661
+ phone: string | null;
6662
+ notificationCount: number | null;
6663
+ } | null;
6664
+ deletedAt: string | null;
6665
+ userId: string;
6666
+ sipServerUrl: string | null;
6667
+ sipUserName: string | null;
6668
+ webphoneLoginUser: string | null;
6669
+ extensionId: string | null;
6670
+ extensionName: string | null;
6671
+ telephonySignature: string | null;
6672
+ createdAt?: string | undefined;
6673
+ updatedAt?: string | undefined;
6674
+ } | null | undefined;
6675
+ callFrom?: {
6676
+ id: string;
6677
+ user: {
6678
+ id: string;
6679
+ address: string | null;
6680
+ name: string;
6681
+ email: string;
6682
+ createdAt: Date;
6683
+ updatedAt: Date;
6684
+ deletedAt: Date | null;
6685
+ emailVerifiedAt: Date | null;
6686
+ password: string;
6687
+ phone: string | null;
6688
+ notificationCount: number | null;
6689
+ } | null;
6690
+ deletedAt: string | null;
6691
+ userId: string;
6692
+ sipServerUrl: string | null;
6693
+ sipUserName: string | null;
6694
+ webphoneLoginUser: string | null;
6695
+ extensionId: string | null;
6696
+ extensionName: string | null;
6697
+ telephonySignature: string | null;
6698
+ createdAt?: string | undefined;
6699
+ updatedAt?: string | undefined;
6700
+ } | null | undefined;
6701
+ } | null;
6702
+ isQueueMissedCall: boolean;
6035
6703
  telephonyQueueId: string | null;
6704
+ contactId: string | null;
6036
6705
  contact?: {
6037
6706
  id: string;
6038
6707
  channel: string | null;
@@ -6140,18 +6809,6 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
6140
6809
  queueNumber: string;
6141
6810
  maximumWaitingTime: number;
6142
6811
  } | null | undefined;
6143
- upload?: {
6144
- id: string;
6145
- createdAt: Date;
6146
- updatedAt: Date;
6147
- deletedAt: Date | null;
6148
- fileName: string;
6149
- fileKey: string;
6150
- bucketName: string;
6151
- fileSize: number;
6152
- fileUrl: string | null;
6153
- status?: string | undefined;
6154
- } | null | undefined;
6155
6812
  extension?: {
6156
6813
  id: string;
6157
6814
  createdAt: Date;