@kl1/contracts 1.0.52 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/index.js +1298 -1133
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1296 -1133
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/channel/index.d.ts +2273 -1438
  6. package/dist/src/channel/index.d.ts.map +1 -1
  7. package/dist/src/chat/index.d.ts +6678 -1560
  8. package/dist/src/chat/index.d.ts.map +1 -1
  9. package/dist/src/chat/schema.d.ts +180 -180
  10. package/dist/src/chat/validation.d.ts +371 -440
  11. package/dist/src/chat/validation.d.ts.map +1 -1
  12. package/dist/src/comment/index.d.ts +3026 -1010
  13. package/dist/src/comment/index.d.ts.map +1 -1
  14. package/dist/src/comment/schema.d.ts +780 -188
  15. package/dist/src/comment/schema.d.ts.map +1 -1
  16. package/dist/src/contact/index.d.ts +296 -296
  17. package/dist/src/contact/schema.d.ts +20 -20
  18. package/dist/src/contact/validation.d.ts +150 -150
  19. package/dist/src/contract.d.ts +20591 -8915
  20. package/dist/src/contract.d.ts.map +1 -1
  21. package/dist/src/cx-log/index.d.ts +240 -240
  22. package/dist/src/cx-log/schema.d.ts +180 -180
  23. package/dist/src/index.d.ts +2 -0
  24. package/dist/src/index.d.ts.map +1 -1
  25. package/dist/src/instagram/index.d.ts +100 -100
  26. package/dist/src/line/index.d.ts +301 -6
  27. package/dist/src/line/index.d.ts.map +1 -1
  28. package/dist/src/line/schema.d.ts +301 -6
  29. package/dist/src/line/schema.d.ts.map +1 -1
  30. package/dist/src/messenger/index.d.ts +100 -100
  31. package/dist/src/telephony-cdr/index.d.ts +180 -180
  32. package/dist/src/telephony-cdr/schema.d.ts +40 -40
  33. package/dist/src/ticket/index.d.ts +4128 -1040
  34. package/dist/src/ticket/index.d.ts.map +1 -1
  35. package/dist/src/ticket/schema.d.ts +512 -40
  36. package/dist/src/ticket/schema.d.ts.map +1 -1
  37. package/dist/src/{mail/mail-server.d.ts → upload/index.d.ts} +72 -91
  38. package/dist/src/upload/index.d.ts.map +1 -0
  39. package/dist/src/upload/schema.d.ts +14 -0
  40. package/dist/src/upload/schema.d.ts.map +1 -1
  41. package/dist/src/upload/validation.d.ts +2 -0
  42. package/dist/src/upload/validation.d.ts.map +1 -0
  43. package/dist/src/user-presence-status-log/index.d.ts +63 -0
  44. package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/src/app/index.d.ts +0 -17
  47. package/dist/src/app/index.d.ts.map +0 -1
  48. package/dist/src/mail/mail-server.d.ts.map +0 -1
  49. package/dist/src/platform-contact/schema.d.ts +0 -30
  50. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -1945,16 +1945,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
1945
1945
  };
1946
1946
  }[];
1947
1947
  }[];
1948
- notes: string | null;
1949
- contactProfile: string | null;
1950
- socialProfileUrl: string | null;
1951
- tags: {
1952
- id: string;
1953
- name: string;
1954
- createdAt: Date;
1955
- updatedAt: Date;
1956
- deletedAt: Date | null;
1957
- }[];
1958
1948
  company: {
1959
1949
  id: string;
1960
1950
  createdAt: Date;
@@ -1965,6 +1955,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
1965
1955
  phone?: string | null | undefined;
1966
1956
  industry?: string | null | undefined;
1967
1957
  } | null;
1958
+ notes: string | null;
1959
+ contactProfile: string | null;
1960
+ socialProfileUrl: string | null;
1961
+ tags: {
1962
+ id: string;
1963
+ name: string;
1964
+ createdAt: Date;
1965
+ updatedAt: Date;
1966
+ deletedAt: Date | null;
1967
+ }[];
1968
1968
  contactEmails: {
1969
1969
  id: string;
1970
1970
  isPrimary: boolean;
@@ -2048,16 +2048,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2048
2048
  };
2049
2049
  }[];
2050
2050
  }[];
2051
- notes: string | null;
2052
- contactProfile: string | null;
2053
- socialProfileUrl: string | null;
2054
- tags: {
2055
- id: string;
2056
- name: string;
2057
- createdAt: Date;
2058
- updatedAt: Date;
2059
- deletedAt: Date | null;
2060
- }[];
2061
2051
  company: {
2062
2052
  id: string;
2063
2053
  createdAt: Date;
@@ -2068,6 +2058,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2068
2058
  phone?: string | null | undefined;
2069
2059
  industry?: string | null | undefined;
2070
2060
  } | null;
2061
+ notes: string | null;
2062
+ contactProfile: string | null;
2063
+ socialProfileUrl: string | null;
2064
+ tags: {
2065
+ id: string;
2066
+ name: string;
2067
+ createdAt: Date;
2068
+ updatedAt: Date;
2069
+ deletedAt: Date | null;
2070
+ }[];
2071
2071
  contactEmails: {
2072
2072
  id: string;
2073
2073
  isPrimary: boolean;
@@ -2165,16 +2165,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2165
2165
  };
2166
2166
  }[];
2167
2167
  }[];
2168
- notes: string | null;
2169
- contactProfile: string | null;
2170
- socialProfileUrl: string | null;
2171
- tags: {
2172
- id: string;
2173
- name: string;
2174
- createdAt: Date;
2175
- updatedAt: Date;
2176
- deletedAt: Date | null;
2177
- }[];
2178
2168
  company: {
2179
2169
  id: string;
2180
2170
  createdAt: Date;
@@ -2185,6 +2175,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2185
2175
  phone?: string | null | undefined;
2186
2176
  industry?: string | null | undefined;
2187
2177
  } | null;
