@kl1/contracts 1.0.56 → 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 +81 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -8
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +403 -286
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +402 -285
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +1 -1
@@ -6613,6 +6613,10 @@ export declare const ChannelServiceResponseSchema: z.ZodObject<{
|
|
6613
6613
|
}>;
|
6614
6614
|
export declare const ReceiveMessageSchema: z.ZodObject<{
|
6615
6615
|
message: z.ZodObject<{
|
6616
|
+
id: z.ZodString;
|
6617
|
+
createdAt: z.ZodString;
|
6618
|
+
updatedAt: z.ZodString;
|
6619
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
6616
6620
|
message: z.ZodOptional<z.ZodString>;
|
6617
6621
|
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
6618
6622
|
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started"]>;
|
@@ -6625,7 +6629,11 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
6625
6629
|
url: z.ZodOptional<z.ZodString>;
|
6626
6630
|
previewUrl: z.ZodOptional<z.ZodString>;
|
6627
6631
|
imageSetId: z.ZodOptional<z.ZodString>;
|
6628
|
-
room: z.ZodObject<{
|
6632
|
+
room: z.ZodNullable<z.ZodObject<{
|
6633
|
+
id: z.ZodOptional<z.ZodString>;
|
6634
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
6635
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
6636
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
6629
6637
|
lastMessage: z.ZodOptional<z.ZodString>;
|
6630
6638
|
handleTime: z.ZodOptional<z.ZodNumber>;
|
6631
6639
|
closeAt: z.ZodOptional<z.ZodDate>;
|
@@ -6635,6 +6643,10 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
6635
6643
|
isLatest: z.ZodOptional<z.ZodBoolean>;
|
6636
6644
|
direction: z.ZodOptional<z.ZodEnum<["incoming", "outgoing", "system"]>>;
|
6637
6645
|
platformContact: z.ZodOptional<z.ZodObject<{
|
6646
|
+
id: z.ZodString;
|
6647
|
+
createdAt: z.ZodString;
|
6648
|
+
updatedAt: z.ZodString;
|
6649
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
6638
6650
|
channelId: z.ZodString;
|
6639
6651
|
socialPlatformId: z.ZodString;
|
6640
6652
|
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
@@ -6656,6 +6668,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
6656
6668
|
}>;
|
6657
6669
|
contact: z.ZodObject<{
|
6658
6670
|
id: z.ZodString;
|
6671
|
+
createdAt: z.ZodString;
|
6672
|
+
updatedAt: z.ZodString;
|
6673
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
6659
6674
|
name: z.ZodString;
|
6660
6675
|
address: z.ZodNullable<z.ZodString>;
|
6661
6676
|
channel: z.ZodNullable<z.ZodString>;
|
@@ -6681,7 +6696,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
6681
6696
|
updatedAt: Date;
|
6682
6697
|
deletedAt: Date | null;
|
6683
6698
|
}>, "many">>;
|
6684
|
-
company: z.
|
6699
|
+
company: z.ZodOptional<z.ZodObject<Omit<{
|
6685
6700
|
id: z.ZodString;
|
6686
6701
|
createdAt: z.ZodDate;
|
6687
6702
|
updatedAt: z.ZodDate;
|
@@ -7207,16 +7222,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7207
7222
|
channel: string | null;
|
7208
7223
|
address: string | null;
|
7209
7224
|
name: string;
|
7210
|
-
|
7211
|
-
|
7212
|
-
|
7213
|
-
updatedAt: Date;
|
7214
|
-
deletedAt: Date | null;
|
7215
|
-
address?: string | null | undefined;
|
7216
|
-
name?: string | undefined;
|
7217
|
-
phone?: string | null | undefined;
|
7218
|
-
industry?: string | null | undefined;
|
7219
|
-
} | null;
|
7225
|
+
createdAt: string;
|
7226
|
+
updatedAt: string;
|
7227
|
+
deletedAt: string | null;
|
7220
7228
|
notes: string | null;
|
7221
7229
|
contactProfile: string | null;
|
7222
7230
|
socialProfileUrl: string | null;
|
@@ -7227,6 +7235,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7227
7235
|
updatedAt: Date;
|
7228
7236
|
deletedAt: Date | null;
|
7229
7237
|
}[] | undefined;
|
7238
|
+
company?: {
|
7239
|
+
id: string;
|
7240
|
+
createdAt: Date;
|
7241
|
+
updatedAt: Date;
|
7242
|
+
deletedAt: Date | null;
|
7243
|
+
address?: string | null | undefined;
|
7244
|
+
name?: string | undefined;
|
7245
|
+
phone?: string | null | undefined;
|
7246
|
+
industry?: string | null | undefined;
|
7247
|
+
} | undefined;
|
7230
7248
|
customFields?: {
|
7231
7249
|
id: string;
|
7232
7250
|
createdAt: Date;
|
@@ -7307,16 +7325,9 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7307
7325
|
channel: string | null;
|
7308
7326
|
address: string | null;
|
7309
7327
|
name: string;
|
7310
|
-
|
7311
|
-
|
7312
|
-
|
7313
|
-
updatedAt: Date;
|
7314
|
-
deletedAt: Date | null;
|
7315
|
-
address?: string | null | undefined;
|
7316
|
-
name?: string | undefined;
|
7317
|
-
phone?: string | null | undefined;
|
7318
|
-
industry?: string | null | undefined;
|
7319
|
-
} | null;
|
7328
|
+
createdAt: string;
|
7329
|
+
updatedAt: string;
|
7330
|
+
deletedAt: string | null;
|
7320
7331
|
notes: string | null;
|
7321
7332
|
contactProfile: string | null;
|
7322
7333
|
socialProfileUrl: string | null;
|
@@ -7327,6 +7338,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7327
7338
|
updatedAt: Date;
|
7328
7339
|
deletedAt: Date | null;
|
7329
7340
|
}[] | undefined;
|
7341
|
+
company?: {
|
7342
|
+
id: string;
|
7343
|
+
createdAt: Date;
|
7344
|
+
updatedAt: Date;
|
7345
|
+
deletedAt: Date | null;
|
7346
|
+
address?: string | null | undefined;
|
7347
|
+
name?: string | undefined;
|
7348
|
+
phone?: string | null | undefined;
|
7349
|
+
industry?: string | null | undefined;
|
7350
|
+
} | undefined;
|
7330
7351
|
customFields?: {
|
7331
7352
|
id: string;
|
7332
7353
|
createdAt: Date;
|
@@ -7405,28 +7426,25 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7405
7426
|
}>;
|
7406
7427
|
}, "strip", z.ZodTypeAny, {
|
7407
7428
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
7429
|
+
id: string;
|
7408
7430
|
metadata: {
|
7409
7431
|
id: string;
|
7410
7432
|
name: string;
|
7411
7433
|
picture?: string | undefined;
|
7412
7434
|
additionalCredentials?: any;
|
7413
7435
|
};
|
7436
|
+
createdAt: string;
|
7437
|
+
updatedAt: string;
|
7438
|
+
deletedAt: string | null;
|
7414
7439
|
channelId: string;
|
7415
7440
|
contact: {
|
7416
7441
|
id: string;
|
7417
7442
|
channel: string | null;
|
7418
7443
|
address: string | null;
|
7419
7444
|
name: string;
|
7420
|
-
|
7421
|
-
|
7422
|
-
|
7423
|
-
updatedAt: Date;
|
7424
|
-
deletedAt: Date | null;
|
7425
|
-
address?: string | null | undefined;
|
7426
|
-
name?: string | undefined;
|
7427
|
-
phone?: string | null | undefined;
|
7428
|
-
industry?: string | null | undefined;
|
7429
|
-
} | null;
|
7445
|
+
createdAt: string;
|
7446
|
+
updatedAt: string;
|
7447
|
+
deletedAt: string | null;
|
7430
7448
|
notes: string | null;
|
7431
7449
|
contactProfile: string | null;
|
7432
7450
|
socialProfileUrl: string | null;
|
@@ -7437,6 +7455,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7437
7455
|
updatedAt: Date;
|
7438
7456
|
deletedAt: Date | null;
|
7439
7457
|
}[] | undefined;
|
7458
|
+
company?: {
|
7459
|
+
id: string;
|
7460
|
+
createdAt: Date;
|
7461
|
+
updatedAt: Date;
|
7462
|
+
deletedAt: Date | null;
|
7463
|
+
address?: string | null | undefined;
|
7464
|
+
name?: string | undefined;
|
7465
|
+
phone?: string | null | undefined;
|
7466
|
+
industry?: string | null | undefined;
|
7467
|
+
} | undefined;
|
7440
7468
|
customFields?: {
|
7441
7469
|
id: string;
|
7442
7470
|
createdAt: Date;
|
@@ -7516,28 +7544,25 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7516
7544
|
socialPlatformId: string;
|
7517
7545
|
}, {
|
7518
7546
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
7547
|
+
id: string;
|
7519
7548
|
metadata: {
|
7520
7549
|
id: string;
|
7521
7550
|
name: string;
|
7522
7551
|
picture?: string | undefined;
|
7523
7552
|
additionalCredentials?: any;
|
7524
7553
|
};
|
7554
|
+
createdAt: string;
|
7555
|
+
updatedAt: string;
|
7556
|
+
deletedAt: string | null;
|
7525
7557
|
channelId: string;
|
7526
7558
|
contact: {
|
7527
7559
|
id: string;
|
7528
7560
|
channel: string | null;
|
7529
7561
|
address: string | null;
|
7530
7562
|
name: string;
|
7531
|
-
|
7532
|
-
|
7533
|
-
|
7534
|
-
updatedAt: Date;
|
7535
|
-
deletedAt: Date | null;
|
7536
|
-
address?: string | null | undefined;
|
7537
|
-
name?: string | undefined;
|
7538
|
-
phone?: string | null | undefined;
|
7539
|
-
industry?: string | null | undefined;
|
7540
|
-
} | null;
|
7563
|
+
createdAt: string;
|
7564
|
+
updatedAt: string;
|
7565
|
+
deletedAt: string | null;
|
7541
7566
|
notes: string | null;
|
7542
7567
|
contactProfile: string | null;
|
7543
7568
|
socialProfileUrl: string | null;
|
@@ -7548,6 +7573,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7548
7573
|
updatedAt: Date;
|
7549
7574
|
deletedAt: Date | null;
|
7550
7575
|
}[] | undefined;
|
7576
|
+
company?: {
|
7577
|
+
id: string;
|
7578
|
+
createdAt: Date;
|
7579
|
+
updatedAt: Date;
|
7580
|
+
deletedAt: Date | null;
|
7581
|
+
address?: string | null | undefined;
|
7582
|
+
name?: string | undefined;
|
7583
|
+
phone?: string | null | undefined;
|
7584
|
+
industry?: string | null | undefined;
|
7585
|
+
} | undefined;
|
7551
7586
|
customFields?: {
|
7552
7587
|
id: string;
|
7553
7588
|
createdAt: Date;
|
@@ -7626,19 +7661,19 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7626
7661
|
};
|
7627
7662
|
socialPlatformId: string;
|
7628
7663
|
}>>;
|
7629
|
-
actor: z.ZodOptional<z.ZodObject<{
|
7664
|
+
actor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
7630
7665
|
id: z.ZodString;
|
7631
|
-
createdAt: z.
|
7632
|
-
updatedAt: z.
|
7633
|
-
deletedAt: z.ZodNullable<z.
|
7666
|
+
createdAt: z.ZodString;
|
7667
|
+
updatedAt: z.ZodString;
|
7668
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
7634
7669
|
name: z.ZodString;
|
7635
7670
|
email: z.ZodString;
|
7636
|
-
emailVerifiedAt: z.
|
7671
|
+
emailVerifiedAt: z.ZodOptional<z.ZodDate>;
|
7637
7672
|
password: z.ZodString;
|
7638
7673
|
address: z.ZodNullable<z.ZodString>;
|
7639
7674
|
phone: z.ZodNullable<z.ZodString>;
|
7640
7675
|
notificationCount: z.ZodNullable<z.ZodNumber>;
|
7641
|
-
roles: z.ZodArray<z.ZodObject<{
|
7676
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
7642
7677
|
id: z.ZodString;
|
7643
7678
|
createdAt: z.ZodDate;
|
7644
7679
|
updatedAt: z.ZodDate;
|
@@ -7705,8 +7740,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7705
7740
|
systemName: string;
|
7706
7741
|
displayName: string;
|
7707
7742
|
}[];
|
7708
|
-
}>, "many"
|
7709
|
-
extension: z.ZodObject<{
|
7743
|
+
}>, "many">>;
|
7744
|
+
extension: z.ZodOptional<z.ZodObject<{
|
7710
7745
|
id: z.ZodString;
|
7711
7746
|
createdAt: z.ZodDate;
|
7712
7747
|
updatedAt: z.ZodDate;
|
@@ -7742,20 +7777,20 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7742
7777
|
extensionId: string | null;
|
7743
7778
|
extensionName: string;
|
7744
7779
|
telephonySignature: string | null;
|
7745
|
-
}
|
7780
|
+
}>>;
|
7746
7781
|
}, "strip", z.ZodTypeAny, {
|
7747
7782
|
id: string;
|
7748
7783
|
address: string | null;
|
7749
7784
|
name: string;
|
7750
7785
|
email: string;
|
7751
|
-
createdAt:
|
7752
|
-
updatedAt:
|
7753
|
-
deletedAt:
|
7754
|
-
emailVerifiedAt: Date | null;
|
7786
|
+
createdAt: string;
|
7787
|
+
updatedAt: string;
|
7788
|
+
deletedAt: string | null;
|
7755
7789
|
password: string;
|
7756
7790
|
phone: string | null;
|
7757
7791
|
notificationCount: number | null;
|
7758
|
-
|
7792
|
+
emailVerifiedAt?: Date | undefined;
|
7793
|
+
roles?: {
|
7759
7794
|
id: string;
|
7760
7795
|
description: string | null;
|
7761
7796
|
createdAt: Date;
|
@@ -7772,8 +7807,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7772
7807
|
systemName: string;
|
7773
7808
|
displayName: string;
|
7774
7809
|
}[];
|
7775
|
-
}[];
|
7776
|
-
extension
|
7810
|
+
}[] | undefined;
|
7811
|
+
extension?: {
|
7777
7812
|
id: string;
|
7778
7813
|
createdAt: Date;
|
7779
7814
|
updatedAt: Date;
|
@@ -7785,20 +7820,20 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7785
7820
|
extensionId: string | null;
|
7786
7821
|
extensionName: string;
|
7787
7822
|
telephonySignature: string | null;
|
7788
|
-
};
|
7823
|
+
} | undefined;
|
7789
7824
|
}, {
|
7790
7825
|
id: string;
|
7791
7826
|
address: string | null;
|
7792
7827
|
name: string;
|
7793
7828
|
email: string;
|
7794
|
-
createdAt:
|
7795
|
-
updatedAt:
|
7796
|
-
deletedAt:
|
7797
|
-
emailVerifiedAt: Date | null;
|
7829
|
+
createdAt: string;
|
7830
|
+
updatedAt: string;
|
7831
|
+
deletedAt: string | null;
|
7798
7832
|
password: string;
|
7799
7833
|
phone: string | null;
|
7800
7834
|
notificationCount: number | null;
|
7801
|
-
|
7835
|
+
emailVerifiedAt?: Date | undefined;
|
7836
|
+
roles?: {
|
7802
7837
|
id: string;
|
7803
7838
|
description: string | null;
|
7804
7839
|
createdAt: Date;
|
@@ -7815,8 +7850,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7815
7850
|
systemName: string;
|
7816
7851
|
displayName: string;
|
7817
7852
|
}[];
|
7818
|
-
}[];
|
7819
|
-
extension
|
7853
|
+
}[] | undefined;
|
7854
|
+
extension?: {
|
7820
7855
|
id: string;
|
7821
7856
|
createdAt: Date;
|
7822
7857
|
updatedAt: Date;
|
@@ -7828,21 +7863,21 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7828
7863
|
extensionId: string | null;
|
7829
7864
|
extensionName: string;
|
7830
7865
|
telephonySignature: string | null;
|
7831
|
-
};
|
7832
|
-
}
|
7833
|
-
assignee: z.ZodOptional<z.ZodObject<{
|
7866
|
+
} | undefined;
|
7867
|
+
}>>>;
|
7868
|
+
assignee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
7834
7869
|
id: z.ZodString;
|
7835
|
-
createdAt: z.
|
7836
|
-
updatedAt: z.
|
7837
|
-
deletedAt: z.ZodNullable<z.
|
7870
|
+
createdAt: z.ZodString;
|
7871
|
+
updatedAt: z.ZodString;
|
7872
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
7838
7873
|
name: z.ZodString;
|
7839
7874
|
email: z.ZodString;
|
7840
|
-
emailVerifiedAt: z.
|
7875
|
+
emailVerifiedAt: z.ZodOptional<z.ZodDate>;
|
7841
7876
|
password: z.ZodString;
|
7842
7877
|
address: z.ZodNullable<z.ZodString>;
|
7843
7878
|
phone: z.ZodNullable<z.ZodString>;
|
7844
7879
|
notificationCount: z.ZodNullable<z.ZodNumber>;
|
7845
|
-
roles: z.ZodArray<z.ZodObject<{
|
7880
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
7846
7881
|
id: z.ZodString;
|
7847
7882
|
createdAt: z.ZodDate;
|
7848
7883
|
updatedAt: z.ZodDate;
|
@@ -7909,8 +7944,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7909
7944
|
systemName: string;
|
7910
7945
|
displayName: string;
|
7911
7946
|
}[];
|
7912
|
-
}>, "many"
|
7913
|
-
extension: z.ZodObject<{
|
7947
|
+
}>, "many">>;
|
7948
|
+
extension: z.ZodOptional<z.ZodObject<{
|
7914
7949
|
id: z.ZodString;
|
7915
7950
|
createdAt: z.ZodDate;
|
7916
7951
|
updatedAt: z.ZodDate;
|
@@ -7946,20 +7981,20 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7946
7981
|
extensionId: string | null;
|
7947
7982
|
extensionName: string;
|
7948
7983
|
telephonySignature: string | null;
|
7949
|
-
}
|
7984
|
+
}>>;
|
7950
7985
|
}, "strip", z.ZodTypeAny, {
|
7951
7986
|
id: string;
|
7952
7987
|
address: string | null;
|
7953
7988
|
name: string;
|
7954
7989
|
email: string;
|
7955
|
-
createdAt:
|
7956
|
-
updatedAt:
|
7957
|
-
deletedAt:
|
7958
|
-
emailVerifiedAt: Date | null;
|
7990
|
+
createdAt: string;
|
7991
|
+
updatedAt: string;
|
7992
|
+
deletedAt: string | null;
|
7959
7993
|
password: string;
|
7960
7994
|
phone: string | null;
|
7961
7995
|
notificationCount: number | null;
|
7962
|
-
|
7996
|
+
emailVerifiedAt?: Date | undefined;
|
7997
|
+
roles?: {
|
7963
7998
|
id: string;
|
7964
7999
|
description: string | null;
|
7965
8000
|
createdAt: Date;
|
@@ -7976,8 +8011,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7976
8011
|
systemName: string;
|
7977
8012
|
displayName: string;
|
7978
8013
|
}[];
|
7979
|
-
}[];
|
7980
|
-
extension
|
8014
|
+
}[] | undefined;
|
8015
|
+
extension?: {
|
7981
8016
|
id: string;
|
7982
8017
|
createdAt: Date;
|
7983
8018
|
updatedAt: Date;
|
@@ -7989,20 +8024,20 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
7989
8024
|
extensionId: string | null;
|
7990
8025
|
extensionName: string;
|
7991
8026
|
telephonySignature: string | null;
|
7992
|
-
};
|
8027
|
+
} | undefined;
|
7993
8028
|
}, {
|
7994
8029
|
id: string;
|
7995
8030
|
address: string | null;
|
7996
8031
|
name: string;
|
7997
8032
|
email: string;
|
7998
|
-
createdAt:
|
7999
|
-
updatedAt:
|
8000
|
-
deletedAt:
|
8001
|
-
emailVerifiedAt: Date | null;
|
8033
|
+
createdAt: string;
|
8034
|
+
updatedAt: string;
|
8035
|
+
deletedAt: string | null;
|
8002
8036
|
password: string;
|
8003
8037
|
phone: string | null;
|
8004
8038
|
notificationCount: number | null;
|
8005
|
-
|
8039
|
+
emailVerifiedAt?: Date | undefined;
|
8040
|
+
roles?: {
|
8006
8041
|
id: string;
|
8007
8042
|
description: string | null;
|
8008
8043
|
createdAt: Date;
|
@@ -8019,8 +8054,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8019
8054
|
systemName: string;
|
8020
8055
|
displayName: string;
|
8021
8056
|
}[];
|
8022
|
-
}[];
|
8023
|
-
extension
|
8057
|
+
}[] | undefined;
|
8058
|
+
extension?: {
|
8024
8059
|
id: string;
|
8025
8060
|
createdAt: Date;
|
8026
8061
|
updatedAt: Date;
|
@@ -8032,8 +8067,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8032
8067
|
extensionId: string | null;
|
8033
8068
|
extensionName: string;
|
8034
8069
|
telephonySignature: string | null;
|
8035
|
-
};
|
8036
|
-
}
|
8070
|
+
} | undefined;
|
8071
|
+
}>>>;
|
8037
8072
|
channel: z.ZodOptional<z.ZodObject<{
|
8038
8073
|
name: z.ZodString;
|
8039
8074
|
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
@@ -8268,6 +8303,10 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8268
8303
|
} | null;
|
8269
8304
|
}>>;
|
8270
8305
|
}, "strip", z.ZodTypeAny, {
|
8306
|
+
id?: string | undefined;
|
8307
|
+
createdAt?: string | undefined;
|
8308
|
+
updatedAt?: string | undefined;
|
8309
|
+
deletedAt?: string | null | undefined;
|
8271
8310
|
lastMessage?: string | undefined;
|
8272
8311
|
handleTime?: number | undefined;
|
8273
8312
|
closeAt?: Date | undefined;
|
@@ -8278,28 +8317,25 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8278
8317
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
8279
8318
|
platformContact?: {
|
8280
8319
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
8320
|
+
id: string;
|
8281
8321
|
metadata: {
|
8282
8322
|
id: string;
|
8283
8323
|
name: string;
|
8284
8324
|
picture?: string | undefined;
|
8285
8325
|
additionalCredentials?: any;
|
8286
8326
|
};
|
8327
|
+
createdAt: string;
|
8328
|
+
updatedAt: string;
|
8329
|
+
deletedAt: string | null;
|
8287
8330
|
channelId: string;
|
8288
8331
|
contact: {
|
8289
8332
|
id: string;
|
8290
8333
|
channel: string | null;
|
8291
8334
|
address: string | null;
|
8292
8335
|
name: string;
|
8293
|
-
|
8294
|
-
|
8295
|
-
|
8296
|
-
updatedAt: Date;
|
8297
|
-
deletedAt: Date | null;
|
8298
|
-
address?: string | null | undefined;
|
8299
|
-
name?: string | undefined;
|
8300
|
-
phone?: string | null | undefined;
|
8301
|
-
industry?: string | null | undefined;
|
8302
|
-
} | null;
|
8336
|
+
createdAt: string;
|
8337
|
+
updatedAt: string;
|
8338
|
+
deletedAt: string | null;
|
8303
8339
|
notes: string | null;
|
8304
8340
|
contactProfile: string | null;
|
8305
8341
|
socialProfileUrl: string | null;
|
@@ -8310,6 +8346,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8310
8346
|
updatedAt: Date;
|
8311
8347
|
deletedAt: Date | null;
|
8312
8348
|
}[] | undefined;
|
8349
|
+
company?: {
|
8350
|
+
id: string;
|
8351
|
+
createdAt: Date;
|
8352
|
+
updatedAt: Date;
|
8353
|
+
deletedAt: Date | null;
|
8354
|
+
address?: string | null | undefined;
|
8355
|
+
name?: string | undefined;
|
8356
|
+
phone?: string | null | undefined;
|
8357
|
+
industry?: string | null | undefined;
|
8358
|
+
} | undefined;
|
8313
8359
|
customFields?: {
|
8314
8360
|
id: string;
|
8315
8361
|
createdAt: Date;
|
@@ -8393,14 +8439,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8393
8439
|
address: string | null;
|
8394
8440
|
name: string;
|
8395
8441
|
email: string;
|
8396
|
-
createdAt:
|
8397
|
-
updatedAt:
|
8398
|
-
deletedAt:
|
8399
|
-
emailVerifiedAt: Date | null;
|
8442
|
+
createdAt: string;
|
8443
|
+
updatedAt: string;
|
8444
|
+
deletedAt: string | null;
|
8400
8445
|
password: string;
|
8401
8446
|
phone: string | null;
|
8402
8447
|
notificationCount: number | null;
|
8403
|
-
|
8448
|
+
emailVerifiedAt?: Date | undefined;
|
8449
|
+
roles?: {
|
8404
8450
|
id: string;
|
8405
8451
|
description: string | null;
|
8406
8452
|
createdAt: Date;
|
@@ -8417,8 +8463,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8417
8463
|
systemName: string;
|
8418
8464
|
displayName: string;
|
8419
8465
|
}[];
|
8420
|
-
}[];
|
8421
|
-
extension
|
8466
|
+
}[] | undefined;
|
8467
|
+
extension?: {
|
8422
8468
|
id: string;
|
8423
8469
|
createdAt: Date;
|
8424
8470
|
updatedAt: Date;
|
@@ -8430,21 +8476,21 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8430
8476
|
extensionId: string | null;
|
8431
8477
|
extensionName: string;
|
8432
8478
|
telephonySignature: string | null;
|
8433
|
-
};
|
8434
|
-
} | undefined;
|
8479
|
+
} | undefined;
|
8480
|
+
} | null | undefined;
|
8435
8481
|
assignee?: {
|
8436
8482
|
id: string;
|
8437
8483
|
address: string | null;
|
8438
8484
|
name: string;
|
8439
8485
|
email: string;
|
8440
|
-
createdAt:
|
8441
|
-
updatedAt:
|
8442
|
-
deletedAt:
|
8443
|
-
emailVerifiedAt: Date | null;
|
8486
|
+
createdAt: string;
|
8487
|
+
updatedAt: string;
|
8488
|
+
deletedAt: string | null;
|
8444
8489
|
password: string;
|
8445
8490
|
phone: string | null;
|
8446
8491
|
notificationCount: number | null;
|
8447
|
-
|
8492
|
+
emailVerifiedAt?: Date | undefined;
|
8493
|
+
roles?: {
|
8448
8494
|
id: string;
|
8449
8495
|
description: string | null;
|
8450
8496
|
createdAt: Date;
|
@@ -8461,8 +8507,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8461
8507
|
systemName: string;
|
8462
8508
|
displayName: string;
|
8463
8509
|
}[];
|
8464
|
-
}[];
|
8465
|
-
extension
|
8510
|
+
}[] | undefined;
|
8511
|
+
extension?: {
|
8466
8512
|
id: string;
|
8467
8513
|
createdAt: Date;
|
8468
8514
|
updatedAt: Date;
|
@@ -8474,8 +8520,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8474
8520
|
extensionId: string | null;
|
8475
8521
|
extensionName: string;
|
8476
8522
|
telephonySignature: string | null;
|
8477
|
-
};
|
8478
|
-
} | undefined;
|
8523
|
+
} | undefined;
|
8524
|
+
} | null | undefined;
|
8479
8525
|
channel?: {
|
8480
8526
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
8481
8527
|
name: string;
|
@@ -8534,6 +8580,10 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8534
8580
|
} | null;
|
8535
8581
|
} | undefined;
|
8536
8582
|
}, {
|
8583
|
+
id?: string | undefined;
|
8584
|
+
createdAt?: string | undefined;
|
8585
|
+
updatedAt?: string | undefined;
|
8586
|
+
deletedAt?: string | null | undefined;
|
8537
8587
|
lastMessage?: string | undefined;
|
8538
8588
|
handleTime?: number | undefined;
|
8539
8589
|
closeAt?: Date | undefined;
|
@@ -8544,28 +8594,25 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8544
8594
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
8545
8595
|
platformContact?: {
|
8546
8596
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
8597
|
+
id: string;
|
8547
8598
|
metadata: {
|
8548
8599
|
id: string;
|
8549
8600
|
name: string;
|
8550
8601
|
picture?: string | undefined;
|
8551
8602
|
additionalCredentials?: any;
|
8552
8603
|
};
|
8604
|
+
createdAt: string;
|
8605
|
+
updatedAt: string;
|
8606
|
+
deletedAt: string | null;
|
8553
8607
|
channelId: string;
|
8554
8608
|
contact: {
|
8555
8609
|
id: string;
|
8556
8610
|
channel: string | null;
|
8557
8611
|
address: string | null;
|
8558
8612
|
name: string;
|
8559
|
-
|
8560
|
-
|
8561
|
-
|
8562
|
-
updatedAt: Date;
|
8563
|
-
deletedAt: Date | null;
|
8564
|
-
address?: string | null | undefined;
|
8565
|
-
name?: string | undefined;
|
8566
|
-
phone?: string | null | undefined;
|
8567
|
-
industry?: string | null | undefined;
|
8568
|
-
} | null;
|
8613
|
+
createdAt: string;
|
8614
|
+
updatedAt: string;
|
8615
|
+
deletedAt: string | null;
|
8569
8616
|
notes: string | null;
|
8570
8617
|
contactProfile: string | null;
|
8571
8618
|
socialProfileUrl: string | null;
|
@@ -8576,6 +8623,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8576
8623
|
updatedAt: Date;
|
8577
8624
|
deletedAt: Date | null;
|
8578
8625
|
}[] | undefined;
|
8626
|
+
company?: {
|
8627
|
+
id: string;
|
8628
|
+
createdAt: Date;
|
8629
|
+
updatedAt: Date;
|
8630
|
+
deletedAt: Date | null;
|
8631
|
+
address?: string | null | undefined;
|
8632
|
+
name?: string | undefined;
|
8633
|
+
phone?: string | null | undefined;
|
8634
|
+
industry?: string | null | undefined;
|
8635
|
+
} | undefined;
|
8579
8636
|
customFields?: {
|
8580
8637
|
id: string;
|
8581
8638
|
createdAt: Date;
|
@@ -8659,14 +8716,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8659
8716
|
address: string | null;
|
8660
8717
|
name: string;
|
8661
8718
|
email: string;
|
8662
|
-
createdAt:
|
8663
|
-
updatedAt:
|
8664
|
-
deletedAt:
|
8665
|
-
emailVerifiedAt: Date | null;
|
8719
|
+
createdAt: string;
|
8720
|
+
updatedAt: string;
|
8721
|
+
deletedAt: string | null;
|
8666
8722
|
password: string;
|
8667
8723
|
phone: string | null;
|
8668
8724
|
notificationCount: number | null;
|
8669
|
-
|
8725
|
+
emailVerifiedAt?: Date | undefined;
|
8726
|
+
roles?: {
|
8670
8727
|
id: string;
|
8671
8728
|
description: string | null;
|
8672
8729
|
createdAt: Date;
|
@@ -8683,8 +8740,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8683
8740
|
systemName: string;
|
8684
8741
|
displayName: string;
|
8685
8742
|
}[];
|
8686
|
-
}[];
|
8687
|
-
extension
|
8743
|
+
}[] | undefined;
|
8744
|
+
extension?: {
|
8688
8745
|
id: string;
|
8689
8746
|
createdAt: Date;
|
8690
8747
|
updatedAt: Date;
|
@@ -8696,21 +8753,21 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8696
8753
|
extensionId: string | null;
|
8697
8754
|
extensionName: string;
|
8698
8755
|
telephonySignature: string | null;
|
8699
|
-
};
|
8700
|
-
} | undefined;
|
8756
|
+
} | undefined;
|
8757
|
+
} | null | undefined;
|
8701
8758
|
assignee?: {
|
8702
8759
|
id: string;
|
8703
8760
|
address: string | null;
|
8704
8761
|
name: string;
|
8705
8762
|
email: string;
|
8706
|
-
createdAt:
|
8707
|
-
updatedAt:
|
8708
|
-
deletedAt:
|
8709
|
-
emailVerifiedAt: Date | null;
|
8763
|
+
createdAt: string;
|
8764
|
+
updatedAt: string;
|
8765
|
+
deletedAt: string | null;
|
8710
8766
|
password: string;
|
8711
8767
|
phone: string | null;
|
8712
8768
|
notificationCount: number | null;
|
8713
|
-
|
8769
|
+
emailVerifiedAt?: Date | undefined;
|
8770
|
+
roles?: {
|
8714
8771
|
id: string;
|
8715
8772
|
description: string | null;
|
8716
8773
|
createdAt: Date;
|
@@ -8727,8 +8784,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8727
8784
|
systemName: string;
|
8728
8785
|
displayName: string;
|
8729
8786
|
}[];
|
8730
|
-
}[];
|
8731
|
-
extension
|
8787
|
+
}[] | undefined;
|
8788
|
+
extension?: {
|
8732
8789
|
id: string;
|
8733
8790
|
createdAt: Date;
|
8734
8791
|
updatedAt: Date;
|
@@ -8740,8 +8797,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8740
8797
|
extensionId: string | null;
|
8741
8798
|
extensionName: string;
|
8742
8799
|
telephonySignature: string | null;
|
8743
|
-
};
|
8744
|
-
} | undefined;
|
8800
|
+
} | undefined;
|
8801
|
+
} | null | undefined;
|
8745
8802
|
channel?: {
|
8746
8803
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
8747
8804
|
name: string;
|
@@ -8799,7 +8856,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8799
8856
|
note: string | null;
|
8800
8857
|
} | null;
|
8801
8858
|
} | undefined;
|
8802
|
-
}
|
8859
|
+
}>>;
|
8803
8860
|
upload: z.ZodOptional<z.ZodObject<{
|
8804
8861
|
bucketName: z.ZodNullable<z.ZodString>;
|
8805
8862
|
fileName: z.ZodNullable<z.ZodString>;
|
@@ -8834,7 +8891,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
8834
8891
|
fileUrl?: string | undefined;
|
8835
8892
|
status?: string | undefined;
|
8836
8893
|
}>>;
|
8837
|
-
actor: z.ZodOptional<z.ZodObject<{
|
8894
|
+
actor: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
8838
8895
|
id: z.ZodString;
|
8839
8896
|
createdAt: z.ZodDate;
|
8840
8897
|
updatedAt: z.ZodDate;
|
@@ -9037,8 +9094,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9037
9094
|
extensionName: string;
|
9038
9095
|
telephonySignature: string | null;
|
9039
9096
|
};
|
9040
|
-
}
|
9041
|
-
assignee: z.ZodOptional<z.ZodObject<{
|
9097
|
+
}>>>;
|
9098
|
+
assignee: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
9042
9099
|
id: z.ZodString;
|
9043
9100
|
createdAt: z.ZodDate;
|
9044
9101
|
updatedAt: z.ZodDate;
|
@@ -9241,8 +9298,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9241
9298
|
extensionName: string;
|
9242
9299
|
telephonySignature: string | null;
|
9243
9300
|
};
|
9244
|
-
}
|
9245
|
-
sender: z.ZodOptional<z.ZodObject<{
|
9301
|
+
}>>>;
|
9302
|
+
sender: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
9246
9303
|
id: z.ZodString;
|
9247
9304
|
createdAt: z.ZodDate;
|
9248
9305
|
updatedAt: z.ZodDate;
|
@@ -9445,12 +9502,20 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9445
9502
|
extensionName: string;
|
9446
9503
|
telephonySignature: string | null;
|
9447
9504
|
};
|
9448
|
-
}
|
9505
|
+
}>>>;
|
9449
9506
|
}, "strip", z.ZodTypeAny, {
|
9450
9507
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
9508
|
+
id: string;
|
9451
9509
|
direction: "incoming" | "outgoing" | "system";
|
9510
|
+
createdAt: string;
|
9511
|
+
updatedAt: string;
|
9512
|
+
deletedAt: string | null;
|
9452
9513
|
platformId: string;
|
9453
9514
|
room: {
|
9515
|
+
id?: string | undefined;
|
9516
|
+
createdAt?: string | undefined;
|
9517
|
+
updatedAt?: string | undefined;
|
9518
|
+
deletedAt?: string | null | undefined;
|
9454
9519
|
lastMessage?: string | undefined;
|
9455
9520
|
handleTime?: number | undefined;
|
9456
9521
|
closeAt?: Date | undefined;
|
@@ -9461,28 +9526,25 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9461
9526
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
9462
9527
|
platformContact?: {
|
9463
9528
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
9529
|
+
id: string;
|
9464
9530
|
metadata: {
|
9465
9531
|
id: string;
|
9466
9532
|
name: string;
|
9467
9533
|
picture?: string | undefined;
|
9468
9534
|
additionalCredentials?: any;
|
9469
9535
|
};
|
9536
|
+
createdAt: string;
|
9537
|
+
updatedAt: string;
|
9538
|
+
deletedAt: string | null;
|
9470
9539
|
channelId: string;
|
9471
9540
|
contact: {
|
9472
9541
|
id: string;
|
9473
9542
|
channel: string | null;
|
9474
9543
|
address: string | null;
|
9475
9544
|
name: string;
|
9476
|
-
|
9477
|
-
|
9478
|
-
|
9479
|
-
updatedAt: Date;
|
9480
|
-
deletedAt: Date | null;
|
9481
|
-
address?: string | null | undefined;
|
9482
|
-
name?: string | undefined;
|
9483
|
-
phone?: string | null | undefined;
|
9484
|
-
industry?: string | null | undefined;
|
9485
|
-
} | null;
|
9545
|
+
createdAt: string;
|
9546
|
+
updatedAt: string;
|
9547
|
+
deletedAt: string | null;
|
9486
9548
|
notes: string | null;
|
9487
9549
|
contactProfile: string | null;
|
9488
9550
|
socialProfileUrl: string | null;
|
@@ -9493,6 +9555,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9493
9555
|
updatedAt: Date;
|
9494
9556
|
deletedAt: Date | null;
|
9495
9557
|
}[] | undefined;
|
9558
|
+
company?: {
|
9559
|
+
id: string;
|
9560
|
+
createdAt: Date;
|
9561
|
+
updatedAt: Date;
|
9562
|
+
deletedAt: Date | null;
|
9563
|
+
address?: string | null | undefined;
|
9564
|
+
name?: string | undefined;
|
9565
|
+
phone?: string | null | undefined;
|
9566
|
+
industry?: string | null | undefined;
|
9567
|
+
} | undefined;
|
9496
9568
|
customFields?: {
|
9497
9569
|
id: string;
|
9498
9570
|
createdAt: Date;
|
@@ -9576,14 +9648,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9576
9648
|
address: string | null;
|
9577
9649
|
name: string;
|
9578
9650
|
email: string;
|
9579
|
-
createdAt:
|
9580
|
-
updatedAt:
|
9581
|
-
deletedAt:
|
9582
|
-
emailVerifiedAt: Date | null;
|
9651
|
+
createdAt: string;
|
9652
|
+
updatedAt: string;
|
9653
|
+
deletedAt: string | null;
|
9583
9654
|
password: string;
|
9584
9655
|
phone: string | null;
|
9585
9656
|
notificationCount: number | null;
|
9586
|
-
|
9657
|
+
emailVerifiedAt?: Date | undefined;
|
9658
|
+
roles?: {
|
9587
9659
|
id: string;
|
9588
9660
|
description: string | null;
|
9589
9661
|
createdAt: Date;
|
@@ -9600,8 +9672,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9600
9672
|
systemName: string;
|
9601
9673
|
displayName: string;
|
9602
9674
|
}[];
|
9603
|
-
}[];
|
9604
|
-
extension
|
9675
|
+
}[] | undefined;
|
9676
|
+
extension?: {
|
9605
9677
|
id: string;
|
9606
9678
|
createdAt: Date;
|
9607
9679
|
updatedAt: Date;
|
@@ -9613,21 +9685,21 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9613
9685
|
extensionId: string | null;
|
9614
9686
|
extensionName: string;
|
9615
9687
|
telephonySignature: string | null;
|
9616
|
-
};
|
9617
|
-
} | undefined;
|
9688
|
+
} | undefined;
|
9689
|
+
} | null | undefined;
|
9618
9690
|
assignee?: {
|
9619
9691
|
id: string;
|
9620
9692
|
address: string | null;
|
9621
9693
|
name: string;
|
9622
9694
|
email: string;
|
9623
|
-
createdAt:
|
9624
|
-
updatedAt:
|
9625
|
-
deletedAt:
|
9626
|
-
emailVerifiedAt: Date | null;
|
9695
|
+
createdAt: string;
|
9696
|
+
updatedAt: string;
|
9697
|
+
deletedAt: string | null;
|
9627
9698
|
password: string;
|
9628
9699
|
phone: string | null;
|
9629
9700
|
notificationCount: number | null;
|
9630
|
-
|
9701
|
+
emailVerifiedAt?: Date | undefined;
|
9702
|
+
roles?: {
|
9631
9703
|
id: string;
|
9632
9704
|
description: string | null;
|
9633
9705
|
createdAt: Date;
|
@@ -9644,8 +9716,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9644
9716
|
systemName: string;
|
9645
9717
|
displayName: string;
|
9646
9718
|
}[];
|
9647
|
-
}[];
|
9648
|
-
extension
|
9719
|
+
}[] | undefined;
|
9720
|
+
extension?: {
|
9649
9721
|
id: string;
|
9650
9722
|
createdAt: Date;
|
9651
9723
|
updatedAt: Date;
|
@@ -9657,8 +9729,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9657
9729
|
extensionId: string | null;
|
9658
9730
|
extensionName: string;
|
9659
9731
|
telephonySignature: string | null;
|
9660
|
-
};
|
9661
|
-
} | undefined;
|
9732
|
+
} | undefined;
|
9733
|
+
} | null | undefined;
|
9662
9734
|
channel?: {
|
9663
9735
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
9664
9736
|
name: string;
|
@@ -9716,7 +9788,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9716
9788
|
note: string | null;
|
9717
9789
|
} | null;
|
9718
9790
|
} | undefined;
|
9719
|
-
};
|
9791
|
+
} | null;
|
9720
9792
|
platformMessageId: string;
|
9721
9793
|
locale: "" | "th" | "mm" | "en" | null;
|
9722
9794
|
message?: string | undefined;
|
@@ -9781,7 +9853,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9781
9853
|
extensionName: string;
|
9782
9854
|
telephonySignature: string | null;
|
9783
9855
|
};
|
9784
|
-
} | undefined;
|
9856
|
+
} | null | undefined;
|
9785
9857
|
assignee?: {
|
9786
9858
|
id: string;
|
9787
9859
|
address: string | null;
|
@@ -9825,7 +9897,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9825
9897
|
extensionName: string;
|
9826
9898
|
telephonySignature: string | null;
|
9827
9899
|
};
|
9828
|
-
} | undefined;
|
9900
|
+
} | null | undefined;
|
9829
9901
|
sender?: {
|
9830
9902
|
id: string;
|
9831
9903
|
address: string | null;
|
@@ -9869,12 +9941,20 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9869
9941
|
extensionName: string;
|
9870
9942
|
telephonySignature: string | null;
|
9871
9943
|
};
|
9872
|
-
} | undefined;
|
9944
|
+
} | null | undefined;
|
9873
9945
|
}, {
|
9874
9946
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
9947
|
+
id: string;
|
9875
9948
|
direction: "incoming" | "outgoing" | "system";
|
9949
|
+
createdAt: string;
|
9950
|
+
updatedAt: string;
|
9951
|
+
deletedAt: string | null;
|
9876
9952
|
platformId: string;
|
9877
9953
|
room: {
|
9954
|
+
id?: string | undefined;
|
9955
|
+
createdAt?: string | undefined;
|
9956
|
+
updatedAt?: string | undefined;
|
9957
|
+
deletedAt?: string | null | undefined;
|
9878
9958
|
lastMessage?: string | undefined;
|
9879
9959
|
handleTime?: number | undefined;
|
9880
9960
|
closeAt?: Date | undefined;
|
@@ -9885,28 +9965,25 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9885
9965
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
9886
9966
|
platformContact?: {
|
9887
9967
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
9968
|
+
id: string;
|
9888
9969
|
metadata: {
|
9889
9970
|
id: string;
|
9890
9971
|
name: string;
|
9891
9972
|
picture?: string | undefined;
|
9892
9973
|
additionalCredentials?: any;
|
9893
9974
|
};
|
9975
|
+
createdAt: string;
|
9976
|
+
updatedAt: string;
|
9977
|
+
deletedAt: string | null;
|
9894
9978
|
channelId: string;
|
9895
9979
|
contact: {
|
9896
9980
|
id: string;
|
9897
9981
|
channel: string | null;
|
9898
9982
|
address: string | null;
|
9899
9983
|
name: string;
|
9900
|
-
|
9901
|
-
|
9902
|
-
|
9903
|
-
updatedAt: Date;
|
9904
|
-
deletedAt: Date | null;
|
9905
|
-
address?: string | null | undefined;
|
9906
|
-
name?: string | undefined;
|
9907
|
-
phone?: string | null | undefined;
|
9908
|
-
industry?: string | null | undefined;
|
9909
|
-
} | null;
|
9984
|
+
createdAt: string;
|
9985
|
+
updatedAt: string;
|
9986
|
+
deletedAt: string | null;
|
9910
9987
|
notes: string | null;
|
9911
9988
|
contactProfile: string | null;
|
9912
9989
|
socialProfileUrl: string | null;
|
@@ -9917,6 +9994,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
9917
9994
|
updatedAt: Date;
|
9918
9995
|
deletedAt: Date | null;
|
9919
9996
|
}[] | undefined;
|
9997
|
+
company?: {
|
9998
|
+
id: string;
|
9999
|
+
createdAt: Date;
|
10000
|
+
updatedAt: Date;
|
10001
|
+
deletedAt: Date | null;
|
10002
|
+
address?: string | null | undefined;
|
10003
|
+
name?: string | undefined;
|
10004
|
+
phone?: string | null | undefined;
|
10005
|
+
industry?: string | null | undefined;
|
10006
|
+
} | undefined;
|
9920
10007
|
customFields?: {
|
9921
10008
|
id: string;
|
9922
10009
|
createdAt: Date;
|
@@ -10000,14 +10087,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10000
10087
|
address: string | null;
|
10001
10088
|
name: string;
|
10002
10089
|
email: string;
|
10003
|
-
createdAt:
|
10004
|
-
updatedAt:
|
10005
|
-
deletedAt:
|
10006
|
-
emailVerifiedAt: Date | null;
|
10090
|
+
createdAt: string;
|
10091
|
+
updatedAt: string;
|
10092
|
+
deletedAt: string | null;
|
10007
10093
|
password: string;
|
10008
10094
|
phone: string | null;
|
10009
10095
|
notificationCount: number | null;
|
10010
|
-
|
10096
|
+
emailVerifiedAt?: Date | undefined;
|
10097
|
+
roles?: {
|
10011
10098
|
id: string;
|
10012
10099
|
description: string | null;
|
10013
10100
|
createdAt: Date;
|
@@ -10024,8 +10111,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10024
10111
|
systemName: string;
|
10025
10112
|
displayName: string;
|
10026
10113
|
}[];
|
10027
|
-
}[];
|
10028
|
-
extension
|
10114
|
+
}[] | undefined;
|
10115
|
+
extension?: {
|
10029
10116
|
id: string;
|
10030
10117
|
createdAt: Date;
|
10031
10118
|
updatedAt: Date;
|
@@ -10037,21 +10124,21 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10037
10124
|
extensionId: string | null;
|
10038
10125
|
extensionName: string;
|
10039
10126
|
telephonySignature: string | null;
|
10040
|
-
};
|
10041
|
-
} | undefined;
|
10127
|
+
} | undefined;
|
10128
|
+
} | null | undefined;
|
10042
10129
|
assignee?: {
|
10043
10130
|
id: string;
|
10044
10131
|
address: string | null;
|
10045
10132
|
name: string;
|
10046
10133
|
email: string;
|
10047
|
-
createdAt:
|
10048
|
-
updatedAt:
|
10049
|
-
deletedAt:
|
10050
|
-
emailVerifiedAt: Date | null;
|
10134
|
+
createdAt: string;
|
10135
|
+
updatedAt: string;
|
10136
|
+
deletedAt: string | null;
|
10051
10137
|
password: string;
|
10052
10138
|
phone: string | null;
|
10053
10139
|
notificationCount: number | null;
|
10054
|
-
|
10140
|
+
emailVerifiedAt?: Date | undefined;
|
10141
|
+
roles?: {
|
10055
10142
|
id: string;
|
10056
10143
|
description: string | null;
|
10057
10144
|
createdAt: Date;
|
@@ -10068,8 +10155,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10068
10155
|
systemName: string;
|
10069
10156
|
displayName: string;
|
10070
10157
|
}[];
|
10071
|
-
}[];
|
10072
|
-
extension
|
10158
|
+
}[] | undefined;
|
10159
|
+
extension?: {
|
10073
10160
|
id: string;
|
10074
10161
|
createdAt: Date;
|
10075
10162
|
updatedAt: Date;
|
@@ -10081,8 +10168,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10081
10168
|
extensionId: string | null;
|
10082
10169
|
extensionName: string;
|
10083
10170
|
telephonySignature: string | null;
|
10084
|
-
};
|
10085
|
-
} | undefined;
|
10171
|
+
} | undefined;
|
10172
|
+
} | null | undefined;
|
10086
10173
|
channel?: {
|
10087
10174
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
10088
10175
|
name: string;
|
@@ -10140,7 +10227,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10140
10227
|
note: string | null;
|
10141
10228
|
} | null;
|
10142
10229
|
} | undefined;
|
10143
|
-
};
|
10230
|
+
} | null;
|
10144
10231
|
platformMessageId: string;
|
10145
10232
|
locale: "" | "th" | "mm" | "en" | null;
|
10146
10233
|
message?: string | undefined;
|
@@ -10205,7 +10292,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10205
10292
|
extensionName: string;
|
10206
10293
|
telephonySignature: string | null;
|
10207
10294
|
};
|
10208
|
-
} | undefined;
|
10295
|
+
} | null | undefined;
|
10209
10296
|
assignee?: {
|
10210
10297
|
id: string;
|
10211
10298
|
address: string | null;
|
@@ -10249,7 +10336,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10249
10336
|
extensionName: string;
|
10250
10337
|
telephonySignature: string | null;
|
10251
10338
|
};
|
10252
|
-
} | undefined;
|
10339
|
+
} | null | undefined;
|
10253
10340
|
sender?: {
|
10254
10341
|
id: string;
|
10255
10342
|
address: string | null;
|
@@ -10293,14 +10380,22 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10293
10380
|
extensionName: string;
|
10294
10381
|
telephonySignature: string | null;
|
10295
10382
|
};
|
10296
|
-
} | undefined;
|
10383
|
+
} | null | undefined;
|
10297
10384
|
}>;
|
10298
10385
|
}, "strip", z.ZodTypeAny, {
|
10299
10386
|
message: {
|
10300
10387
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
10388
|
+
id: string;
|
10301
10389
|
direction: "incoming" | "outgoing" | "system";
|
10390
|
+
createdAt: string;
|
10391
|
+
updatedAt: string;
|
10392
|
+
deletedAt: string | null;
|
10302
10393
|
platformId: string;
|
10303
10394
|
room: {
|
10395
|
+
id?: string | undefined;
|
10396
|
+
createdAt?: string | undefined;
|
10397
|
+
updatedAt?: string | undefined;
|
10398
|
+
deletedAt?: string | null | undefined;
|
10304
10399
|
lastMessage?: string | undefined;
|
10305
10400
|
handleTime?: number | undefined;
|
10306
10401
|
closeAt?: Date | undefined;
|
@@ -10311,28 +10406,25 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10311
10406
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
10312
10407
|
platformContact?: {
|
10313
10408
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
10409
|
+
id: string;
|
10314
10410
|
metadata: {
|
10315
10411
|
id: string;
|
10316
10412
|
name: string;
|
10317
10413
|
picture?: string | undefined;
|
10318
10414
|
additionalCredentials?: any;
|
10319
10415
|
};
|
10416
|
+
createdAt: string;
|
10417
|
+
updatedAt: string;
|
10418
|
+
deletedAt: string | null;
|
10320
10419
|
channelId: string;
|
10321
10420
|
contact: {
|
10322
10421
|
id: string;
|
10323
10422
|
channel: string | null;
|
10324
10423
|
address: string | null;
|
10325
10424
|
name: string;
|
10326
|
-
|
10327
|
-
|
10328
|
-
|
10329
|
-
updatedAt: Date;
|
10330
|
-
deletedAt: Date | null;
|
10331
|
-
address?: string | null | undefined;
|
10332
|
-
name?: string | undefined;
|
10333
|
-
phone?: string | null | undefined;
|
10334
|
-
industry?: string | null | undefined;
|
10335
|
-
} | null;
|
10425
|
+
createdAt: string;
|
10426
|
+
updatedAt: string;
|
10427
|
+
deletedAt: string | null;
|
10336
10428
|
notes: string | null;
|
10337
10429
|
contactProfile: string | null;
|
10338
10430
|
socialProfileUrl: string | null;
|
@@ -10343,6 +10435,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10343
10435
|
updatedAt: Date;
|
10344
10436
|
deletedAt: Date | null;
|
10345
10437
|
}[] | undefined;
|
10438
|
+
company?: {
|
10439
|
+
id: string;
|
10440
|
+
createdAt: Date;
|
10441
|
+
updatedAt: Date;
|
10442
|
+
deletedAt: Date | null;
|
10443
|
+
address?: string | null | undefined;
|
10444
|
+
name?: string | undefined;
|
10445
|
+
phone?: string | null | undefined;
|
10446
|
+
industry?: string | null | undefined;
|
10447
|
+
} | undefined;
|
10346
10448
|
customFields?: {
|
10347
10449
|
id: string;
|
10348
10450
|
createdAt: Date;
|
@@ -10426,14 +10528,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10426
10528
|
address: string | null;
|
10427
10529
|
name: string;
|
10428
10530
|
email: string;
|
10429
|
-
createdAt:
|
10430
|
-
updatedAt:
|
10431
|
-
deletedAt:
|
10432
|
-
emailVerifiedAt: Date | null;
|
10531
|
+
createdAt: string;
|
10532
|
+
updatedAt: string;
|
10533
|
+
deletedAt: string | null;
|
10433
10534
|
password: string;
|
10434
10535
|
phone: string | null;
|
10435
10536
|
notificationCount: number | null;
|
10436
|
-
|
10537
|
+
emailVerifiedAt?: Date | undefined;
|
10538
|
+
roles?: {
|
10437
10539
|
id: string;
|
10438
10540
|
description: string | null;
|
10439
10541
|
createdAt: Date;
|
@@ -10450,8 +10552,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10450
10552
|
systemName: string;
|
10451
10553
|
displayName: string;
|
10452
10554
|
}[];
|
10453
|
-
}[];
|
10454
|
-
extension
|
10555
|
+
}[] | undefined;
|
10556
|
+
extension?: {
|
10455
10557
|
id: string;
|
10456
10558
|
createdAt: Date;
|
10457
10559
|
updatedAt: Date;
|
@@ -10463,21 +10565,21 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10463
10565
|
extensionId: string | null;
|
10464
10566
|
extensionName: string;
|
10465
10567
|
telephonySignature: string | null;
|
10466
|
-
};
|
10467
|
-
} | undefined;
|
10568
|
+
} | undefined;
|
10569
|
+
} | null | undefined;
|
10468
10570
|
assignee?: {
|
10469
10571
|
id: string;
|
10470
10572
|
address: string | null;
|
10471
10573
|
name: string;
|
10472
10574
|
email: string;
|
10473
|
-
createdAt:
|
10474
|
-
updatedAt:
|
10475
|
-
deletedAt:
|
10476
|
-
emailVerifiedAt: Date | null;
|
10575
|
+
createdAt: string;
|
10576
|
+
updatedAt: string;
|
10577
|
+
deletedAt: string | null;
|
10477
10578
|
password: string;
|
10478
10579
|
phone: string | null;
|
10479
10580
|
notificationCount: number | null;
|
10480
|
-
|
10581
|
+
emailVerifiedAt?: Date | undefined;
|
10582
|
+
roles?: {
|
10481
10583
|
id: string;
|
10482
10584
|
description: string | null;
|
10483
10585
|
createdAt: Date;
|
@@ -10494,8 +10596,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10494
10596
|
systemName: string;
|
10495
10597
|
displayName: string;
|
10496
10598
|
}[];
|
10497
|
-
}[];
|
10498
|
-
extension
|
10599
|
+
}[] | undefined;
|
10600
|
+
extension?: {
|
10499
10601
|
id: string;
|
10500
10602
|
createdAt: Date;
|
10501
10603
|
updatedAt: Date;
|
@@ -10507,8 +10609,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10507
10609
|
extensionId: string | null;
|
10508
10610
|
extensionName: string;
|
10509
10611
|
telephonySignature: string | null;
|
10510
|
-
};
|
10511
|
-
} | undefined;
|
10612
|
+
} | undefined;
|
10613
|
+
} | null | undefined;
|
10512
10614
|
channel?: {
|
10513
10615
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
10514
10616
|
name: string;
|
@@ -10566,7 +10668,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10566
10668
|
note: string | null;
|
10567
10669
|
} | null;
|
10568
10670
|
} | undefined;
|
10569
|
-
};
|
10671
|
+
} | null;
|
10570
10672
|
platformMessageId: string;
|
10571
10673
|
locale: "" | "th" | "mm" | "en" | null;
|
10572
10674
|
message?: string | undefined;
|
@@ -10631,7 +10733,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10631
10733
|
extensionName: string;
|
10632
10734
|
telephonySignature: string | null;
|
10633
10735
|
};
|
10634
|
-
} | undefined;
|
10736
|
+
} | null | undefined;
|
10635
10737
|
assignee?: {
|
10636
10738
|
id: string;
|
10637
10739
|
address: string | null;
|
@@ -10675,7 +10777,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10675
10777
|
extensionName: string;
|
10676
10778
|
telephonySignature: string | null;
|
10677
10779
|
};
|
10678
|
-
} | undefined;
|
10780
|
+
} | null | undefined;
|
10679
10781
|
sender?: {
|
10680
10782
|
id: string;
|
10681
10783
|
address: string | null;
|
@@ -10719,14 +10821,22 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10719
10821
|
extensionName: string;
|
10720
10822
|
telephonySignature: string | null;
|
10721
10823
|
};
|
10722
|
-
} | undefined;
|
10824
|
+
} | null | undefined;
|
10723
10825
|
};
|
10724
10826
|
}, {
|
10725
10827
|
message: {
|
10726
10828
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started";
|
10829
|
+
id: string;
|
10727
10830
|
direction: "incoming" | "outgoing" | "system";
|
10831
|
+
createdAt: string;
|
10832
|
+
updatedAt: string;
|
10833
|
+
deletedAt: string | null;
|
10728
10834
|
platformId: string;
|
10729
10835
|
room: {
|
10836
|
+
id?: string | undefined;
|
10837
|
+
createdAt?: string | undefined;
|
10838
|
+
updatedAt?: string | undefined;
|
10839
|
+
deletedAt?: string | null | undefined;
|
10730
10840
|
lastMessage?: string | undefined;
|
10731
10841
|
handleTime?: number | undefined;
|
10732
10842
|
closeAt?: Date | undefined;
|
@@ -10737,28 +10847,25 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10737
10847
|
direction?: "incoming" | "outgoing" | "system" | undefined;
|
10738
10848
|
platformContact?: {
|
10739
10849
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
10850
|
+
id: string;
|
10740
10851
|
metadata: {
|
10741
10852
|
id: string;
|
10742
10853
|
name: string;
|
10743
10854
|
picture?: string | undefined;
|
10744
10855
|
additionalCredentials?: any;
|
10745
10856
|
};
|
10857
|
+
createdAt: string;
|
10858
|
+
updatedAt: string;
|
10859
|
+
deletedAt: string | null;
|
10746
10860
|
channelId: string;
|
10747
10861
|
contact: {
|
10748
10862
|
id: string;
|
10749
10863
|
channel: string | null;
|
10750
10864
|
address: string | null;
|
10751
10865
|
name: string;
|
10752
|
-
|
10753
|
-
|
10754
|
-
|
10755
|
-
updatedAt: Date;
|
10756
|
-
deletedAt: Date | null;
|
10757
|
-
address?: string | null | undefined;
|
10758
|
-
name?: string | undefined;
|
10759
|
-
phone?: string | null | undefined;
|
10760
|
-
industry?: string | null | undefined;
|
10761
|
-
} | null;
|
10866
|
+
createdAt: string;
|
10867
|
+
updatedAt: string;
|
10868
|
+
deletedAt: string | null;
|
10762
10869
|
notes: string | null;
|
10763
10870
|
contactProfile: string | null;
|
10764
10871
|
socialProfileUrl: string | null;
|
@@ -10769,6 +10876,16 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10769
10876
|
updatedAt: Date;
|
10770
10877
|
deletedAt: Date | null;
|
10771
10878
|
}[] | undefined;
|
10879
|
+
company?: {
|
10880
|
+
id: string;
|
10881
|
+
createdAt: Date;
|
10882
|
+
updatedAt: Date;
|
10883
|
+
deletedAt: Date | null;
|
10884
|
+
address?: string | null | undefined;
|
10885
|
+
name?: string | undefined;
|
10886
|
+
phone?: string | null | undefined;
|
10887
|
+
industry?: string | null | undefined;
|
10888
|
+
} | undefined;
|
10772
10889
|
customFields?: {
|
10773
10890
|
id: string;
|
10774
10891
|
createdAt: Date;
|
@@ -10852,14 +10969,14 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10852
10969
|
address: string | null;
|
10853
10970
|
name: string;
|
10854
10971
|
email: string;
|
10855
|
-
createdAt:
|
10856
|
-
updatedAt:
|
10857
|
-
deletedAt:
|
10858
|
-
emailVerifiedAt: Date | null;
|
10972
|
+
createdAt: string;
|
10973
|
+
updatedAt: string;
|
10974
|
+
deletedAt: string | null;
|
10859
10975
|
password: string;
|
10860
10976
|
phone: string | null;
|
10861
10977
|
notificationCount: number | null;
|
10862
|
-
|
10978
|
+
emailVerifiedAt?: Date | undefined;
|
10979
|
+
roles?: {
|
10863
10980
|
id: string;
|
10864
10981
|
description: string | null;
|
10865
10982
|
createdAt: Date;
|
@@ -10876,8 +10993,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10876
10993
|
systemName: string;
|
10877
10994
|
displayName: string;
|
10878
10995
|
}[];
|
10879
|
-
}[];
|
10880
|
-
extension
|
10996
|
+
}[] | undefined;
|
10997
|
+
extension?: {
|
10881
10998
|
id: string;
|
10882
10999
|
createdAt: Date;
|
10883
11000
|
updatedAt: Date;
|
@@ -10889,21 +11006,21 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10889
11006
|
extensionId: string | null;
|
10890
11007
|
extensionName: string;
|
10891
11008
|
telephonySignature: string | null;
|
10892
|
-
};
|
10893
|
-
} | undefined;
|
11009
|
+
} | undefined;
|
11010
|
+
} | null | undefined;
|
10894
11011
|
assignee?: {
|
10895
11012
|
id: string;
|
10896
11013
|
address: string | null;
|
10897
11014
|
name: string;
|
10898
11015
|
email: string;
|
10899
|
-
createdAt:
|
10900
|
-
updatedAt:
|
10901
|
-
deletedAt:
|
10902
|
-
emailVerifiedAt: Date | null;
|
11016
|
+
createdAt: string;
|
11017
|
+
updatedAt: string;
|
11018
|
+
deletedAt: string | null;
|
10903
11019
|
password: string;
|
10904
11020
|
phone: string | null;
|
10905
11021
|
notificationCount: number | null;
|
10906
|
-
|
11022
|
+
emailVerifiedAt?: Date | undefined;
|
11023
|
+
roles?: {
|
10907
11024
|
id: string;
|
10908
11025
|
description: string | null;
|
10909
11026
|
createdAt: Date;
|
@@ -10920,8 +11037,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10920
11037
|
systemName: string;
|
10921
11038
|
displayName: string;
|
10922
11039
|
}[];
|
10923
|
-
}[];
|
10924
|
-
extension
|
11040
|
+
}[] | undefined;
|
11041
|
+
extension?: {
|
10925
11042
|
id: string;
|
10926
11043
|
createdAt: Date;
|
10927
11044
|
updatedAt: Date;
|
@@ -10933,8 +11050,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10933
11050
|
extensionId: string | null;
|
10934
11051
|
extensionName: string;
|
10935
11052
|
telephonySignature: string | null;
|
10936
|
-
};
|
10937
|
-
} | undefined;
|
11053
|
+
} | undefined;
|
11054
|
+
} | null | undefined;
|
10938
11055
|
channel?: {
|
10939
11056
|
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
10940
11057
|
name: string;
|
@@ -10992,7 +11109,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
10992
11109
|
note: string | null;
|
10993
11110
|
} | null;
|
10994
11111
|
} | undefined;
|
10995
|
-
};
|
11112
|
+
} | null;
|
10996
11113
|
platformMessageId: string;
|
10997
11114
|
locale: "" | "th" | "mm" | "en" | null;
|
10998
11115
|
message?: string | undefined;
|
@@ -11057,7 +11174,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
11057
11174
|
extensionName: string;
|
11058
11175
|
telephonySignature: string | null;
|
11059
11176
|
};
|
11060
|
-
} | undefined;
|
11177
|
+
} | null | undefined;
|
11061
11178
|
assignee?: {
|
11062
11179
|
id: string;
|
11063
11180
|
address: string | null;
|
@@ -11101,7 +11218,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
11101
11218
|
extensionName: string;
|
11102
11219
|
telephonySignature: string | null;
|
11103
11220
|
};
|
11104
|
-
} | undefined;
|
11221
|
+
} | null | undefined;
|
11105
11222
|
sender?: {
|
11106
11223
|
id: string;
|
11107
11224
|
address: string | null;
|
@@ -11145,7 +11262,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
|
|
11145
11262
|
extensionName: string;
|
11146
11263
|
telephonySignature: string | null;
|
11147
11264
|
};
|
11148
|
-
} | undefined;
|
11265
|
+
} | null | undefined;
|
11149
11266
|
};
|
11150
11267
|
}>;
|
11151
11268
|
//# sourceMappingURL=validation.d.ts.map
|