@kl1/contracts 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +83 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -23
- package/dist/index.mjs.map +1 -1
- package/dist/src/channel/index.d.ts +564 -1
- package/dist/src/channel/index.d.ts.map +1 -1
- package/dist/src/chat/index.d.ts +11644 -11982
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +44 -0
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +896 -1401
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/comment/index.d.ts +155 -395
- package/dist/src/comment/index.d.ts.map +1 -1
- package/dist/src/comment/schema.d.ts +45 -117
- package/dist/src/comment/schema.d.ts.map +1 -1
- package/dist/src/contact/index.d.ts +77 -0
- package/dist/src/contact/index.d.ts.map +1 -1
- package/dist/src/contact/schema.d.ts +16 -0
- package/dist/src/contact/schema.d.ts.map +1 -1
- package/dist/src/contact/validation.d.ts +63 -0
- package/dist/src/contact/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +1762 -6233
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +127 -0
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +101 -0
- package/dist/src/cx-log/schema.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +7 -0
- package/dist/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/src/mail/room-contract.d.ts +7 -0
- package/dist/src/mail/room-contract.d.ts.map +1 -1
- package/dist/src/mail/schemas/room.schema.d.ts +5 -0
- package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
- package/dist/src/messenger/index.d.ts +280 -0
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +53 -0
- package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/src/ticket/index.d.ts +245 -629
- package/dist/src/ticket/index.d.ts.map +1 -1
- package/dist/src/ticket/schema.d.ts +60 -168
- package/dist/src/ticket/schema.d.ts.map +1 -1
- package/dist/src/upload/schema.d.ts +3 -0
- package/dist/src/upload/schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/src/app/index.d.ts +0 -17
- package/dist/src/app/index.d.ts.map +0 -1
- package/dist/src/mail/mail-server.d.ts +0 -216
- package/dist/src/mail/mail-server.d.ts.map +0 -1
- package/dist/src/platform-contact/schema.d.ts +0 -30
- package/dist/src/platform-contact/schema.d.ts.map +0 -1
|
@@ -572,18 +572,24 @@ export declare const SendMessageSchema: z.ZodObject<{
|
|
|
572
572
|
}>;
|
|
573
573
|
export declare const SolveRoomSchema: z.ZodObject<{
|
|
574
574
|
roomId: z.ZodString;
|
|
575
|
+
disposition: z.ZodString;
|
|
575
576
|
}, "strip", z.ZodTypeAny, {
|
|
577
|
+
disposition: string;
|
|
576
578
|
roomId: string;
|
|
577
579
|
}, {
|
|
580
|
+
disposition: string;
|
|
578
581
|
roomId: string;
|
|
579
582
|
}>;
|
|
580
583
|
export declare const UpdateAssigneeSchema: z.ZodObject<{
|
|
584
|
+
disposition: z.ZodString;
|
|
581
585
|
roomId: z.ZodString;
|
|
582
586
|
assigneeId: z.ZodString;
|
|
583
587
|
}, "strip", z.ZodTypeAny, {
|
|
588
|
+
disposition: string;
|
|
584
589
|
assigneeId: string;
|
|
585
590
|
roomId: string;
|
|
586
591
|
}, {
|
|
592
|
+
disposition: string;
|
|
587
593
|
assigneeId: string;
|
|
588
594
|
roomId: string;
|
|
589
595
|
}>;
|
|
@@ -1004,6 +1010,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
|
1004
1010
|
fileName: z.ZodString;
|
|
1005
1011
|
fileSize: z.ZodNumber;
|
|
1006
1012
|
fileKey: z.ZodString;
|
|
1013
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
|
1007
1014
|
}, "strip", z.ZodTypeAny, {
|
|
1008
1015
|
id: string;
|
|
1009
1016
|
createdAt: Date;
|
|
@@ -1013,6 +1020,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
|
1013
1020
|
fileKey: string;
|
|
1014
1021
|
bucketName: string;
|
|
1015
1022
|
fileSize: number;
|
|
1023
|
+
fileUrl: string | null;
|
|
1016
1024
|
}, {
|
|
1017
1025
|
id: string;
|
|
1018
1026
|
createdAt: Date;
|
|
@@ -1022,6 +1030,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
|
1022
1030
|
fileKey: string;
|
|
1023
1031
|
bucketName: string;
|
|
1024
1032
|
fileSize: number;
|
|
1033
|
+
fileUrl: string | null;
|
|
1025
1034
|
}>>;
|
|
1026
1035
|
sender: z.ZodObject<{
|
|
1027
1036
|
name: z.ZodString;
|
|
@@ -1068,6 +1077,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
|
1068
1077
|
fileKey: string;
|
|
1069
1078
|
bucketName: string;
|
|
1070
1079
|
fileSize: number;
|
|
1080
|
+
fileUrl: string | null;
|
|
1071
1081
|
} | undefined;
|
|
1072
1082
|
}, {
|
|
1073
1083
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
|
@@ -1098,6 +1108,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
|
1098
1108
|
fileKey: string;
|
|
1099
1109
|
bucketName: string;
|
|
1100
1110
|
fileSize: number;
|
|
1111
|
+
fileUrl: string | null;
|
|
1101
1112
|
} | undefined;
|
|
1102
1113
|
}>;
|
|
1103
1114
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1130,6 +1141,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
|
1130
1141
|
fileKey: string;
|
|
1131
1142
|
bucketName: string;
|
|
1132
1143
|
fileSize: number;
|
|
1144
|
+
fileUrl: string | null;
|
|
1133
1145
|
} | undefined;
|
|
1134
1146
|
};
|
|
1135
1147
|
room: {
|
|
@@ -1216,6 +1228,7 @@ export declare const SendMessageToPlatformSchema: z.ZodObject<{
|
|
|
1216
1228
|
fileKey: string;
|
|
1217
1229
|
bucketName: string;
|
|
1218
1230
|
fileSize: number;
|
|
1231
|
+
fileUrl: string | null;
|
|
1219
1232
|
} | undefined;
|
|
1220
1233
|
};
|
|
1221
1234
|
room: {
|
|
@@ -1630,6 +1643,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
1630
1643
|
fileName: z.ZodString;
|
|
1631
1644
|
fileSize: z.ZodNumber;
|
|
1632
1645
|
fileKey: z.ZodString;
|
|
1646
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
|
1633
1647
|
}, "strip", z.ZodTypeAny, {
|
|
1634
1648
|
id: string;
|
|
1635
1649
|
createdAt: Date;
|
|
@@ -1639,6 +1653,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
1639
1653
|
fileKey: string;
|
|
1640
1654
|
bucketName: string;
|
|
1641
1655
|
fileSize: number;
|
|
1656
|
+
fileUrl: string | null;
|
|
1642
1657
|
}, {
|
|
1643
1658
|
id: string;
|
|
1644
1659
|
createdAt: Date;
|
|
@@ -1648,6 +1663,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
1648
1663
|
fileKey: string;
|
|
1649
1664
|
bucketName: string;
|
|
1650
1665
|
fileSize: number;
|
|
1666
|
+
fileUrl: string | null;
|
|
1651
1667
|
}>;
|
|
1652
1668
|
}, "strip", z.ZodTypeAny, {
|
|
1653
1669
|
id: string;
|
|
@@ -1664,6 +1680,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
1664
1680
|
fileKey: string;
|
|
1665
1681
|
bucketName: string;
|
|
1666
1682
|
fileSize: number;
|
|
1683
|
+
fileUrl: string | null;
|
|
1667
1684
|
};
|
|
1668
1685
|
}, {
|
|
1669
1686
|
id: string;
|
|
@@ -1680,6 +1697,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
1680
1697
|
fileKey: string;
|
|
1681
1698
|
bucketName: string;
|
|
1682
1699
|
fileSize: number;
|
|
1700
|
+
fileUrl: string | null;
|
|
1683
1701
|
};
|
|
1684
1702
|
}>, "many">;
|
|
1685
1703
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1720,6 +1738,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
1720
1738
|
fileKey: string;
|
|
1721
1739
|
bucketName: string;
|
|
1722
1740
|
fileSize: number;
|
|
1741
|
+
fileUrl: string | null;
|
|
1723
1742
|
};
|
|
1724
1743
|
}[];
|
|
1725
1744
|
}, {
|
|
@@ -1760,6 +1779,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
1760
1779
|
fileKey: string;
|
|
1761
1780
|
bucketName: string;
|
|
1762
1781
|
fileSize: number;
|
|
1782
|
+
fileUrl: string | null;
|
|
1763
1783
|
};
|
|
1764
1784
|
}[];
|
|
1765
1785
|
}>, "many">;
|
|
@@ -1913,6 +1933,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
1913
1933
|
fileKey: string;
|
|
1914
1934
|
bucketName: string;
|
|
1915
1935
|
fileSize: number;
|
|
1936
|
+
fileUrl: string | null;
|
|
1916
1937
|
};
|
|
1917
1938
|
}[];
|
|
1918
1939
|
}[];
|
|
@@ -2014,6 +2035,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
2014
2035
|
fileKey: string;
|
|
2015
2036
|
bucketName: string;
|
|
2016
2037
|
fileSize: number;
|
|
2038
|
+
fileUrl: string | null;
|
|
2017
2039
|
};
|
|
2018
2040
|
}[];
|
|
2019
2041
|
}[];
|
|
@@ -2129,6 +2151,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
2129
2151
|
fileKey: string;
|
|
2130
2152
|
bucketName: string;
|
|
2131
2153
|
fileSize: number;
|
|
2154
|
+
fileUrl: string | null;
|
|
2132
2155
|
};
|
|
2133
2156
|
}[];
|
|
2134
2157
|
}[];
|
|
@@ -2245,6 +2268,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
2245
2268
|
fileKey: string;
|
|
2246
2269
|
bucketName: string;
|
|
2247
2270
|
fileSize: number;
|
|
2271
|
+
fileUrl: string | null;
|
|
2248
2272
|
};
|
|
2249
2273
|
}[];
|
|
2250
2274
|
}[];
|
|
@@ -3316,6 +3340,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
3316
3340
|
fileKey: string;
|
|
3317
3341
|
bucketName: string;
|
|
3318
3342
|
fileSize: number;
|
|
3343
|
+
fileUrl: string | null;
|
|
3319
3344
|
};
|
|
3320
3345
|
}[];
|
|
3321
3346
|
}[];
|
|
@@ -3630,6 +3655,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
3630
3655
|
fileKey: string;
|
|
3631
3656
|
bucketName: string;
|
|
3632
3657
|
fileSize: number;
|
|
3658
|
+
fileUrl: string | null;
|
|
3633
3659
|
};
|
|
3634
3660
|
}[];
|
|
3635
3661
|
}[];
|
|
@@ -3839,6 +3865,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
3839
3865
|
fileName: z.ZodString;
|
|
3840
3866
|
fileSize: z.ZodNumber;
|
|
3841
3867
|
fileKey: z.ZodString;
|
|
3868
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
|
3842
3869
|
}, "strip", z.ZodTypeAny, {
|
|
3843
3870
|
id: string;
|
|
3844
3871
|
createdAt: Date;
|
|
@@ -3848,6 +3875,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
3848
3875
|
fileKey: string;
|
|
3849
3876
|
bucketName: string;
|
|
3850
3877
|
fileSize: number;
|
|
3878
|
+
fileUrl: string | null;
|
|
3851
3879
|
}, {
|
|
3852
3880
|
id: string;
|
|
3853
3881
|
createdAt: Date;
|
|
@@ -3857,6 +3885,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
3857
3885
|
fileKey: string;
|
|
3858
3886
|
bucketName: string;
|
|
3859
3887
|
fileSize: number;
|
|
3888
|
+
fileUrl: string | null;
|
|
3860
3889
|
}>;
|
|
3861
3890
|
actor: z.ZodObject<{
|
|
3862
3891
|
id: z.ZodString;
|
|
@@ -4517,6 +4546,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
4517
4546
|
fileKey: string;
|
|
4518
4547
|
bucketName: string;
|
|
4519
4548
|
fileSize: number;
|
|
4549
|
+
fileUrl: string | null;
|
|
4520
4550
|
};
|
|
4521
4551
|
assignee: {
|
|
4522
4552
|
id: string;
|
|
@@ -4676,6 +4706,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
4676
4706
|
fileKey: string;
|
|
4677
4707
|
bucketName: string;
|
|
4678
4708
|
fileSize: number;
|
|
4709
|
+
fileUrl: string | null;
|
|
4679
4710
|
};
|
|
4680
4711
|
}[];
|
|
4681
4712
|
}[];
|
|
@@ -4989,6 +5020,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
4989
5020
|
fileKey: string;
|
|
4990
5021
|
bucketName: string;
|
|
4991
5022
|
fileSize: number;
|
|
5023
|
+
fileUrl: string | null;
|
|
4992
5024
|
};
|
|
4993
5025
|
assignee: {
|
|
4994
5026
|
id: string;
|
|
@@ -5148,6 +5180,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
5148
5180
|
fileKey: string;
|
|
5149
5181
|
bucketName: string;
|
|
5150
5182
|
fileSize: number;
|
|
5183
|
+
fileUrl: string | null;
|
|
5151
5184
|
};
|
|
5152
5185
|
}[];
|
|
5153
5186
|
}[];
|
|
@@ -5463,6 +5496,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
5463
5496
|
fileKey: string;
|
|
5464
5497
|
bucketName: string;
|
|
5465
5498
|
fileSize: number;
|
|
5499
|
+
fileUrl: string | null;
|
|
5466
5500
|
};
|
|
5467
5501
|
assignee: {
|
|
5468
5502
|
id: string;
|
|
@@ -5622,6 +5656,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
5622
5656
|
fileKey: string;
|
|
5623
5657
|
bucketName: string;
|
|
5624
5658
|
fileSize: number;
|
|
5659
|
+
fileUrl: string | null;
|
|
5625
5660
|
};
|
|
5626
5661
|
}[];
|
|
5627
5662
|
}[];
|
|
@@ -5938,6 +5973,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
5938
5973
|
fileKey: string;
|
|
5939
5974
|
bucketName: string;
|
|
5940
5975
|
fileSize: number;
|
|
5976
|
+
fileUrl: string | null;
|
|
5941
5977
|
};
|
|
5942
5978
|
assignee: {
|
|
5943
5979
|
id: string;
|
|
@@ -6097,6 +6133,7 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
|
6097
6133
|
fileKey: string;
|
|
6098
6134
|
bucketName: string;
|
|
6099
6135
|
fileSize: number;
|
|
6136
|
+
fileUrl: string | null;
|
|
6100
6137
|
};
|
|
6101
6138
|
}[];
|
|
6102
6139
|
}[];
|
|
@@ -6490,37 +6527,28 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
|
|
|
6490
6527
|
}>;
|
|
6491
6528
|
export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
6492
6529
|
message: z.ZodObject<{
|
|
6493
|
-
id: z.ZodString;
|
|
6494
|
-
createdAt: z.ZodDate;
|
|
6495
|
-
updatedAt: z.ZodDate;
|
|
6496
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
6497
6530
|
message: z.ZodString;
|
|
6498
6531
|
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
|
6499
6532
|
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
|
6500
|
-
readAt: z.ZodDate;
|
|
6501
6533
|
metadata: z.ZodAny;
|
|
6502
6534
|
platformId: z.ZodString;
|
|
6503
6535
|
platformMessageId: z.ZodString;
|
|
6504
|
-
replyPlatformMessageId: z.ZodString
|
|
6536
|
+
replyPlatformMessageId: z.ZodOptional<z.ZodString>;
|
|
6505
6537
|
template: z.ZodAny;
|
|
6506
|
-
locale: z.ZodEnum<["mm", "en", "th", ""]
|
|
6507
|
-
url: z.ZodString
|
|
6508
|
-
previewUrl: z.ZodString
|
|
6509
|
-
imageSetId: z.ZodString
|
|
6538
|
+
locale: z.ZodNullable<z.ZodEnum<["mm", "en", "th", ""]>>;
|
|
6539
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6540
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
6541
|
+
imageSetId: z.ZodOptional<z.ZodString>;
|
|
6510
6542
|
room: z.ZodObject<{
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
firstResponseTime: z.ZodNumber;
|
|
6521
|
-
isLatest: z.ZodBoolean;
|
|
6522
|
-
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
|
6523
|
-
platformContact: z.ZodObject<{
|
|
6543
|
+
lastMessage: z.ZodOptional<z.ZodString>;
|
|
6544
|
+
handleTime: z.ZodOptional<z.ZodNumber>;
|
|
6545
|
+
closeAt: z.ZodOptional<z.ZodDate>;
|
|
6546
|
+
unreadCount: z.ZodOptional<z.ZodNumber>;
|
|
6547
|
+
firstResponseAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6548
|
+
firstResponseTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6549
|
+
isLatest: z.ZodOptional<z.ZodBoolean>;
|
|
6550
|
+
direction: z.ZodOptional<z.ZodEnum<["incoming", "outgoing", "system"]>>;
|
|
6551
|
+
platformContact: z.ZodOptional<z.ZodObject<{
|
|
6524
6552
|
id: z.ZodString;
|
|
6525
6553
|
createdAt: z.ZodDate;
|
|
6526
6554
|
updatedAt: z.ZodDate;
|
|
@@ -6844,6 +6872,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
6844
6872
|
fileName: z.ZodString;
|
|
6845
6873
|
fileSize: z.ZodNumber;
|
|
6846
6874
|
fileKey: z.ZodString;
|
|
6875
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
|
6847
6876
|
}, "strip", z.ZodTypeAny, {
|
|
6848
6877
|
id: string;
|
|
6849
6878
|
createdAt: Date;
|
|
@@ -6853,6 +6882,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
6853
6882
|
fileKey: string;
|
|
6854
6883
|
bucketName: string;
|
|
6855
6884
|
fileSize: number;
|
|
6885
|
+
fileUrl: string | null;
|
|
6856
6886
|
}, {
|
|
6857
6887
|
id: string;
|
|
6858
6888
|
createdAt: Date;
|
|
@@ -6862,6 +6892,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
6862
6892
|
fileKey: string;
|
|
6863
6893
|
bucketName: string;
|
|
6864
6894
|
fileSize: number;
|
|
6895
|
+
fileUrl: string | null;
|
|
6865
6896
|
}>;
|
|
6866
6897
|
}, "strip", z.ZodTypeAny, {
|
|
6867
6898
|
id: string;
|
|
@@ -6878,6 +6909,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
6878
6909
|
fileKey: string;
|
|
6879
6910
|
bucketName: string;
|
|
6880
6911
|
fileSize: number;
|
|
6912
|
+
fileUrl: string | null;
|
|
6881
6913
|
};
|
|
6882
6914
|
}, {
|
|
6883
6915
|
id: string;
|
|
@@ -6894,6 +6926,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
6894
6926
|
fileKey: string;
|
|
6895
6927
|
bucketName: string;
|
|
6896
6928
|
fileSize: number;
|
|
6929
|
+
fileUrl: string | null;
|
|
6897
6930
|
};
|
|
6898
6931
|
}>, "many">;
|
|
6899
6932
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6934,6 +6967,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
6934
6967
|
fileKey: string;
|
|
6935
6968
|
bucketName: string;
|
|
6936
6969
|
fileSize: number;
|
|
6970
|
+
fileUrl: string | null;
|
|
6937
6971
|
};
|
|
6938
6972
|
}[];
|
|
6939
6973
|
}, {
|
|
@@ -6974,6 +7008,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
6974
7008
|
fileKey: string;
|
|
6975
7009
|
bucketName: string;
|
|
6976
7010
|
fileSize: number;
|
|
7011
|
+
fileUrl: string | null;
|
|
6977
7012
|
};
|
|
6978
7013
|
}[];
|
|
6979
7014
|
}>, "many">;
|
|
@@ -7127,6 +7162,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
7127
7162
|
fileKey: string;
|
|
7128
7163
|
bucketName: string;
|
|
7129
7164
|
fileSize: number;
|
|
7165
|
+
fileUrl: string | null;
|
|
7130
7166
|
};
|
|
7131
7167
|
}[];
|
|
7132
7168
|
}[];
|
|
@@ -7228,6 +7264,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
7228
7264
|
fileKey: string;
|
|
7229
7265
|
bucketName: string;
|
|
7230
7266
|
fileSize: number;
|
|
7267
|
+
fileUrl: string | null;
|
|
7231
7268
|
};
|
|
7232
7269
|
}[];
|
|
7233
7270
|
}[];
|
|
@@ -7343,6 +7380,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
7343
7380
|
fileKey: string;
|
|
7344
7381
|
bucketName: string;
|
|
7345
7382
|
fileSize: number;
|
|
7383
|
+
fileUrl: string | null;
|
|
7346
7384
|
};
|
|
7347
7385
|
}[];
|
|
7348
7386
|
}[];
|
|
@@ -7459,6 +7497,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
7459
7497
|
fileKey: string;
|
|
7460
7498
|
bucketName: string;
|
|
7461
7499
|
fileSize: number;
|
|
7500
|
+
fileUrl: string | null;
|
|
7462
7501
|
};
|
|
7463
7502
|
}[];
|
|
7464
7503
|
}[];
|
|
@@ -7516,8 +7555,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
7516
7555
|
}[] | undefined;
|
|
7517
7556
|
};
|
|
7518
7557
|
socialPlatformId: string;
|
|
7519
|
-
}
|
|
7520
|
-
actor: z.ZodObject<{
|
|
7558
|
+
}>>;
|
|
7559
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
7521
7560
|
id: z.ZodString;
|
|
7522
7561
|
createdAt: z.ZodDate;
|
|
7523
7562
|
updatedAt: z.ZodDate;
|
|
@@ -7715,8 +7754,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
7715
7754
|
extensionName: string;
|
|
7716
7755
|
telephonySignature: string | null;
|
|
7717
7756
|
} | undefined;
|
|
7718
|
-
}
|
|
7719
|
-
assignee: z.ZodObject<{
|
|
7757
|
+
}>>;
|
|
7758
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
7720
7759
|
id: z.ZodString;
|
|
7721
7760
|
createdAt: z.ZodDate;
|
|
7722
7761
|
updatedAt: z.ZodDate;
|
|
@@ -7914,15 +7953,11 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
7914
7953
|
extensionName: string;
|
|
7915
7954
|
telephonySignature: string | null;
|
|
7916
7955
|
} | undefined;
|
|
7917
|
-
}
|
|
7956
|
+
}>>;
|
|
7918
7957
|
channel: z.ZodOptional<z.ZodObject<{
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
7923
|
-
name: z.ZodOptional<z.ZodString>;
|
|
7924
|
-
type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
|
|
7925
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
7958
|
+
name: z.ZodString;
|
|
7959
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
|
7960
|
+
metadata: z.ZodObject<{
|
|
7926
7961
|
id: z.ZodString;
|
|
7927
7962
|
name: z.ZodString;
|
|
7928
7963
|
accessToken: z.ZodString;
|
|
@@ -7937,407 +7972,144 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
7937
7972
|
name: string;
|
|
7938
7973
|
accessToken: string;
|
|
7939
7974
|
additionalCredentials?: any;
|
|
7940
|
-
}
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
status: z.
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
actor: z.ZodOptional<z.ZodObject<{
|
|
7975
|
+
}>;
|
|
7976
|
+
platformId: z.ZodString;
|
|
7977
|
+
brandName: z.ZodString;
|
|
7978
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
|
7979
|
+
connectedUserName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7980
|
+
connectedUserId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7981
|
+
actor: z.ZodObject<{
|
|
7948
7982
|
id: z.ZodString;
|
|
7949
|
-
createdAt: z.ZodDate;
|
|
7950
|
-
updatedAt: z.ZodDate;
|
|
7951
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
7952
7983
|
name: z.ZodString;
|
|
7953
7984
|
email: z.ZodString;
|
|
7954
|
-
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
|
7955
|
-
password: z.ZodString;
|
|
7956
7985
|
address: z.ZodNullable<z.ZodString>;
|
|
7957
7986
|
phone: z.ZodNullable<z.ZodString>;
|
|
7958
|
-
|
|
7959
|
-
|
|
7987
|
+
}, "strip", z.ZodTypeAny, {
|
|
7988
|
+
id: string;
|
|
7989
|
+
address: string | null;
|
|
7990
|
+
name: string;
|
|
7991
|
+
email: string;
|
|
7992
|
+
phone: string | null;
|
|
7993
|
+
}, {
|
|
7994
|
+
id: string;
|
|
7995
|
+
address: string | null;
|
|
7996
|
+
name: string;
|
|
7997
|
+
email: string;
|
|
7998
|
+
phone: string | null;
|
|
7999
|
+
}>;
|
|
8000
|
+
}, "strip", z.ZodTypeAny, {
|
|
8001
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
8002
|
+
name: string;
|
|
8003
|
+
metadata: {
|
|
8004
|
+
id: string;
|
|
8005
|
+
name: string;
|
|
8006
|
+
accessToken: string;
|
|
8007
|
+
additionalCredentials?: any;
|
|
8008
|
+
};
|
|
8009
|
+
status: boolean;
|
|
8010
|
+
brandName: string;
|
|
8011
|
+
platformId: string;
|
|
8012
|
+
actor: {
|
|
8013
|
+
id: string;
|
|
8014
|
+
address: string | null;
|
|
8015
|
+
name: string;
|
|
8016
|
+
email: string;
|
|
8017
|
+
phone: string | null;
|
|
8018
|
+
};
|
|
8019
|
+
connectedUserName?: string | null | undefined;
|
|
8020
|
+
connectedUserId?: string | null | undefined;
|
|
8021
|
+
}, {
|
|
8022
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
8023
|
+
name: string;
|
|
8024
|
+
metadata: {
|
|
8025
|
+
id: string;
|
|
8026
|
+
name: string;
|
|
8027
|
+
accessToken: string;
|
|
8028
|
+
additionalCredentials?: any;
|
|
8029
|
+
};
|
|
8030
|
+
status: boolean;
|
|
8031
|
+
brandName: string;
|
|
8032
|
+
platformId: string;
|
|
8033
|
+
actor: {
|
|
8034
|
+
id: string;
|
|
8035
|
+
address: string | null;
|
|
8036
|
+
name: string;
|
|
8037
|
+
email: string;
|
|
8038
|
+
phone: string | null;
|
|
8039
|
+
};
|
|
8040
|
+
connectedUserName?: string | null | undefined;
|
|
8041
|
+
connectedUserId?: string | null | undefined;
|
|
8042
|
+
}>>;
|
|
8043
|
+
cxlog: z.ZodOptional<z.ZodObject<{
|
|
8044
|
+
id: z.ZodString;
|
|
8045
|
+
createdAt: z.ZodDate;
|
|
8046
|
+
updatedAt: z.ZodDate;
|
|
8047
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8048
|
+
caseId: z.ZodNumber;
|
|
8049
|
+
entityId: z.ZodString;
|
|
8050
|
+
entityName: z.ZodString;
|
|
8051
|
+
contactId: z.ZodNullable<z.ZodString>;
|
|
8052
|
+
channel: z.ZodNullable<z.ZodString>;
|
|
8053
|
+
queueId: z.ZodNullable<z.ZodString>;
|
|
8054
|
+
agentId: z.ZodNullable<z.ZodString>;
|
|
8055
|
+
direction: z.ZodNullable<z.ZodString>;
|
|
8056
|
+
startedDate: z.ZodNullable<z.ZodDate>;
|
|
8057
|
+
handledTime: z.ZodNullable<z.ZodNumber>;
|
|
8058
|
+
firstResponseTime: z.ZodNullable<z.ZodNumber>;
|
|
8059
|
+
disposition: z.ZodNullable<z.ZodString>;
|
|
8060
|
+
wrapUpForm: z.ZodNullable<z.ZodObject<{
|
|
8061
|
+
id: z.ZodString;
|
|
8062
|
+
createdAt: z.ZodDate;
|
|
8063
|
+
updatedAt: z.ZodDate;
|
|
8064
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8065
|
+
note: z.ZodNullable<z.ZodString>;
|
|
8066
|
+
disposition: z.ZodNullable<z.ZodString>;
|
|
8067
|
+
callFrom: z.ZodNullable<z.ZodString>;
|
|
8068
|
+
callTo: z.ZodNullable<z.ZodString>;
|
|
8069
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
7960
8070
|
id: z.ZodString;
|
|
7961
8071
|
createdAt: z.ZodDate;
|
|
7962
8072
|
updatedAt: z.ZodDate;
|
|
7963
8073
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
7964
|
-
|
|
7965
|
-
displayName: z.ZodString;
|
|
7966
|
-
description: z.ZodNullable<z.ZodString>;
|
|
7967
|
-
permissions: z.ZodArray<z.ZodObject<{
|
|
7968
|
-
id: z.ZodString;
|
|
7969
|
-
createdAt: z.ZodDate;
|
|
7970
|
-
updatedAt: z.ZodDate;
|
|
7971
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
7972
|
-
systemName: z.ZodString;
|
|
7973
|
-
displayName: z.ZodString;
|
|
7974
|
-
description: z.ZodNullable<z.ZodString>;
|
|
7975
|
-
}, "strip", z.ZodTypeAny, {
|
|
7976
|
-
id: string;
|
|
7977
|
-
description: string | null;
|
|
7978
|
-
createdAt: Date;
|
|
7979
|
-
updatedAt: Date;
|
|
7980
|
-
deletedAt: Date | null;
|
|
7981
|
-
systemName: string;
|
|
7982
|
-
displayName: string;
|
|
7983
|
-
}, {
|
|
7984
|
-
id: string;
|
|
7985
|
-
description: string | null;
|
|
7986
|
-
createdAt: Date;
|
|
7987
|
-
updatedAt: Date;
|
|
7988
|
-
deletedAt: Date | null;
|
|
7989
|
-
systemName: string;
|
|
7990
|
-
displayName: string;
|
|
7991
|
-
}>, "many">;
|
|
8074
|
+
name: z.ZodString;
|
|
7992
8075
|
}, "strip", z.ZodTypeAny, {
|
|
7993
8076
|
id: string;
|
|
7994
|
-
|
|
8077
|
+
name: string;
|
|
7995
8078
|
createdAt: Date;
|
|
7996
8079
|
updatedAt: Date;
|
|
7997
8080
|
deletedAt: Date | null;
|
|
7998
|
-
systemName: string;
|
|
7999
|
-
displayName: string;
|
|
8000
|
-
permissions: {
|
|
8001
|
-
id: string;
|
|
8002
|
-
description: string | null;
|
|
8003
|
-
createdAt: Date;
|
|
8004
|
-
updatedAt: Date;
|
|
8005
|
-
deletedAt: Date | null;
|
|
8006
|
-
systemName: string;
|
|
8007
|
-
displayName: string;
|
|
8008
|
-
}[];
|
|
8009
8081
|
}, {
|
|
8010
8082
|
id: string;
|
|
8011
|
-
|
|
8083
|
+
name: string;
|
|
8012
8084
|
createdAt: Date;
|
|
8013
8085
|
updatedAt: Date;
|
|
8014
8086
|
deletedAt: Date | null;
|
|
8015
|
-
systemName: string;
|
|
8016
|
-
displayName: string;
|
|
8017
|
-
permissions: {
|
|
8018
|
-
id: string;
|
|
8019
|
-
description: string | null;
|
|
8020
|
-
createdAt: Date;
|
|
8021
|
-
updatedAt: Date;
|
|
8022
|
-
deletedAt: Date | null;
|
|
8023
|
-
systemName: string;
|
|
8024
|
-
displayName: string;
|
|
8025
|
-
}[];
|
|
8026
8087
|
}>, "many">;
|
|
8027
|
-
extension: z.ZodOptional<z.ZodObject<{
|
|
8028
|
-
id: z.ZodString;
|
|
8029
|
-
createdAt: z.ZodDate;
|
|
8030
|
-
updatedAt: z.ZodDate;
|
|
8031
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8032
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
8033
|
-
sipServerUrl: z.ZodString;
|
|
8034
|
-
sipUserName: z.ZodString;
|
|
8035
|
-
extensionId: z.ZodNumber;
|
|
8036
|
-
extensionName: z.ZodString;
|
|
8037
|
-
telephonySignature: z.ZodNullable<z.ZodString>;
|
|
8038
|
-
}, "strip", z.ZodTypeAny, {
|
|
8039
|
-
id: string;
|
|
8040
|
-
createdAt: Date;
|
|
8041
|
-
updatedAt: Date;
|
|
8042
|
-
deletedAt: Date | null;
|
|
8043
|
-
userId: string | null;
|
|
8044
|
-
sipServerUrl: string;
|
|
8045
|
-
sipUserName: string;
|
|
8046
|
-
extensionId: number;
|
|
8047
|
-
extensionName: string;
|
|
8048
|
-
telephonySignature: string | null;
|
|
8049
|
-
}, {
|
|
8050
|
-
id: string;
|
|
8051
|
-
createdAt: Date;
|
|
8052
|
-
updatedAt: Date;
|
|
8053
|
-
deletedAt: Date | null;
|
|
8054
|
-
userId: string | null;
|
|
8055
|
-
sipServerUrl: string;
|
|
8056
|
-
sipUserName: string;
|
|
8057
|
-
extensionId: number;
|
|
8058
|
-
extensionName: string;
|
|
8059
|
-
telephonySignature: string | null;
|
|
8060
|
-
}>>;
|
|
8061
8088
|
}, "strip", z.ZodTypeAny, {
|
|
8062
8089
|
id: string;
|
|
8063
|
-
|
|
8064
|
-
name: string;
|
|
8065
|
-
email: string;
|
|
8090
|
+
disposition: string | null;
|
|
8066
8091
|
createdAt: Date;
|
|
8067
8092
|
updatedAt: Date;
|
|
8068
8093
|
deletedAt: Date | null;
|
|
8069
|
-
|
|
8070
|
-
password: string;
|
|
8071
|
-
phone: string | null;
|
|
8072
|
-
notificationCount: number | null;
|
|
8073
|
-
roles: {
|
|
8094
|
+
tags: {
|
|
8074
8095
|
id: string;
|
|
8075
|
-
|
|
8096
|
+
name: string;
|
|
8076
8097
|
createdAt: Date;
|
|
8077
8098
|
updatedAt: Date;
|
|
8078
8099
|
deletedAt: Date | null;
|
|
8079
|
-
systemName: string;
|
|
8080
|
-
displayName: string;
|
|
8081
|
-
permissions: {
|
|
8082
|
-
id: string;
|
|
8083
|
-
description: string | null;
|
|
8084
|
-
createdAt: Date;
|
|
8085
|
-
updatedAt: Date;
|
|
8086
|
-
deletedAt: Date | null;
|
|
8087
|
-
systemName: string;
|
|
8088
|
-
displayName: string;
|
|
8089
|
-
}[];
|
|
8090
8100
|
}[];
|
|
8091
|
-
|
|
8101
|
+
callFrom: string | null;
|
|
8102
|
+
callTo: string | null;
|
|
8103
|
+
note: string | null;
|
|
8104
|
+
}, {
|
|
8105
|
+
id: string;
|
|
8106
|
+
disposition: string | null;
|
|
8107
|
+
createdAt: Date;
|
|
8108
|
+
updatedAt: Date;
|
|
8109
|
+
deletedAt: Date | null;
|
|
8110
|
+
tags: {
|
|
8092
8111
|
id: string;
|
|
8093
|
-
|
|
8094
|
-
updatedAt: Date;
|
|
8095
|
-
deletedAt: Date | null;
|
|
8096
|
-
userId: string | null;
|
|
8097
|
-
sipServerUrl: string;
|
|
8098
|
-
sipUserName: string;
|
|
8099
|
-
extensionId: number;
|
|
8100
|
-
extensionName: string;
|
|
8101
|
-
telephonySignature: string | null;
|
|
8102
|
-
} | undefined;
|
|
8103
|
-
}, {
|
|
8104
|
-
id: string;
|
|
8105
|
-
address: string | null;
|
|
8106
|
-
name: string;
|
|
8107
|
-
email: string;
|
|
8108
|
-
createdAt: Date;
|
|
8109
|
-
updatedAt: Date;
|
|
8110
|
-
deletedAt: Date | null;
|
|
8111
|
-
emailVerifiedAt: Date | null;
|
|
8112
|
-
password: string;
|
|
8113
|
-
phone: string | null;
|
|
8114
|
-
notificationCount: number | null;
|
|
8115
|
-
roles: {
|
|
8116
|
-
id: string;
|
|
8117
|
-
description: string | null;
|
|
8118
|
-
createdAt: Date;
|
|
8119
|
-
updatedAt: Date;
|
|
8120
|
-
deletedAt: Date | null;
|
|
8121
|
-
systemName: string;
|
|
8122
|
-
displayName: string;
|
|
8123
|
-
permissions: {
|
|
8124
|
-
id: string;
|
|
8125
|
-
description: string | null;
|
|
8126
|
-
createdAt: Date;
|
|
8127
|
-
updatedAt: Date;
|
|
8128
|
-
deletedAt: Date | null;
|
|
8129
|
-
systemName: string;
|
|
8130
|
-
displayName: string;
|
|
8131
|
-
}[];
|
|
8132
|
-
}[];
|
|
8133
|
-
extension?: {
|
|
8134
|
-
id: string;
|
|
8135
|
-
createdAt: Date;
|
|
8136
|
-
updatedAt: Date;
|
|
8137
|
-
deletedAt: Date | null;
|
|
8138
|
-
userId: string | null;
|
|
8139
|
-
sipServerUrl: string;
|
|
8140
|
-
sipUserName: string;
|
|
8141
|
-
extensionId: number;
|
|
8142
|
-
extensionName: string;
|
|
8143
|
-
telephonySignature: string | null;
|
|
8144
|
-
} | undefined;
|
|
8145
|
-
}>>;
|
|
8146
|
-
}, "strip", z.ZodTypeAny, {
|
|
8147
|
-
id?: string | undefined;
|
|
8148
|
-
createdAt?: Date | undefined;
|
|
8149
|
-
updatedAt?: Date | undefined;
|
|
8150
|
-
deletedAt?: Date | null | undefined;
|
|
8151
|
-
name?: string | undefined;
|
|
8152
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
|
8153
|
-
metadata?: {
|
|
8154
|
-
id: string;
|
|
8155
|
-
name: string;
|
|
8156
|
-
accessToken: string;
|
|
8157
|
-
additionalCredentials?: any;
|
|
8158
|
-
} | undefined;
|
|
8159
|
-
brandName?: string | undefined;
|
|
8160
|
-
platformId?: string | undefined;
|
|
8161
|
-
status?: boolean | undefined;
|
|
8162
|
-
isReloginRequired?: boolean | undefined;
|
|
8163
|
-
connectedUserName?: string | undefined;
|
|
8164
|
-
connectedUserId?: string | undefined;
|
|
8165
|
-
actor?: {
|
|
8166
|
-
id: string;
|
|
8167
|
-
address: string | null;
|
|
8168
|
-
name: string;
|
|
8169
|
-
email: string;
|
|
8170
|
-
createdAt: Date;
|
|
8171
|
-
updatedAt: Date;
|
|
8172
|
-
deletedAt: Date | null;
|
|
8173
|
-
emailVerifiedAt: Date | null;
|
|
8174
|
-
password: string;
|
|
8175
|
-
phone: string | null;
|
|
8176
|
-
notificationCount: number | null;
|
|
8177
|
-
roles: {
|
|
8178
|
-
id: string;
|
|
8179
|
-
description: string | null;
|
|
8180
|
-
createdAt: Date;
|
|
8181
|
-
updatedAt: Date;
|
|
8182
|
-
deletedAt: Date | null;
|
|
8183
|
-
systemName: string;
|
|
8184
|
-
displayName: string;
|
|
8185
|
-
permissions: {
|
|
8186
|
-
id: string;
|
|
8187
|
-
description: string | null;
|
|
8188
|
-
createdAt: Date;
|
|
8189
|
-
updatedAt: Date;
|
|
8190
|
-
deletedAt: Date | null;
|
|
8191
|
-
systemName: string;
|
|
8192
|
-
displayName: string;
|
|
8193
|
-
}[];
|
|
8194
|
-
}[];
|
|
8195
|
-
extension?: {
|
|
8196
|
-
id: string;
|
|
8197
|
-
createdAt: Date;
|
|
8198
|
-
updatedAt: Date;
|
|
8199
|
-
deletedAt: Date | null;
|
|
8200
|
-
userId: string | null;
|
|
8201
|
-
sipServerUrl: string;
|
|
8202
|
-
sipUserName: string;
|
|
8203
|
-
extensionId: number;
|
|
8204
|
-
extensionName: string;
|
|
8205
|
-
telephonySignature: string | null;
|
|
8206
|
-
} | undefined;
|
|
8207
|
-
} | undefined;
|
|
8208
|
-
}, {
|
|
8209
|
-
id?: string | undefined;
|
|
8210
|
-
createdAt?: Date | undefined;
|
|
8211
|
-
updatedAt?: Date | undefined;
|
|
8212
|
-
deletedAt?: Date | null | undefined;
|
|
8213
|
-
name?: string | undefined;
|
|
8214
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
|
8215
|
-
metadata?: {
|
|
8216
|
-
id: string;
|
|
8217
|
-
name: string;
|
|
8218
|
-
accessToken: string;
|
|
8219
|
-
additionalCredentials?: any;
|
|
8220
|
-
} | undefined;
|
|
8221
|
-
brandName?: string | undefined;
|
|
8222
|
-
platformId?: string | undefined;
|
|
8223
|
-
status?: boolean | undefined;
|
|
8224
|
-
isReloginRequired?: boolean | undefined;
|
|
8225
|
-
connectedUserName?: string | undefined;
|
|
8226
|
-
connectedUserId?: string | undefined;
|
|
8227
|
-
actor?: {
|
|
8228
|
-
id: string;
|
|
8229
|
-
address: string | null;
|
|
8230
|
-
name: string;
|
|
8231
|
-
email: string;
|
|
8232
|
-
createdAt: Date;
|
|
8233
|
-
updatedAt: Date;
|
|
8234
|
-
deletedAt: Date | null;
|
|
8235
|
-
emailVerifiedAt: Date | null;
|
|
8236
|
-
password: string;
|
|
8237
|
-
phone: string | null;
|
|
8238
|
-
notificationCount: number | null;
|
|
8239
|
-
roles: {
|
|
8240
|
-
id: string;
|
|
8241
|
-
description: string | null;
|
|
8242
|
-
createdAt: Date;
|
|
8243
|
-
updatedAt: Date;
|
|
8244
|
-
deletedAt: Date | null;
|
|
8245
|
-
systemName: string;
|
|
8246
|
-
displayName: string;
|
|
8247
|
-
permissions: {
|
|
8248
|
-
id: string;
|
|
8249
|
-
description: string | null;
|
|
8250
|
-
createdAt: Date;
|
|
8251
|
-
updatedAt: Date;
|
|
8252
|
-
deletedAt: Date | null;
|
|
8253
|
-
systemName: string;
|
|
8254
|
-
displayName: string;
|
|
8255
|
-
}[];
|
|
8256
|
-
}[];
|
|
8257
|
-
extension?: {
|
|
8258
|
-
id: string;
|
|
8259
|
-
createdAt: Date;
|
|
8260
|
-
updatedAt: Date;
|
|
8261
|
-
deletedAt: Date | null;
|
|
8262
|
-
userId: string | null;
|
|
8263
|
-
sipServerUrl: string;
|
|
8264
|
-
sipUserName: string;
|
|
8265
|
-
extensionId: number;
|
|
8266
|
-
extensionName: string;
|
|
8267
|
-
telephonySignature: string | null;
|
|
8268
|
-
} | undefined;
|
|
8269
|
-
} | undefined;
|
|
8270
|
-
}>>;
|
|
8271
|
-
cxlog: z.ZodObject<{
|
|
8272
|
-
id: z.ZodString;
|
|
8273
|
-
createdAt: z.ZodDate;
|
|
8274
|
-
updatedAt: z.ZodDate;
|
|
8275
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8276
|
-
caseId: z.ZodNumber;
|
|
8277
|
-
entityId: z.ZodString;
|
|
8278
|
-
entityName: z.ZodString;
|
|
8279
|
-
contactId: z.ZodNullable<z.ZodString>;
|
|
8280
|
-
channel: z.ZodNullable<z.ZodString>;
|
|
8281
|
-
queueId: z.ZodNullable<z.ZodString>;
|
|
8282
|
-
agentId: z.ZodNullable<z.ZodString>;
|
|
8283
|
-
direction: z.ZodNullable<z.ZodString>;
|
|
8284
|
-
startedDate: z.ZodNullable<z.ZodDate>;
|
|
8285
|
-
handledTime: z.ZodNullable<z.ZodNumber>;
|
|
8286
|
-
firstResponseTime: z.ZodNullable<z.ZodNumber>;
|
|
8287
|
-
disposition: z.ZodNullable<z.ZodString>;
|
|
8288
|
-
wrapUpForm: z.ZodNullable<z.ZodObject<{
|
|
8289
|
-
id: z.ZodString;
|
|
8290
|
-
createdAt: z.ZodDate;
|
|
8291
|
-
updatedAt: z.ZodDate;
|
|
8292
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8293
|
-
note: z.ZodNullable<z.ZodString>;
|
|
8294
|
-
disposition: z.ZodNullable<z.ZodString>;
|
|
8295
|
-
callFrom: z.ZodNullable<z.ZodString>;
|
|
8296
|
-
callTo: z.ZodNullable<z.ZodString>;
|
|
8297
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
8298
|
-
id: z.ZodString;
|
|
8299
|
-
createdAt: z.ZodDate;
|
|
8300
|
-
updatedAt: z.ZodDate;
|
|
8301
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
8302
|
-
name: z.ZodString;
|
|
8303
|
-
}, "strip", z.ZodTypeAny, {
|
|
8304
|
-
id: string;
|
|
8305
|
-
name: string;
|
|
8306
|
-
createdAt: Date;
|
|
8307
|
-
updatedAt: Date;
|
|
8308
|
-
deletedAt: Date | null;
|
|
8309
|
-
}, {
|
|
8310
|
-
id: string;
|
|
8311
|
-
name: string;
|
|
8312
|
-
createdAt: Date;
|
|
8313
|
-
updatedAt: Date;
|
|
8314
|
-
deletedAt: Date | null;
|
|
8315
|
-
}>, "many">;
|
|
8316
|
-
}, "strip", z.ZodTypeAny, {
|
|
8317
|
-
id: string;
|
|
8318
|
-
disposition: string | null;
|
|
8319
|
-
createdAt: Date;
|
|
8320
|
-
updatedAt: Date;
|
|
8321
|
-
deletedAt: Date | null;
|
|
8322
|
-
tags: {
|
|
8323
|
-
id: string;
|
|
8324
|
-
name: string;
|
|
8325
|
-
createdAt: Date;
|
|
8326
|
-
updatedAt: Date;
|
|
8327
|
-
deletedAt: Date | null;
|
|
8328
|
-
}[];
|
|
8329
|
-
callFrom: string | null;
|
|
8330
|
-
callTo: string | null;
|
|
8331
|
-
note: string | null;
|
|
8332
|
-
}, {
|
|
8333
|
-
id: string;
|
|
8334
|
-
disposition: string | null;
|
|
8335
|
-
createdAt: Date;
|
|
8336
|
-
updatedAt: Date;
|
|
8337
|
-
deletedAt: Date | null;
|
|
8338
|
-
tags: {
|
|
8339
|
-
id: string;
|
|
8340
|
-
name: string;
|
|
8112
|
+
name: string;
|
|
8341
8113
|
createdAt: Date;
|
|
8342
8114
|
updatedAt: Date;
|
|
8343
8115
|
deletedAt: Date | null;
|
|
@@ -8403,75 +8175,28 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
8403
8175
|
createdAt: Date;
|
|
8404
8176
|
updatedAt: Date;
|
|
8405
8177
|
deletedAt: Date | null;
|
|
8406
|
-
tags: {
|
|
8407
|
-
id: string;
|
|
8408
|
-
name: string;
|
|
8409
|
-
createdAt: Date;
|
|
8410
|
-
updatedAt: Date;
|
|
8411
|
-
deletedAt: Date | null;
|
|
8412
|
-
}[];
|
|
8413
|
-
callFrom: string | null;
|
|
8414
|
-
callTo: string | null;
|
|
8415
|
-
note: string | null;
|
|
8416
|
-
} | null;
|
|
8417
|
-
}>;
|
|
8418
|
-
}, "strip", z.ZodTypeAny, {
|
|
8419
|
-
id: string;
|
|
8420
|
-
direction: "incoming" | "outgoing" | "system";
|
|
8421
|
-
createdAt: Date;
|
|
8422
|
-
updatedAt: Date;
|
|
8423
|
-
deletedAt: Date | null;
|
|
8424
|
-
actor: {
|
|
8425
|
-
id: string;
|
|
8426
|
-
address: string | null;
|
|
8427
|
-
name: string;
|
|
8428
|
-
email: string;
|
|
8429
|
-
createdAt: Date;
|
|
8430
|
-
updatedAt: Date;
|
|
8431
|
-
deletedAt: Date | null;
|
|
8432
|
-
emailVerifiedAt: Date | null;
|
|
8433
|
-
password: string;
|
|
8434
|
-
phone: string | null;
|
|
8435
|
-
notificationCount: number | null;
|
|
8436
|
-
roles: {
|
|
8437
|
-
id: string;
|
|
8438
|
-
description: string | null;
|
|
8439
|
-
createdAt: Date;
|
|
8440
|
-
updatedAt: Date;
|
|
8441
|
-
deletedAt: Date | null;
|
|
8442
|
-
systemName: string;
|
|
8443
|
-
displayName: string;
|
|
8444
|
-
permissions: {
|
|
8178
|
+
tags: {
|
|
8445
8179
|
id: string;
|
|
8446
|
-
|
|
8180
|
+
name: string;
|
|
8447
8181
|
createdAt: Date;
|
|
8448
8182
|
updatedAt: Date;
|
|
8449
8183
|
deletedAt: Date | null;
|
|
8450
|
-
systemName: string;
|
|
8451
|
-
displayName: string;
|
|
8452
8184
|
}[];
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
lastMessage: string;
|
|
8469
|
-
handleTime: number;
|
|
8470
|
-
closeAt: Date;
|
|
8471
|
-
unreadCount: number;
|
|
8472
|
-
firstResponseAt: Date;
|
|
8473
|
-
isLatest: boolean;
|
|
8474
|
-
platformContact: {
|
|
8185
|
+
callFrom: string | null;
|
|
8186
|
+
callTo: string | null;
|
|
8187
|
+
note: string | null;
|
|
8188
|
+
} | null;
|
|
8189
|
+
}>>;
|
|
8190
|
+
}, "strip", z.ZodTypeAny, {
|
|
8191
|
+
lastMessage?: string | undefined;
|
|
8192
|
+
handleTime?: number | undefined;
|
|
8193
|
+
closeAt?: Date | undefined;
|
|
8194
|
+
unreadCount?: number | undefined;
|
|
8195
|
+
firstResponseAt?: Date | null | undefined;
|
|
8196
|
+
firstResponseTime?: number | null | undefined;
|
|
8197
|
+
isLatest?: boolean | undefined;
|
|
8198
|
+
direction?: "incoming" | "outgoing" | "system" | undefined;
|
|
8199
|
+
platformContact?: {
|
|
8475
8200
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
8476
8201
|
id: string;
|
|
8477
8202
|
metadata: {
|
|
@@ -8530,6 +8255,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
8530
8255
|
fileKey: string;
|
|
8531
8256
|
bucketName: string;
|
|
8532
8257
|
fileSize: number;
|
|
8258
|
+
fileUrl: string | null;
|
|
8533
8259
|
};
|
|
8534
8260
|
}[];
|
|
8535
8261
|
}[];
|
|
@@ -8587,8 +8313,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
8587
8313
|
}[] | undefined;
|
|
8588
8314
|
};
|
|
8589
8315
|
socialPlatformId: string;
|
|
8590
|
-
};
|
|
8591
|
-
|
|
8316
|
+
} | undefined;
|
|
8317
|
+
actor?: {
|
|
8592
8318
|
id: string;
|
|
8593
8319
|
address: string | null;
|
|
8594
8320
|
name: string;
|
|
@@ -8630,112 +8356,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
8630
8356
|
extensionName: string;
|
|
8631
8357
|
telephonySignature: string | null;
|
|
8632
8358
|
} | undefined;
|
|
8633
|
-
};
|
|
8634
|
-
cxlog: {
|
|
8635
|
-
id: string;
|
|
8636
|
-
channel: string | null;
|
|
8637
|
-
disposition: string | null;
|
|
8638
|
-
direction: string | null;
|
|
8639
|
-
createdAt: Date;
|
|
8640
|
-
updatedAt: Date;
|
|
8641
|
-
deletedAt: Date | null;
|
|
8642
|
-
entityId: string;
|
|
8643
|
-
contactId: string | null;
|
|
8644
|
-
caseId: number;
|
|
8645
|
-
entityName: string;
|
|
8646
|
-
queueId: string | null;
|
|
8647
|
-
agentId: string | null;
|
|
8648
|
-
startedDate: Date | null;
|
|
8649
|
-
handledTime: number | null;
|
|
8650
|
-
firstResponseTime: number | null;
|
|
8651
|
-
wrapUpForm: {
|
|
8652
|
-
id: string;
|
|
8653
|
-
disposition: string | null;
|
|
8654
|
-
createdAt: Date;
|
|
8655
|
-
updatedAt: Date;
|
|
8656
|
-
deletedAt: Date | null;
|
|
8657
|
-
tags: {
|
|
8658
|
-
id: string;
|
|
8659
|
-
name: string;
|
|
8660
|
-
createdAt: Date;
|
|
8661
|
-
updatedAt: Date;
|
|
8662
|
-
deletedAt: Date | null;
|
|
8663
|
-
}[];
|
|
8664
|
-
callFrom: string | null;
|
|
8665
|
-
callTo: string | null;
|
|
8666
|
-
note: string | null;
|
|
8667
|
-
} | null;
|
|
8668
|
-
};
|
|
8669
|
-
channel?: {
|
|
8670
|
-
id?: string | undefined;
|
|
8671
|
-
createdAt?: Date | undefined;
|
|
8672
|
-
updatedAt?: Date | undefined;
|
|
8673
|
-
deletedAt?: Date | null | undefined;
|
|
8674
|
-
name?: string | undefined;
|
|
8675
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
|
8676
|
-
metadata?: {
|
|
8677
|
-
id: string;
|
|
8678
|
-
name: string;
|
|
8679
|
-
accessToken: string;
|
|
8680
|
-
additionalCredentials?: any;
|
|
8681
|
-
} | undefined;
|
|
8682
|
-
brandName?: string | undefined;
|
|
8683
|
-
platformId?: string | undefined;
|
|
8684
|
-
status?: boolean | undefined;
|
|
8685
|
-
isReloginRequired?: boolean | undefined;
|
|
8686
|
-
connectedUserName?: string | undefined;
|
|
8687
|
-
connectedUserId?: string | undefined;
|
|
8688
|
-
actor?: {
|
|
8689
|
-
id: string;
|
|
8690
|
-
address: string | null;
|
|
8691
|
-
name: string;
|
|
8692
|
-
email: string;
|
|
8693
|
-
createdAt: Date;
|
|
8694
|
-
updatedAt: Date;
|
|
8695
|
-
deletedAt: Date | null;
|
|
8696
|
-
emailVerifiedAt: Date | null;
|
|
8697
|
-
password: string;
|
|
8698
|
-
phone: string | null;
|
|
8699
|
-
notificationCount: number | null;
|
|
8700
|
-
roles: {
|
|
8701
|
-
id: string;
|
|
8702
|
-
description: string | null;
|
|
8703
|
-
createdAt: Date;
|
|
8704
|
-
updatedAt: Date;
|
|
8705
|
-
deletedAt: Date | null;
|
|
8706
|
-
systemName: string;
|
|
8707
|
-
displayName: string;
|
|
8708
|
-
permissions: {
|
|
8709
|
-
id: string;
|
|
8710
|
-
description: string | null;
|
|
8711
|
-
createdAt: Date;
|
|
8712
|
-
updatedAt: Date;
|
|
8713
|
-
deletedAt: Date | null;
|
|
8714
|
-
systemName: string;
|
|
8715
|
-
displayName: string;
|
|
8716
|
-
}[];
|
|
8717
|
-
}[];
|
|
8718
|
-
extension?: {
|
|
8719
|
-
id: string;
|
|
8720
|
-
createdAt: Date;
|
|
8721
|
-
updatedAt: Date;
|
|
8722
|
-
deletedAt: Date | null;
|
|
8723
|
-
userId: string | null;
|
|
8724
|
-
sipServerUrl: string;
|
|
8725
|
-
sipUserName: string;
|
|
8726
|
-
extensionId: number;
|
|
8727
|
-
extensionName: string;
|
|
8728
|
-
telephonySignature: string | null;
|
|
8729
|
-
} | undefined;
|
|
8730
|
-
} | undefined;
|
|
8731
8359
|
} | undefined;
|
|
8732
|
-
|
|
8733
|
-
id: string;
|
|
8734
|
-
direction: "incoming" | "outgoing" | "system";
|
|
8735
|
-
createdAt: Date;
|
|
8736
|
-
updatedAt: Date;
|
|
8737
|
-
deletedAt: Date | null;
|
|
8738
|
-
actor: {
|
|
8360
|
+
assignee?: {
|
|
8739
8361
|
id: string;
|
|
8740
8362
|
address: string | null;
|
|
8741
8363
|
name: string;
|
|
@@ -8777,15 +8399,74 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
8777
8399
|
extensionName: string;
|
|
8778
8400
|
telephonySignature: string | null;
|
|
8779
8401
|
} | undefined;
|
|
8780
|
-
};
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8402
|
+
} | undefined;
|
|
8403
|
+
channel?: {
|
|
8404
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
8405
|
+
name: string;
|
|
8406
|
+
metadata: {
|
|
8407
|
+
id: string;
|
|
8408
|
+
name: string;
|
|
8409
|
+
accessToken: string;
|
|
8410
|
+
additionalCredentials?: any;
|
|
8411
|
+
};
|
|
8412
|
+
status: boolean;
|
|
8413
|
+
brandName: string;
|
|
8414
|
+
platformId: string;
|
|
8415
|
+
actor: {
|
|
8416
|
+
id: string;
|
|
8417
|
+
address: string | null;
|
|
8418
|
+
name: string;
|
|
8419
|
+
email: string;
|
|
8420
|
+
phone: string | null;
|
|
8421
|
+
};
|
|
8422
|
+
connectedUserName?: string | null | undefined;
|
|
8423
|
+
connectedUserId?: string | null | undefined;
|
|
8424
|
+
} | undefined;
|
|
8425
|
+
cxlog?: {
|
|
8426
|
+
id: string;
|
|
8427
|
+
channel: string | null;
|
|
8428
|
+
disposition: string | null;
|
|
8429
|
+
direction: string | null;
|
|
8430
|
+
createdAt: Date;
|
|
8431
|
+
updatedAt: Date;
|
|
8432
|
+
deletedAt: Date | null;
|
|
8433
|
+
entityId: string;
|
|
8434
|
+
contactId: string | null;
|
|
8435
|
+
caseId: number;
|
|
8436
|
+
entityName: string;
|
|
8437
|
+
queueId: string | null;
|
|
8438
|
+
agentId: string | null;
|
|
8439
|
+
startedDate: Date | null;
|
|
8440
|
+
handledTime: number | null;
|
|
8441
|
+
firstResponseTime: number | null;
|
|
8442
|
+
wrapUpForm: {
|
|
8443
|
+
id: string;
|
|
8444
|
+
disposition: string | null;
|
|
8445
|
+
createdAt: Date;
|
|
8446
|
+
updatedAt: Date;
|
|
8447
|
+
deletedAt: Date | null;
|
|
8448
|
+
tags: {
|
|
8449
|
+
id: string;
|
|
8450
|
+
name: string;
|
|
8451
|
+
createdAt: Date;
|
|
8452
|
+
updatedAt: Date;
|
|
8453
|
+
deletedAt: Date | null;
|
|
8454
|
+
}[];
|
|
8455
|
+
callFrom: string | null;
|
|
8456
|
+
callTo: string | null;
|
|
8457
|
+
note: string | null;
|
|
8458
|
+
} | null;
|
|
8459
|
+
} | undefined;
|
|
8460
|
+
}, {
|
|
8461
|
+
lastMessage?: string | undefined;
|
|
8462
|
+
handleTime?: number | undefined;
|
|
8463
|
+
closeAt?: Date | undefined;
|
|
8464
|
+
unreadCount?: number | undefined;
|
|
8465
|
+
firstResponseAt?: Date | null | undefined;
|
|
8466
|
+
firstResponseTime?: number | null | undefined;
|
|
8467
|
+
isLatest?: boolean | undefined;
|
|
8468
|
+
direction?: "incoming" | "outgoing" | "system" | undefined;
|
|
8469
|
+
platformContact?: {
|
|
8789
8470
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
8790
8471
|
id: string;
|
|
8791
8472
|
metadata: {
|
|
@@ -8844,6 +8525,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
8844
8525
|
fileKey: string;
|
|
8845
8526
|
bucketName: string;
|
|
8846
8527
|
fileSize: number;
|
|
8528
|
+
fileUrl: string | null;
|
|
8847
8529
|
};
|
|
8848
8530
|
}[];
|
|
8849
8531
|
}[];
|
|
@@ -8901,8 +8583,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
8901
8583
|
}[] | undefined;
|
|
8902
8584
|
};
|
|
8903
8585
|
socialPlatformId: string;
|
|
8904
|
-
};
|
|
8905
|
-
|
|
8586
|
+
} | undefined;
|
|
8587
|
+
actor?: {
|
|
8906
8588
|
id: string;
|
|
8907
8589
|
address: string | null;
|
|
8908
8590
|
name: string;
|
|
@@ -8944,8 +8626,73 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
8944
8626
|
extensionName: string;
|
|
8945
8627
|
telephonySignature: string | null;
|
|
8946
8628
|
} | undefined;
|
|
8947
|
-
};
|
|
8948
|
-
|
|
8629
|
+
} | undefined;
|
|
8630
|
+
assignee?: {
|
|
8631
|
+
id: string;
|
|
8632
|
+
address: string | null;
|
|
8633
|
+
name: string;
|
|
8634
|
+
email: string;
|
|
8635
|
+
createdAt: Date;
|
|
8636
|
+
updatedAt: Date;
|
|
8637
|
+
deletedAt: Date | null;
|
|
8638
|
+
emailVerifiedAt: Date | null;
|
|
8639
|
+
password: string;
|
|
8640
|
+
phone: string | null;
|
|
8641
|
+
notificationCount: number | null;
|
|
8642
|
+
roles: {
|
|
8643
|
+
id: string;
|
|
8644
|
+
description: string | null;
|
|
8645
|
+
createdAt: Date;
|
|
8646
|
+
updatedAt: Date;
|
|
8647
|
+
deletedAt: Date | null;
|
|
8648
|
+
systemName: string;
|
|
8649
|
+
displayName: string;
|
|
8650
|
+
permissions: {
|
|
8651
|
+
id: string;
|
|
8652
|
+
description: string | null;
|
|
8653
|
+
createdAt: Date;
|
|
8654
|
+
updatedAt: Date;
|
|
8655
|
+
deletedAt: Date | null;
|
|
8656
|
+
systemName: string;
|
|
8657
|
+
displayName: string;
|
|
8658
|
+
}[];
|
|
8659
|
+
}[];
|
|
8660
|
+
extension?: {
|
|
8661
|
+
id: string;
|
|
8662
|
+
createdAt: Date;
|
|
8663
|
+
updatedAt: Date;
|
|
8664
|
+
deletedAt: Date | null;
|
|
8665
|
+
userId: string | null;
|
|
8666
|
+
sipServerUrl: string;
|
|
8667
|
+
sipUserName: string;
|
|
8668
|
+
extensionId: number;
|
|
8669
|
+
extensionName: string;
|
|
8670
|
+
telephonySignature: string | null;
|
|
8671
|
+
} | undefined;
|
|
8672
|
+
} | undefined;
|
|
8673
|
+
channel?: {
|
|
8674
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
8675
|
+
name: string;
|
|
8676
|
+
metadata: {
|
|
8677
|
+
id: string;
|
|
8678
|
+
name: string;
|
|
8679
|
+
accessToken: string;
|
|
8680
|
+
additionalCredentials?: any;
|
|
8681
|
+
};
|
|
8682
|
+
status: boolean;
|
|
8683
|
+
brandName: string;
|
|
8684
|
+
platformId: string;
|
|
8685
|
+
actor: {
|
|
8686
|
+
id: string;
|
|
8687
|
+
address: string | null;
|
|
8688
|
+
name: string;
|
|
8689
|
+
email: string;
|
|
8690
|
+
phone: string | null;
|
|
8691
|
+
};
|
|
8692
|
+
connectedUserName?: string | null | undefined;
|
|
8693
|
+
connectedUserId?: string | null | undefined;
|
|
8694
|
+
} | undefined;
|
|
8695
|
+
cxlog?: {
|
|
8949
8696
|
id: string;
|
|
8950
8697
|
channel: string | null;
|
|
8951
8698
|
disposition: string | null;
|
|
@@ -8979,72 +8726,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
8979
8726
|
callTo: string | null;
|
|
8980
8727
|
note: string | null;
|
|
8981
8728
|
} | null;
|
|
8982
|
-
};
|
|
8983
|
-
channel?: {
|
|
8984
|
-
id?: string | undefined;
|
|
8985
|
-
createdAt?: Date | undefined;
|
|
8986
|
-
updatedAt?: Date | undefined;
|
|
8987
|
-
deletedAt?: Date | null | undefined;
|
|
8988
|
-
name?: string | undefined;
|
|
8989
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
|
8990
|
-
metadata?: {
|
|
8991
|
-
id: string;
|
|
8992
|
-
name: string;
|
|
8993
|
-
accessToken: string;
|
|
8994
|
-
additionalCredentials?: any;
|
|
8995
|
-
} | undefined;
|
|
8996
|
-
brandName?: string | undefined;
|
|
8997
|
-
platformId?: string | undefined;
|
|
8998
|
-
status?: boolean | undefined;
|
|
8999
|
-
isReloginRequired?: boolean | undefined;
|
|
9000
|
-
connectedUserName?: string | undefined;
|
|
9001
|
-
connectedUserId?: string | undefined;
|
|
9002
|
-
actor?: {
|
|
9003
|
-
id: string;
|
|
9004
|
-
address: string | null;
|
|
9005
|
-
name: string;
|
|
9006
|
-
email: string;
|
|
9007
|
-
createdAt: Date;
|
|
9008
|
-
updatedAt: Date;
|
|
9009
|
-
deletedAt: Date | null;
|
|
9010
|
-
emailVerifiedAt: Date | null;
|
|
9011
|
-
password: string;
|
|
9012
|
-
phone: string | null;
|
|
9013
|
-
notificationCount: number | null;
|
|
9014
|
-
roles: {
|
|
9015
|
-
id: string;
|
|
9016
|
-
description: string | null;
|
|
9017
|
-
createdAt: Date;
|
|
9018
|
-
updatedAt: Date;
|
|
9019
|
-
deletedAt: Date | null;
|
|
9020
|
-
systemName: string;
|
|
9021
|
-
displayName: string;
|
|
9022
|
-
permissions: {
|
|
9023
|
-
id: string;
|
|
9024
|
-
description: string | null;
|
|
9025
|
-
createdAt: Date;
|
|
9026
|
-
updatedAt: Date;
|
|
9027
|
-
deletedAt: Date | null;
|
|
9028
|
-
systemName: string;
|
|
9029
|
-
displayName: string;
|
|
9030
|
-
}[];
|
|
9031
|
-
}[];
|
|
9032
|
-
extension?: {
|
|
9033
|
-
id: string;
|
|
9034
|
-
createdAt: Date;
|
|
9035
|
-
updatedAt: Date;
|
|
9036
|
-
deletedAt: Date | null;
|
|
9037
|
-
userId: string | null;
|
|
9038
|
-
sipServerUrl: string;
|
|
9039
|
-
sipUserName: string;
|
|
9040
|
-
extensionId: number;
|
|
9041
|
-
extensionName: string;
|
|
9042
|
-
telephonySignature: string | null;
|
|
9043
|
-
} | undefined;
|
|
9044
|
-
} | undefined;
|
|
9045
8729
|
} | undefined;
|
|
9046
8730
|
}>;
|
|
9047
|
-
upload: z.ZodObject<{
|
|
8731
|
+
upload: z.ZodOptional<z.ZodObject<{
|
|
9048
8732
|
id: z.ZodString;
|
|
9049
8733
|
createdAt: z.ZodDate;
|
|
9050
8734
|
updatedAt: z.ZodDate;
|
|
@@ -9053,6 +8737,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
9053
8737
|
fileName: z.ZodString;
|
|
9054
8738
|
fileSize: z.ZodNumber;
|
|
9055
8739
|
fileKey: z.ZodString;
|
|
8740
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
|
9056
8741
|
}, "strip", z.ZodTypeAny, {
|
|
9057
8742
|
id: string;
|
|
9058
8743
|
createdAt: Date;
|
|
@@ -9062,6 +8747,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
9062
8747
|
fileKey: string;
|
|
9063
8748
|
bucketName: string;
|
|
9064
8749
|
fileSize: number;
|
|
8750
|
+
fileUrl: string | null;
|
|
9065
8751
|
}, {
|
|
9066
8752
|
id: string;
|
|
9067
8753
|
createdAt: Date;
|
|
@@ -9071,8 +8757,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
9071
8757
|
fileKey: string;
|
|
9072
8758
|
bucketName: string;
|
|
9073
8759
|
fileSize: number;
|
|
9074
|
-
|
|
9075
|
-
|
|
8760
|
+
fileUrl: string | null;
|
|
8761
|
+
}>>;
|
|
8762
|
+
actor: z.ZodOptional<z.ZodObject<{
|
|
9076
8763
|
id: z.ZodString;
|
|
9077
8764
|
createdAt: z.ZodDate;
|
|
9078
8765
|
updatedAt: z.ZodDate;
|
|
@@ -9270,8 +8957,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
9270
8957
|
extensionName: string;
|
|
9271
8958
|
telephonySignature: string | null;
|
|
9272
8959
|
} | undefined;
|
|
9273
|
-
}
|
|
9274
|
-
assignee: z.ZodObject<{
|
|
8960
|
+
}>>;
|
|
8961
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
9275
8962
|
id: z.ZodString;
|
|
9276
8963
|
createdAt: z.ZodDate;
|
|
9277
8964
|
updatedAt: z.ZodDate;
|
|
@@ -9469,8 +9156,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
9469
9156
|
extensionName: string;
|
|
9470
9157
|
telephonySignature: string | null;
|
|
9471
9158
|
} | undefined;
|
|
9472
|
-
}
|
|
9473
|
-
sender: z.ZodObject<{
|
|
9159
|
+
}>>;
|
|
9160
|
+
sender: z.ZodOptional<z.ZodObject<{
|
|
9474
9161
|
id: z.ZodString;
|
|
9475
9162
|
createdAt: z.ZodDate;
|
|
9476
9163
|
updatedAt: z.ZodDate;
|
|
@@ -9660,178 +9347,30 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
9660
9347
|
id: string;
|
|
9661
9348
|
createdAt: Date;
|
|
9662
9349
|
updatedAt: Date;
|
|
9663
|
-
deletedAt: Date | null;
|
|
9664
|
-
userId: string | null;
|
|
9665
|
-
sipServerUrl: string;
|
|
9666
|
-
sipUserName: string;
|
|
9667
|
-
extensionId: number;
|
|
9668
|
-
extensionName: string;
|
|
9669
|
-
telephonySignature: string | null;
|
|
9670
|
-
} | undefined;
|
|
9671
|
-
}
|
|
9672
|
-
}, "strip", z.ZodTypeAny, {
|
|
9673
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
|
9674
|
-
message: string;
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
createdAt: Date;
|
|
9688
|
-
updatedAt: Date;
|
|
9689
|
-
deletedAt: Date | null;
|
|
9690
|
-
emailVerifiedAt: Date | null;
|
|
9691
|
-
password: string;
|
|
9692
|
-
phone: string | null;
|
|
9693
|
-
notificationCount: number | null;
|
|
9694
|
-
roles: {
|
|
9695
|
-
id: string;
|
|
9696
|
-
description: string | null;
|
|
9697
|
-
createdAt: Date;
|
|
9698
|
-
updatedAt: Date;
|
|
9699
|
-
deletedAt: Date | null;
|
|
9700
|
-
systemName: string;
|
|
9701
|
-
displayName: string;
|
|
9702
|
-
permissions: {
|
|
9703
|
-
id: string;
|
|
9704
|
-
description: string | null;
|
|
9705
|
-
createdAt: Date;
|
|
9706
|
-
updatedAt: Date;
|
|
9707
|
-
deletedAt: Date | null;
|
|
9708
|
-
systemName: string;
|
|
9709
|
-
displayName: string;
|
|
9710
|
-
}[];
|
|
9711
|
-
}[];
|
|
9712
|
-
extension?: {
|
|
9713
|
-
id: string;
|
|
9714
|
-
createdAt: Date;
|
|
9715
|
-
updatedAt: Date;
|
|
9716
|
-
deletedAt: Date | null;
|
|
9717
|
-
userId: string | null;
|
|
9718
|
-
sipServerUrl: string;
|
|
9719
|
-
sipUserName: string;
|
|
9720
|
-
extensionId: number;
|
|
9721
|
-
extensionName: string;
|
|
9722
|
-
telephonySignature: string | null;
|
|
9723
|
-
} | undefined;
|
|
9724
|
-
};
|
|
9725
|
-
upload: {
|
|
9726
|
-
id: string;
|
|
9727
|
-
createdAt: Date;
|
|
9728
|
-
updatedAt: Date;
|
|
9729
|
-
deletedAt: Date | null;
|
|
9730
|
-
fileName: string;
|
|
9731
|
-
fileKey: string;
|
|
9732
|
-
bucketName: string;
|
|
9733
|
-
fileSize: number;
|
|
9734
|
-
};
|
|
9735
|
-
assignee: {
|
|
9736
|
-
id: string;
|
|
9737
|
-
address: string | null;
|
|
9738
|
-
name: string;
|
|
9739
|
-
email: string;
|
|
9740
|
-
createdAt: Date;
|
|
9741
|
-
updatedAt: Date;
|
|
9742
|
-
deletedAt: Date | null;
|
|
9743
|
-
emailVerifiedAt: Date | null;
|
|
9744
|
-
password: string;
|
|
9745
|
-
phone: string | null;
|
|
9746
|
-
notificationCount: number | null;
|
|
9747
|
-
roles: {
|
|
9748
|
-
id: string;
|
|
9749
|
-
description: string | null;
|
|
9750
|
-
createdAt: Date;
|
|
9751
|
-
updatedAt: Date;
|
|
9752
|
-
deletedAt: Date | null;
|
|
9753
|
-
systemName: string;
|
|
9754
|
-
displayName: string;
|
|
9755
|
-
permissions: {
|
|
9756
|
-
id: string;
|
|
9757
|
-
description: string | null;
|
|
9758
|
-
createdAt: Date;
|
|
9759
|
-
updatedAt: Date;
|
|
9760
|
-
deletedAt: Date | null;
|
|
9761
|
-
systemName: string;
|
|
9762
|
-
displayName: string;
|
|
9763
|
-
}[];
|
|
9764
|
-
}[];
|
|
9765
|
-
extension?: {
|
|
9766
|
-
id: string;
|
|
9767
|
-
createdAt: Date;
|
|
9768
|
-
updatedAt: Date;
|
|
9769
|
-
deletedAt: Date | null;
|
|
9770
|
-
userId: string | null;
|
|
9771
|
-
sipServerUrl: string;
|
|
9772
|
-
sipUserName: string;
|
|
9773
|
-
extensionId: number;
|
|
9774
|
-
extensionName: string;
|
|
9775
|
-
telephonySignature: string | null;
|
|
9776
|
-
} | undefined;
|
|
9777
|
-
};
|
|
9778
|
-
room: {
|
|
9779
|
-
id: string;
|
|
9780
|
-
direction: "incoming" | "outgoing" | "system";
|
|
9781
|
-
createdAt: Date;
|
|
9782
|
-
updatedAt: Date;
|
|
9783
|
-
deletedAt: Date | null;
|
|
9784
|
-
actor: {
|
|
9785
|
-
id: string;
|
|
9786
|
-
address: string | null;
|
|
9787
|
-
name: string;
|
|
9788
|
-
email: string;
|
|
9789
|
-
createdAt: Date;
|
|
9790
|
-
updatedAt: Date;
|
|
9791
|
-
deletedAt: Date | null;
|
|
9792
|
-
emailVerifiedAt: Date | null;
|
|
9793
|
-
password: string;
|
|
9794
|
-
phone: string | null;
|
|
9795
|
-
notificationCount: number | null;
|
|
9796
|
-
roles: {
|
|
9797
|
-
id: string;
|
|
9798
|
-
description: string | null;
|
|
9799
|
-
createdAt: Date;
|
|
9800
|
-
updatedAt: Date;
|
|
9801
|
-
deletedAt: Date | null;
|
|
9802
|
-
systemName: string;
|
|
9803
|
-
displayName: string;
|
|
9804
|
-
permissions: {
|
|
9805
|
-
id: string;
|
|
9806
|
-
description: string | null;
|
|
9807
|
-
createdAt: Date;
|
|
9808
|
-
updatedAt: Date;
|
|
9809
|
-
deletedAt: Date | null;
|
|
9810
|
-
systemName: string;
|
|
9811
|
-
displayName: string;
|
|
9812
|
-
}[];
|
|
9813
|
-
}[];
|
|
9814
|
-
extension?: {
|
|
9815
|
-
id: string;
|
|
9816
|
-
createdAt: Date;
|
|
9817
|
-
updatedAt: Date;
|
|
9818
|
-
deletedAt: Date | null;
|
|
9819
|
-
userId: string | null;
|
|
9820
|
-
sipServerUrl: string;
|
|
9821
|
-
sipUserName: string;
|
|
9822
|
-
extensionId: number;
|
|
9823
|
-
extensionName: string;
|
|
9824
|
-
telephonySignature: string | null;
|
|
9825
|
-
} | undefined;
|
|
9826
|
-
};
|
|
9827
|
-
firstResponseTime: number;
|
|
9828
|
-
lastMessage: string;
|
|
9829
|
-
handleTime: number;
|
|
9830
|
-
closeAt: Date;
|
|
9831
|
-
unreadCount: number;
|
|
9832
|
-
firstResponseAt: Date;
|
|
9833
|
-
isLatest: boolean;
|
|
9834
|
-
platformContact: {
|
|
9350
|
+
deletedAt: Date | null;
|
|
9351
|
+
userId: string | null;
|
|
9352
|
+
sipServerUrl: string;
|
|
9353
|
+
sipUserName: string;
|
|
9354
|
+
extensionId: number;
|
|
9355
|
+
extensionName: string;
|
|
9356
|
+
telephonySignature: string | null;
|
|
9357
|
+
} | undefined;
|
|
9358
|
+
}>>;
|
|
9359
|
+
}, "strip", z.ZodTypeAny, {
|
|
9360
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
|
9361
|
+
message: string;
|
|
9362
|
+
direction: "incoming" | "outgoing" | "system";
|
|
9363
|
+
platformId: string;
|
|
9364
|
+
room: {
|
|
9365
|
+
lastMessage?: string | undefined;
|
|
9366
|
+
handleTime?: number | undefined;
|
|
9367
|
+
closeAt?: Date | undefined;
|
|
9368
|
+
unreadCount?: number | undefined;
|
|
9369
|
+
firstResponseAt?: Date | null | undefined;
|
|
9370
|
+
firstResponseTime?: number | null | undefined;
|
|
9371
|
+
isLatest?: boolean | undefined;
|
|
9372
|
+
direction?: "incoming" | "outgoing" | "system" | undefined;
|
|
9373
|
+
platformContact?: {
|
|
9835
9374
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
9836
9375
|
id: string;
|
|
9837
9376
|
metadata: {
|
|
@@ -9890,6 +9429,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
9890
9429
|
fileKey: string;
|
|
9891
9430
|
bucketName: string;
|
|
9892
9431
|
fileSize: number;
|
|
9432
|
+
fileUrl: string | null;
|
|
9893
9433
|
};
|
|
9894
9434
|
}[];
|
|
9895
9435
|
}[];
|
|
@@ -9947,8 +9487,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
9947
9487
|
}[] | undefined;
|
|
9948
9488
|
};
|
|
9949
9489
|
socialPlatformId: string;
|
|
9950
|
-
};
|
|
9951
|
-
|
|
9490
|
+
} | undefined;
|
|
9491
|
+
actor?: {
|
|
9952
9492
|
id: string;
|
|
9953
9493
|
address: string | null;
|
|
9954
9494
|
name: string;
|
|
@@ -9990,8 +9530,73 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
9990
9530
|
extensionName: string;
|
|
9991
9531
|
telephonySignature: string | null;
|
|
9992
9532
|
} | undefined;
|
|
9993
|
-
};
|
|
9994
|
-
|
|
9533
|
+
} | undefined;
|
|
9534
|
+
assignee?: {
|
|
9535
|
+
id: string;
|
|
9536
|
+
address: string | null;
|
|
9537
|
+
name: string;
|
|
9538
|
+
email: string;
|
|
9539
|
+
createdAt: Date;
|
|
9540
|
+
updatedAt: Date;
|
|
9541
|
+
deletedAt: Date | null;
|
|
9542
|
+
emailVerifiedAt: Date | null;
|
|
9543
|
+
password: string;
|
|
9544
|
+
phone: string | null;
|
|
9545
|
+
notificationCount: number | null;
|
|
9546
|
+
roles: {
|
|
9547
|
+
id: string;
|
|
9548
|
+
description: string | null;
|
|
9549
|
+
createdAt: Date;
|
|
9550
|
+
updatedAt: Date;
|
|
9551
|
+
deletedAt: Date | null;
|
|
9552
|
+
systemName: string;
|
|
9553
|
+
displayName: string;
|
|
9554
|
+
permissions: {
|
|
9555
|
+
id: string;
|
|
9556
|
+
description: string | null;
|
|
9557
|
+
createdAt: Date;
|
|
9558
|
+
updatedAt: Date;
|
|
9559
|
+
deletedAt: Date | null;
|
|
9560
|
+
systemName: string;
|
|
9561
|
+
displayName: string;
|
|
9562
|
+
}[];
|
|
9563
|
+
}[];
|
|
9564
|
+
extension?: {
|
|
9565
|
+
id: string;
|
|
9566
|
+
createdAt: Date;
|
|
9567
|
+
updatedAt: Date;
|
|
9568
|
+
deletedAt: Date | null;
|
|
9569
|
+
userId: string | null;
|
|
9570
|
+
sipServerUrl: string;
|
|
9571
|
+
sipUserName: string;
|
|
9572
|
+
extensionId: number;
|
|
9573
|
+
extensionName: string;
|
|
9574
|
+
telephonySignature: string | null;
|
|
9575
|
+
} | undefined;
|
|
9576
|
+
} | undefined;
|
|
9577
|
+
channel?: {
|
|
9578
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
9579
|
+
name: string;
|
|
9580
|
+
metadata: {
|
|
9581
|
+
id: string;
|
|
9582
|
+
name: string;
|
|
9583
|
+
accessToken: string;
|
|
9584
|
+
additionalCredentials?: any;
|
|
9585
|
+
};
|
|
9586
|
+
status: boolean;
|
|
9587
|
+
brandName: string;
|
|
9588
|
+
platformId: string;
|
|
9589
|
+
actor: {
|
|
9590
|
+
id: string;
|
|
9591
|
+
address: string | null;
|
|
9592
|
+
name: string;
|
|
9593
|
+
email: string;
|
|
9594
|
+
phone: string | null;
|
|
9595
|
+
};
|
|
9596
|
+
connectedUserName?: string | null | undefined;
|
|
9597
|
+
connectedUserId?: string | null | undefined;
|
|
9598
|
+
} | undefined;
|
|
9599
|
+
cxlog?: {
|
|
9995
9600
|
id: string;
|
|
9996
9601
|
channel: string | null;
|
|
9997
9602
|
disposition: string | null;
|
|
@@ -10025,78 +9630,28 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10025
9630
|
callTo: string | null;
|
|
10026
9631
|
note: string | null;
|
|
10027
9632
|
} | null;
|
|
10028
|
-
};
|
|
10029
|
-
channel?: {
|
|
10030
|
-
id?: string | undefined;
|
|
10031
|
-
createdAt?: Date | undefined;
|
|
10032
|
-
updatedAt?: Date | undefined;
|
|
10033
|
-
deletedAt?: Date | null | undefined;
|
|
10034
|
-
name?: string | undefined;
|
|
10035
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
|
10036
|
-
metadata?: {
|
|
10037
|
-
id: string;
|
|
10038
|
-
name: string;
|
|
10039
|
-
accessToken: string;
|
|
10040
|
-
additionalCredentials?: any;
|
|
10041
|
-
} | undefined;
|
|
10042
|
-
brandName?: string | undefined;
|
|
10043
|
-
platformId?: string | undefined;
|
|
10044
|
-
status?: boolean | undefined;
|
|
10045
|
-
isReloginRequired?: boolean | undefined;
|
|
10046
|
-
connectedUserName?: string | undefined;
|
|
10047
|
-
connectedUserId?: string | undefined;
|
|
10048
|
-
actor?: {
|
|
10049
|
-
id: string;
|
|
10050
|
-
address: string | null;
|
|
10051
|
-
name: string;
|
|
10052
|
-
email: string;
|
|
10053
|
-
createdAt: Date;
|
|
10054
|
-
updatedAt: Date;
|
|
10055
|
-
deletedAt: Date | null;
|
|
10056
|
-
emailVerifiedAt: Date | null;
|
|
10057
|
-
password: string;
|
|
10058
|
-
phone: string | null;
|
|
10059
|
-
notificationCount: number | null;
|
|
10060
|
-
roles: {
|
|
10061
|
-
id: string;
|
|
10062
|
-
description: string | null;
|
|
10063
|
-
createdAt: Date;
|
|
10064
|
-
updatedAt: Date;
|
|
10065
|
-
deletedAt: Date | null;
|
|
10066
|
-
systemName: string;
|
|
10067
|
-
displayName: string;
|
|
10068
|
-
permissions: {
|
|
10069
|
-
id: string;
|
|
10070
|
-
description: string | null;
|
|
10071
|
-
createdAt: Date;
|
|
10072
|
-
updatedAt: Date;
|
|
10073
|
-
deletedAt: Date | null;
|
|
10074
|
-
systemName: string;
|
|
10075
|
-
displayName: string;
|
|
10076
|
-
}[];
|
|
10077
|
-
}[];
|
|
10078
|
-
extension?: {
|
|
10079
|
-
id: string;
|
|
10080
|
-
createdAt: Date;
|
|
10081
|
-
updatedAt: Date;
|
|
10082
|
-
deletedAt: Date | null;
|
|
10083
|
-
userId: string | null;
|
|
10084
|
-
sipServerUrl: string;
|
|
10085
|
-
sipUserName: string;
|
|
10086
|
-
extensionId: number;
|
|
10087
|
-
extensionName: string;
|
|
10088
|
-
telephonySignature: string | null;
|
|
10089
|
-
} | undefined;
|
|
10090
|
-
} | undefined;
|
|
10091
9633
|
} | undefined;
|
|
10092
9634
|
};
|
|
10093
|
-
readAt: Date;
|
|
10094
9635
|
platformMessageId: string;
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
9636
|
+
locale: "" | "th" | "mm" | "en" | null;
|
|
9637
|
+
metadata?: any;
|
|
9638
|
+
replyPlatformMessageId?: string | undefined;
|
|
9639
|
+
template?: any;
|
|
9640
|
+
url?: string | undefined;
|
|
9641
|
+
previewUrl?: string | undefined;
|
|
9642
|
+
imageSetId?: string | undefined;
|
|
9643
|
+
upload?: {
|
|
9644
|
+
id: string;
|
|
9645
|
+
createdAt: Date;
|
|
9646
|
+
updatedAt: Date;
|
|
9647
|
+
deletedAt: Date | null;
|
|
9648
|
+
fileName: string;
|
|
9649
|
+
fileKey: string;
|
|
9650
|
+
bucketName: string;
|
|
9651
|
+
fileSize: number;
|
|
9652
|
+
fileUrl: string | null;
|
|
9653
|
+
} | undefined;
|
|
9654
|
+
actor?: {
|
|
10100
9655
|
id: string;
|
|
10101
9656
|
address: string | null;
|
|
10102
9657
|
name: string;
|
|
@@ -10138,20 +9693,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10138
9693
|
extensionName: string;
|
|
10139
9694
|
telephonySignature: string | null;
|
|
10140
9695
|
} | undefined;
|
|
10141
|
-
};
|
|
10142
|
-
|
|
10143
|
-
template?: any;
|
|
10144
|
-
}, {
|
|
10145
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
|
10146
|
-
message: string;
|
|
10147
|
-
id: string;
|
|
10148
|
-
url: string;
|
|
10149
|
-
direction: "incoming" | "outgoing" | "system";
|
|
10150
|
-
createdAt: Date;
|
|
10151
|
-
updatedAt: Date;
|
|
10152
|
-
deletedAt: Date | null;
|
|
10153
|
-
platformId: string;
|
|
10154
|
-
actor: {
|
|
9696
|
+
} | undefined;
|
|
9697
|
+
assignee?: {
|
|
10155
9698
|
id: string;
|
|
10156
9699
|
address: string | null;
|
|
10157
9700
|
name: string;
|
|
@@ -10193,18 +9736,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10193
9736
|
extensionName: string;
|
|
10194
9737
|
telephonySignature: string | null;
|
|
10195
9738
|
} | undefined;
|
|
10196
|
-
};
|
|
10197
|
-
|
|
10198
|
-
id: string;
|
|
10199
|
-
createdAt: Date;
|
|
10200
|
-
updatedAt: Date;
|
|
10201
|
-
deletedAt: Date | null;
|
|
10202
|
-
fileName: string;
|
|
10203
|
-
fileKey: string;
|
|
10204
|
-
bucketName: string;
|
|
10205
|
-
fileSize: number;
|
|
10206
|
-
};
|
|
10207
|
-
assignee: {
|
|
9739
|
+
} | undefined;
|
|
9740
|
+
sender?: {
|
|
10208
9741
|
id: string;
|
|
10209
9742
|
address: string | null;
|
|
10210
9743
|
name: string;
|
|
@@ -10240,70 +9773,28 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10240
9773
|
updatedAt: Date;
|
|
10241
9774
|
deletedAt: Date | null;
|
|
10242
9775
|
userId: string | null;
|
|
10243
|
-
sipServerUrl: string;
|
|
10244
|
-
sipUserName: string;
|
|
10245
|
-
extensionId: number;
|
|
10246
|
-
extensionName: string;
|
|
10247
|
-
telephonySignature: string | null;
|
|
10248
|
-
} | undefined;
|
|
10249
|
-
};
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
password: string;
|
|
10266
|
-
phone: string | null;
|
|
10267
|
-
notificationCount: number | null;
|
|
10268
|
-
roles: {
|
|
10269
|
-
id: string;
|
|
10270
|
-
description: string | null;
|
|
10271
|
-
createdAt: Date;
|
|
10272
|
-
updatedAt: Date;
|
|
10273
|
-
deletedAt: Date | null;
|
|
10274
|
-
systemName: string;
|
|
10275
|
-
displayName: string;
|
|
10276
|
-
permissions: {
|
|
10277
|
-
id: string;
|
|
10278
|
-
description: string | null;
|
|
10279
|
-
createdAt: Date;
|
|
10280
|
-
updatedAt: Date;
|
|
10281
|
-
deletedAt: Date | null;
|
|
10282
|
-
systemName: string;
|
|
10283
|
-
displayName: string;
|
|
10284
|
-
}[];
|
|
10285
|
-
}[];
|
|
10286
|
-
extension?: {
|
|
10287
|
-
id: string;
|
|
10288
|
-
createdAt: Date;
|
|
10289
|
-
updatedAt: Date;
|
|
10290
|
-
deletedAt: Date | null;
|
|
10291
|
-
userId: string | null;
|
|
10292
|
-
sipServerUrl: string;
|
|
10293
|
-
sipUserName: string;
|
|
10294
|
-
extensionId: number;
|
|
10295
|
-
extensionName: string;
|
|
10296
|
-
telephonySignature: string | null;
|
|
10297
|
-
} | undefined;
|
|
10298
|
-
};
|
|
10299
|
-
firstResponseTime: number;
|
|
10300
|
-
lastMessage: string;
|
|
10301
|
-
handleTime: number;
|
|
10302
|
-
closeAt: Date;
|
|
10303
|
-
unreadCount: number;
|
|
10304
|
-
firstResponseAt: Date;
|
|
10305
|
-
isLatest: boolean;
|
|
10306
|
-
platformContact: {
|
|
9776
|
+
sipServerUrl: string;
|
|
9777
|
+
sipUserName: string;
|
|
9778
|
+
extensionId: number;
|
|
9779
|
+
extensionName: string;
|
|
9780
|
+
telephonySignature: string | null;
|
|
9781
|
+
} | undefined;
|
|
9782
|
+
} | undefined;
|
|
9783
|
+
}, {
|
|
9784
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
|
9785
|
+
message: string;
|
|
9786
|
+
direction: "incoming" | "outgoing" | "system";
|
|
9787
|
+
platformId: string;
|
|
9788
|
+
room: {
|
|
9789
|
+
lastMessage?: string | undefined;
|
|
9790
|
+
handleTime?: number | undefined;
|
|
9791
|
+
closeAt?: Date | undefined;
|
|
9792
|
+
unreadCount?: number | undefined;
|
|
9793
|
+
firstResponseAt?: Date | null | undefined;
|
|
9794
|
+
firstResponseTime?: number | null | undefined;
|
|
9795
|
+
isLatest?: boolean | undefined;
|
|
9796
|
+
direction?: "incoming" | "outgoing" | "system" | undefined;
|
|
9797
|
+
platformContact?: {
|
|
10307
9798
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
10308
9799
|
id: string;
|
|
10309
9800
|
metadata: {
|
|
@@ -10362,6 +9853,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10362
9853
|
fileKey: string;
|
|
10363
9854
|
bucketName: string;
|
|
10364
9855
|
fileSize: number;
|
|
9856
|
+
fileUrl: string | null;
|
|
10365
9857
|
};
|
|
10366
9858
|
}[];
|
|
10367
9859
|
}[];
|
|
@@ -10419,8 +9911,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10419
9911
|
}[] | undefined;
|
|
10420
9912
|
};
|
|
10421
9913
|
socialPlatformId: string;
|
|
10422
|
-
};
|
|
10423
|
-
|
|
9914
|
+
} | undefined;
|
|
9915
|
+
actor?: {
|
|
10424
9916
|
id: string;
|
|
10425
9917
|
address: string | null;
|
|
10426
9918
|
name: string;
|
|
@@ -10462,8 +9954,73 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10462
9954
|
extensionName: string;
|
|
10463
9955
|
telephonySignature: string | null;
|
|
10464
9956
|
} | undefined;
|
|
10465
|
-
};
|
|
10466
|
-
|
|
9957
|
+
} | undefined;
|
|
9958
|
+
assignee?: {
|
|
9959
|
+
id: string;
|
|
9960
|
+
address: string | null;
|
|
9961
|
+
name: string;
|
|
9962
|
+
email: string;
|
|
9963
|
+
createdAt: Date;
|
|
9964
|
+
updatedAt: Date;
|
|
9965
|
+
deletedAt: Date | null;
|
|
9966
|
+
emailVerifiedAt: Date | null;
|
|
9967
|
+
password: string;
|
|
9968
|
+
phone: string | null;
|
|
9969
|
+
notificationCount: number | null;
|
|
9970
|
+
roles: {
|
|
9971
|
+
id: string;
|
|
9972
|
+
description: string | null;
|
|
9973
|
+
createdAt: Date;
|
|
9974
|
+
updatedAt: Date;
|
|
9975
|
+
deletedAt: Date | null;
|
|
9976
|
+
systemName: string;
|
|
9977
|
+
displayName: string;
|
|
9978
|
+
permissions: {
|
|
9979
|
+
id: string;
|
|
9980
|
+
description: string | null;
|
|
9981
|
+
createdAt: Date;
|
|
9982
|
+
updatedAt: Date;
|
|
9983
|
+
deletedAt: Date | null;
|
|
9984
|
+
systemName: string;
|
|
9985
|
+
displayName: string;
|
|
9986
|
+
}[];
|
|
9987
|
+
}[];
|
|
9988
|
+
extension?: {
|
|
9989
|
+
id: string;
|
|
9990
|
+
createdAt: Date;
|
|
9991
|
+
updatedAt: Date;
|
|
9992
|
+
deletedAt: Date | null;
|
|
9993
|
+
userId: string | null;
|
|
9994
|
+
sipServerUrl: string;
|
|
9995
|
+
sipUserName: string;
|
|
9996
|
+
extensionId: number;
|
|
9997
|
+
extensionName: string;
|
|
9998
|
+
telephonySignature: string | null;
|
|
9999
|
+
} | undefined;
|
|
10000
|
+
} | undefined;
|
|
10001
|
+
channel?: {
|
|
10002
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
10003
|
+
name: string;
|
|
10004
|
+
metadata: {
|
|
10005
|
+
id: string;
|
|
10006
|
+
name: string;
|
|
10007
|
+
accessToken: string;
|
|
10008
|
+
additionalCredentials?: any;
|
|
10009
|
+
};
|
|
10010
|
+
status: boolean;
|
|
10011
|
+
brandName: string;
|
|
10012
|
+
platformId: string;
|
|
10013
|
+
actor: {
|
|
10014
|
+
id: string;
|
|
10015
|
+
address: string | null;
|
|
10016
|
+
name: string;
|
|
10017
|
+
email: string;
|
|
10018
|
+
phone: string | null;
|
|
10019
|
+
};
|
|
10020
|
+
connectedUserName?: string | null | undefined;
|
|
10021
|
+
connectedUserId?: string | null | undefined;
|
|
10022
|
+
} | undefined;
|
|
10023
|
+
cxlog?: {
|
|
10467
10024
|
id: string;
|
|
10468
10025
|
channel: string | null;
|
|
10469
10026
|
disposition: string | null;
|
|
@@ -10497,78 +10054,28 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10497
10054
|
callTo: string | null;
|
|
10498
10055
|
note: string | null;
|
|
10499
10056
|
} | null;
|
|
10500
|
-
};
|
|
10501
|
-
channel?: {
|
|
10502
|
-
id?: string | undefined;
|
|
10503
|
-
createdAt?: Date | undefined;
|
|
10504
|
-
updatedAt?: Date | undefined;
|
|
10505
|
-
deletedAt?: Date | null | undefined;
|
|
10506
|
-
name?: string | undefined;
|
|
10507
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
|
10508
|
-
metadata?: {
|
|
10509
|
-
id: string;
|
|
10510
|
-
name: string;
|
|
10511
|
-
accessToken: string;
|
|
10512
|
-
additionalCredentials?: any;
|
|
10513
|
-
} | undefined;
|
|
10514
|
-
brandName?: string | undefined;
|
|
10515
|
-
platformId?: string | undefined;
|
|
10516
|
-
status?: boolean | undefined;
|
|
10517
|
-
isReloginRequired?: boolean | undefined;
|
|
10518
|
-
connectedUserName?: string | undefined;
|
|
10519
|
-
connectedUserId?: string | undefined;
|
|
10520
|
-
actor?: {
|
|
10521
|
-
id: string;
|
|
10522
|
-
address: string | null;
|
|
10523
|
-
name: string;
|
|
10524
|
-
email: string;
|
|
10525
|
-
createdAt: Date;
|
|
10526
|
-
updatedAt: Date;
|
|
10527
|
-
deletedAt: Date | null;
|
|
10528
|
-
emailVerifiedAt: Date | null;
|
|
10529
|
-
password: string;
|
|
10530
|
-
phone: string | null;
|
|
10531
|
-
notificationCount: number | null;
|
|
10532
|
-
roles: {
|
|
10533
|
-
id: string;
|
|
10534
|
-
description: string | null;
|
|
10535
|
-
createdAt: Date;
|
|
10536
|
-
updatedAt: Date;
|
|
10537
|
-
deletedAt: Date | null;
|
|
10538
|
-
systemName: string;
|
|
10539
|
-
displayName: string;
|
|
10540
|
-
permissions: {
|
|
10541
|
-
id: string;
|
|
10542
|
-
description: string | null;
|
|
10543
|
-
createdAt: Date;
|
|
10544
|
-
updatedAt: Date;
|
|
10545
|
-
deletedAt: Date | null;
|
|
10546
|
-
systemName: string;
|
|
10547
|
-
displayName: string;
|
|
10548
|
-
}[];
|
|
10549
|
-
}[];
|
|
10550
|
-
extension?: {
|
|
10551
|
-
id: string;
|
|
10552
|
-
createdAt: Date;
|
|
10553
|
-
updatedAt: Date;
|
|
10554
|
-
deletedAt: Date | null;
|
|
10555
|
-
userId: string | null;
|
|
10556
|
-
sipServerUrl: string;
|
|
10557
|
-
sipUserName: string;
|
|
10558
|
-
extensionId: number;
|
|
10559
|
-
extensionName: string;
|
|
10560
|
-
telephonySignature: string | null;
|
|
10561
|
-
} | undefined;
|
|
10562
|
-
} | undefined;
|
|
10563
10057
|
} | undefined;
|
|
10564
10058
|
};
|
|
10565
|
-
readAt: Date;
|
|
10566
10059
|
platformMessageId: string;
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10060
|
+
locale: "" | "th" | "mm" | "en" | null;
|
|
10061
|
+
metadata?: any;
|
|
10062
|
+
replyPlatformMessageId?: string | undefined;
|
|
10063
|
+
template?: any;
|
|
10064
|
+
url?: string | undefined;
|
|
10065
|
+
previewUrl?: string | undefined;
|
|
10066
|
+
imageSetId?: string | undefined;
|
|
10067
|
+
upload?: {
|
|
10068
|
+
id: string;
|
|
10069
|
+
createdAt: Date;
|
|
10070
|
+
updatedAt: Date;
|
|
10071
|
+
deletedAt: Date | null;
|
|
10072
|
+
fileName: string;
|
|
10073
|
+
fileKey: string;
|
|
10074
|
+
bucketName: string;
|
|
10075
|
+
fileSize: number;
|
|
10076
|
+
fileUrl: string | null;
|
|
10077
|
+
} | undefined;
|
|
10078
|
+
actor?: {
|
|
10572
10079
|
id: string;
|
|
10573
10080
|
address: string | null;
|
|
10574
10081
|
name: string;
|
|
@@ -10610,22 +10117,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10610
10117
|
extensionName: string;
|
|
10611
10118
|
telephonySignature: string | null;
|
|
10612
10119
|
} | undefined;
|
|
10613
|
-
};
|
|
10614
|
-
|
|
10615
|
-
template?: any;
|
|
10616
|
-
}>;
|
|
10617
|
-
}, "strip", z.ZodTypeAny, {
|
|
10618
|
-
message: {
|
|
10619
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
|
10620
|
-
message: string;
|
|
10621
|
-
id: string;
|
|
10622
|
-
url: string;
|
|
10623
|
-
direction: "incoming" | "outgoing" | "system";
|
|
10624
|
-
createdAt: Date;
|
|
10625
|
-
updatedAt: Date;
|
|
10626
|
-
deletedAt: Date | null;
|
|
10627
|
-
platformId: string;
|
|
10628
|
-
actor: {
|
|
10120
|
+
} | undefined;
|
|
10121
|
+
assignee?: {
|
|
10629
10122
|
id: string;
|
|
10630
10123
|
address: string | null;
|
|
10631
10124
|
name: string;
|
|
@@ -10667,18 +10160,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10667
10160
|
extensionName: string;
|
|
10668
10161
|
telephonySignature: string | null;
|
|
10669
10162
|
} | undefined;
|
|
10670
|
-
};
|
|
10671
|
-
|
|
10672
|
-
id: string;
|
|
10673
|
-
createdAt: Date;
|
|
10674
|
-
updatedAt: Date;
|
|
10675
|
-
deletedAt: Date | null;
|
|
10676
|
-
fileName: string;
|
|
10677
|
-
fileKey: string;
|
|
10678
|
-
bucketName: string;
|
|
10679
|
-
fileSize: number;
|
|
10680
|
-
};
|
|
10681
|
-
assignee: {
|
|
10163
|
+
} | undefined;
|
|
10164
|
+
sender?: {
|
|
10682
10165
|
id: string;
|
|
10683
10166
|
address: string | null;
|
|
10684
10167
|
name: string;
|
|
@@ -10720,64 +10203,24 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10720
10203
|
extensionName: string;
|
|
10721
10204
|
telephonySignature: string | null;
|
|
10722
10205
|
} | undefined;
|
|
10723
|
-
};
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
|
|
10741
|
-
notificationCount: number | null;
|
|
10742
|
-
roles: {
|
|
10743
|
-
id: string;
|
|
10744
|
-
description: string | null;
|
|
10745
|
-
createdAt: Date;
|
|
10746
|
-
updatedAt: Date;
|
|
10747
|
-
deletedAt: Date | null;
|
|
10748
|
-
systemName: string;
|
|
10749
|
-
displayName: string;
|
|
10750
|
-
permissions: {
|
|
10751
|
-
id: string;
|
|
10752
|
-
description: string | null;
|
|
10753
|
-
createdAt: Date;
|
|
10754
|
-
updatedAt: Date;
|
|
10755
|
-
deletedAt: Date | null;
|
|
10756
|
-
systemName: string;
|
|
10757
|
-
displayName: string;
|
|
10758
|
-
}[];
|
|
10759
|
-
}[];
|
|
10760
|
-
extension?: {
|
|
10761
|
-
id: string;
|
|
10762
|
-
createdAt: Date;
|
|
10763
|
-
updatedAt: Date;
|
|
10764
|
-
deletedAt: Date | null;
|
|
10765
|
-
userId: string | null;
|
|
10766
|
-
sipServerUrl: string;
|
|
10767
|
-
sipUserName: string;
|
|
10768
|
-
extensionId: number;
|
|
10769
|
-
extensionName: string;
|
|
10770
|
-
telephonySignature: string | null;
|
|
10771
|
-
} | undefined;
|
|
10772
|
-
};
|
|
10773
|
-
firstResponseTime: number;
|
|
10774
|
-
lastMessage: string;
|
|
10775
|
-
handleTime: number;
|
|
10776
|
-
closeAt: Date;
|
|
10777
|
-
unreadCount: number;
|
|
10778
|
-
firstResponseAt: Date;
|
|
10779
|
-
isLatest: boolean;
|
|
10780
|
-
platformContact: {
|
|
10206
|
+
} | undefined;
|
|
10207
|
+
}>;
|
|
10208
|
+
}, "strip", z.ZodTypeAny, {
|
|
10209
|
+
message: {
|
|
10210
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
|
10211
|
+
message: string;
|
|
10212
|
+
direction: "incoming" | "outgoing" | "system";
|
|
10213
|
+
platformId: string;
|
|
10214
|
+
room: {
|
|
10215
|
+
lastMessage?: string | undefined;
|
|
10216
|
+
handleTime?: number | undefined;
|
|
10217
|
+
closeAt?: Date | undefined;
|
|
10218
|
+
unreadCount?: number | undefined;
|
|
10219
|
+
firstResponseAt?: Date | null | undefined;
|
|
10220
|
+
firstResponseTime?: number | null | undefined;
|
|
10221
|
+
isLatest?: boolean | undefined;
|
|
10222
|
+
direction?: "incoming" | "outgoing" | "system" | undefined;
|
|
10223
|
+
platformContact?: {
|
|
10781
10224
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
10782
10225
|
id: string;
|
|
10783
10226
|
metadata: {
|
|
@@ -10836,6 +10279,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10836
10279
|
fileKey: string;
|
|
10837
10280
|
bucketName: string;
|
|
10838
10281
|
fileSize: number;
|
|
10282
|
+
fileUrl: string | null;
|
|
10839
10283
|
};
|
|
10840
10284
|
}[];
|
|
10841
10285
|
}[];
|
|
@@ -10893,8 +10337,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10893
10337
|
}[] | undefined;
|
|
10894
10338
|
};
|
|
10895
10339
|
socialPlatformId: string;
|
|
10896
|
-
};
|
|
10897
|
-
|
|
10340
|
+
} | undefined;
|
|
10341
|
+
actor?: {
|
|
10898
10342
|
id: string;
|
|
10899
10343
|
address: string | null;
|
|
10900
10344
|
name: string;
|
|
@@ -10936,8 +10380,73 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10936
10380
|
extensionName: string;
|
|
10937
10381
|
telephonySignature: string | null;
|
|
10938
10382
|
} | undefined;
|
|
10939
|
-
};
|
|
10940
|
-
|
|
10383
|
+
} | undefined;
|
|
10384
|
+
assignee?: {
|
|
10385
|
+
id: string;
|
|
10386
|
+
address: string | null;
|
|
10387
|
+
name: string;
|
|
10388
|
+
email: string;
|
|
10389
|
+
createdAt: Date;
|
|
10390
|
+
updatedAt: Date;
|
|
10391
|
+
deletedAt: Date | null;
|
|
10392
|
+
emailVerifiedAt: Date | null;
|
|
10393
|
+
password: string;
|
|
10394
|
+
phone: string | null;
|
|
10395
|
+
notificationCount: number | null;
|
|
10396
|
+
roles: {
|
|
10397
|
+
id: string;
|
|
10398
|
+
description: string | null;
|
|
10399
|
+
createdAt: Date;
|
|
10400
|
+
updatedAt: Date;
|
|
10401
|
+
deletedAt: Date | null;
|
|
10402
|
+
systemName: string;
|
|
10403
|
+
displayName: string;
|
|
10404
|
+
permissions: {
|
|
10405
|
+
id: string;
|
|
10406
|
+
description: string | null;
|
|
10407
|
+
createdAt: Date;
|
|
10408
|
+
updatedAt: Date;
|
|
10409
|
+
deletedAt: Date | null;
|
|
10410
|
+
systemName: string;
|
|
10411
|
+
displayName: string;
|
|
10412
|
+
}[];
|
|
10413
|
+
}[];
|
|
10414
|
+
extension?: {
|
|
10415
|
+
id: string;
|
|
10416
|
+
createdAt: Date;
|
|
10417
|
+
updatedAt: Date;
|
|
10418
|
+
deletedAt: Date | null;
|
|
10419
|
+
userId: string | null;
|
|
10420
|
+
sipServerUrl: string;
|
|
10421
|
+
sipUserName: string;
|
|
10422
|
+
extensionId: number;
|
|
10423
|
+
extensionName: string;
|
|
10424
|
+
telephonySignature: string | null;
|
|
10425
|
+
} | undefined;
|
|
10426
|
+
} | undefined;
|
|
10427
|
+
channel?: {
|
|
10428
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
10429
|
+
name: string;
|
|
10430
|
+
metadata: {
|
|
10431
|
+
id: string;
|
|
10432
|
+
name: string;
|
|
10433
|
+
accessToken: string;
|
|
10434
|
+
additionalCredentials?: any;
|
|
10435
|
+
};
|
|
10436
|
+
status: boolean;
|
|
10437
|
+
brandName: string;
|
|
10438
|
+
platformId: string;
|
|
10439
|
+
actor: {
|
|
10440
|
+
id: string;
|
|
10441
|
+
address: string | null;
|
|
10442
|
+
name: string;
|
|
10443
|
+
email: string;
|
|
10444
|
+
phone: string | null;
|
|
10445
|
+
};
|
|
10446
|
+
connectedUserName?: string | null | undefined;
|
|
10447
|
+
connectedUserId?: string | null | undefined;
|
|
10448
|
+
} | undefined;
|
|
10449
|
+
cxlog?: {
|
|
10941
10450
|
id: string;
|
|
10942
10451
|
channel: string | null;
|
|
10943
10452
|
disposition: string | null;
|
|
@@ -10971,78 +10480,28 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
10971
10480
|
callTo: string | null;
|
|
10972
10481
|
note: string | null;
|
|
10973
10482
|
} | null;
|
|
10974
|
-
};
|
|
10975
|
-
channel?: {
|
|
10976
|
-
id?: string | undefined;
|
|
10977
|
-
createdAt?: Date | undefined;
|
|
10978
|
-
updatedAt?: Date | undefined;
|
|
10979
|
-
deletedAt?: Date | null | undefined;
|
|
10980
|
-
name?: string | undefined;
|
|
10981
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
|
10982
|
-
metadata?: {
|
|
10983
|
-
id: string;
|
|
10984
|
-
name: string;
|
|
10985
|
-
accessToken: string;
|
|
10986
|
-
additionalCredentials?: any;
|
|
10987
|
-
} | undefined;
|
|
10988
|
-
brandName?: string | undefined;
|
|
10989
|
-
platformId?: string | undefined;
|
|
10990
|
-
status?: boolean | undefined;
|
|
10991
|
-
isReloginRequired?: boolean | undefined;
|
|
10992
|
-
connectedUserName?: string | undefined;
|
|
10993
|
-
connectedUserId?: string | undefined;
|
|
10994
|
-
actor?: {
|
|
10995
|
-
id: string;
|
|
10996
|
-
address: string | null;
|
|
10997
|
-
name: string;
|
|
10998
|
-
email: string;
|
|
10999
|
-
createdAt: Date;
|
|
11000
|
-
updatedAt: Date;
|
|
11001
|
-
deletedAt: Date | null;
|
|
11002
|
-
emailVerifiedAt: Date | null;
|
|
11003
|
-
password: string;
|
|
11004
|
-
phone: string | null;
|
|
11005
|
-
notificationCount: number | null;
|
|
11006
|
-
roles: {
|
|
11007
|
-
id: string;
|
|
11008
|
-
description: string | null;
|
|
11009
|
-
createdAt: Date;
|
|
11010
|
-
updatedAt: Date;
|
|
11011
|
-
deletedAt: Date | null;
|
|
11012
|
-
systemName: string;
|
|
11013
|
-
displayName: string;
|
|
11014
|
-
permissions: {
|
|
11015
|
-
id: string;
|
|
11016
|
-
description: string | null;
|
|
11017
|
-
createdAt: Date;
|
|
11018
|
-
updatedAt: Date;
|
|
11019
|
-
deletedAt: Date | null;
|
|
11020
|
-
systemName: string;
|
|
11021
|
-
displayName: string;
|
|
11022
|
-
}[];
|
|
11023
|
-
}[];
|
|
11024
|
-
extension?: {
|
|
11025
|
-
id: string;
|
|
11026
|
-
createdAt: Date;
|
|
11027
|
-
updatedAt: Date;
|
|
11028
|
-
deletedAt: Date | null;
|
|
11029
|
-
userId: string | null;
|
|
11030
|
-
sipServerUrl: string;
|
|
11031
|
-
sipUserName: string;
|
|
11032
|
-
extensionId: number;
|
|
11033
|
-
extensionName: string;
|
|
11034
|
-
telephonySignature: string | null;
|
|
11035
|
-
} | undefined;
|
|
11036
|
-
} | undefined;
|
|
11037
10483
|
} | undefined;
|
|
11038
10484
|
};
|
|
11039
|
-
readAt: Date;
|
|
11040
10485
|
platformMessageId: string;
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
10486
|
+
locale: "" | "th" | "mm" | "en" | null;
|
|
10487
|
+
metadata?: any;
|
|
10488
|
+
replyPlatformMessageId?: string | undefined;
|
|
10489
|
+
template?: any;
|
|
10490
|
+
url?: string | undefined;
|
|
10491
|
+
previewUrl?: string | undefined;
|
|
10492
|
+
imageSetId?: string | undefined;
|
|
10493
|
+
upload?: {
|
|
10494
|
+
id: string;
|
|
10495
|
+
createdAt: Date;
|
|
10496
|
+
updatedAt: Date;
|
|
10497
|
+
deletedAt: Date | null;
|
|
10498
|
+
fileName: string;
|
|
10499
|
+
fileKey: string;
|
|
10500
|
+
bucketName: string;
|
|
10501
|
+
fileSize: number;
|
|
10502
|
+
fileUrl: string | null;
|
|
10503
|
+
} | undefined;
|
|
10504
|
+
actor?: {
|
|
11046
10505
|
id: string;
|
|
11047
10506
|
address: string | null;
|
|
11048
10507
|
name: string;
|
|
@@ -11084,22 +10543,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
11084
10543
|
extensionName: string;
|
|
11085
10544
|
telephonySignature: string | null;
|
|
11086
10545
|
} | undefined;
|
|
11087
|
-
};
|
|
11088
|
-
|
|
11089
|
-
template?: any;
|
|
11090
|
-
};
|
|
11091
|
-
}, {
|
|
11092
|
-
message: {
|
|
11093
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
|
11094
|
-
message: string;
|
|
11095
|
-
id: string;
|
|
11096
|
-
url: string;
|
|
11097
|
-
direction: "incoming" | "outgoing" | "system";
|
|
11098
|
-
createdAt: Date;
|
|
11099
|
-
updatedAt: Date;
|
|
11100
|
-
deletedAt: Date | null;
|
|
11101
|
-
platformId: string;
|
|
11102
|
-
actor: {
|
|
10546
|
+
} | undefined;
|
|
10547
|
+
assignee?: {
|
|
11103
10548
|
id: string;
|
|
11104
10549
|
address: string | null;
|
|
11105
10550
|
name: string;
|
|
@@ -11141,18 +10586,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
11141
10586
|
extensionName: string;
|
|
11142
10587
|
telephonySignature: string | null;
|
|
11143
10588
|
} | undefined;
|
|
11144
|
-
};
|
|
11145
|
-
|
|
11146
|
-
id: string;
|
|
11147
|
-
createdAt: Date;
|
|
11148
|
-
updatedAt: Date;
|
|
11149
|
-
deletedAt: Date | null;
|
|
11150
|
-
fileName: string;
|
|
11151
|
-
fileKey: string;
|
|
11152
|
-
bucketName: string;
|
|
11153
|
-
fileSize: number;
|
|
11154
|
-
};
|
|
11155
|
-
assignee: {
|
|
10589
|
+
} | undefined;
|
|
10590
|
+
sender?: {
|
|
11156
10591
|
id: string;
|
|
11157
10592
|
address: string | null;
|
|
11158
10593
|
name: string;
|
|
@@ -11178,80 +10613,40 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
11178
10613
|
createdAt: Date;
|
|
11179
10614
|
updatedAt: Date;
|
|
11180
10615
|
deletedAt: Date | null;
|
|
11181
|
-
systemName: string;
|
|
11182
|
-
displayName: string;
|
|
11183
|
-
}[];
|
|
11184
|
-
}[];
|
|
11185
|
-
extension?: {
|
|
11186
|
-
id: string;
|
|
11187
|
-
createdAt: Date;
|
|
11188
|
-
updatedAt: Date;
|
|
11189
|
-
deletedAt: Date | null;
|
|
11190
|
-
userId: string | null;
|
|
11191
|
-
sipServerUrl: string;
|
|
11192
|
-
sipUserName: string;
|
|
11193
|
-
extensionId: number;
|
|
11194
|
-
extensionName: string;
|
|
11195
|
-
telephonySignature: string | null;
|
|
11196
|
-
} | undefined;
|
|
11197
|
-
};
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
11215
|
-
notificationCount: number | null;
|
|
11216
|
-
roles: {
|
|
11217
|
-
id: string;
|
|
11218
|
-
description: string | null;
|
|
11219
|
-
createdAt: Date;
|
|
11220
|
-
updatedAt: Date;
|
|
11221
|
-
deletedAt: Date | null;
|
|
11222
|
-
systemName: string;
|
|
11223
|
-
displayName: string;
|
|
11224
|
-
permissions: {
|
|
11225
|
-
id: string;
|
|
11226
|
-
description: string | null;
|
|
11227
|
-
createdAt: Date;
|
|
11228
|
-
updatedAt: Date;
|
|
11229
|
-
deletedAt: Date | null;
|
|
11230
|
-
systemName: string;
|
|
11231
|
-
displayName: string;
|
|
11232
|
-
}[];
|
|
11233
|
-
}[];
|
|
11234
|
-
extension?: {
|
|
11235
|
-
id: string;
|
|
11236
|
-
createdAt: Date;
|
|
11237
|
-
updatedAt: Date;
|
|
11238
|
-
deletedAt: Date | null;
|
|
11239
|
-
userId: string | null;
|
|
11240
|
-
sipServerUrl: string;
|
|
11241
|
-
sipUserName: string;
|
|
11242
|
-
extensionId: number;
|
|
11243
|
-
extensionName: string;
|
|
11244
|
-
telephonySignature: string | null;
|
|
11245
|
-
} | undefined;
|
|
11246
|
-
};
|
|
11247
|
-
firstResponseTime: number;
|
|
11248
|
-
lastMessage: string;
|
|
11249
|
-
handleTime: number;
|
|
11250
|
-
closeAt: Date;
|
|
11251
|
-
unreadCount: number;
|
|
11252
|
-
firstResponseAt: Date;
|
|
11253
|
-
isLatest: boolean;
|
|
11254
|
-
platformContact: {
|
|
10616
|
+
systemName: string;
|
|
10617
|
+
displayName: string;
|
|
10618
|
+
}[];
|
|
10619
|
+
}[];
|
|
10620
|
+
extension?: {
|
|
10621
|
+
id: string;
|
|
10622
|
+
createdAt: Date;
|
|
10623
|
+
updatedAt: Date;
|
|
10624
|
+
deletedAt: Date | null;
|
|
10625
|
+
userId: string | null;
|
|
10626
|
+
sipServerUrl: string;
|
|
10627
|
+
sipUserName: string;
|
|
10628
|
+
extensionId: number;
|
|
10629
|
+
extensionName: string;
|
|
10630
|
+
telephonySignature: string | null;
|
|
10631
|
+
} | undefined;
|
|
10632
|
+
} | undefined;
|
|
10633
|
+
};
|
|
10634
|
+
}, {
|
|
10635
|
+
message: {
|
|
10636
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "reopen" | "handed_over" | "updated" | "started";
|
|
10637
|
+
message: string;
|
|
10638
|
+
direction: "incoming" | "outgoing" | "system";
|
|
10639
|
+
platformId: string;
|
|
10640
|
+
room: {
|
|
10641
|
+
lastMessage?: string | undefined;
|
|
10642
|
+
handleTime?: number | undefined;
|
|
10643
|
+
closeAt?: Date | undefined;
|
|
10644
|
+
unreadCount?: number | undefined;
|
|
10645
|
+
firstResponseAt?: Date | null | undefined;
|
|
10646
|
+
firstResponseTime?: number | null | undefined;
|
|
10647
|
+
isLatest?: boolean | undefined;
|
|
10648
|
+
direction?: "incoming" | "outgoing" | "system" | undefined;
|
|
10649
|
+
platformContact?: {
|
|
11255
10650
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
11256
10651
|
id: string;
|
|
11257
10652
|
metadata: {
|
|
@@ -11310,6 +10705,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
11310
10705
|
fileKey: string;
|
|
11311
10706
|
bucketName: string;
|
|
11312
10707
|
fileSize: number;
|
|
10708
|
+
fileUrl: string | null;
|
|
11313
10709
|
};
|
|
11314
10710
|
}[];
|
|
11315
10711
|
}[];
|
|
@@ -11367,8 +10763,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
11367
10763
|
}[] | undefined;
|
|
11368
10764
|
};
|
|
11369
10765
|
socialPlatformId: string;
|
|
11370
|
-
};
|
|
11371
|
-
|
|
10766
|
+
} | undefined;
|
|
10767
|
+
actor?: {
|
|
11372
10768
|
id: string;
|
|
11373
10769
|
address: string | null;
|
|
11374
10770
|
name: string;
|
|
@@ -11410,8 +10806,73 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
11410
10806
|
extensionName: string;
|
|
11411
10807
|
telephonySignature: string | null;
|
|
11412
10808
|
} | undefined;
|
|
11413
|
-
};
|
|
11414
|
-
|
|
10809
|
+
} | undefined;
|
|
10810
|
+
assignee?: {
|
|
10811
|
+
id: string;
|
|
10812
|
+
address: string | null;
|
|
10813
|
+
name: string;
|
|
10814
|
+
email: string;
|
|
10815
|
+
createdAt: Date;
|
|
10816
|
+
updatedAt: Date;
|
|
10817
|
+
deletedAt: Date | null;
|
|
10818
|
+
emailVerifiedAt: Date | null;
|
|
10819
|
+
password: string;
|
|
10820
|
+
phone: string | null;
|
|
10821
|
+
notificationCount: number | null;
|
|
10822
|
+
roles: {
|
|
10823
|
+
id: string;
|
|
10824
|
+
description: string | null;
|
|
10825
|
+
createdAt: Date;
|
|
10826
|
+
updatedAt: Date;
|
|
10827
|
+
deletedAt: Date | null;
|
|
10828
|
+
systemName: string;
|
|
10829
|
+
displayName: string;
|
|
10830
|
+
permissions: {
|
|
10831
|
+
id: string;
|
|
10832
|
+
description: string | null;
|
|
10833
|
+
createdAt: Date;
|
|
10834
|
+
updatedAt: Date;
|
|
10835
|
+
deletedAt: Date | null;
|
|
10836
|
+
systemName: string;
|
|
10837
|
+
displayName: string;
|
|
10838
|
+
}[];
|
|
10839
|
+
}[];
|
|
10840
|
+
extension?: {
|
|
10841
|
+
id: string;
|
|
10842
|
+
createdAt: Date;
|
|
10843
|
+
updatedAt: Date;
|
|
10844
|
+
deletedAt: Date | null;
|
|
10845
|
+
userId: string | null;
|
|
10846
|
+
sipServerUrl: string;
|
|
10847
|
+
sipUserName: string;
|
|
10848
|
+
extensionId: number;
|
|
10849
|
+
extensionName: string;
|
|
10850
|
+
telephonySignature: string | null;
|
|
10851
|
+
} | undefined;
|
|
10852
|
+
} | undefined;
|
|
10853
|
+
channel?: {
|
|
10854
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
|
10855
|
+
name: string;
|
|
10856
|
+
metadata: {
|
|
10857
|
+
id: string;
|
|
10858
|
+
name: string;
|
|
10859
|
+
accessToken: string;
|
|
10860
|
+
additionalCredentials?: any;
|
|
10861
|
+
};
|
|
10862
|
+
status: boolean;
|
|
10863
|
+
brandName: string;
|
|
10864
|
+
platformId: string;
|
|
10865
|
+
actor: {
|
|
10866
|
+
id: string;
|
|
10867
|
+
address: string | null;
|
|
10868
|
+
name: string;
|
|
10869
|
+
email: string;
|
|
10870
|
+
phone: string | null;
|
|
10871
|
+
};
|
|
10872
|
+
connectedUserName?: string | null | undefined;
|
|
10873
|
+
connectedUserId?: string | null | undefined;
|
|
10874
|
+
} | undefined;
|
|
10875
|
+
cxlog?: {
|
|
11415
10876
|
id: string;
|
|
11416
10877
|
channel: string | null;
|
|
11417
10878
|
disposition: string | null;
|
|
@@ -11445,78 +10906,114 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
11445
10906
|
callTo: string | null;
|
|
11446
10907
|
note: string | null;
|
|
11447
10908
|
} | null;
|
|
11448
|
-
};
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
|
|
10909
|
+
} | undefined;
|
|
10910
|
+
};
|
|
10911
|
+
platformMessageId: string;
|
|
10912
|
+
locale: "" | "th" | "mm" | "en" | null;
|
|
10913
|
+
metadata?: any;
|
|
10914
|
+
replyPlatformMessageId?: string | undefined;
|
|
10915
|
+
template?: any;
|
|
10916
|
+
url?: string | undefined;
|
|
10917
|
+
previewUrl?: string | undefined;
|
|
10918
|
+
imageSetId?: string | undefined;
|
|
10919
|
+
upload?: {
|
|
10920
|
+
id: string;
|
|
10921
|
+
createdAt: Date;
|
|
10922
|
+
updatedAt: Date;
|
|
10923
|
+
deletedAt: Date | null;
|
|
10924
|
+
fileName: string;
|
|
10925
|
+
fileKey: string;
|
|
10926
|
+
bucketName: string;
|
|
10927
|
+
fileSize: number;
|
|
10928
|
+
fileUrl: string | null;
|
|
10929
|
+
} | undefined;
|
|
10930
|
+
actor?: {
|
|
10931
|
+
id: string;
|
|
10932
|
+
address: string | null;
|
|
10933
|
+
name: string;
|
|
10934
|
+
email: string;
|
|
10935
|
+
createdAt: Date;
|
|
10936
|
+
updatedAt: Date;
|
|
10937
|
+
deletedAt: Date | null;
|
|
10938
|
+
emailVerifiedAt: Date | null;
|
|
10939
|
+
password: string;
|
|
10940
|
+
phone: string | null;
|
|
10941
|
+
notificationCount: number | null;
|
|
10942
|
+
roles: {
|
|
10943
|
+
id: string;
|
|
10944
|
+
description: string | null;
|
|
10945
|
+
createdAt: Date;
|
|
10946
|
+
updatedAt: Date;
|
|
10947
|
+
deletedAt: Date | null;
|
|
10948
|
+
systemName: string;
|
|
10949
|
+
displayName: string;
|
|
10950
|
+
permissions: {
|
|
11457
10951
|
id: string;
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
10952
|
+
description: string | null;
|
|
10953
|
+
createdAt: Date;
|
|
10954
|
+
updatedAt: Date;
|
|
10955
|
+
deletedAt: Date | null;
|
|
10956
|
+
systemName: string;
|
|
10957
|
+
displayName: string;
|
|
10958
|
+
}[];
|
|
10959
|
+
}[];
|
|
10960
|
+
extension?: {
|
|
10961
|
+
id: string;
|
|
10962
|
+
createdAt: Date;
|
|
10963
|
+
updatedAt: Date;
|
|
10964
|
+
deletedAt: Date | null;
|
|
10965
|
+
userId: string | null;
|
|
10966
|
+
sipServerUrl: string;
|
|
10967
|
+
sipUserName: string;
|
|
10968
|
+
extensionId: number;
|
|
10969
|
+
extensionName: string;
|
|
10970
|
+
telephonySignature: string | null;
|
|
10971
|
+
} | undefined;
|
|
10972
|
+
} | undefined;
|
|
10973
|
+
assignee?: {
|
|
10974
|
+
id: string;
|
|
10975
|
+
address: string | null;
|
|
10976
|
+
name: string;
|
|
10977
|
+
email: string;
|
|
10978
|
+
createdAt: Date;
|
|
10979
|
+
updatedAt: Date;
|
|
10980
|
+
deletedAt: Date | null;
|
|
10981
|
+
emailVerifiedAt: Date | null;
|
|
10982
|
+
password: string;
|
|
10983
|
+
phone: string | null;
|
|
10984
|
+
notificationCount: number | null;
|
|
10985
|
+
roles: {
|
|
10986
|
+
id: string;
|
|
10987
|
+
description: string | null;
|
|
10988
|
+
createdAt: Date;
|
|
10989
|
+
updatedAt: Date;
|
|
10990
|
+
deletedAt: Date | null;
|
|
10991
|
+
systemName: string;
|
|
10992
|
+
displayName: string;
|
|
10993
|
+
permissions: {
|
|
11469
10994
|
id: string;
|
|
11470
|
-
|
|
11471
|
-
name: string;
|
|
11472
|
-
email: string;
|
|
10995
|
+
description: string | null;
|
|
11473
10996
|
createdAt: Date;
|
|
11474
10997
|
updatedAt: Date;
|
|
11475
10998
|
deletedAt: Date | null;
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
createdAt: Date;
|
|
11492
|
-
updatedAt: Date;
|
|
11493
|
-
deletedAt: Date | null;
|
|
11494
|
-
systemName: string;
|
|
11495
|
-
displayName: string;
|
|
11496
|
-
}[];
|
|
11497
|
-
}[];
|
|
11498
|
-
extension?: {
|
|
11499
|
-
id: string;
|
|
11500
|
-
createdAt: Date;
|
|
11501
|
-
updatedAt: Date;
|
|
11502
|
-
deletedAt: Date | null;
|
|
11503
|
-
userId: string | null;
|
|
11504
|
-
sipServerUrl: string;
|
|
11505
|
-
sipUserName: string;
|
|
11506
|
-
extensionId: number;
|
|
11507
|
-
extensionName: string;
|
|
11508
|
-
telephonySignature: string | null;
|
|
11509
|
-
} | undefined;
|
|
11510
|
-
} | undefined;
|
|
10999
|
+
systemName: string;
|
|
11000
|
+
displayName: string;
|
|
11001
|
+
}[];
|
|
11002
|
+
}[];
|
|
11003
|
+
extension?: {
|
|
11004
|
+
id: string;
|
|
11005
|
+
createdAt: Date;
|
|
11006
|
+
updatedAt: Date;
|
|
11007
|
+
deletedAt: Date | null;
|
|
11008
|
+
userId: string | null;
|
|
11009
|
+
sipServerUrl: string;
|
|
11010
|
+
sipUserName: string;
|
|
11011
|
+
extensionId: number;
|
|
11012
|
+
extensionName: string;
|
|
11013
|
+
telephonySignature: string | null;
|
|
11511
11014
|
} | undefined;
|
|
11512
|
-
};
|
|
11513
|
-
|
|
11514
|
-
platformMessageId: string;
|
|
11515
|
-
replyPlatformMessageId: string;
|
|
11516
|
-
locale: "" | "th" | "mm" | "en";
|
|
11517
|
-
previewUrl: string;
|
|
11518
|
-
imageSetId: string;
|
|
11519
|
-
sender: {
|
|
11015
|
+
} | undefined;
|
|
11016
|
+
sender?: {
|
|
11520
11017
|
id: string;
|
|
11521
11018
|
address: string | null;
|
|
11522
11019
|
name: string;
|
|
@@ -11558,9 +11055,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
|
11558
11055
|
extensionName: string;
|
|
11559
11056
|
telephonySignature: string | null;
|
|
11560
11057
|
} | undefined;
|
|
11561
|
-
};
|
|
11562
|
-
metadata?: any;
|
|
11563
|
-
template?: any;
|
|
11058
|
+
} | undefined;
|
|
11564
11059
|
};
|
|
11565
11060
|
}>;
|
|
11566
11061
|
//# sourceMappingURL=validation.d.ts.map
|