2178
+ notes: string | null;
2179
+ contactProfile: string | null;
2180
+ socialProfileUrl: string | null;
2181
+ tags: {
2182
+ id: string;
2183
+ name: string;
2184
+ createdAt: Date;
2185
+ updatedAt: Date;
2186
+ deletedAt: Date | null;
2187
+ }[];
2188
2188
  contactEmails: {
2189
2189
  id: string;
2190
2190
  isPrimary: boolean;
@@ -2283,16 +2283,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2283
2283
  };
2284
2284
  }[];
2285
2285
  }[];
2286
- notes: string | null;
2287
- contactProfile: string | null;
2288
- socialProfileUrl: string | null;
2289
- tags: {
2290
- id: string;
2291
- name: string;
2292
- createdAt: Date;
2293
- updatedAt: Date;
2294
- deletedAt: Date | null;
2295
- }[];
2296
2286
  company: {
2297
2287
  id: string;
2298
2288
  createdAt: Date;
@@ -2303,6 +2293,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
2303
2293
  phone?: string | null | undefined;
2304
2294
  industry?: string | null | undefined;
2305
2295
  } | null;
2296
+ notes: string | null;
2297
+ contactProfile: string | null;
2298
+ socialProfileUrl: string | null;
2299
+ tags: {
2300
+ id: string;
2301
+ name: string;
2302
+ createdAt: Date;
2303
+ updatedAt: Date;
2304
+ deletedAt: Date | null;
2305
+ }[];
2306
2306
  contactEmails: {
2307
2307
  id: string;
2308
2308
  isPrimary: boolean;
@@ -3374,16 +3374,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3374
3374
  };
3375
3375
  }[];
3376
3376
  }[];
3377
- notes: string | null;
3378
- contactProfile: string | null;
3379
- socialProfileUrl: string | null;
3380
- tags: {
3381
- id: string;
3382
- name: string;
3383
- createdAt: Date;
3384
- updatedAt: Date;
3385
- deletedAt: Date | null;
3386
- }[];
3387
3377
  company: {
3388
3378
  id: string;
3389
3379
  createdAt: Date;
@@ -3394,6 +3384,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3394
3384
  phone?: string | null | undefined;
3395
3385
  industry?: string | null | undefined;
3396
3386
  } | null;
3387
+ notes: string | null;
3388
+ contactProfile: string | null;
3389
+ socialProfileUrl: string | null;
3390
+ tags: {
3391
+ id: string;
3392
+ name: string;
3393
+ createdAt: Date;
3394
+ updatedAt: Date;
3395
+ deletedAt: Date | null;
3396
+ }[];
3397
3397
  contactEmails: {
3398
3398
  id: string;
3399
3399
  isPrimary: boolean;
@@ -3693,16 +3693,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3693
3693
  };
3694
3694
  }[];
3695
3695
  }[];
3696
- notes: string | null;
3697
- contactProfile: string | null;
3698
- socialProfileUrl: string | null;
3699
- tags: {
3700
- id: string;
3701
- name: string;
3702
- createdAt: Date;
3703
- updatedAt: Date;
3704
- deletedAt: Date | null;
3705
- }[];
3706
3696
  company: {
3707
3697
  id: string;
3708
3698
  createdAt: Date;
@@ -3713,6 +3703,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
3713
3703
  phone?: string | null | undefined;
3714
3704
  industry?: string | null | undefined;
3715
3705
  } | null;
3706
+ notes: string | null;
3707
+ contactProfile: string | null;
3708
+ socialProfileUrl: string | null;
3709
+ tags: {
3710
+ id: string;
3711
+ name: string;
3712
+ createdAt: Date;
3713
+ updatedAt: Date;
3714
+ deletedAt: Date | null;
3715
+ }[];
3716
3716
  contactEmails: {
3717
3717
  id: string;
3718
3718
  isPrimary: boolean;
@@ -4769,16 +4769,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4769
4769
  };
4770
4770
  }[];
4771
4771
  }[];
4772
- notes: string | null;
4773
- contactProfile: string | null;
4774
- socialProfileUrl: string | null;
4775
- tags: {
4776
- id: string;
4777
- name: string;
4778
- createdAt: Date;
4779
- updatedAt: Date;
4780
- deletedAt: Date | null;
4781
- }[];
4782
4772
  company: {
4783
4773
  id: string;
4784
4774
  createdAt: Date;
@@ -4789,6 +4779,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
4789
4779
  phone?: string | null | undefined;
4790
4780
  industry?: string | null | undefined;
4791
4781
  } | null;
4782
+ notes: string | null;
4783
+ contactProfile: string | null;
4784
+ socialProfileUrl: string | null;
4785
+ tags: {
4786
+ id: string;
4787
+ name: string;
4788
+ createdAt: Date;
4789
+ updatedAt: Date;
4790
+ deletedAt: Date | null;
4791
+ }[];
4792
4792
  contactEmails: {
4793
4793
  id: string;
4794
4794
  isPrimary: boolean;
@@ -5251,16 +5251,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5251
5251
  };
5252
5252
  }[];
5253
5253
  }[];
5254
- notes: string | null;
5255
- contactProfile: string | null;
5256
- socialProfileUrl: string | null;
5257
- tags: {
5258
- id: string;
5259
- name: string;
5260
- createdAt: Date;
5261
- updatedAt: Date;
5262
- deletedAt: Date | null;
5263
- }[];
5264
5254
  company: {
5265
5255
  id: string;
5266
5256
  createdAt: Date;
@@ -5271,6 +5261,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5271
5261
  phone?: string | null | undefined;
5272
5262
  industry?: string | null | undefined;
5273
5263
  } | null;
5264
+ notes: string | null;
5265
+ contactProfile: string | null;
5266
+ socialProfileUrl: string | null;
5267
+ tags: {
5268
+ id: string;
5269
+ name: string;
5270
+ createdAt: Date;
5271
+ updatedAt: Date;
5272
+ deletedAt: Date | null;
5273
+ }[];
5274
5274
  contactEmails: {
5275
5275
  id: string;
5276
5276
  isPrimary: boolean;
@@ -5735,16 +5735,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5735
5735
  };
5736
5736
  }[];
5737
5737
  }[];
