@kl1/contracts 1.0.57 → 1.0.58
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 +70 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -7
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +382 -285
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +382 -285
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/src/chat/index.d.ts
CHANGED
@@ -34,7 +34,11 @@ export declare const receiveMessageContract: {
|
|
34
34
|
url: z.ZodOptional<z.ZodString>;
|
35
35
|
previewUrl: z.ZodOptional<z.ZodString>;
|
36
36
|
imageSetId: z.ZodOptional<z.ZodString>;
|
37
|
-
room: z.ZodObject<{
|
37
|
+
room: z.ZodNullable<z.ZodObject<{
|
38
|
+
id: z.ZodOptional<z.ZodString>;
|
39
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
40
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
41
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
38
42
|
lastMessage: z.ZodOptional<z.ZodString>;
|
39
43
|
handleTime: z.ZodOptional<z.ZodNumber>;
|
40
44
|
closeAt: z.ZodOptional<z.ZodDate>;
|
@@ -44,6 +48,10 @@ export declare const receiveMessageContract: {
|
|
44
48
|
isLatest: z.ZodOptional<z.ZodBoolean>;
|
45
49
|
direction: z.ZodOptional<z.ZodEnum<["incoming", "outgoing", "system"]>>;
|
46
50
|
platformContact: z.ZodOptional<z.ZodObject<{
|
51
|
+
id: z.ZodString;
|
52
|
+
createdAt: z.ZodString;
|
53
|
+
updatedAt: z.ZodString;
|
54
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
47
55
|
channelId: z.ZodString;
|
48
56
|
socialPlatformId: z.ZodString;
|
49
57
|
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
@@ -65,6 +73,9 @@ export declare const receiveMessageContract: {
|
|
65
73
|
}>;
|
66
74
|
contact: z.ZodObject<{
|
67
75
|
id: z.ZodString;
|
76
|
+
createdAt: z.ZodString;
|
77
|
+
updatedAt: z.ZodString;
|
78
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
68
79
|
name: z.ZodString;
|
69
80
|
address: z.ZodNullable<z.ZodString>;
|
70
81
|
channel: z.ZodNullable<z.ZodString>;
|
@@ -90,7 +101,7 @@ export declare const receiveMessageContract: {
|
|
90
101
|
updatedAt: Date;
|
91
102
|
deletedAt: Date | null;
|
92
103
|
}>, "many">>;
|
93
|
-
company: z.
|
104
|
+
company: z.ZodOptional<z.ZodObject<Omit<{
|
94
105
|
id: z.ZodString;
|
95
106
|
createdAt: z.ZodDate;
|
96
107
|
updatedAt: z.ZodDate;
|
@@ -616,16 +627,9 @@ export declare const receiveMessageContract: {
|
|
616
627
|
channel: string | null;
|
617
628
|
address: string | null;
|
618
629
|
name: string;
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
updatedAt: Date;
|
623
|
-
deletedAt: Date | null;
|
624
|
-
address?: string | null | undefined;
|
625
|
-
name?: string | undefined;
|
626
|
-
phone?: string | null | undefined;
|
627
|
-
industry?: string | null | undefined;
|
628
|
-
} | null;
|
630
|
+
createdAt: string;
|
631
|
+
updatedAt: string;
|
632
|
+
deletedAt: string | null;
|
629
633
|
notes: string | null;
|
630
634
|
contactProfile: string | null;
|
631
635
|
socialProfileUrl: string | null;
|
@@ -636,6 +640,16 @@ export declare const receiveMessageContract: {
|
|
636
640
|
updatedAt: Date;
|
637
641
|
deletedAt: Date | null;
|
638
642
|
}[] | undefined;
|
643
|
+
company?: {
|
644
|
+
id: string;
|
645
|
+
createdAt: Date;
|
646
|
+
updatedAt: Date;
|
647
|
+
deletedAt: Date | null;
|
648
|
+
address?: string | null | undefined;
|
649
|
+
name?: string | undefined;
|
650
|
+
phone?: string | null | undefined;
|
651
|
+
industry?: string | null | undefined;
|
652
|
+
} | undefined;
|
639
653
|
customFields?: {
|
640
654
|
id: string;
|
641
655
|
createdAt: Date;
|
@@ -716,16 +730,9 @@ export declare const receiveMessageContract: {
|
|
716
730
|
channel: string | null;
|
717
731
|
address: string | null;
|
718
732
|
name: string;
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
updatedAt: Date;
|
723
|
-
deletedAt: Date | null;
|
724
|
-
address?: string | null | undefined;
|
725
|
-
name?: string | undefined;
|
726
|
-
phone?: string | null | undefined;
|
727
|
-
industry?: string | null | undefined;
|
728
|
-
} | null;
|
733
|
+
createdAt: string;
|
734
|
+
updatedAt: string;
|
735
|
+
deletedAt: string | null;
|
729
736
|
notes: string | null;
|
730
737
|
contactProfile: string | null;
|
731
738
|
socialProfileUrl: string | null;
|
@@ -736,6 +743,16 @@ export declare const receiveMessageContract: {
|
|
736
743
|
updatedAt: Date;
|
737
744
|
deletedAt: Date | null;
|
738
745
|
}[] | undefined;
|
746
|
+
company?: {
|
747
|
+
id: string;
|
748
|
+
createdAt: Date;
|
749
|
+
updatedAt: Date;
|
750
|
+
deletedAt: Date | null;
|
751
|
+
address?: string | null | undefined;
|
752
|
+
name?: string | undefined;
|
753
|
+
phone?: string | null | undefined;
|
754
|
+
industry?: string | null | undefined;
|
755
|
+
} | undefined;
|
739
756
|
customFields?: {
|
740
757
|
id: string;
|
741
758
|
createdAt: Date;
|
@@ -814,28 +831,25 @@ export declare const receiveMessageContract: {
|
|
814
831
|
}>;
|
815
832
|
}, "strip", z.ZodTypeAny, {
|
816
833
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
834
|
+
id: string;
|
817
835
|
metadata: {
|
818
836
|
id: string;
|
819
837
|
name: string;
|
820
838
|
picture?: string | undefined;
|
821
839
|
additionalCredentials?: any;
|
822
840
|
};
|
841
|
+
createdAt: string;
|
842
|
+
updatedAt: string;
|
843
|
+
deletedAt: string | null;
|
823
844
|
channelId: string;
|
824
845
|
contact: {
|
825
846
|
id: string;
|
826
847
|
channel: string | null;
|
827
848
|
address: string | null;
|
828
849
|
name: string;
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
updatedAt: Date;
|
833
|
-
deletedAt: Date | null;
|
834
|
-
address?: string | null | undefined;
|
835
|
-
name?: string | undefined;
|
836
|
-
phone?: string | null | undefined;
|
837
|
-
industry?: string | null | undefined;
|
838
|
-
} | null;
|
850
|
+
createdAt: string;
|
851
|
+
updatedAt: string;
|
852
|
+
deletedAt: string | null;
|
839
853
|
notes: string | null;
|
840
854
|
contactProfile: string | null;
|
841
855
|
socialProfileUrl: string | null;
|
@@ -846,6 +860,16 @@ export declare const receiveMessageContract: {
|
|
846
860
|
updatedAt: Date;
|
847
861
|
deletedAt: Date | null;
|
848
862
|
}[] | undefined;
|
863
|
+
company?: {
|
864
|
+
id: string;
|
865
|
+
createdAt: Date;
|
866
|
+
updatedAt: Date;
|
867
|
+
deletedAt: Date | null;
|
868
|
+
address?: string | null | undefined;
|
869
|
+
name?: string | undefined;
|
870
|
+
phone?: string | null | undefined;
|
871
|
+
industry?: string | null | undefined;
|
872
|
+
} | undefined;
|
849
873
|
customFields?: {
|
850
874
|
id: string;
|
851
875
|
createdAt: Date;
|
@@ -925,28 +949,25 @@ export declare const receiveMessageContract: {
|
|
925
949
|
socialPlatformId: string;
|
926
950
|
}, {
|
927
951
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
952
|
+
id: string;
|
928
953
|
metadata: {
|
929
954
|
id: string;
|
930
955
|
name: string;
|
931
956
|
picture?: string | undefined;
|
932
957
|
additionalCredentials?: any;
|
933
958
|
};
|
959
|
+
createdAt: string;
|
960
|
+
updatedAt: string;
|
961
|
+
deletedAt: string | null;
|
934
962
|
channelId: string;
|
935
963
|
contact: {
|
936
964
|
id: string;
|
937
965
|
channel: string | null;
|
938
966
|
address: string | null;
|
939
967
|
name: string;
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
updatedAt: Date;
|
944
|
-
deletedAt: Date | null;
|
945
|
-
address?: string | null | undefined;
|
946
|
-
name?: string | undefined;
|
947
|
-
phone?: string | null | undefined;
|
948
|
-
industry?: string | null | undefined;
|
949
|
-
} | null;
|
968
|
+
createdAt: string;
|
969
|
+
updatedAt: string;
|
970
|
+
deletedAt: string | null;
|
950
971
|
notes: string | null;
|
951
972
|
contactProfile: string | null;
|
952
973
|
socialProfileUrl: string | null;
|
@@ -957,6 +978,16 @@ export declare const receiveMessageContract: {
|
|
957
978
|
updatedAt: Date;
|
958
979
|
deletedAt: Date | null;
|
959
980
|
}[] | undefined;
|
981
|
+
company?: {
|
982
|
+
id: string;
|
983
|
+
createdAt: Date;
|
984
|
+
updatedAt: Date;
|
985
|
+
deletedAt: Date | null;
|
986
|
+
address?: string | null | undefined;
|
987
|
+
name?: string | undefined;
|
988
|
+
phone?: string | null | undefined;
|
989
|
+
industry?: string | null | undefined;
|
990
|
+
} | undefined;
|
960
991
|
customFields?: {
|
961
992
|
id: string;
|
962
993
|
createdAt: Date;
|
@@ -1035,19 +1066,19 @@ export declare const receiveMessageContract: {
|
|
1035
1066
|
};
|
1036
1067
|
socialPlatformId: string;
|
1037
1068
|
}>>;
|
1038
|
-
actor: z.ZodOptional<z.ZodObject<{
|
1069
|
+
actor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
1039
1070
|
id: z.ZodString;
|
1040
|
-
createdAt: z.
|
1041
|
-
updatedAt: z.
|
1042
|
-
deletedAt: z.ZodNullable<z.
|
1071
|
+
createdAt: z.ZodString;
|
1072
|
+
updatedAt: z.ZodString;
|
1073
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
1043
1074
|
name: z.ZodString;
|
1044
1075
|
email: z.ZodString;
|
1045
|
-
emailVerifiedAt: z.
|
1076
|
+
emailVerifiedAt: z.ZodOptional<z.ZodDate>;
|
1046
1077
|
password: z.ZodString;
|
1047
1078
|
address: z.ZodNullable<z.ZodString>;
|
1048
1079
|
phone: z.ZodNullable<z.ZodString>;
|
1049
1080
|
notificationCount: z.ZodNullable<z.ZodNumber>;
|
1050
|
-
roles: z.ZodArray<z.ZodObject<{
|
1081
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1051
1082
|
id: z.ZodString;
|
1052
1083
|
createdAt: z.ZodDate;
|
1053
1084
|
updatedAt: z.ZodDate;
|
@@ -1114,8 +1145,8 @@ export declare const receiveMessageContract: {
|
|
1114
1145
|
systemName: string;
|
1115
1146
|
displayName: string;
|
1116
1147
|
}[];
|
1117
|
-
}>, "many"
|
1118
|
-
extension: z.ZodObject<{
|
1148
|
+
}>, "many">>;
|
1149
|
+
extension: z.ZodOptional<z.ZodObject<{
|
1119
1150
|
id: z.ZodString;
|
1120
1151
|
createdAt: z.ZodDate;
|
1121
1152
|
updatedAt: z.ZodDate;
|
@@ -1151,20 +1182,20 @@ export declare const receiveMessageContract: {
|
|
1151
1182
|
extensionId: string | null;
|
1152
1183
|
extensionName: string;
|
1153
1184
|
telephonySignature: string | null;
|
1154
|
-
}
|
1185
|
+
}>>;
|
1155
1186
|
}, "strip", z.ZodTypeAny, {
|
1156
1187
|
id: string;
|
1157
1188
|
address: string | null;
|
1158
1189
|
name: string;
|
1159
1190
|
email: string;
|
1160
|
-
createdAt:
|
1161
|
-
updatedAt:
|
1162
|
-
deletedAt:
|
1163
|
-
emailVerifiedAt: Date | null;
|
1191
|
+
createdAt: string;
|
1192
|
+
updatedAt: string;
|
1193
|
+
deletedAt: string | null;
|
1164
1194
|
password: string;
|
1165
1195
|
phone: string | null;
|
1166
1196
|
notificationCount: number | null;
|
1167
|
-
|
1197
|
+
emailVerifiedAt?: Date | undefined;
|
1198
|
+
roles?: {
|
1168
1199
|
id: string;
|
1169
1200
|
description: string | null;
|
1170
1201
|
createdAt: Date;
|
@@ -1181,8 +1212,8 @@ export declare const receiveMessageContract: {
|
|
1181
1212
|
systemName: string;
|
1182
1213
|
displayName: string;
|
1183
1214
|
}[];
|
1184
|
-
}[];
|
1185
|
-
extension
|
1215
|
+
}[] | undefined;
|
1216
|
+
extension?: {
|
1186
1217
|
id: string;
|
1187
1218
|
createdAt: Date;
|
1188
1219
|
updatedAt: Date;
|
@@ -1194,20 +1225,20 @@ export declare const receiveMessageContract: {
|
|
1194
1225
|
extensionId: string | null;
|
1195
1226
|
extensionName: string;
|
1196
1227
|
telephonySignature: string | null;
|
1197
|
-
};
|
1228
|
+
} | undefined;
|
1198
1229
|
}, {
|
1199
1230
|
id: string;
|
1200
1231
|
address: string | null;
|
1201
1232
|
name: string;
|
1202
1233
|
email: string;
|
1203
|
-
createdAt:
|
1204
|
-
updatedAt:
|
1205
|
-
deletedAt:
|
1206
|
-
emailVerifiedAt: Date | null;
|
1234
|
+
createdAt: string;
|
1235
|
+
updatedAt: string;
|
1236
|
+
deletedAt: string | null;
|
1207
1237
|
password: string;
|
1208
1238
|
phone: string | null;
|
1209
1239
|
notificationCount: number | null;
|
1210
|
-
|
1240
|
+
emailVerifiedAt?: Date | undefined;
|
1241
|
+
roles?: {
|
1211
1242
|
id: string;
|
1212
1243
|
description: string | null;
|
1213
1244
|
createdAt: Date;
|
@@ -1224,8 +1255,8 @@ export declare const receiveMessageContract: {
|
|
1224
1255
|
systemName: string;
|
1225
1256
|
displayName: string;
|
1226
1257
|
}[];
|
1227
|
-
}[];
|
1228
|
-
extension
|
1258
|
+
}[] | undefined;
|
1259
|
+
extension?: {
|
1229
1260
|
id: string;
|
1230
1261
|
createdAt: Date;
|
1231
1262
|
updatedAt: Date;
|
@@ -1237,21 +1268,21 @@ export declare const receiveMessageContract: {
|
|
1237
1268
|
extensionId: string | null;
|
1238
1269
|
extensionName: string;
|
1239
1270
|
telephonySignature: string | null;
|
1240
|
-
};
|
1241
|
-
}
|
1242
|
-
assignee: z.ZodOptional<z.ZodObject<{
|
1271
|
+
} | undefined;
|
1272
|
+
}>>>;
|
1273
|
+
assignee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
1243
1274
|
id: z.ZodString;
|
1244
|
-
createdAt: z.
|
1245
|
-
updatedAt: z.
|
1246
|
-
deletedAt: z.ZodNullable<z.
|
1275
|
+
createdAt: z.ZodString;
|
1276
|
+
updatedAt: z.ZodString;
|
1277
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
1247
1278
|
name: z.ZodString;
|
1248
1279
|
email: z.ZodString;
|
1249
|
-
emailVerifiedAt: z.
|
1280
|
+
emailVerifiedAt: z.ZodOptional<z.ZodDate>;
|
1250
1281
|
password: z.ZodString;
|
1251
1282
|
address: z.ZodNullable<z.ZodString>;
|
1252
1283
|
phone: z.ZodNullable<z.ZodString>;
|
1253
1284
|
notificationCount: z.ZodNullable<z.ZodNumber>;
|
1254
|
-
roles: z.ZodArray<z.ZodObject<{
|
1285
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1255
1286
|
id: z.ZodString;
|
1256
1287
|
createdAt: z.ZodDate;
|
1257
1288
|
updatedAt: z.ZodDate;
|
@@ -1318,8 +1349,8 @@ export declare const receiveMessageContract: {
|
|
1318
1349
|
systemName: string;
|
1319
1350
|
displayName: string;
|
1320
1351
|
}[];
|
1321
|
-
}>, "many"
|
1322
|
-
extension: z.ZodObject<{
|
1352
|
+
}>, "many">>;
|
1353
|
+
extension: z.ZodOptional<z.ZodObject<{
|
1323
1354
|
id: z.ZodString;
|
1324
1355
|
createdAt: z.ZodDate;
|
1325
1356
|
updatedAt: z.ZodDate;
|
@@ -1355,20 +1386,20 @@ export declare const receiveMessageContract: {
|
|
1355
1386
|
extensionId: string | null;
|
1356
1387
|
extensionName: string;
|
1357
1388
|
telephonySignature: string | null;
|
1358
|
-
}
|
1389
|
+
}>>;
|
1359
1390
|
}, "strip", z.ZodTypeAny, {
|
1360
1391
|
id: string;
|
1361
1392
|
address: string | null;
|
1362
1393
|
name: string;
|
1363
1394
|
email: string;
|
1364
|
-
createdAt:
|
1365
|
-
updatedAt:
|
1366
|
-
deletedAt:
|
1367
|
-
emailVerifiedAt: Date | null;
|
1395
|
+
createdAt: string;
|
1396
|
+
updatedAt: string;
|
1397
|
+
deletedAt: string | null;
|
1368
1398
|
password: string;
|
1369
1399
|
phone: string | null;
|
1370
1400
|
notificationCount: number | null;
|
1371
|
-
|
1401
|
+
emailVerifiedAt?: Date | undefined;
|
1402
|
+
roles?: {
|
1372
1403
|
id: string;
|
1373
1404
|
description: string | null;
|
1374
1405
|
createdAt: Date;
|
@@ -1385,8 +1416,8 @@ export declare const receiveMessageContract: {
|
|
1385
1416
|
systemName: string;
|
1386
1417
|
displayName: string;
|
1387
1418
|
}[];
|
1388
|
-
}[];
|
1389
|
-
extension
|
1419
|
+
}[] | undefined;
|
1420
|
+
extension?: {
|
1390
1421
|
id: string;
|
1391
1422
|
createdAt: Date;
|
1392
1423
|
updatedAt: Date;
|
@@ -1398,20 +1429,20 @@ export declare const receiveMessageContract: {
|
|
1398
1429
|
extensionId: string | null;
|
1399
1430
|
extensionName: string;
|
1400
1431
|
telephonySignature: string | null;
|
1401
|
-
};
|
1432
|
+
} | undefined;
|
1402
1433
|
}, {
|
1403
1434
|
id: string;
|
1404
1435
|
address: string | null;
|
1405
1436
|
name: string;
|
1406
1437
|
email: string;
|
1407
|
-
createdAt:
|
1408
|
-
updatedAt:
|
1409
|
-
deletedAt:
|
1410
|
-
emailVerifiedAt: Date | null;
|
1438
|
+
createdAt: string;
|
1439
|
+
updatedAt: string;
|
1440
|
+
deletedAt: string | null;
|
1411
1441
|
password: string;
|
1412
1442
|
phone: string | null;
|
1413
1443
|
notificationCount: number | null;
|
1414
|
-
|
1444
|
+
emailVerifiedAt?: Date | undefined;
|
1445
|
+
roles?: {
|
1415
1446
|
id: string;
|
1416
1447
|
description: string | null;
|
1417
1448
|
createdAt: Date;
|
@@ -1428,8 +1459,8 @@ export declare const receiveMessageContract: {
|
|
1428
1459
|
systemName: string;
|
1429
1460
|
displayName: string;
|
1430
1461
|
}[];
|
1431
|
-
}[];
|
1432
|
-
extension
|
1462
|
+
}[] | undefined;
|
1463
|
+
extension?: {
|
1433
1464
|
id: string;
|
1434
1465
|
createdAt: Date;
|
1435
1466
|
updatedAt: Date;
|
@@ -1441,8 +1472,8 @@ export declare const receiveMessageContract: {
|
|
1441
1472
|
extensionId: string | null;
|
1442
1473
|
extensionName: string;
|
1443
1474
|
telephonySignature: string | null;
|
1444
|
-
};
|
1445
|
-
}
|
1475
|
+
} | undefined;
|
1476
|
+
}>>>;
|
1446
1477
|
channel: z.ZodOptional<z.ZodObject<{
|
1447
1478
|
name: z.ZodString;
|
1448
1479
|
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
@@ -1677,6 +1708,10 @@ export declare const receiveMessageContract: {
|
|
1677
1708
|
} | null;
|
1678
1709
|
}>>;
|
1679
1710
|
}, "strip", z.ZodTypeAny, {
|
1711
|
+
id?: string | undefined;
|
1712
|
+
createdAt?: string | undefined;
|
1713
|
+
updatedAt?: string | undefined;
|
1714
|
+
deletedAt?: string | null | undefined;
|
1680
1715
|
lastMessage?: string | undefined;
|
1681
1716
|
handleTime?: number | undefined;
|
1682
1717
|
closeAt?: Date | undefined;
|
@@ -1687,28 +1722,25 @@ export declare const receiveMessageContract: {
|
|
1687
1722
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
1688
1723
|
platformContact?: {
|
1689
1724
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
1725
|
+
id: string;
|
1690
1726
|
metadata: {
|
1691
1727
|
id: string;
|
1692
1728
|
name: string;
|
1693
1729
|
picture?: string | undefined;
|
1694
1730
|
additionalCredentials?: any;
|
1695
1731
|
};
|
1732
|
+
createdAt: string;
|
1733
|
+
updatedAt: string;
|
1734
|
+
deletedAt: string | null;
|
1696
1735
|
channelId: string;
|
1697
1736
|
contact: {
|
1698
1737
|
id: string;
|
1699
1738
|
channel: string | null;
|
1700
1739
|
address: string | null;
|
1701
1740
|
name: string;
|
1702
|
-
|
1703
|
-
|
1704
|
-
|
1705
|
-
updatedAt: Date;
|
1706
|
-
deletedAt: Date | null;
|
1707
|
-
address?: string | null | undefined;
|
1708
|
-
name?: string | undefined;
|
1709
|
-
phone?: string | null | undefined;
|
1710
|
-
industry?: string | null | undefined;
|
1711
|
-
} | null;
|
1741
|
+
createdAt: string;
|
1742
|
+
updatedAt: string;
|
1743
|
+
deletedAt: string | null;
|
1712
1744
|
notes: string | null;
|
1713
1745
|
contactProfile: string | null;
|
1714
1746
|
socialProfileUrl: string | null;
|
@@ -1719,6 +1751,16 @@ export declare const receiveMessageContract: {
|
|
1719
1751
|
updatedAt: Date;
|
1720
1752
|
deletedAt: Date | null;
|
1721
1753
|
}[] | undefined;
|
1754
|
+
company?: {
|
1755
|
+
id: string;
|
1756
|
+
createdAt: Date;
|
1757
|
+
updatedAt: Date;
|
1758
|
+
deletedAt: Date | null;
|
1759
|
+
address?: string | null | undefined;
|
1760
|
+
name?: string | undefined;
|
1761
|
+
phone?: string | null | undefined;
|
1762
|
+
industry?: string | null | undefined;
|
1763
|
+
} | undefined;
|
1722
1764
|
customFields?: {
|
1723
1765
|
id: string;
|
1724
1766
|
createdAt: Date;
|
@@ -1802,14 +1844,14 @@ export declare const receiveMessageContract: {
|
|
1802
1844
|
address: string | null;
|
1803
1845
|
name: string;
|
1804
1846
|
email: string;
|
1805
|
-
createdAt:
|
1806
|
-
updatedAt:
|
1807
|
-
deletedAt:
|
1808
|
-
emailVerifiedAt: Date | null;
|
1847
|
+
createdAt: string;
|
1848
|
+
updatedAt: string;
|
1849
|
+
deletedAt: string | null;
|
1809
1850
|
password: string;
|
1810
1851
|
phone: string | null;
|
1811
1852
|
notificationCount: number | null;
|
1812
|
-
|
1853
|
+
emailVerifiedAt?: Date | undefined;
|
1854
|
+
roles?: {
|
1813
1855
|
id: string;
|
1814
1856
|
description: string | null;
|
1815
1857
|
createdAt: Date;
|
@@ -1826,8 +1868,8 @@ export declare const receiveMessageContract: {
|
|
1826
1868
|
systemName: string;
|
1827
1869
|
displayName: string;
|
1828
1870
|
}[];
|
1829
|
-
}[];
|
1830
|
-
extension
|
1871
|
+
}[] | undefined;
|
1872
|
+
extension?: {
|
1831
1873
|
id: string;
|
1832
1874
|
createdAt: Date;
|
1833
1875
|
updatedAt: Date;
|
@@ -1839,21 +1881,21 @@ export declare const receiveMessageContract: {
|
|
1839
1881
|
extensionId: string | null;
|
1840
1882
|
extensionName: string;
|
1841
1883
|
telephonySignature: string | null;
|
1842
|
-
};
|
1843
|
-
} | undefined;
|
1884
|
+
} | undefined;
|
1885
|
+
} | null | undefined;
|
1844
1886
|
assignee?: {
|
1845
1887
|
id: string;
|
1846
1888
|
address: string | null;
|
1847
1889
|
name: string;
|
1848
1890
|
email: string;
|
1849
|
-
createdAt:
|
1850
|
-
updatedAt:
|
1851
|
-
deletedAt:
|
1852
|
-
emailVerifiedAt: Date | null;
|
1891
|
+
createdAt: string;
|
1892
|
+
updatedAt: string;
|
1893
|
+
deletedAt: string | null;
|
1853
1894
|
password: string;
|
1854
1895
|
phone: string | null;
|
1855
1896
|
notificationCount: number | null;
|
1856
|
-
|
1897
|
+
emailVerifiedAt?: Date | undefined;
|
1898
|
+
roles?: {
|
1857
1899
|
id: string;
|
1858
1900
|
description: string | null;
|
1859
1901
|
createdAt: Date;
|
@@ -1870,8 +1912,8 @@ export declare const receiveMessageContract: {
|
|
1870
1912
|
systemName: string;
|
1871
1913
|
displayName: string;
|
1872
1914
|
}[];
|
1873
|
-
}[];
|
1874
|
-
extension
|
1915
|
+
}[] | undefined;
|
1916
|
+
extension?: {
|
1875
1917
|
id: string;
|
1876
1918
|
createdAt: Date;
|
1877
1919
|
updatedAt: Date;
|
@@ -1883,8 +1925,8 @@ export declare const receiveMessageContract: {
|
|
1883
1925
|
extensionId: string | null;
|
1884
1926
|
extensionName: string;
|
1885
1927
|
telephonySignature: string | null;
|
1886
|
-
};
|
1887
|
-
} | undefined;
|
1928
|
+
} | undefined;
|
1929
|
+
} | null | undefined;
|
1888
1930
|
channel?: {
|
1889
1931
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
1890
1932
|
name: string;
|
@@ -1943,6 +1985,10 @@ export declare const receiveMessageContract: {
|
|
1943
1985
|
} | null;
|
1944
1986
|
} | undefined;
|
1945
1987
|
}, {
|
1988
|
+
id?: string | undefined;
|
1989
|
+
createdAt?: string | undefined;
|
1990
|
+
updatedAt?: string | undefined;
|
1991
|
+
deletedAt?: string | null | undefined;
|
1946
1992
|
lastMessage?: string | undefined;
|
1947
1993
|
handleTime?: number | undefined;
|
1948
1994
|
closeAt?: Date | undefined;
|
@@ -1953,28 +1999,25 @@ export declare const receiveMessageContract: {
|
|
1953
1999
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
1954
2000
|
platformContact?: {
|
1955
2001
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
2002
|
+
id: string;
|
1956
2003
|
metadata: {
|
1957
2004
|
id: string;
|
1958
2005
|
name: string;
|
1959
2006
|
picture?: string | undefined;
|
1960
2007
|
additionalCredentials?: any;
|
1961
2008
|
};
|
2009
|
+
createdAt: string;
|
2010
|
+
updatedAt: string;
|
2011
|
+
deletedAt: string | null;
|
1962
2012
|
channelId: string;
|
1963
2013
|
contact: {
|
1964
2014
|
id: string;
|
1965
2015
|
channel: string | null;
|
1966
2016
|
address: string | null;
|
1967
2017
|
name: string;
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
updatedAt: Date;
|
1972
|
-
deletedAt: Date | null;
|
1973
|
-
address?: string | null | undefined;
|
1974
|
-
name?: string | undefined;
|
1975
|
-
phone?: string | null | undefined;
|
1976
|
-
industry?: string | null | undefined;
|
1977
|
-
} | null;
|
2018
|
+
createdAt: string;
|
2019
|
+
updatedAt: string;
|
2020
|
+
deletedAt: string | null;
|
1978
2021
|
notes: string | null;
|
1979
2022
|
contactProfile: string | null;
|
1980
2023
|
socialProfileUrl: string | null;
|
@@ -1985,6 +2028,16 @@ export declare const receiveMessageContract: {
|
|
1985
2028
|
updatedAt: Date;
|
1986
2029
|
deletedAt: Date | null;
|
1987
2030
|
}[] | undefined;
|
2031
|
+
company?: {
|
2032
|
+
id: string;
|
2033
|
+
createdAt: Date;
|
2034
|
+
updatedAt: Date;
|
2035
|
+
deletedAt: Date | null;
|
2036
|
+
address?: string | null | undefined;
|
2037
|
+
name?: string | undefined;
|
2038
|
+
phone?: string | null | undefined;
|
2039
|
+
industry?: string | null | undefined;
|
2040
|
+
} | undefined;
|
1988
2041
|
customFields?: {
|
1989
2042
|
id: string;
|
1990
2043
|
createdAt: Date;
|
@@ -2068,14 +2121,14 @@ export declare const receiveMessageContract: {
|
|
2068
2121
|
address: string | null;
|
2069
2122
|
name: string;
|
2070
2123
|
email: string;
|
2071
|
-
createdAt:
|
2072
|
-
updatedAt:
|
2073
|
-
deletedAt:
|
2074
|
-
emailVerifiedAt: Date | null;
|
2124
|
+
createdAt: string;
|
2125
|
+
updatedAt: string;
|
2126
|
+
deletedAt: string | null;
|
2075
2127
|
password: string;
|
2076
2128
|
phone: string | null;
|
2077
2129
|
notificationCount: number | null;
|
2078
|
-
|
2130
|
+
emailVerifiedAt?: Date | undefined;
|
2131
|
+
roles?: {
|
2079
2132
|
id: string;
|
2080
2133
|
description: string | null;
|
2081
2134
|
createdAt: Date;
|
@@ -2092,8 +2145,8 @@ export declare const receiveMessageContract: {
|
|
2092
2145
|
systemName: string;
|
2093
2146
|
displayName: string;
|
2094
2147
|
}[];
|
2095
|
-
}[];
|
2096
|
-
extension
|
2148
|
+
}[] | undefined;
|
2149
|
+
extension?: {
|
2097
2150
|
id: string;
|
2098
2151
|
createdAt: Date;
|
2099
2152
|
updatedAt: Date;
|
@@ -2105,21 +2158,21 @@ export declare const receiveMessageContract: {
|
|
2105
2158
|
extensionId: string | null;
|
2106
2159
|
extensionName: string;
|
2107
2160
|
telephonySignature: string | null;
|
2108
|
-
};
|
2109
|
-
} | undefined;
|
2161
|
+
} | undefined;
|
2162
|
+
} | null | undefined;
|
2110
2163
|
assignee?: {
|
2111
2164
|
id: string;
|
2112
2165
|
address: string | null;
|
2113
2166
|
name: string;
|
2114
2167
|
email: string;
|
2115
|
-
createdAt:
|
2116
|
-
updatedAt:
|
2117
|
-
deletedAt:
|
2118
|
-
emailVerifiedAt: Date | null;
|
2168
|
+
createdAt: string;
|
2169
|
+
updatedAt: string;
|
2170
|
+
deletedAt: string | null;
|
2119
2171
|
password: string;
|
2120
2172
|
phone: string | null;
|
2121
2173
|
notificationCount: number | null;
|
2122
|
-
|
2174
|
+
emailVerifiedAt?: Date | undefined;
|
2175
|
+
roles?: {
|
2123
2176
|
id: string;
|
2124
2177
|
description: string | null;
|
2125
2178
|
createdAt: Date;
|
@@ -2136,8 +2189,8 @@ export declare const receiveMessageContract: {
|
|
2136
2189
|
systemName: string;
|
2137
2190
|
displayName: string;
|
2138
2191
|
}[];
|
2139
|
-
}[];
|
2140
|
-
extension
|
2192
|
+
}[] | undefined;
|
2193
|
+
extension?: {
|
2141
2194
|
id: string;
|
2142
2195
|
createdAt: Date;
|
2143
2196
|
updatedAt: Date;
|
@@ -2149,8 +2202,8 @@ export declare const receiveMessageContract: {
|
|
2149
2202
|
extensionId: string | null;
|
2150
2203
|
extensionName: string;
|
2151
2204
|
telephonySignature: string | null;
|
2152
|
-
};
|
2153
|
-
} | undefined;
|
2205
|
+
} | undefined;
|
2206
|
+
} | null | undefined;
|
2154
2207
|
channel?: {
|
2155
2208
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
2156
2209
|
name: string;
|
@@ -2208,7 +2261,7 @@ export declare const receiveMessageContract: {
|
|
2208
2261
|
note: string | null;
|
2209
2262
|
} | null;
|
2210
2263
|
} | undefined;
|
2211
|
-
}
|
2264
|
+
}>>;
|
2212
2265
|
upload: z.ZodOptional<z.ZodObject<{
|
2213
2266
|
bucketName: z.ZodNullable<z.ZodString>;
|
2214
2267
|
fileName: z.ZodNullable<z.ZodString>;
|
@@ -2243,7 +2296,7 @@ export declare const receiveMessageContract: {
|
|
2243
2296
|
fileUrl?: string | undefined;
|
2244
2297
|
status?: string | undefined;
|
2245
2298
|
}>>;
|
2246
|
-
actor: z.ZodOptional<z.ZodObject<{
|
2299
|
+
actor: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
2247
2300
|
id: z.ZodString;
|
2248
2301
|
createdAt: z.ZodDate;
|
2249
2302
|
updatedAt: z.ZodDate;
|
@@ -2446,8 +2499,8 @@ export declare const receiveMessageContract: {
|
|
2446
2499
|
extensionName: string;
|
2447
2500
|
telephonySignature: string | null;
|
2448
2501
|
};
|
2449
|
-
}
|
2450
|
-
assignee: z.ZodOptional<z.ZodObject<{
|
2502
|
+
}>>>;
|
2503
|
+
assignee: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
2451
2504
|
id: z.ZodString;
|
2452
2505
|
createdAt: z.ZodDate;
|
2453
2506
|
updatedAt: z.ZodDate;
|
@@ -2650,8 +2703,8 @@ export declare const receiveMessageContract: {
|
|
2650
2703
|
extensionName: string;
|
2651
2704
|
telephonySignature: string | null;
|
2652
2705
|
};
|
2653
|
-
}
|
2654
|
-
sender: z.ZodOptional<z.ZodObject<{
|
2706
|
+
}>>>;
|
2707
|
+
sender: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
2655
2708
|
id: z.ZodString;
|
2656
2709
|
createdAt: z.ZodDate;
|
2657
2710
|
updatedAt: z.ZodDate;
|
@@ -2854,7 +2907,7 @@ export declare const receiveMessageContract: {
|
|
2854
2907
|
extensionName: string;
|
2855
2908
|
telephonySignature: string | null;
|
2856
2909
|
};
|
2857
|
-
}
|
2910
|
+
}>>>;
|
2858
2911
|
}, "strip", z.ZodTypeAny, {
|
2859
2912
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
2860
2913
|
id: string;
|
@@ -2864,6 +2917,10 @@ export declare const receiveMessageContract: {
|
|
2864
2917
|
deletedAt: string | null;
|
2865
2918
|
platformId: string;
|
2866
2919
|
room: {
|
2920
|
+
id?: string | undefined;
|
2921
|
+
createdAt?: string | undefined;
|
2922
|
+
updatedAt?: string | undefined;
|
2923
|
+
deletedAt?: string | null | undefined;
|
2867
2924
|
lastMessage?: string | undefined;
|
2868
2925
|
handleTime?: number | undefined;
|
2869
2926
|
closeAt?: Date | undefined;
|
@@ -2874,28 +2931,25 @@ export declare const receiveMessageContract: {
|
|
2874
2931
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
2875
2932
|
platformContact?: {
|
2876
2933
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
2934
|
+
id: string;
|
2877
2935
|
metadata: {
|
2878
2936
|
id: string;
|
2879
2937
|
name: string;
|
2880
2938
|
picture?: string | undefined;
|
2881
2939
|
additionalCredentials?: any;
|
2882
2940
|
};
|
2941
|
+
createdAt: string;
|
2942
|
+
updatedAt: string;
|
2943
|
+
deletedAt: string | null;
|
2883
2944
|
channelId: string;
|
2884
2945
|
contact: {
|
2885
2946
|
id: string;
|
2886
2947
|
channel: string | null;
|
2887
2948
|
address: string | null;
|
2888
2949
|
name: string;
|
2889
|
-
|
2890
|
-
|
2891
|
-
|
2892
|
-
updatedAt: Date;
|
2893
|
-
deletedAt: Date | null;
|
2894
|
-
address?: string | null | undefined;
|
2895
|
-
name?: string | undefined;
|
2896
|
-
phone?: string | null | undefined;
|
2897
|
-
industry?: string | null | undefined;
|
2898
|
-
} | null;
|
2950
|
+
createdAt: string;
|
2951
|
+
updatedAt: string;
|
2952
|
+
deletedAt: string | null;
|
2899
2953
|
notes: string | null;
|
2900
2954
|
contactProfile: string | null;
|
2901
2955
|
socialProfileUrl: string | null;
|
@@ -2906,6 +2960,16 @@ export declare const receiveMessageContract: {
|
|
2906
2960
|
updatedAt: Date;
|
2907
2961
|
deletedAt: Date | null;
|
2908
2962
|
}[] | undefined;
|
2963
|
+
company?: {
|
2964
|
+
id: string;
|
2965
|
+
createdAt: Date;
|
2966
|
+
updatedAt: Date;
|
2967
|
+
deletedAt: Date | null;
|
2968
|
+
address?: string | null | undefined;
|
2969
|
+
name?: string | undefined;
|
2970
|
+
phone?: string | null | undefined;
|
2971
|
+
industry?: string | null | undefined;
|
2972
|
+
} | undefined;
|
2909
2973
|
customFields?: {
|
2910
2974
|
id: string;
|
2911
2975
|
createdAt: Date;
|
@@ -2989,14 +3053,14 @@ export declare const receiveMessageContract: {
|
|
2989
3053
|
address: string | null;
|
2990
3054
|
name: string;
|
2991
3055
|
email: string;
|
2992
|
-
createdAt:
|
2993
|
-
updatedAt:
|
2994
|
-
deletedAt:
|
2995
|
-
emailVerifiedAt: Date | null;
|
3056
|
+
createdAt: string;
|
3057
|
+
updatedAt: string;
|
3058
|
+
deletedAt: string | null;
|
2996
3059
|
password: string;
|
2997
3060
|
phone: string | null;
|
2998
3061
|
notificationCount: number | null;
|
2999
|
-
|
3062
|
+
emailVerifiedAt?: Date | undefined;
|
3063
|
+
roles?: {
|
3000
3064
|
id: string;
|
3001
3065
|
description: string | null;
|
3002
3066
|
createdAt: Date;
|
@@ -3013,8 +3077,8 @@ export declare const receiveMessageContract: {
|
|
3013
3077
|
systemName: string;
|
3014
3078
|
displayName: string;
|
3015
3079
|
}[];
|
3016
|
-
}[];
|
3017
|
-
extension
|
3080
|
+
}[] | undefined;
|
3081
|
+
extension?: {
|
3018
3082
|
id: string;
|
3019
3083
|
createdAt: Date;
|
3020
3084
|
updatedAt: Date;
|
@@ -3026,21 +3090,21 @@ export declare const receiveMessageContract: {
|
|
3026
3090
|
extensionId: string | null;
|
3027
3091
|
extensionName: string;
|
3028
3092
|
telephonySignature: string | null;
|
3029
|
-
};
|
3030
|
-
} | undefined;
|
3093
|
+
} | undefined;
|
3094
|
+
} | null | undefined;
|
3031
3095
|
assignee?: {
|
3032
3096
|
id: string;
|
3033
3097
|
address: string | null;
|
3034
3098
|
name: string;
|
3035
3099
|
email: string;
|
3036
|
-
createdAt:
|
3037
|
-
updatedAt:
|
3038
|
-
deletedAt:
|
3039
|
-
emailVerifiedAt: Date | null;
|
3100
|
+
createdAt: string;
|
3101
|
+
updatedAt: string;
|
3102
|
+
deletedAt: string | null;
|
3040
3103
|
password: string;
|
3041
3104
|
phone: string | null;
|
3042
3105
|
notificationCount: number | null;
|
3043
|
-
|
3106
|
+
emailVerifiedAt?: Date | undefined;
|
3107
|
+
roles?: {
|
3044
3108
|
id: string;
|
3045
3109
|
description: string | null;
|
3046
3110
|
createdAt: Date;
|
@@ -3057,8 +3121,8 @@ export declare const receiveMessageContract: {
|
|
3057
3121
|
systemName: string;
|
3058
3122
|
displayName: string;
|
3059
3123
|
}[];
|
3060
|
-
}[];
|
3061
|
-
extension
|
3124
|
+
}[] | undefined;
|
3125
|
+
extension?: {
|
3062
3126
|
id: string;
|
3063
3127
|
createdAt: Date;
|
3064
3128
|
updatedAt: Date;
|
@@ -3070,8 +3134,8 @@ export declare const receiveMessageContract: {
|
|
3070
3134
|
extensionId: string | null;
|
3071
3135
|
extensionName: string;
|
3072
3136
|
telephonySignature: string | null;
|
3073
|
-
};
|
3074
|
-
} | undefined;
|
3137
|
+
} | undefined;
|
3138
|
+
} | null | undefined;
|
3075
3139
|
channel?: {
|
3076
3140
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
3077
3141
|
name: string;
|
@@ -3129,7 +3193,7 @@ export declare const receiveMessageContract: {
|
|
3129
3193
|
note: string | null;
|
3130
3194
|
} | null;
|
3131
3195
|
} | undefined;
|
3132
|
-
};
|
3196
|
+
} | null;
|
3133
3197
|
platformMessageId: string;
|
3134
3198
|
locale: "" | "th" | "mm" | "en" | null;
|
3135
3199
|
message?: string | undefined;
|
@@ -3194,7 +3258,7 @@ export declare const receiveMessageContract: {
|
|
3194
3258
|
extensionName: string;
|
3195
3259
|
telephonySignature: string | null;
|
3196
3260
|
};
|
3197
|
-
} | undefined;
|
3261
|
+
} | null | undefined;
|
3198
3262
|
assignee?: {
|
3199
3263
|
id: string;
|
3200
3264
|
address: string | null;
|
@@ -3238,7 +3302,7 @@ export declare const receiveMessageContract: {
|
|
3238
3302
|
extensionName: string;
|
3239
3303
|
telephonySignature: string | null;
|
3240
3304
|
};
|
3241
|
-
} | undefined;
|
3305
|
+
} | null | undefined;
|
3242
3306
|
sender?: {
|
3243
3307
|
id: string;
|
3244
3308
|
address: string | null;
|
@@ -3282,7 +3346,7 @@ export declare const receiveMessageContract: {
|
|
3282
3346
|
extensionName: string;
|
3283
3347
|
telephonySignature: string | null;
|
3284
3348
|
};
|
3285
|
-
} | undefined;
|
3349
|
+
} | null | undefined;
|
3286
3350
|
}, {
|
3287
3351
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
3288
3352
|
id: string;
|
@@ -3292,6 +3356,10 @@ export declare const receiveMessageContract: {
|
|
3292
3356
|
deletedAt: string | null;
|
3293
3357
|
platformId: string;
|
3294
3358
|
room: {
|
3359
|
+
id?: string | undefined;
|
3360
|
+
createdAt?: string | undefined;
|
3361
|
+
updatedAt?: string | undefined;
|
3362
|
+
deletedAt?: string | null | undefined;
|
3295
3363
|
lastMessage?: string | undefined;
|
3296
3364
|
handleTime?: number | undefined;
|
3297
3365
|
closeAt?: Date | undefined;
|
@@ -3302,28 +3370,25 @@ export declare const receiveMessageContract: {
|
|
3302
3370
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
3303
3371
|
platformContact?: {
|
3304
3372
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
3373
|
+
id: string;
|
3305
3374
|
metadata: {
|
3306
3375
|
id: string;
|
3307
3376
|
name: string;
|
3308
3377
|
picture?: string | undefined;
|
3309
3378
|
additionalCredentials?: any;
|
3310
3379
|
};
|
3380
|
+
createdAt: string;
|
3381
|
+
updatedAt: string;
|
3382
|
+
deletedAt: string | null;
|
3311
3383
|
channelId: string;
|
3312
3384
|
contact: {
|
3313
3385
|
id: string;
|
3314
3386
|
channel: string | null;
|
3315
3387
|
address: string | null;
|
3316
3388
|
name: string;
|
3317
|
-
|
3318
|
-
|
3319
|
-
|
3320
|
-
updatedAt: Date;
|
3321
|
-
deletedAt: Date | null;
|
3322
|
-
address?: string | null | undefined;
|
3323
|
-
name?: string | undefined;
|
3324
|
-
phone?: string | null | undefined;
|
3325
|
-
industry?: string | null | undefined;
|
3326
|
-
} | null;
|
3389
|
+
createdAt: string;
|
3390
|
+
updatedAt: string;
|
3391
|
+
deletedAt: string | null;
|
3327
3392
|
notes: string | null;
|
3328
3393
|
contactProfile: string | null;
|
3329
3394
|
socialProfileUrl: string | null;
|
@@ -3334,6 +3399,16 @@ export declare const receiveMessageContract: {
|
|
3334
3399
|
updatedAt: Date;
|
3335
3400
|
deletedAt: Date | null;
|
3336
3401
|
}[] | undefined;
|
3402
|
+
company?: {
|
3403
|
+
id: string;
|
3404
|
+
createdAt: Date;
|
3405
|
+
updatedAt: Date;
|
3406
|
+
deletedAt: Date | null;
|
3407
|
+
address?: string | null | undefined;
|
3408
|
+
name?: string | undefined;
|
3409
|
+
phone?: string | null | undefined;
|
3410
|
+
industry?: string | null | undefined;
|
3411
|
+
} | undefined;
|
3337
3412
|
customFields?: {
|
3338
3413
|
id: string;
|
3339
3414
|
createdAt: Date;
|
@@ -3417,14 +3492,14 @@ export declare const receiveMessageContract: {
|
|
3417
3492
|
address: string | null;
|
3418
3493
|
name: string;
|
3419
3494
|
email: string;
|
3420
|
-
createdAt:
|
3421
|
-
updatedAt:
|
3422
|
-
deletedAt:
|
3423
|
-
emailVerifiedAt: Date | null;
|
3495
|
+
createdAt: string;
|
3496
|
+
updatedAt: string;
|
3497
|
+
deletedAt: string | null;
|
3424
3498
|
password: string;
|
3425
3499
|
phone: string | null;
|
3426
3500
|
notificationCount: number | null;
|
3427
|
-
|
3501
|
+
emailVerifiedAt?: Date | undefined;
|
3502
|
+
roles?: {
|
3428
3503
|
id: string;
|
3429
3504
|
description: string | null;
|
3430
3505
|
createdAt: Date;
|
@@ -3441,8 +3516,8 @@ export declare const receiveMessageContract: {
|
|
3441
3516
|
systemName: string;
|
3442
3517
|
displayName: string;
|
3443
3518
|
}[];
|
3444
|
-
}[];
|
3445
|
-
extension
|
3519
|
+
}[] | undefined;
|
3520
|
+
extension?: {
|
3446
3521
|
id: string;
|
3447
3522
|
createdAt: Date;
|
3448
3523
|
updatedAt: Date;
|
@@ -3454,21 +3529,21 @@ export declare const receiveMessageContract: {
|
|
3454
3529
|
extensionId: string | null;
|
3455
3530
|
extensionName: string;
|
3456
3531
|
telephonySignature: string | null;
|
3457
|
-
};
|
3458
|
-
} | undefined;
|
3532
|
+
} | undefined;
|
3533
|
+
} | null | undefined;
|
3459
3534
|
assignee?: {
|
3460
3535
|
id: string;
|
3461
3536
|
address: string | null;
|
3462
3537
|
name: string;
|
3463
3538
|
email: string;
|
3464
|
-
createdAt:
|
3465
|
-
updatedAt:
|
3466
|
-
deletedAt:
|
3467
|
-
emailVerifiedAt: Date | null;
|
3539
|
+
createdAt: string;
|
3540
|
+
updatedAt: string;
|
3541
|
+
deletedAt: string | null;
|
3468
3542
|
password: string;
|
3469
3543
|
phone: string | null;
|
3470
3544
|
notificationCount: number | null;
|
3471
|
-
|
3545
|
+
emailVerifiedAt?: Date | undefined;
|
3546
|
+
roles?: {
|
3472
3547
|
id: string;
|
3473
3548
|
description: string | null;
|
3474
3549
|
createdAt: Date;
|
@@ -3485,8 +3560,8 @@ export declare const receiveMessageContract: {
|
|
3485
3560
|
systemName: string;
|
3486
3561
|
displayName: string;
|
3487
3562
|
}[];
|
3488
|
-
}[];
|
3489
|
-
extension
|
3563
|
+
}[] | undefined;
|
3564
|
+
extension?: {
|
3490
3565
|
id: string;
|
3491
3566
|
createdAt: Date;
|
3492
3567
|
updatedAt: Date;
|
@@ -3498,8 +3573,8 @@ export declare const receiveMessageContract: {
|
|
3498
3573
|
extensionId: string | null;
|
3499
3574
|
extensionName: string;
|
3500
3575
|
telephonySignature: string | null;
|
3501
|
-
};
|
3502
|
-
} | undefined;
|
3576
|
+
} | undefined;
|
3577
|
+
} | null | undefined;
|
3503
3578
|
channel?: {
|
3504
3579
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
3505
3580
|
name: string;
|
@@ -3557,7 +3632,7 @@ export declare const receiveMessageContract: {
|
|
3557
3632
|
note: string | null;
|
3558
3633
|
} | null;
|
3559
3634
|
} | undefined;
|
3560
|
-
};
|
3635
|
+
} | null;
|
3561
3636
|
platformMessageId: string;
|
3562
3637
|
locale: "" | "th" | "mm" | "en" | null;
|
3563
3638
|
message?: string | undefined;
|
@@ -3622,7 +3697,7 @@ export declare const receiveMessageContract: {
|
|
3622
3697
|
extensionName: string;
|
3623
3698
|
telephonySignature: string | null;
|
3624
3699
|
};
|
3625
|
-
} | undefined;
|
3700
|
+
} | null | undefined;
|
3626
3701
|
assignee?: {
|
3627
3702
|
id: string;
|
3628
3703
|
address: string | null;
|
@@ -3666,7 +3741,7 @@ export declare const receiveMessageContract: {
|
|
3666
3741
|
extensionName: string;
|
3667
3742
|
telephonySignature: string | null;
|
3668
3743
|
};
|
3669
|
-
} | undefined;
|
3744
|
+
} | null | undefined;
|
3670
3745
|
sender?: {
|
3671
3746
|
id: string;
|
3672
3747
|
address: string | null;
|
@@ -3710,7 +3785,7 @@ export declare const receiveMessageContract: {
|
|
3710
3785
|
extensionName: string;
|
3711
3786
|
telephonySignature: string | null;
|
3712
3787
|
};
|
3713
|
-
} | undefined;
|
3788
|
+
} | null | undefined;
|
3714
3789
|
}>;
|
3715
3790
|
}, "strip", z.ZodTypeAny, {
|
3716
3791
|
message: {
|
@@ -3722,6 +3797,10 @@ export declare const receiveMessageContract: {
|
|
3722
3797
|
deletedAt: string | null;
|
3723
3798
|
platformId: string;
|
3724
3799
|
room: {
|
3800
|
+
id?: string | undefined;
|
3801
|
+
createdAt?: string | undefined;
|
3802
|
+
updatedAt?: string | undefined;
|
3803
|
+
deletedAt?: string | null | undefined;
|
3725
3804
|
lastMessage?: string | undefined;
|
3726
3805
|
handleTime?: number | undefined;
|
3727
3806
|
closeAt?: Date | undefined;
|
@@ -3732,28 +3811,25 @@ export declare const receiveMessageContract: {
|
|
3732
3811
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
3733
3812
|
platformContact?: {
|
3734
3813
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
3814
|
+
id: string;
|
3735
3815
|
metadata: {
|
3736
3816
|
id: string;
|
3737
3817
|
name: string;
|
3738
3818
|
picture?: string | undefined;
|
3739
3819
|
additionalCredentials?: any;
|
3740
3820
|
};
|
3821
|
+
createdAt: string;
|
3822
|
+
updatedAt: string;
|
3823
|
+
deletedAt: string | null;
|
3741
3824
|
channelId: string;
|
3742
3825
|
contact: {
|
3743
3826
|
id: string;
|
3744
3827
|
channel: string | null;
|
3745
3828
|
address: string | null;
|
3746
3829
|
name: string;
|
3747
|
-
|
3748
|
-
|
3749
|
-
|
3750
|
-
updatedAt: Date;
|
3751
|
-
deletedAt: Date | null;
|
3752
|
-
address?: string | null | undefined;
|
3753
|
-
name?: string | undefined;
|
3754
|
-
phone?: string | null | undefined;
|
3755
|
-
industry?: string | null | undefined;
|
3756
|
-
} | null;
|
3830
|
+
createdAt: string;
|
3831
|
+
updatedAt: string;
|
3832
|
+
deletedAt: string | null;
|
3757
3833
|
notes: string | null;
|
3758
3834
|
contactProfile: string | null;
|
3759
3835
|
socialProfileUrl: string | null;
|
@@ -3764,6 +3840,16 @@ export declare const receiveMessageContract: {
|
|
3764
3840
|
updatedAt: Date;
|
3765
3841
|
deletedAt: Date | null;
|
3766
3842
|
}[] | undefined;
|
3843
|
+
company?: {
|
3844
|
+
id: string;
|
3845
|
+
createdAt: Date;
|
3846
|
+
updatedAt: Date;
|
3847
|
+
deletedAt: Date | null;
|
3848
|
+
address?: string | null | undefined;
|
3849
|
+
name?: string | undefined;
|
3850
|
+
phone?: string | null | undefined;
|
3851
|
+
industry?: string | null | undefined;
|
3852
|
+
} | undefined;
|
3767
3853
|
customFields?: {
|
3768
3854
|
id: string;
|
3769
3855
|
createdAt: Date;
|
@@ -3847,14 +3933,14 @@ export declare const receiveMessageContract: {
|
|
3847
3933
|
address: string | null;
|
3848
3934
|
name: string;
|
3849
3935
|
email: string;
|
3850
|
-
createdAt:
|
3851
|
-
updatedAt:
|
3852
|
-
deletedAt:
|
3853
|
-
emailVerifiedAt: Date | null;
|
3936
|
+
createdAt: string;
|
3937
|
+
updatedAt: string;
|
3938
|
+
deletedAt: string | null;
|
3854
3939
|
password: string;
|
3855
3940
|
phone: string | null;
|
3856
3941
|
notificationCount: number | null;
|
3857
|
-
|
3942
|
+
emailVerifiedAt?: Date | undefined;
|
3943
|
+
roles?: {
|
3858
3944
|
id: string;
|
3859
3945
|
description: string | null;
|
3860
3946
|
createdAt: Date;
|
@@ -3871,8 +3957,8 @@ export declare const receiveMessageContract: {
|
|
3871
3957
|
systemName: string;
|
3872
3958
|
displayName: string;
|
3873
3959
|
}[];
|
3874
|
-
}[];
|
3875
|
-
extension
|
3960
|
+
}[] | undefined;
|
3961
|
+
extension?: {
|
3876
3962
|
id: string;
|
3877
3963
|
createdAt: Date;
|
3878
3964
|
updatedAt: Date;
|
@@ -3884,21 +3970,21 @@ export declare const receiveMessageContract: {
|
|
3884
3970
|
extensionId: string | null;
|
3885
3971
|
extensionName: string;
|
3886
3972
|
telephonySignature: string | null;
|
3887
|
-
};
|
3888
|
-
} | undefined;
|
3973
|
+
} | undefined;
|
3974
|
+
} | null | undefined;
|
3889
3975
|
assignee?: {
|
3890
3976
|
id: string;
|
3891
3977
|
address: string | null;
|
3892
3978
|
name: string;
|
3893
3979
|
email: string;
|
3894
|
-
createdAt:
|
3895
|
-
updatedAt:
|
3896
|
-
deletedAt:
|
3897
|
-
emailVerifiedAt: Date | null;
|
3980
|
+
createdAt: string;
|
3981
|
+
updatedAt: string;
|
3982
|
+
deletedAt: string | null;
|
3898
3983
|
password: string;
|
3899
3984
|
phone: string | null;
|
3900
3985
|
notificationCount: number | null;
|
3901
|
-
|
3986
|
+
emailVerifiedAt?: Date | undefined;
|
3987
|
+
roles?: {
|
3902
3988
|
id: string;
|
3903
3989
|
description: string | null;
|
3904
3990
|
createdAt: Date;
|
@@ -3915,8 +4001,8 @@ export declare const receiveMessageContract: {
|
|
3915
4001
|
systemName: string;
|
3916
4002
|
displayName: string;
|
3917
4003
|
}[];
|
3918
|
-
}[];
|
3919
|
-
extension
|
4004
|
+
}[] | undefined;
|
4005
|
+
extension?: {
|
3920
4006
|
id: string;
|
3921
4007
|
createdAt: Date;
|
3922
4008
|
updatedAt: Date;
|
@@ -3928,8 +4014,8 @@ export declare const receiveMessageContract: {
|
|
3928
4014
|
extensionId: string | null;
|
3929
4015
|
extensionName: string;
|
3930
4016
|
telephonySignature: string | null;
|
3931
|
-
};
|
3932
|
-
} | undefined;
|
4017
|
+
} | undefined;
|
4018
|
+
} | null | undefined;
|
3933
4019
|
channel?: {
|
3934
4020
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
3935
4021
|
name: string;
|
@@ -3987,7 +4073,7 @@ export declare const receiveMessageContract: {
|
|
3987
4073
|
note: string | null;
|
3988
4074
|
} | null;
|
3989
4075
|
} | undefined;
|
3990
|
-
};
|
4076
|
+
} | null;
|
3991
4077
|
platformMessageId: string;
|
3992
4078
|
locale: "" | "th" | "mm" | "en" | null;
|
3993
4079
|
message?: string | undefined;
|
@@ -4052,7 +4138,7 @@ export declare const receiveMessageContract: {
|
|
4052
4138
|
extensionName: string;
|
4053
4139
|
telephonySignature: string | null;
|
4054
4140
|
};
|
4055
|
-
} | undefined;
|
4141
|
+
} | null | undefined;
|
4056
4142
|
assignee?: {
|
4057
4143
|
id: string;
|
4058
4144
|
address: string | null;
|
@@ -4096,7 +4182,7 @@ export declare const receiveMessageContract: {
|
|
4096
4182
|
extensionName: string;
|
4097
4183
|
telephonySignature: string | null;
|
4098
4184
|
};
|
4099
|
-
} | undefined;
|
4185
|
+
} | null | undefined;
|
4100
4186
|
sender?: {
|
4101
4187
|
id: string;
|
4102
4188
|
address: string | null;
|
@@ -4140,7 +4226,7 @@ export declare const receiveMessageContract: {
|
|
4140
4226
|
extensionName: string;
|
4141
4227
|
telephonySignature: string | null;
|
4142
4228
|
};
|
4143
|
-
} | undefined;
|
4229
|
+
} | null | undefined;
|
4144
4230
|
};
|
4145
4231
|
}, {
|
4146
4232
|
message: {
|
@@ -4152,6 +4238,10 @@ export declare const receiveMessageContract: {
|
|
4152
4238
|
deletedAt: string | null;
|
4153
4239
|
platformId: string;
|
4154
4240
|
room: {
|
4241
|
+
id?: string | undefined;
|
4242
|
+
createdAt?: string | undefined;
|
4243
|
+
updatedAt?: string | undefined;
|
4244
|
+
deletedAt?: string | null | undefined;
|
4155
4245
|
lastMessage?: string | undefined;
|
4156
4246
|
handleTime?: number | undefined;
|
4157
4247
|
closeAt?: Date | undefined;
|
@@ -4162,28 +4252,25 @@ export declare const receiveMessageContract: {
|
|
4162
4252
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
4163
4253
|
platformContact?: {
|
4164
4254
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
4255
|
+
id: string;
|
4165
4256
|
metadata: {
|
4166
4257
|
id: string;
|
4167
4258
|
name: string;
|
4168
4259
|
picture?: string | undefined;
|
4169
4260
|
additionalCredentials?: any;
|
4170
4261
|
};
|
4262
|
+
createdAt: string;
|
4263
|
+
updatedAt: string;
|
4264
|
+
deletedAt: string | null;
|
4171
4265
|
channelId: string;
|
4172
4266
|
contact: {
|
4173
4267
|
id: string;
|
4174
4268
|
channel: string | null;
|
4175
4269
|
address: string | null;
|
4176
4270
|
name: string;
|
4177
|
-
|
4178
|
-
|
4179
|
-
|
4180
|
-
updatedAt: Date;
|
4181
|
-
deletedAt: Date | null;
|
4182
|
-
address?: string | null | undefined;
|
4183
|
-
name?: string | undefined;
|
4184
|
-
phone?: string | null | undefined;
|
4185
|
-
industry?: string | null | undefined;
|
4186
|
-
} | null;
|
4271
|
+
createdAt: string;
|
4272
|
+
updatedAt: string;
|
4273
|
+
deletedAt: string | null;
|
4187
4274
|
notes: string | null;
|
4188
4275
|
contactProfile: string | null;
|
4189
4276
|
socialProfileUrl: string | null;
|
@@ -4194,6 +4281,16 @@ export declare const receiveMessageContract: {
|
|
4194
4281
|
updatedAt: Date;
|
4195
4282
|
deletedAt: Date | null;
|
4196
4283
|
}[] | undefined;
|
4284
|
+
company?: {
|
4285
|
+
id: string;
|
4286
|
+
createdAt: Date;
|
4287
|
+
updatedAt: Date;
|
4288
|
+
deletedAt: Date | null;
|
4289
|
+
address?: string | null | undefined;
|
4290
|
+
name?: string | undefined;
|
4291
|
+
phone?: string | null | undefined;
|
4292
|
+
industry?: string | null | undefined;
|
4293
|
+
} | undefined;
|
4197
4294
|
customFields?: {
|
4198
4295
|
id: string;
|
4199
4296
|
createdAt: Date;
|
@@ -4277,14 +4374,14 @@ export declare const receiveMessageContract: {
|
|
4277
4374
|
address: string | null;
|
4278
4375
|
name: string;
|
4279
4376
|
email: string;
|
4280
|
-
createdAt:
|
4281
|
-
updatedAt:
|
4282
|
-
deletedAt:
|
4283
|
-
emailVerifiedAt: Date | null;
|
4377
|
+
createdAt: string;
|
4378
|
+
updatedAt: string;
|
4379
|
+
deletedAt: string | null;
|
4284
4380
|
password: string;
|
4285
4381
|
phone: string | null;
|
4286
4382
|
notificationCount: number | null;
|
4287
|
-
|
4383
|
+
emailVerifiedAt?: Date | undefined;
|
4384
|
+
roles?: {
|
4288
4385
|
id: string;
|
4289
4386
|
description: string | null;
|
4290
4387
|
createdAt: Date;
|
@@ -4301,8 +4398,8 @@ export declare const receiveMessageContract: {
|
|
4301
4398
|
systemName: string;
|
4302
4399
|
displayName: string;
|
4303
4400
|
}[];
|
4304
|
-
}[];
|
4305
|
-
extension
|
4401
|
+
}[] | undefined;
|
4402
|
+
extension?: {
|
4306
4403
|
id: string;
|
4307
4404
|
createdAt: Date;
|
4308
4405
|
updatedAt: Date;
|
@@ -4314,21 +4411,21 @@ export declare const receiveMessageContract: {
|
|
4314
4411
|
extensionId: string | null;
|
4315
4412
|
extensionName: string;
|
4316
4413
|
telephonySignature: string | null;
|
4317
|
-
};
|
4318
|
-
} | undefined;
|
4414
|
+
} | undefined;
|
4415
|
+
} | null | undefined;
|
4319
4416
|
assignee?: {
|
4320
4417
|
id: string;
|
4321
4418
|
address: string | null;
|
4322
4419
|
name: string;
|
4323
4420
|
email: string;
|
4324
|
-
createdAt:
|
4325
|
-
updatedAt:
|
4326
|
-
deletedAt:
|
4327
|
-
emailVerifiedAt: Date | null;
|
4421
|
+
createdAt: string;
|
4422
|
+
updatedAt: string;
|
4423
|
+
deletedAt: string | null;
|
4328
4424
|
password: string;
|
4329
4425
|
phone: string | null;
|
4330
4426
|
notificationCount: number | null;
|
4331
|
-
|
4427
|
+
emailVerifiedAt?: Date | undefined;
|
4428
|
+
roles?: {
|
4332
4429
|
id: string;
|
4333
4430
|
description: string | null;
|
4334
4431
|
createdAt: Date;
|
@@ -4345,8 +4442,8 @@ export declare const receiveMessageContract: {
|
|
4345
4442
|
systemName: string;
|
4346
4443
|
displayName: string;
|
4347
4444
|
}[];
|
4348
|
-
}[];
|
4349
|
-
extension
|
4445
|
+
}[] | undefined;
|
4446
|
+
extension?: {
|
4350
4447
|
id: string;
|
4351
4448
|
createdAt: Date;
|
4352
4449
|
updatedAt: Date;
|
@@ -4358,8 +4455,8 @@ export declare const receiveMessageContract: {
|
|
4358
4455
|
extensionId: string | null;
|
4359
4456
|
extensionName: string;
|
4360
4457
|
telephonySignature: string | null;
|
4361
|
-
};
|
4362
|
-
} | undefined;
|
4458
|
+
} | undefined;
|
4459
|
+
} | null | undefined;
|
4363
4460
|
channel?: {
|
4364
4461
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
4365
4462
|
name: string;
|
@@ -4417,7 +4514,7 @@ export declare const receiveMessageContract: {
|
|
4417
4514
|
note: string | null;
|
4418
4515
|
} | null;
|
4419
4516
|
} | undefined;
|
4420
|
-
};
|
4517
|
+
} | null;
|
4421
4518
|
platformMessageId: string;
|
4422
4519
|
locale: "" | "th" | "mm" | "en" | null;
|
4423
4520
|
message?: string | undefined;
|
@@ -4482,7 +4579,7 @@ export declare const receiveMessageContract: {
|
|
4482
4579
|
extensionName: string;
|
4483
4580
|
telephonySignature: string | null;
|
4484
4581
|
};
|
4485
|
-
} | undefined;
|
4582
|
+
} | null | undefined;
|
4486
4583
|
assignee?: {
|
4487
4584
|
id: string;
|
4488
4585
|
address: string | null;
|
@@ -4526,7 +4623,7 @@ export declare const receiveMessageContract: {
|
|
4526
4623
|
extensionName: string;
|
4527
4624
|
telephonySignature: string | null;
|
4528
4625
|
};
|
4529
|
-
} | undefined;
|
4626
|
+
} | null | undefined;
|
4530
4627
|
sender?: {
|
4531
4628
|
id: string;
|
4532
4629
|
address: string | null;
|
@@ -4570,7 +4667,7 @@ export declare const receiveMessageContract: {
|
|
4570
4667
|
extensionName: string;
|
4571
4668
|
telephonySignature: string | null;
|
4572
4669
|
};
|
4573
|
-
} | undefined;
|
4670
|
+
} | null | undefined;
|
4574
4671
|
};
|
4575
4672
|
}>;
|
4576
4673
|
summary: "Receive message";
|