5738
- notes: string | null;
5739
- contactProfile: string | null;
5740
- socialProfileUrl: string | null;
5741
- tags: {
5742
- id: string;
5743
- name: string;
5744
- createdAt: Date;
5745
- updatedAt: Date;
5746
- deletedAt: Date | null;
5747
- }[];
5748
5738
  company: {
5749
5739
  id: string;
5750
5740
  createdAt: Date;
@@ -5755,6 +5745,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
5755
5745
  phone?: string | null | undefined;
5756
5746
  industry?: string | null | undefined;
5757
5747
  } | null;
5748
+ notes: string | null;
5749
+ contactProfile: string | null;
5750
+ socialProfileUrl: string | null;
5751
+ tags: {
5752
+ id: string;
5753
+ name: string;
5754
+ createdAt: Date;
5755
+ updatedAt: Date;
5756
+ deletedAt: Date | null;
5757
+ }[];
5758
5758
  contactEmails: {
5759
5759
  id: string;
5760
5760
  isPrimary: boolean;
@@ -6220,16 +6220,6 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6220
6220
  };
6221
6221
  }[];
6222
6222
  }[];
6223
- notes: string | null;
6224
- contactProfile: string | null;
6225
- socialProfileUrl: string | null;
6226
- tags: {
6227
- id: string;
6228
- name: string;
6229
- createdAt: Date;
6230
- updatedAt: Date;
6231
- deletedAt: Date | null;
6232
- }[];
6233
6223
  company: {
6234
6224
  id: string;
6235
6225
  createdAt: Date;
@@ -6240,6 +6230,16 @@ export declare const SendMessageResponseSchema: z.ZodObject<{
6240
6230
  phone?: string | null | undefined;
6241
6231
  industry?: string | null | undefined;
6242
6232
  } | null;
6233
+ notes: string | null;
6234
+ contactProfile: string | null;
6235
+ socialProfileUrl: string | null;
6236
+ tags: {
6237
+ id: string;
6238
+ name: string;
6239
+ createdAt: Date;
6240
+ updatedAt: Date;
6241
+ deletedAt: Date | null;
6242
+ }[];
6243
6243
  contactEmails: {
6244
6244
  id: string;
6245
6245
  isPrimary: boolean;
@@ -6635,10 +6635,6 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
6635
6635
  isLatest: z.ZodOptional<z.ZodBoolean>;
6636
6636
  direction: z.ZodOptional<z.ZodEnum<["incoming", "outgoing", "system"]>>;
6637
6637
  platformContact: z.ZodOptional<z.ZodObject<{
6638
- id: z.ZodString;
6639
- createdAt: z.ZodDate;
6640
- updatedAt: z.ZodDate;
6641
- deletedAt: z.ZodNullable<z.ZodDate>;
6642
6638
  channelId: z.ZodString;
6643
6639
  socialPlatformId: z.ZodString;
6644
6640
  type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
@@ -6660,16 +6656,13 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
6660
6656
  }>;
6661
6657
  contact: z.ZodObject<{
6662
6658
  id: z.ZodString;
6663
- createdAt: z.ZodDate;
6664
- updatedAt: z.ZodDate;
6665
- deletedAt: z.ZodNullable<z.ZodDate>;
6666
6659
  name: z.ZodString;
6667
6660
  address: z.ZodNullable<z.ZodString>;
6668
6661
  channel: z.ZodNullable<z.ZodString>;
6669
6662
  notes: z.ZodNullable<z.ZodString>;
6670
6663
  contactProfile: z.ZodNullable<z.ZodString>;
6671
6664
  socialProfileUrl: z.ZodNullable<z.ZodString>;
6672
- tags: z.ZodArray<z.ZodObject<{
6665
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
6673
6666
  id: z.ZodString;
6674
6667
  createdAt: z.ZodDate;
6675
6668
  updatedAt: z.ZodDate;
@@ -6687,7 +6680,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
6687
6680
  createdAt: Date;
6688
6681
  updatedAt: Date;
6689
6682
  deletedAt: Date | null;
6690
- }>, "many">;
6683
+ }>, "many">>;
6691
6684
  company: z.ZodNullable<z.ZodObject<Omit<{
6692
6685
  id: z.ZodString;
6693
6686
  createdAt: z.ZodDate;
@@ -6853,7 +6846,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
6853
6846
  phone?: string | null | undefined;
6854
6847
  industry?: string | null | undefined;
6855
6848
  }>>;
6856
- customFields: z.ZodArray<z.ZodObject<{
6849
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
6857
6850
  id: z.ZodString;
6858
6851
  createdAt: z.ZodDate;
6859
6852
  updatedAt: z.ZodDate;
@@ -7104,8 +7097,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7104
7097
  status?: string | undefined;
7105
7098
  };
7106
7099
  }[];
7107
- }>, "many">;
7108
- contactEmails: z.ZodArray<z.ZodObject<{
7100
+ }>, "many">>;
7101
+ contactEmails: z.ZodOptional<z.ZodArray<z.ZodObject<{
7109
7102
  id: z.ZodString;
7110
7103
  createdAt: z.ZodDate;
7111
7104
  updatedAt: z.ZodDate;
@@ -7126,8 +7119,8 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7126
7119
  createdAt: Date;
7127
7120
  updatedAt: Date;
7128
7121
  deletedAt: Date | null;
7129
- }>, "many">;
7130
- contactPhones: z.ZodArray<z.ZodObject<{
7122
+ }>, "many">>;
7123
+ contactPhones: z.ZodOptional<z.ZodArray<z.ZodObject<{
7131
7124
  id: z.ZodString;
7132
7125
  createdAt: z.ZodDate;
7133
7126
  updatedAt: z.ZodDate;
@@ -7148,7 +7141,7 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7148
7141
  updatedAt: Date;
7149
7142
  deletedAt: Date | null;
7150
7143
  phone: string;
7151
- }>, "many">;
7144
+ }>, "many">>;
7152
7145
  activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7153
7146
  id: z.ZodString;
7154
7147
  createdAt: z.ZodDate;
@@ -7214,10 +7207,27 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7214
7207
  channel: string | null;
7215
7208
  address: string | null;
7216
7209
  name: string;
7217
- createdAt: Date;
7218
- updatedAt: Date;
7219
- deletedAt: Date | null;
7220
- customFields: {
7210
+ company: {
7211
+ id: string;
7212
+ createdAt: Date;
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;
7220
+ notes: string | null;
7221
+ contactProfile: string | null;
7222
+ socialProfileUrl: string | null;
7223
+ tags?: {
7224
+ id: string;
7225
+ name: string;
7226
+ createdAt: Date;
7227
+ updatedAt: Date;
7228
+ deletedAt: Date | null;
7229
+ }[] | undefined;
7230
+ customFields?: {
7221
7231
  id: string;
7222
7232
  createdAt: Date;
7223
7233
  updatedAt: Date;
@@ -7259,43 +7269,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7259
7269
  status?: string | undefined;
7260
7270
  };
7261
7271
  }[];
7262
- }[];
7263
- notes: string | null;
7264
- contactProfile: string | null;
7265
- socialProfileUrl: string | null;
7266
- tags: {
7272
+ }[] | undefined;
7273
+ contactEmails?: {
7267
7274
  id: string;
7268
- name: string;
7275
+ isPrimary: boolean;
7276
+ email: string;
7269
7277
  createdAt: Date;
7270
7278
  updatedAt: Date;
7271
7279
  deletedAt: Date | null;
7272
- }[];
7273
- company: {
7280
+ }[] | undefined;
7281
+ contactPhones?: {
7274
7282
  id: string;
7275
- createdAt: Date;
7276
- updatedAt: Date;
7277
- deletedAt: Date | null;
7278
- address?: string | null | undefined;
7279
- name?: string | undefined;
7280
- phone?: string | null | undefined;
7281
- industry?: string | null | undefined;
7282
- } | null;
7283
- contactEmails: {
7284
- id: string;
7285
- isPrimary: boolean;
7286
- email: string;
7287
- createdAt: Date;
7288
- updatedAt: Date;
7289
- deletedAt: Date | null;
7290
- }[];
7291
- contactPhones: {
7292
- id: string;
7293
- isPrimary: boolean;
7283
+ isPrimary: boolean;
7294
7284
  createdAt: Date;
7295
7285
  updatedAt: Date;
7296
7286
  deletedAt: Date | null;
7297
7287
  phone: string;
7298
- }[];
7288
+ }[] | undefined;
7299
7289
  activityLogs?: {
7300
7290
  id: string;
7301
7291
  description: string;
@@ -7317,10 +7307,27 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7317
7307
  channel: string | null;
7318
7308
  address: string | null;
7319
7309
  name: string;
7320
- createdAt: Date;
7321
- updatedAt: Date;
7322
- deletedAt: Date | null;
7323
- customFields: {
7310
+ company: {
7311
+ id: string;
7312
+ createdAt: Date;
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;
7320
+ notes: string | null;
7321
+ contactProfile: string | null;
7322
+ socialProfileUrl: string | null;
7323
+ tags?: {
7324
+ id: string;
7325
+ name: string;
7326
+ createdAt: Date;
7327
+ updatedAt: Date;
7328
+ deletedAt: Date | null;
7329
+ }[] | undefined;
7330
+ customFields?: {
7324
7331
  id: string;
7325
7332
  createdAt: Date;
7326
7333
  updatedAt: Date;
@@ -7362,43 +7369,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7362
7369
  status?: string | undefined;
7363
7370
  };
7364
7371
  }[];
7365
- }[];
7366
- notes: string | null;
7367
- contactProfile: string | null;
7368
- socialProfileUrl: string | null;
7369
- tags: {
7370
- id: string;
7371
- name: string;
7372
- createdAt: Date;
7373
- updatedAt: Date;
7374
- deletedAt: Date | null;
7375
- }[];
7376
- company: {
7377
- id: string;
7378
- createdAt: Date;
7379
- updatedAt: Date;
7380
- deletedAt: Date | null;
7381
- address?: string | null | undefined;
7382
- name?: string | undefined;
7383
- phone?: string | null | undefined;
7384
- industry?: string | null | undefined;
7385
- } | null;
7386
- contactEmails: {
7372
+ }[] | undefined;
7373
+ contactEmails?: {
7387
7374
  id: string;
7388
7375
  isPrimary: boolean;
7389
7376
  email: string;
7390
7377
  createdAt: Date;
7391
7378
  updatedAt: Date;
7392
7379
  deletedAt: Date | null;
7393
- }[];
7394
- contactPhones: {
7380
+ }[] | undefined;
7381
+ contactPhones?: {
7395
7382
  id: string;
7396
7383
  isPrimary: boolean;
7397
7384
  createdAt: Date;
7398
7385
  updatedAt: Date;
7399
7386
  deletedAt: Date | null;
7400
7387
  phone: string;
7401
- }[];
7388
+ }[] | undefined;
7402
7389
  activityLogs?: {
7403
7390
  id: string;
7404
7391
  description: string;
@@ -7418,26 +7405,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7418
7405
  }>;
7419
7406
  }, "strip", z.ZodTypeAny, {
7420
7407
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
7421
- id: string;
7422
7408
  metadata: {
7423
7409
  id: string;
7424
7410
  name: string;
7425
7411
  picture?: string | undefined;
7426
7412
  additionalCredentials?: any;
7427
7413
  };
7428
- createdAt: Date;
7429
- updatedAt: Date;
7430
- deletedAt: Date | null;
7431
7414
  channelId: string;
7432
7415
  contact: {
7433
7416
  id: string;
7434
7417
  channel: string | null;
7435
7418
  address: string | null;
7436
7419
  name: string;
7437
- createdAt: Date;
7438
- updatedAt: Date;
7439
- deletedAt: Date | null;
7440
- customFields: {
7420
+ company: {
7421
+ id: string;
7422
+ createdAt: Date;
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;
7430
+ notes: string | null;
7431
+ contactProfile: string | null;
7432
+ socialProfileUrl: string | null;
7433
+ tags?: {
7434
+ id: string;
7435
+ name: string;
7436
+ createdAt: Date;
7437
+ updatedAt: Date;
7438
+ deletedAt: Date | null;
7439
+ }[] | undefined;
7440
+ customFields?: {
7441
7441
  id: string;
7442
7442
  createdAt: Date;
7443
7443
  updatedAt: Date;
@@ -7479,43 +7479,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7479
7479
  status?: string | undefined;
7480
7480
  };
7481
7481
  }[];
7482
- }[];
7483
- notes: string | null;
7484
- contactProfile: string | null;
7485
- socialProfileUrl: string | null;
7486
- tags: {
7487
- id: string;
7488
- name: string;
7489
- createdAt: Date;
7490
- updatedAt: Date;
7491
- deletedAt: Date | null;
7492
- }[];
7493
- company: {
7494
- id: string;
7495
- createdAt: Date;
7496
- updatedAt: Date;
7497
- deletedAt: Date | null;
7498
- address?: string | null | undefined;
7499
- name?: string | undefined;
7500
- phone?: string | null | undefined;
7501
- industry?: string | null | undefined;
7502
- } | null;
7503
- contactEmails: {
7482
+ }[] | undefined;
7483
+ contactEmails?: {
7504
7484
  id: string;
7505
7485
  isPrimary: boolean;
7506
7486
  email: string;
7507
7487
  createdAt: Date;
7508
7488
  updatedAt: Date;
7509
7489
  deletedAt: Date | null;
7510
- }[];
7511
- contactPhones: {
7490
+ }[] | undefined;
7491
+ contactPhones?: {
7512
7492
  id: string;
7513
7493
  isPrimary: boolean;
7514
7494
  createdAt: Date;
7515
7495
  updatedAt: Date;
7516
7496
  deletedAt: Date | null;
7517
7497
  phone: string;
7518
- }[];
7498
+ }[] | undefined;
7519
7499
  activityLogs?: {
7520
7500
  id: string;
7521
7501
  description: string;
@@ -7536,26 +7516,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7536
7516
  socialPlatformId: string;
7537
7517
  }, {
7538
7518
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
7539
- id: string;
7540
7519
  metadata: {
7541
7520
  id: string;
7542
7521
  name: string;
7543
7522
  picture?: string | undefined;
7544
7523
  additionalCredentials?: any;
7545
7524
  };
7546
- createdAt: Date;
7547
- updatedAt: Date;
7548
- deletedAt: Date | null;
7549
7525
  channelId: string;
7550
7526
  contact: {
7551
7527
  id: string;
7552
7528
  channel: string | null;
7553
7529
  address: string | null;
7554
7530
  name: string;
7555
- createdAt: Date;
7556
- updatedAt: Date;
7557
- deletedAt: Date | null;
7558
- customFields: {
7531
+ company: {
7532
+ id: string;
7533
+ createdAt: Date;
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;
7541
+ notes: string | null;
7542
+ contactProfile: string | null;
7543
+ socialProfileUrl: string | null;
7544
+ tags?: {
7545
+ id: string;
7546
+ name: string;
7547
+ createdAt: Date;
7548
+ updatedAt: Date;
7549
+ deletedAt: Date | null;
7550
+ }[] | undefined;
7551
+ customFields?: {
7559
7552
  id: string;
7560
7553
  createdAt: Date;
7561
7554
  updatedAt: Date;
@@ -7597,43 +7590,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
7597
7590
  status?: string | undefined;
7598
7591
  };
7599
7592
  }[];
7600
- }[];
7601
- notes: string | null;
7602
- contactProfile: string | null;
7603
- socialProfileUrl: string | null;
7604
- tags: {
7605
- id: string;
7606
- name: string;
7607
- createdAt: Date;
7608
- updatedAt: Date;
7609
- deletedAt: Date | null;
7610
- }[];
7611
- company: {
7612
- id: string;
7613
- createdAt: Date;
7614
- updatedAt: Date;
7615
- deletedAt: Date | null;
7616
- address?: string | null | undefined;
7617
- name?: string | undefined;
7618
- phone?: string | null | undefined;
7619
- industry?: string | null | undefined;
7620
- } | null;
7621
- contactEmails: {
7593
+ }[] | undefined;
7594
+ contactEmails?: {
7622
7595
  id: string;
7623
7596
  isPrimary: boolean;
7624
7597
  email: string;
7625
7598
  createdAt: Date;
7626
7599
  updatedAt: Date;
7627
7600
  deletedAt: Date | null;
7628
- }[];
7629
- contactPhones: {
7601
+ }[] | undefined;
7602
+ contactPhones?: {
7630
7603
  id: string;
7631
7604
  isPrimary: boolean;
7632
7605
  createdAt: Date;
7633
7606
  updatedAt: Date;
7634
7607
  deletedAt: Date | null;
7635
7608
  phone: string;
7636
- }[];
7609
+ }[] | undefined;
7637
7610
  activityLogs?: {
7638
7611
  id: string;
7639
7612
  description: string;
@@ -8305,26 +8278,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8305
8278
  direction?: "incoming" | "outgoing" | "system" | undefined;
8306
8279
  platformContact?: {
8307
8280
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
8308
- id: string;
8309
8281
  metadata: {
8310
8282
  id: string;
8311
8283
  name: string;
8312
8284
  picture?: string | undefined;
8313
8285
  additionalCredentials?: any;
8314
8286
  };
8315
- createdAt: Date;
8316
- updatedAt: Date;
8317
- deletedAt: Date | null;
8318
8287
  channelId: string;
8319
8288
  contact: {
8320
8289
  id: string;
8321
8290
  channel: string | null;
8322
8291
  address: string | null;
8323
8292
  name: string;
8324
- createdAt: Date;
8325
- updatedAt: Date;
8326
- deletedAt: Date | null;
8327
- customFields: {
8293
+ company: {
8294
+ id: string;
8295
+ createdAt: Date;
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;
8303
+ notes: string | null;
8304
+ contactProfile: string | null;
8305
+ socialProfileUrl: string | null;
8306
+ tags?: {
8307
+ id: string;
8308
+ name: string;
8309
+ createdAt: Date;
8310
+ updatedAt: Date;
8311
+ deletedAt: Date | null;
8312
+ }[] | undefined;
8313
+ customFields?: {
8328
8314
  id: string;
8329
8315
  createdAt: Date;
8330
8316
  updatedAt: Date;
@@ -8366,43 +8352,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8366
8352
  status?: string | undefined;
8367
8353
  };
8368
8354
  }[];
8369
- }[];
8370
- notes: string | null;
8371
- contactProfile: string | null;
8372
- socialProfileUrl: string | null;
8373
- tags: {
8374
- id: string;
8375
- name: string;
8376
- createdAt: Date;
8377
- updatedAt: Date;
8378
- deletedAt: Date | null;
8379
- }[];
8380
- company: {
8381
- id: string;
8382
- createdAt: Date;
8383
- updatedAt: Date;
8384
- deletedAt: Date | null;
8385
- address?: string | null | undefined;
8386
- name?: string | undefined;
8387
- phone?: string | null | undefined;
8388
- industry?: string | null | undefined;
8389
- } | null;
8390
- contactEmails: {
8355
+ }[] | undefined;
8356
+ contactEmails?: {
8391
8357
  id: string;
8392
8358
  isPrimary: boolean;
8393
8359
  email: string;
8394
8360
  createdAt: Date;
8395
8361
  updatedAt: Date;
8396
8362
  deletedAt: Date | null;
8397
- }[];
8398
- contactPhones: {
8363
+ }[] | undefined;
8364
+ contactPhones?: {
8399
8365
  id: string;
8400
8366
  isPrimary: boolean;
8401
8367
  createdAt: Date;
8402
8368
  updatedAt: Date;
8403
8369
  deletedAt: Date | null;
8404
8370
  phone: string;
8405
- }[];
8371
+ }[] | undefined;
8406
8372
  activityLogs?: {
8407
8373
  id: string;
8408
8374
  description: string;
@@ -8578,26 +8544,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8578
8544
  direction?: "incoming" | "outgoing" | "system" | undefined;
8579
8545
  platformContact?: {
8580
8546
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
8581
- id: string;
8582
8547
  metadata: {
8583
8548
  id: string;
8584
8549
  name: string;
8585
8550
  picture?: string | undefined;
8586
8551
  additionalCredentials?: any;
8587
8552
  };
8588
- createdAt: Date;
8589
- updatedAt: Date;
8590
- deletedAt: Date | null;
8591
8553
  channelId: string;
8592
8554
  contact: {
8593
8555
  id: string;
8594
8556
  channel: string | null;
8595
8557
  address: string | null;
8596
8558
  name: string;
8597
- createdAt: Date;
8598
- updatedAt: Date;
8599
- deletedAt: Date | null;
8600
- customFields: {
8559
+ company: {
8560
+ id: string;
8561
+ createdAt: Date;
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;
8569
+ notes: string | null;
8570
+ contactProfile: string | null;
8571
+ socialProfileUrl: string | null;
8572
+ tags?: {
8573
+ id: string;
8574
+ name: string;
8575
+ createdAt: Date;
8576
+ updatedAt: Date;
8577
+ deletedAt: Date | null;
8578
+ }[] | undefined;
8579
+ customFields?: {
8601
8580
  id: string;
8602
8581
  createdAt: Date;
8603
8582
  updatedAt: Date;
@@ -8639,43 +8618,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
8639
8618
  status?: string | undefined;
8640
8619
  };
8641
8620
  }[];
8642
- }[];
8643
- notes: string | null;
8644
- contactProfile: string | null;
8645
- socialProfileUrl: string | null;
8646
- tags: {
8647
- id: string;
8648
- name: string;
8649
- createdAt: Date;
8650
- updatedAt: Date;
8651
- deletedAt: Date | null;
8652
- }[];
8653
- company: {
8654
- id: string;
8655
- createdAt: Date;
8656
- updatedAt: Date;
8657
- deletedAt: Date | null;
8658
- address?: string | null | undefined;
8659
- name?: string | undefined;
8660
- phone?: string | null | undefined;
8661
- industry?: string | null | undefined;
8662
- } | null;
8663
- contactEmails: {
8621
+ }[] | undefined;
8622
+ contactEmails?: {
8664
8623
  id: string;
8665
8624
  isPrimary: boolean;
8666
8625
  email: string;
8667
8626
  createdAt: Date;
8668
8627
  updatedAt: Date;
8669
8628
  deletedAt: Date | null;
8670
- }[];
8671
- contactPhones: {
8629
+ }[] | undefined;
8630
+ contactPhones?: {
8672
8631
  id: string;
8673
8632
  isPrimary: boolean;
8674
8633
  createdAt: Date;
8675
8634
  updatedAt: Date;
8676
8635
  deletedAt: Date | null;
8677
8636
  phone: string;
8678
- }[];
8637
+ }[] | undefined;
8679
8638
  activityLogs?: {
8680
8639
  id: string;
8681
8640
  description: string;
@@ -9503,26 +9462,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9503
9462
  direction?: "incoming" | "outgoing" | "system" | undefined;
9504
9463
  platformContact?: {
9505
9464
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
9506
- id: string;
9507
9465
  metadata: {
9508
9466
  id: string;
9509
9467
  name: string;
9510
9468
  picture?: string | undefined;
9511
9469
  additionalCredentials?: any;
9512
9470
  };
9513
- createdAt: Date;
9514
- updatedAt: Date;
9515
- deletedAt: Date | null;
9516
9471
  channelId: string;
9517
9472
  contact: {
9518
9473
  id: string;
9519
9474
  channel: string | null;
9520
9475
  address: string | null;
9521
9476
  name: string;
9522
- createdAt: Date;
9523
- updatedAt: Date;
9524
- deletedAt: Date | null;
9525
- customFields: {
9477
+ company: {
9478
+ id: string;
9479
+ createdAt: Date;
9480
+ updatedAt: Date;
9481
+ deletedAt: Date | null;
9482
+ address?: string | null | undefined;
9483
+ name?: string | undefined;
9484
+ phone?: string | null | undefined;
9485
+ industry?: string | null | undefined;
9486
+ } | null;
9487
+ notes: string | null;
9488
+ contactProfile: string | null;
9489
+ socialProfileUrl: string | null;
9490
+ tags?: {
9491
+ id: string;
9492
+ name: string;
9493
+ createdAt: Date;
9494
+ updatedAt: Date;
9495
+ deletedAt: Date | null;
9496
+ }[] | undefined;
9497
+ customFields?: {
9526
9498
  id: string;
9527
9499
  createdAt: Date;
9528
9500
  updatedAt: Date;
@@ -9564,43 +9536,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9564
9536
  status?: string | undefined;
9565
9537
  };
9566
9538
  }[];
9567
- }[];
9568
- notes: string | null;
9569
- contactProfile: string | null;
9570
- socialProfileUrl: string | null;
9571
- tags: {
9572
- id: string;
9573
- name: string;
9574
- createdAt: Date;
9575
- updatedAt: Date;
9576
- deletedAt: Date | null;
9577
- }[];
9578
- company: {
9579
- id: string;
9580
- createdAt: Date;
9581
- updatedAt: Date;
9582
- deletedAt: Date | null;
9583
- address?: string | null | undefined;
9584
- name?: string | undefined;
9585
- phone?: string | null | undefined;
9586
- industry?: string | null | undefined;
9587
- } | null;
9588
- contactEmails: {
9539
+ }[] | undefined;
9540
+ contactEmails?: {
9589
9541
  id: string;
9590
9542
  isPrimary: boolean;
9591
9543
  email: string;
9592
9544
  createdAt: Date;
9593
9545
  updatedAt: Date;
9594
9546
  deletedAt: Date | null;
9595
- }[];
9596
- contactPhones: {
9547
+ }[] | undefined;
9548
+ contactPhones?: {
9597
9549
  id: string;
9598
9550
  isPrimary: boolean;
9599
9551
  createdAt: Date;
9600
9552
  updatedAt: Date;
9601
9553
  deletedAt: Date | null;
9602
9554
  phone: string;
9603
- }[];
9555
+ }[] | undefined;
9604
9556
  activityLogs?: {
9605
9557
  id: string;
9606
9558
  description: string;
@@ -9934,26 +9886,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9934
9886
  direction?: "incoming" | "outgoing" | "system" | undefined;
9935
9887
  platformContact?: {
9936
9888
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
9937
- id: string;
9938
9889
  metadata: {
9939
9890
  id: string;
9940
9891
  name: string;
9941
9892
  picture?: string | undefined;
9942
9893
  additionalCredentials?: any;
9943
9894
  };
9944
- createdAt: Date;
9945
- updatedAt: Date;
9946
- deletedAt: Date | null;
9947
9895
  channelId: string;
9948
9896
  contact: {
9949
9897
  id: string;
9950
9898
  channel: string | null;
9951
9899
  address: string | null;
9952
9900
  name: string;
9953
- createdAt: Date;
9954
- updatedAt: Date;
9955
- deletedAt: Date | null;
9956
- customFields: {
9901
+ company: {
9902
+ id: string;
9903
+ createdAt: Date;
9904
+ updatedAt: Date;
9905
+ deletedAt: Date | null;
9906
+ address?: string | null | undefined;
9907
+ name?: string | undefined;
9908
+ phone?: string | null | undefined;
9909
+ industry?: string | null | undefined;
9910
+ } | null;
9911
+ notes: string | null;
9912
+ contactProfile: string | null;
9913
+ socialProfileUrl: string | null;
9914
+ tags?: {
9915
+ id: string;
9916
+ name: string;
9917
+ createdAt: Date;
9918
+ updatedAt: Date;
9919
+ deletedAt: Date | null;
9920
+ }[] | undefined;
9921
+ customFields?: {
9957
9922
  id: string;
9958
9923
  createdAt: Date;
9959
9924
  updatedAt: Date;
@@ -9995,43 +9960,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
9995
9960
  status?: string | undefined;
9996
9961
  };
9997
9962
  }[];
9998
- }[];
9999
- notes: string | null;
10000
- contactProfile: string | null;
10001
- socialProfileUrl: string | null;
10002
- tags: {
10003
- id: string;
10004
- name: string;
10005
- createdAt: Date;
10006
- updatedAt: Date;
10007
- deletedAt: Date | null;
10008
- }[];
10009
- company: {
10010
- id: string;
10011
- createdAt: Date;
10012
- updatedAt: Date;
10013
- deletedAt: Date | null;
10014
- address?: string | null | undefined;
10015
- name?: string | undefined;
10016
- phone?: string | null | undefined;
10017
- industry?: string | null | undefined;
10018
- } | null;
10019
- contactEmails: {
9963
+ }[] | undefined;
9964
+ contactEmails?: {
10020
9965
  id: string;
10021
9966
  isPrimary: boolean;
10022
9967
  email: string;
10023
9968
  createdAt: Date;
10024
9969
  updatedAt: Date;
10025
9970
  deletedAt: Date | null;
10026
- }[];
10027
- contactPhones: {
9971
+ }[] | undefined;
9972
+ contactPhones?: {
10028
9973
  id: string;
10029
9974
  isPrimary: boolean;
10030
9975
  createdAt: Date;
10031
9976
  updatedAt: Date;
10032
9977
  deletedAt: Date | null;
10033
9978
  phone: string;
10034
- }[];
9979
+ }[] | undefined;
10035
9980
  activityLogs?: {
10036
9981
  id: string;
10037
9982
  description: string;
@@ -10367,26 +10312,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10367
10312
  direction?: "incoming" | "outgoing" | "system" | undefined;
10368
10313
  platformContact?: {
10369
10314
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
10370
- id: string;
10371
10315
  metadata: {
10372
10316
  id: string;
10373
10317
  name: string;
10374
10318
  picture?: string | undefined;
10375
10319
  additionalCredentials?: any;
10376
10320
  };
10377
- createdAt: Date;
10378
- updatedAt: Date;
10379
- deletedAt: Date | null;
10380
10321
  channelId: string;
10381
10322
  contact: {
10382
10323
  id: string;
10383
10324
  channel: string | null;
10384
10325
  address: string | null;
10385
10326
  name: string;
10386
- createdAt: Date;
10387
- updatedAt: Date;
10388
- deletedAt: Date | null;
10389
- customFields: {
10327
+ company: {
10328
+ id: string;
10329
+ createdAt: Date;
10330
+ updatedAt: Date;
10331
+ deletedAt: Date | null;
10332
+ address?: string | null | undefined;
10333
+ name?: string | undefined;
10334
+ phone?: string | null | undefined;
10335
+ industry?: string | null | undefined;
10336
+ } | null;
10337
+ notes: string | null;
10338
+ contactProfile: string | null;
10339
+ socialProfileUrl: string | null;
10340
+ tags?: {
10341
+ id: string;
10342
+ name: string;
10343
+ createdAt: Date;
10344
+ updatedAt: Date;
10345
+ deletedAt: Date | null;
10346
+ }[] | undefined;
10347
+ customFields?: {
10390
10348
  id: string;
10391
10349
  createdAt: Date;
10392
10350
  updatedAt: Date;
@@ -10428,43 +10386,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10428
10386
  status?: string | undefined;
10429
10387
  };
10430
10388
  }[];
10431
- }[];
10432
- notes: string | null;
10433
- contactProfile: string | null;
10434
- socialProfileUrl: string | null;
10435
- tags: {
10436
- id: string;
10437
- name: string;
10438
- createdAt: Date;
10439
- updatedAt: Date;
10440
- deletedAt: Date | null;
10441
- }[];
10442
- company: {
10443
- id: string;
10444
- createdAt: Date;
10445
- updatedAt: Date;
10446
- deletedAt: Date | null;
10447
- address?: string | null | undefined;
10448
- name?: string | undefined;
10449
- phone?: string | null | undefined;
10450
- industry?: string | null | undefined;
10451
- } | null;
10452
- contactEmails: {
10389
+ }[] | undefined;
10390
+ contactEmails?: {
10453
10391
  id: string;
10454
10392
  isPrimary: boolean;
10455
10393
  email: string;
10456
10394
  createdAt: Date;
10457
10395
  updatedAt: Date;
10458
10396
  deletedAt: Date | null;
10459
- }[];
10460
- contactPhones: {
10397
+ }[] | undefined;
10398
+ contactPhones?: {
10461
10399
  id: string;
10462
10400
  isPrimary: boolean;
10463
10401
  createdAt: Date;
10464
10402
  updatedAt: Date;
10465
10403
  deletedAt: Date | null;
10466
10404
  phone: string;
10467
- }[];
10405
+ }[] | undefined;
10468
10406
  activityLogs?: {
10469
10407
  id: string;
10470
10408
  description: string;
@@ -10800,26 +10738,39 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10800
10738
  direction?: "incoming" | "outgoing" | "system" | undefined;
10801
10739
  platformContact?: {
10802
10740
  type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
10803
- id: string;
10804
10741
  metadata: {
10805
10742
  id: string;
10806
10743
  name: string;
10807
10744
  picture?: string | undefined;
10808
10745
  additionalCredentials?: any;
10809
10746
  };
10810
- createdAt: Date;
10811
- updatedAt: Date;
10812
- deletedAt: Date | null;
10813
10747
  channelId: string;
10814
10748
  contact: {
10815
10749
  id: string;
10816
10750
  channel: string | null;
10817
10751
  address: string | null;
10818
10752
  name: string;
10819
- createdAt: Date;
10820
- updatedAt: Date;
10821
- deletedAt: Date | null;
10822
- customFields: {
10753
+ company: {
10754
+ id: string;
10755
+ createdAt: Date;
10756
+ updatedAt: Date;
10757
+ deletedAt: Date | null;
10758
+ address?: string | null | undefined;
10759
+ name?: string | undefined;
10760
+ phone?: string | null | undefined;
10761
+ industry?: string | null | undefined;
10762
+ } | null;
10763
+ notes: string | null;
10764
+ contactProfile: string | null;
10765
+ socialProfileUrl: string | null;
10766
+ tags?: {
10767
+ id: string;
10768
+ name: string;
10769
+ createdAt: Date;
10770
+ updatedAt: Date;
10771
+ deletedAt: Date | null;
10772
+ }[] | undefined;
10773
+ customFields?: {
10823
10774
  id: string;
10824
10775
  createdAt: Date;
10825
10776
  updatedAt: Date;
@@ -10861,43 +10812,23 @@ export declare const ReceiveMessageSchema: z.ZodObject<{
10861
10812
  status?: string | undefined;
10862
10813
  };
10863
10814
  }[];
10864
- }[];
10865
- notes: string | null;
10866
- contactProfile: string | null;
10867
- socialProfileUrl: string | null;
10868
- tags: {
10869
- id: string;
10870
- name: string;
10871
- createdAt: Date;
10872
- updatedAt: Date;
10873
- deletedAt: Date | null;
10874
- }[];
10875
- company: {
10876
- id: string;
10877
- createdAt: Date;
10878
- updatedAt: Date;
10879
- deletedAt: Date | null;
10880
- address?: string | null | undefined;
10881
- name?: string | undefined;
10882
- phone?: string | null | undefined;
10883
- industry?: string | null | undefined;
10884
- } | null;
10885
- contactEmails: {
10815
+ }[] | undefined;
10816
+ contactEmails?: {
10886
10817
  id: string;
10887
10818
  isPrimary: boolean;
10888
10819
  email: string;
10889
10820
  createdAt: Date;
10890
10821
  updatedAt: Date;
10891
10822
  deletedAt: Date | null;
10892
- }[];
10893
- contactPhones: {
10823
+ }[] | undefined;
10824
+ contactPhones?: {
10894
10825
  id: string;
10895
10826
  isPrimary: boolean;
10896
10827
  createdAt: Date;
10897
10828
  updatedAt: Date;
10898
10829
  deletedAt: Date | null;
10899
10830
  phone: string;
10900
- }[];
10831
+ }[] | undefined;
10901
10832
  activityLogs?: {
10902
10833
  id: string;
10903
10834
  description: string;