@kl1/contracts 1.1.88-uat → 1.1.90-uat

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/api-contracts/src/automation-queue/index.d.ts +56 -56
  2. package/dist/api-contracts/src/automation-queue/schema.d.ts +6 -6
  3. package/dist/api-contracts/src/automation-queue/validation.d.ts +6 -6
  4. package/dist/api-contracts/src/call-log/validation.d.ts +2 -2
  5. package/dist/api-contracts/src/chat/index.d.ts +4893 -411
  6. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  7. package/dist/api-contracts/src/chat/schema.d.ts +1491 -9
  8. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  9. package/dist/api-contracts/src/chat/validation.d.ts +436 -0
  10. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  11. package/dist/api-contracts/src/comment/index.d.ts +489 -0
  12. package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
  13. package/dist/api-contracts/src/comment/schema.d.ts +143 -0
  14. package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
  15. package/dist/api-contracts/src/contact/index.d.ts +1012 -3
  16. package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
  17. package/dist/api-contracts/src/contact/schema.d.ts +136 -0
  18. package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
  19. package/dist/api-contracts/src/contact/validation.d.ts +1392 -17
  20. package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
  21. package/dist/api-contracts/src/contract.d.ts +7169 -516
  22. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  23. package/dist/api-contracts/src/cx-log/index.d.ts +519 -0
  24. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  25. package/dist/api-contracts/src/cx-log/schema.d.ts +429 -0
  26. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  27. package/dist/api-contracts/src/facebook-feed/index.d.ts +627 -48
  28. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  29. package/dist/api-contracts/src/facebook-feed/schema.d.ts +143 -0
  30. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  31. package/dist/api-contracts/src/facebook-feed/validation.d.ts +167 -24
  32. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  33. package/dist/api-contracts/src/instagram/index.d.ts +436 -0
  34. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  35. package/dist/api-contracts/src/line/index.d.ts +436 -0
  36. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  37. package/dist/api-contracts/src/messenger/index.d.ts +436 -0
  38. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  39. package/dist/api-contracts/src/messenger/validation.d.ts +167 -24
  40. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  41. package/dist/api-contracts/src/telephony-cdr/index.d.ts +429 -0
  42. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  43. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +113 -0
  44. package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
  45. package/dist/api-contracts/src/ticket/index.d.ts +752 -0
  46. package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
  47. package/dist/api-contracts/src/ticket/schema.d.ts +113 -0
  48. package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
  49. package/dist/api-contracts/src/user/index.d.ts +3 -0
  50. package/dist/api-contracts/src/user/index.d.ts.map +1 -1
  51. package/dist/api-contracts/src/viber/index.d.ts +436 -0
  52. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  53. package/dist/api-contracts/src/webchat/index.d.ts +436 -0
  54. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  55. package/dist/api-contracts/src/workflow-rule/index.d.ts +346 -0
  56. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  57. package/dist/index.js +57 -4
  58. package/dist/index.js.map +1 -1
  59. package/dist/index.mjs +57 -4
  60. package/dist/index.mjs.map +1 -1
  61. package/package.json +1 -1
@@ -319,6 +319,59 @@ export declare const ContactContractValidationSchema: {
319
319
  phone?: string | null | undefined;
320
320
  industry?: string | null | undefined;
321
321
  }>>;
322
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
323
+ id: z.ZodString;
324
+ createdAt: z.ZodDate;
325
+ updatedAt: z.ZodDate;
326
+ deletedAt: z.ZodNullable<z.ZodDate>;
327
+ channelId: z.ZodString;
328
+ socialPlatformId: z.ZodString;
329
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
330
+ metadata: z.ZodObject<{
331
+ id: z.ZodString;
332
+ name: z.ZodString;
333
+ picture: z.ZodOptional<z.ZodString>;
334
+ additionalCredentials: z.ZodAny;
335
+ }, "strip", z.ZodTypeAny, {
336
+ id: string;
337
+ name: string;
338
+ picture?: string | undefined;
339
+ additionalCredentials?: any;
340
+ }, {
341
+ id: string;
342
+ name: string;
343
+ picture?: string | undefined;
344
+ additionalCredentials?: any;
345
+ }>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
348
+ id: string;
349
+ metadata: {
350
+ id: string;
351
+ name: string;
352
+ picture?: string | undefined;
353
+ additionalCredentials?: any;
354
+ };
355
+ createdAt: Date;
356
+ updatedAt: Date;
357
+ deletedAt: Date | null;
358
+ channelId: string;
359
+ socialPlatformId: string;
360
+ }, {
361
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
362
+ id: string;
363
+ metadata: {
364
+ id: string;
365
+ name: string;
366
+ picture?: string | undefined;
367
+ additionalCredentials?: any;
368
+ };
369
+ createdAt: Date;
370
+ updatedAt: Date;
371
+ deletedAt: Date | null;
372
+ channelId: string;
373
+ socialPlatformId: string;
374
+ }>, "many">>;
322
375
  customFields: z.ZodArray<z.ZodObject<{
323
376
  id: z.ZodString;
324
377
  createdAt: z.ZodDate;
@@ -698,6 +751,21 @@ export declare const ContactContractValidationSchema: {
698
751
  deletedAt: Date | null;
699
752
  phone: string;
700
753
  }[];
754
+ platformContacts?: {
755
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
756
+ id: string;
757
+ metadata: {
758
+ id: string;
759
+ name: string;
760
+ picture?: string | undefined;
761
+ additionalCredentials?: any;
762
+ };
763
+ createdAt: Date;
764
+ updatedAt: Date;
765
+ deletedAt: Date | null;
766
+ channelId: string;
767
+ socialPlatformId: string;
768
+ }[] | undefined;
701
769
  activityLogs?: {
702
770
  id: string;
703
771
  description: string;
@@ -794,6 +862,21 @@ export declare const ContactContractValidationSchema: {
794
862
  deletedAt: Date | null;
795
863
  phone: string;
796
864
  }[];
865
+ platformContacts?: {
866
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
867
+ id: string;
868
+ metadata: {
869
+ id: string;
870
+ name: string;
871
+ picture?: string | undefined;
872
+ additionalCredentials?: any;
873
+ };
874
+ createdAt: Date;
875
+ updatedAt: Date;
876
+ deletedAt: Date | null;
877
+ channelId: string;
878
+ socialPlatformId: string;
879
+ }[] | undefined;
797
880
  activityLogs?: {
798
881
  id: string;
799
882
  description: string;
@@ -1086,6 +1169,59 @@ export declare const ContactContractValidationSchema: {
1086
1169
  phone?: string | null | undefined;
1087
1170
  industry?: string | null | undefined;
1088
1171
  }>>;
1172
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1173
+ id: z.ZodString;
1174
+ createdAt: z.ZodDate;
1175
+ updatedAt: z.ZodDate;
1176
+ deletedAt: z.ZodNullable<z.ZodDate>;
1177
+ channelId: z.ZodString;
1178
+ socialPlatformId: z.ZodString;
1179
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
1180
+ metadata: z.ZodObject<{
1181
+ id: z.ZodString;
1182
+ name: z.ZodString;
1183
+ picture: z.ZodOptional<z.ZodString>;
1184
+ additionalCredentials: z.ZodAny;
1185
+ }, "strip", z.ZodTypeAny, {
1186
+ id: string;
1187
+ name: string;
1188
+ picture?: string | undefined;
1189
+ additionalCredentials?: any;
1190
+ }, {
1191
+ id: string;
1192
+ name: string;
1193
+ picture?: string | undefined;
1194
+ additionalCredentials?: any;
1195
+ }>;
1196
+ }, "strip", z.ZodTypeAny, {
1197
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1198
+ id: string;
1199
+ metadata: {
1200
+ id: string;
1201
+ name: string;
1202
+ picture?: string | undefined;
1203
+ additionalCredentials?: any;
1204
+ };
1205
+ createdAt: Date;
1206
+ updatedAt: Date;
1207
+ deletedAt: Date | null;
1208
+ channelId: string;
1209
+ socialPlatformId: string;
1210
+ }, {
1211
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1212
+ id: string;
1213
+ metadata: {
1214
+ id: string;
1215
+ name: string;
1216
+ picture?: string | undefined;
1217
+ additionalCredentials?: any;
1218
+ };
1219
+ createdAt: Date;
1220
+ updatedAt: Date;
1221
+ deletedAt: Date | null;
1222
+ channelId: string;
1223
+ socialPlatformId: string;
1224
+ }>, "many">>;
1089
1225
  customFields: z.ZodArray<z.ZodObject<{
1090
1226
  id: z.ZodString;
1091
1227
  createdAt: z.ZodDate;
@@ -1465,6 +1601,21 @@ export declare const ContactContractValidationSchema: {
1465
1601
  deletedAt: Date | null;
1466
1602
  phone: string;
1467
1603
  }[];
1604
+ platformContacts?: {
1605
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1606
+ id: string;
1607
+ metadata: {
1608
+ id: string;
1609
+ name: string;
1610
+ picture?: string | undefined;
1611
+ additionalCredentials?: any;
1612
+ };
1613
+ createdAt: Date;
1614
+ updatedAt: Date;
1615
+ deletedAt: Date | null;
1616
+ channelId: string;
1617
+ socialPlatformId: string;
1618
+ }[] | undefined;
1468
1619
  activityLogs?: {
1469
1620
  id: string;
1470
1621
  description: string;
@@ -1561,31 +1712,834 @@ export declare const ContactContractValidationSchema: {
1561
1712
  deletedAt: Date | null;
1562
1713
  phone: string;
1563
1714
  }[];
1715
+ platformContacts?: {
1716
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1717
+ id: string;
1718
+ metadata: {
1719
+ id: string;
1720
+ name: string;
1721
+ picture?: string | undefined;
1722
+ additionalCredentials?: any;
1723
+ };
1724
+ createdAt: Date;
1725
+ updatedAt: Date;
1726
+ deletedAt: Date | null;
1727
+ channelId: string;
1728
+ socialPlatformId: string;
1729
+ }[] | undefined;
1564
1730
  activityLogs?: {
1565
1731
  id: string;
1566
- description: string;
1732
+ description: string;
1733
+ createdAt: Date;
1734
+ updatedAt: Date;
1735
+ deletedAt: Date | null;
1736
+ entityId: string;
1737
+ entityType: {
1738
+ id: string;
1739
+ description: string | null;
1740
+ createdAt: Date;
1741
+ updatedAt: Date;
1742
+ deletedAt: Date | null;
1743
+ entity: string;
1744
+ };
1745
+ }[] | undefined;
1746
+ }>, "many">;
1747
+ };
1748
+ };
1749
+ createContactByPhone: {
1750
+ request: z.ZodObject<{
1751
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ phoneNumber: string;
1754
+ }, {
1755
+ phoneNumber: string;
1756
+ }>;
1757
+ response: z.ZodObject<{
1758
+ id: z.ZodString;
1759
+ createdAt: z.ZodDate;
1760
+ updatedAt: z.ZodDate;
1761
+ deletedAt: z.ZodNullable<z.ZodDate>;
1762
+ name: z.ZodString;
1763
+ address: z.ZodNullable<z.ZodString>;
1764
+ channel: z.ZodNullable<z.ZodString>;
1765
+ notes: z.ZodNullable<z.ZodString>;
1766
+ contactProfile: z.ZodNullable<z.ZodString>;
1767
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
1768
+ tags: z.ZodArray<z.ZodObject<{
1769
+ id: z.ZodString;
1770
+ createdAt: z.ZodDate;
1771
+ updatedAt: z.ZodDate;
1772
+ deletedAt: z.ZodNullable<z.ZodDate>;
1773
+ name: z.ZodString;
1774
+ }, "strip", z.ZodTypeAny, {
1775
+ id: string;
1776
+ name: string;
1777
+ createdAt: Date;
1778
+ updatedAt: Date;
1779
+ deletedAt: Date | null;
1780
+ }, {
1781
+ id: string;
1782
+ name: string;
1783
+ createdAt: Date;
1784
+ updatedAt: Date;
1785
+ deletedAt: Date | null;
1786
+ }>, "many">;
1787
+ company: z.ZodNullable<z.ZodObject<Omit<{
1788
+ id: z.ZodString;
1789
+ createdAt: z.ZodDate;
1790
+ updatedAt: z.ZodDate;
1791
+ deletedAt: z.ZodNullable<z.ZodDate>;
1792
+ name: z.ZodOptional<z.ZodString>;
1793
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1794
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1795
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1796
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1797
+ id: z.ZodString;
1798
+ createdAt: z.ZodDate;
1799
+ updatedAt: z.ZodDate;
1800
+ deletedAt: z.ZodNullable<z.ZodDate>;
1801
+ textValue: z.ZodNullable<z.ZodString>;
1802
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1803
+ numberValue: z.ZodNullable<z.ZodNumber>;
1804
+ dateValue: z.ZodNullable<z.ZodDate>;
1805
+ attribute: z.ZodObject<Omit<{
1806
+ id: z.ZodString;
1807
+ createdAt: z.ZodDate;
1808
+ updatedAt: z.ZodDate;
1809
+ deletedAt: z.ZodNullable<z.ZodDate>;
1810
+ systemName: z.ZodString;
1811
+ displayName: z.ZodString;
1812
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1813
+ position: z.ZodNumber;
1814
+ isDefault: z.ZodBoolean;
1815
+ isArchived: z.ZodBoolean;
1816
+ isRequired: z.ZodBoolean;
1817
+ isUnique: z.ZodBoolean;
1818
+ options: z.ZodArray<z.ZodObject<{
1819
+ position: z.ZodNumber;
1820
+ value: z.ZodString;
1821
+ label: z.ZodString;
1822
+ isDefault: z.ZodBoolean;
1823
+ id: z.ZodString;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ id: string;
1826
+ position: number;
1827
+ value: string;
1828
+ label: string;
1829
+ isDefault: boolean;
1830
+ }, {
1831
+ id: string;
1832
+ position: number;
1833
+ value: string;
1834
+ label: string;
1835
+ isDefault: boolean;
1836
+ }>, "many">;
1837
+ group: z.ZodObject<{
1838
+ id: z.ZodString;
1839
+ createdAt: z.ZodDate;
1840
+ updatedAt: z.ZodDate;
1841
+ deletedAt: z.ZodNullable<z.ZodDate>;
1842
+ systemName: z.ZodString;
1843
+ displayName: z.ZodString;
1844
+ }, "strip", z.ZodTypeAny, {
1845
+ id: string;
1846
+ createdAt: Date;
1847
+ updatedAt: Date;
1848
+ deletedAt: Date | null;
1849
+ systemName: string;
1850
+ displayName: string;
1851
+ }, {
1852
+ id: string;
1853
+ createdAt: Date;
1854
+ updatedAt: Date;
1855
+ deletedAt: Date | null;
1856
+ systemName: string;
1857
+ displayName: string;
1858
+ }>;
1859
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1860
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1861
+ id: string;
1862
+ position: number;
1863
+ createdAt: Date;
1864
+ updatedAt: Date;
1865
+ deletedAt: Date | null;
1866
+ systemName: string;
1867
+ displayName: string;
1868
+ isDefault: boolean;
1869
+ isArchived: boolean;
1870
+ isRequired: boolean;
1871
+ isUnique: boolean;
1872
+ }, {
1873
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1874
+ id: string;
1875
+ position: number;
1876
+ createdAt: Date;
1877
+ updatedAt: Date;
1878
+ deletedAt: Date | null;
1879
+ systemName: string;
1880
+ displayName: string;
1881
+ isDefault: boolean;
1882
+ isArchived: boolean;
1883
+ isRequired: boolean;
1884
+ isUnique: boolean;
1885
+ }>;
1886
+ }, "strip", z.ZodTypeAny, {
1887
+ id: string;
1888
+ createdAt: Date;
1889
+ updatedAt: Date;
1890
+ deletedAt: Date | null;
1891
+ attribute: {
1892
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1893
+ id: string;
1894
+ position: number;
1895
+ createdAt: Date;
1896
+ updatedAt: Date;
1897
+ deletedAt: Date | null;
1898
+ systemName: string;
1899
+ displayName: string;
1900
+ isDefault: boolean;
1901
+ isArchived: boolean;
1902
+ isRequired: boolean;
1903
+ isUnique: boolean;
1904
+ };
1905
+ textValue: string | null;
1906
+ booleanValue: boolean | null;
1907
+ numberValue: number | null;
1908
+ dateValue: Date | null;
1909
+ }, {
1910
+ id: string;
1911
+ createdAt: Date;
1912
+ updatedAt: Date;
1913
+ deletedAt: Date | null;
1914
+ attribute: {
1915
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1916
+ id: string;
1917
+ position: number;
1918
+ createdAt: Date;
1919
+ updatedAt: Date;
1920
+ deletedAt: Date | null;
1921
+ systemName: string;
1922
+ displayName: string;
1923
+ isDefault: boolean;
1924
+ isArchived: boolean;
1925
+ isRequired: boolean;
1926
+ isUnique: boolean;
1927
+ };
1928
+ textValue: string | null;
1929
+ booleanValue: boolean | null;
1930
+ numberValue: number | null;
1931
+ dateValue: Date | null;
1932
+ }>, "many">>;
1933
+ }, "customFields">, "strip", z.ZodTypeAny, {
1934
+ id: string;
1935
+ createdAt: Date;
1936
+ updatedAt: Date;
1937
+ deletedAt: Date | null;
1938
+ address?: string | null | undefined;
1939
+ name?: string | undefined;
1940
+ phone?: string | null | undefined;
1941
+ industry?: string | null | undefined;
1942
+ }, {
1943
+ id: string;
1944
+ createdAt: Date;
1945
+ updatedAt: Date;
1946
+ deletedAt: Date | null;
1947
+ address?: string | null | undefined;
1948
+ name?: string | undefined;
1949
+ phone?: string | null | undefined;
1950
+ industry?: string | null | undefined;
1951
+ }>>;
1952
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1953
+ id: z.ZodString;
1954
+ createdAt: z.ZodDate;
1955
+ updatedAt: z.ZodDate;
1956
+ deletedAt: z.ZodNullable<z.ZodDate>;
1957
+ channelId: z.ZodString;
1958
+ socialPlatformId: z.ZodString;
1959
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
1960
+ metadata: z.ZodObject<{
1961
+ id: z.ZodString;
1962
+ name: z.ZodString;
1963
+ picture: z.ZodOptional<z.ZodString>;
1964
+ additionalCredentials: z.ZodAny;
1965
+ }, "strip", z.ZodTypeAny, {
1966
+ id: string;
1967
+ name: string;
1968
+ picture?: string | undefined;
1969
+ additionalCredentials?: any;
1970
+ }, {
1971
+ id: string;
1972
+ name: string;
1973
+ picture?: string | undefined;
1974
+ additionalCredentials?: any;
1975
+ }>;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1978
+ id: string;
1979
+ metadata: {
1980
+ id: string;
1981
+ name: string;
1982
+ picture?: string | undefined;
1983
+ additionalCredentials?: any;
1984
+ };
1985
+ createdAt: Date;
1986
+ updatedAt: Date;
1987
+ deletedAt: Date | null;
1988
+ channelId: string;
1989
+ socialPlatformId: string;
1990
+ }, {
1991
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1992
+ id: string;
1993
+ metadata: {
1994
+ id: string;
1995
+ name: string;
1996
+ picture?: string | undefined;
1997
+ additionalCredentials?: any;
1998
+ };
1999
+ createdAt: Date;
2000
+ updatedAt: Date;
2001
+ deletedAt: Date | null;
2002
+ channelId: string;
2003
+ socialPlatformId: string;
2004
+ }>, "many">>;
2005
+ customFields: z.ZodArray<z.ZodObject<{
2006
+ id: z.ZodString;
2007
+ createdAt: z.ZodDate;
2008
+ updatedAt: z.ZodDate;
2009
+ deletedAt: z.ZodNullable<z.ZodDate>;
2010
+ textValue: z.ZodNullable<z.ZodString>;
2011
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2012
+ numberValue: z.ZodNullable<z.ZodNumber>;
2013
+ dateValue: z.ZodNullable<z.ZodDate>;
2014
+ attribute: z.ZodObject<Omit<{
2015
+ id: z.ZodString;
2016
+ createdAt: z.ZodDate;
2017
+ updatedAt: z.ZodDate;
2018
+ deletedAt: z.ZodNullable<z.ZodDate>;
2019
+ systemName: z.ZodString;
2020
+ displayName: z.ZodString;
2021
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2022
+ position: z.ZodNumber;
2023
+ isDefault: z.ZodBoolean;
2024
+ isArchived: z.ZodBoolean;
2025
+ isRequired: z.ZodBoolean;
2026
+ isUnique: z.ZodBoolean;
2027
+ options: z.ZodArray<z.ZodObject<{
2028
+ position: z.ZodNumber;
2029
+ value: z.ZodString;
2030
+ label: z.ZodString;
2031
+ isDefault: z.ZodBoolean;
2032
+ id: z.ZodString;
2033
+ }, "strip", z.ZodTypeAny, {
2034
+ id: string;
2035
+ position: number;
2036
+ value: string;
2037
+ label: string;
2038
+ isDefault: boolean;
2039
+ }, {
2040
+ id: string;
2041
+ position: number;
2042
+ value: string;
2043
+ label: string;
2044
+ isDefault: boolean;
2045
+ }>, "many">;
2046
+ group: z.ZodObject<{
2047
+ id: z.ZodString;
2048
+ createdAt: z.ZodDate;
2049
+ updatedAt: z.ZodDate;
2050
+ deletedAt: z.ZodNullable<z.ZodDate>;
2051
+ systemName: z.ZodString;
2052
+ displayName: z.ZodString;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ id: string;
2055
+ createdAt: Date;
2056
+ updatedAt: Date;
2057
+ deletedAt: Date | null;
2058
+ systemName: string;
2059
+ displayName: string;
2060
+ }, {
2061
+ id: string;
2062
+ createdAt: Date;
2063
+ updatedAt: Date;
2064
+ deletedAt: Date | null;
2065
+ systemName: string;
2066
+ displayName: string;
2067
+ }>;
2068
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2069
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2070
+ id: string;
2071
+ position: number;
2072
+ createdAt: Date;
2073
+ updatedAt: Date;
2074
+ deletedAt: Date | null;
2075
+ systemName: string;
2076
+ displayName: string;
2077
+ isDefault: boolean;
2078
+ isArchived: boolean;
2079
+ isRequired: boolean;
2080
+ isUnique: boolean;
2081
+ }, {
2082
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2083
+ id: string;
2084
+ position: number;
2085
+ createdAt: Date;
2086
+ updatedAt: Date;
2087
+ deletedAt: Date | null;
2088
+ systemName: string;
2089
+ displayName: string;
2090
+ isDefault: boolean;
2091
+ isArchived: boolean;
2092
+ isRequired: boolean;
2093
+ isUnique: boolean;
2094
+ }>;
2095
+ uploads: z.ZodArray<z.ZodObject<{
2096
+ id: z.ZodString;
2097
+ createdAt: z.ZodDate;
2098
+ updatedAt: z.ZodDate;
2099
+ deletedAt: z.ZodNullable<z.ZodDate>;
2100
+ bucketName: z.ZodString;
2101
+ fileName: z.ZodString;
2102
+ fileSize: z.ZodNumber;
2103
+ fileKey: z.ZodString;
2104
+ fileUrl: z.ZodNullable<z.ZodString>;
2105
+ status: z.ZodNullable<z.ZodString>;
2106
+ }, "strip", z.ZodTypeAny, {
2107
+ id: string;
2108
+ status: string | null;
2109
+ createdAt: Date;
2110
+ updatedAt: Date;
2111
+ deletedAt: Date | null;
2112
+ fileName: string;
2113
+ fileKey: string;
2114
+ bucketName: string;
2115
+ fileSize: number;
2116
+ fileUrl: string | null;
2117
+ }, {
2118
+ id: string;
2119
+ status: string | null;
2120
+ createdAt: Date;
2121
+ updatedAt: Date;
2122
+ deletedAt: Date | null;
2123
+ fileName: string;
2124
+ fileKey: string;
2125
+ bucketName: string;
2126
+ fileSize: number;
2127
+ fileUrl: string | null;
2128
+ }>, "many">;
2129
+ }, "strip", z.ZodTypeAny, {
2130
+ id: string;
2131
+ createdAt: Date;
2132
+ updatedAt: Date;
2133
+ deletedAt: Date | null;
2134
+ attribute: {
2135
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2136
+ id: string;
2137
+ position: number;
2138
+ createdAt: Date;
2139
+ updatedAt: Date;
2140
+ deletedAt: Date | null;
2141
+ systemName: string;
2142
+ displayName: string;
2143
+ isDefault: boolean;
2144
+ isArchived: boolean;
2145
+ isRequired: boolean;
2146
+ isUnique: boolean;
2147
+ };
2148
+ textValue: string | null;
2149
+ booleanValue: boolean | null;
2150
+ numberValue: number | null;
2151
+ dateValue: Date | null;
2152
+ uploads: {
2153
+ id: string;
2154
+ status: string | null;
2155
+ createdAt: Date;
2156
+ updatedAt: Date;
2157
+ deletedAt: Date | null;
2158
+ fileName: string;
2159
+ fileKey: string;
2160
+ bucketName: string;
2161
+ fileSize: number;
2162
+ fileUrl: string | null;
2163
+ }[];
2164
+ }, {
2165
+ id: string;
2166
+ createdAt: Date;
2167
+ updatedAt: Date;
2168
+ deletedAt: Date | null;
2169
+ attribute: {
2170
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2171
+ id: string;
2172
+ position: number;
2173
+ createdAt: Date;
2174
+ updatedAt: Date;
2175
+ deletedAt: Date | null;
2176
+ systemName: string;
2177
+ displayName: string;
2178
+ isDefault: boolean;
2179
+ isArchived: boolean;
2180
+ isRequired: boolean;
2181
+ isUnique: boolean;
2182
+ };
2183
+ textValue: string | null;
2184
+ booleanValue: boolean | null;
2185
+ numberValue: number | null;
2186
+ dateValue: Date | null;
2187
+ uploads: {
2188
+ id: string;
2189
+ status: string | null;
2190
+ createdAt: Date;
2191
+ updatedAt: Date;
2192
+ deletedAt: Date | null;
2193
+ fileName: string;
2194
+ fileKey: string;
2195
+ bucketName: string;
2196
+ fileSize: number;
2197
+ fileUrl: string | null;
2198
+ }[];
2199
+ }>, "many">;
2200
+ contactEmails: z.ZodArray<z.ZodObject<{
2201
+ id: z.ZodString;
2202
+ createdAt: z.ZodDate;
2203
+ updatedAt: z.ZodDate;
2204
+ deletedAt: z.ZodNullable<z.ZodDate>;
2205
+ email: z.ZodString;
2206
+ isPrimary: z.ZodBoolean;
2207
+ }, "strip", z.ZodTypeAny, {
2208
+ id: string;
2209
+ isPrimary: boolean;
2210
+ email: string;
2211
+ createdAt: Date;
2212
+ updatedAt: Date;
2213
+ deletedAt: Date | null;
2214
+ }, {
2215
+ id: string;
2216
+ isPrimary: boolean;
2217
+ email: string;
2218
+ createdAt: Date;
2219
+ updatedAt: Date;
2220
+ deletedAt: Date | null;
2221
+ }>, "many">;
2222
+ contactPhones: z.ZodArray<z.ZodObject<{
2223
+ id: z.ZodString;
2224
+ createdAt: z.ZodDate;
2225
+ updatedAt: z.ZodDate;
2226
+ deletedAt: z.ZodNullable<z.ZodDate>;
2227
+ phone: z.ZodString;
2228
+ isPrimary: z.ZodBoolean;
2229
+ }, "strip", z.ZodTypeAny, {
2230
+ id: string;
2231
+ isPrimary: boolean;
2232
+ createdAt: Date;
2233
+ updatedAt: Date;
2234
+ deletedAt: Date | null;
2235
+ phone: string;
2236
+ }, {
2237
+ id: string;
2238
+ isPrimary: boolean;
2239
+ createdAt: Date;
2240
+ updatedAt: Date;
2241
+ deletedAt: Date | null;
2242
+ phone: string;
2243
+ }>, "many">;
2244
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2245
+ id: z.ZodString;
2246
+ createdAt: z.ZodDate;
2247
+ updatedAt: z.ZodDate;
2248
+ deletedAt: z.ZodNullable<z.ZodDate>;
2249
+ entityId: z.ZodString;
2250
+ description: z.ZodString;
2251
+ entityType: z.ZodObject<{
2252
+ id: z.ZodString;
2253
+ createdAt: z.ZodDate;
2254
+ updatedAt: z.ZodDate;
2255
+ deletedAt: z.ZodNullable<z.ZodDate>;
2256
+ entity: z.ZodString;
2257
+ description: z.ZodNullable<z.ZodString>;
2258
+ }, "strip", z.ZodTypeAny, {
2259
+ id: string;
2260
+ description: string | null;
2261
+ createdAt: Date;
2262
+ updatedAt: Date;
2263
+ deletedAt: Date | null;
2264
+ entity: string;
2265
+ }, {
2266
+ id: string;
2267
+ description: string | null;
2268
+ createdAt: Date;
2269
+ updatedAt: Date;
2270
+ deletedAt: Date | null;
2271
+ entity: string;
2272
+ }>;
2273
+ }, "strip", z.ZodTypeAny, {
2274
+ id: string;
2275
+ description: string;
2276
+ createdAt: Date;
2277
+ updatedAt: Date;
2278
+ deletedAt: Date | null;
2279
+ entityId: string;
2280
+ entityType: {
2281
+ id: string;
2282
+ description: string | null;
2283
+ createdAt: Date;
2284
+ updatedAt: Date;
2285
+ deletedAt: Date | null;
2286
+ entity: string;
2287
+ };
2288
+ }, {
2289
+ id: string;
2290
+ description: string;
2291
+ createdAt: Date;
2292
+ updatedAt: Date;
2293
+ deletedAt: Date | null;
2294
+ entityId: string;
2295
+ entityType: {
2296
+ id: string;
2297
+ description: string | null;
2298
+ createdAt: Date;
2299
+ updatedAt: Date;
2300
+ deletedAt: Date | null;
2301
+ entity: string;
2302
+ };
2303
+ }>, "many">>;
2304
+ }, "strip", z.ZodTypeAny, {
2305
+ id: string;
2306
+ channel: string | null;
2307
+ address: string | null;
2308
+ name: string;
2309
+ createdAt: Date;
2310
+ updatedAt: Date;
2311
+ deletedAt: Date | null;
2312
+ customFields: {
2313
+ id: string;
2314
+ createdAt: Date;
2315
+ updatedAt: Date;
2316
+ deletedAt: Date | null;
2317
+ attribute: {
2318
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2319
+ id: string;
2320
+ position: number;
2321
+ createdAt: Date;
2322
+ updatedAt: Date;
2323
+ deletedAt: Date | null;
2324
+ systemName: string;
2325
+ displayName: string;
2326
+ isDefault: boolean;
2327
+ isArchived: boolean;
2328
+ isRequired: boolean;
2329
+ isUnique: boolean;
2330
+ };
2331
+ textValue: string | null;
2332
+ booleanValue: boolean | null;
2333
+ numberValue: number | null;
2334
+ dateValue: Date | null;
2335
+ uploads: {
2336
+ id: string;
2337
+ status: string | null;
2338
+ createdAt: Date;
2339
+ updatedAt: Date;
2340
+ deletedAt: Date | null;
2341
+ fileName: string;
2342
+ fileKey: string;
2343
+ bucketName: string;
2344
+ fileSize: number;
2345
+ fileUrl: string | null;
2346
+ }[];
2347
+ }[];
2348
+ company: {
2349
+ id: string;
2350
+ createdAt: Date;
2351
+ updatedAt: Date;
2352
+ deletedAt: Date | null;
2353
+ address?: string | null | undefined;
2354
+ name?: string | undefined;
2355
+ phone?: string | null | undefined;
2356
+ industry?: string | null | undefined;
2357
+ } | null;
2358
+ notes: string | null;
2359
+ contactProfile: string | null;
2360
+ socialProfileUrl: string | null;
2361
+ tags: {
2362
+ id: string;
2363
+ name: string;
2364
+ createdAt: Date;
2365
+ updatedAt: Date;
2366
+ deletedAt: Date | null;
2367
+ }[];
2368
+ contactEmails: {
2369
+ id: string;
2370
+ isPrimary: boolean;
2371
+ email: string;
2372
+ createdAt: Date;
2373
+ updatedAt: Date;
2374
+ deletedAt: Date | null;
2375
+ }[];
2376
+ contactPhones: {
2377
+ id: string;
2378
+ isPrimary: boolean;
2379
+ createdAt: Date;
2380
+ updatedAt: Date;
2381
+ deletedAt: Date | null;
2382
+ phone: string;
2383
+ }[];
2384
+ platformContacts?: {
2385
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2386
+ id: string;
2387
+ metadata: {
2388
+ id: string;
2389
+ name: string;
2390
+ picture?: string | undefined;
2391
+ additionalCredentials?: any;
2392
+ };
2393
+ createdAt: Date;
2394
+ updatedAt: Date;
2395
+ deletedAt: Date | null;
2396
+ channelId: string;
2397
+ socialPlatformId: string;
2398
+ }[] | undefined;
2399
+ activityLogs?: {
2400
+ id: string;
2401
+ description: string;
2402
+ createdAt: Date;
2403
+ updatedAt: Date;
2404
+ deletedAt: Date | null;
2405
+ entityId: string;
2406
+ entityType: {
2407
+ id: string;
2408
+ description: string | null;
2409
+ createdAt: Date;
2410
+ updatedAt: Date;
2411
+ deletedAt: Date | null;
2412
+ entity: string;
2413
+ };
2414
+ }[] | undefined;
2415
+ }, {
2416
+ id: string;
2417
+ channel: string | null;
2418
+ address: string | null;
2419
+ name: string;
2420
+ createdAt: Date;
2421
+ updatedAt: Date;
2422
+ deletedAt: Date | null;
2423
+ customFields: {
2424
+ id: string;
2425
+ createdAt: Date;
2426
+ updatedAt: Date;
2427
+ deletedAt: Date | null;
2428
+ attribute: {
2429
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2430
+ id: string;
2431
+ position: number;
2432
+ createdAt: Date;
2433
+ updatedAt: Date;
2434
+ deletedAt: Date | null;
2435
+ systemName: string;
2436
+ displayName: string;
2437
+ isDefault: boolean;
2438
+ isArchived: boolean;
2439
+ isRequired: boolean;
2440
+ isUnique: boolean;
2441
+ };
2442
+ textValue: string | null;
2443
+ booleanValue: boolean | null;
2444
+ numberValue: number | null;
2445
+ dateValue: Date | null;
2446
+ uploads: {
2447
+ id: string;
2448
+ status: string | null;
2449
+ createdAt: Date;
2450
+ updatedAt: Date;
2451
+ deletedAt: Date | null;
2452
+ fileName: string;
2453
+ fileKey: string;
2454
+ bucketName: string;
2455
+ fileSize: number;
2456
+ fileUrl: string | null;
2457
+ }[];
2458
+ }[];
2459
+ company: {
2460
+ id: string;
2461
+ createdAt: Date;
2462
+ updatedAt: Date;
2463
+ deletedAt: Date | null;
2464
+ address?: string | null | undefined;
2465
+ name?: string | undefined;
2466
+ phone?: string | null | undefined;
2467
+ industry?: string | null | undefined;
2468
+ } | null;
2469
+ notes: string | null;
2470
+ contactProfile: string | null;
2471
+ socialProfileUrl: string | null;
2472
+ tags: {
2473
+ id: string;
2474
+ name: string;
2475
+ createdAt: Date;
2476
+ updatedAt: Date;
2477
+ deletedAt: Date | null;
2478
+ }[];
2479
+ contactEmails: {
2480
+ id: string;
2481
+ isPrimary: boolean;
2482
+ email: string;
2483
+ createdAt: Date;
2484
+ updatedAt: Date;
2485
+ deletedAt: Date | null;
2486
+ }[];
2487
+ contactPhones: {
2488
+ id: string;
2489
+ isPrimary: boolean;
2490
+ createdAt: Date;
2491
+ updatedAt: Date;
2492
+ deletedAt: Date | null;
2493
+ phone: string;
2494
+ }[];
2495
+ platformContacts?: {
2496
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2497
+ id: string;
2498
+ metadata: {
2499
+ id: string;
2500
+ name: string;
2501
+ picture?: string | undefined;
2502
+ additionalCredentials?: any;
2503
+ };
2504
+ createdAt: Date;
2505
+ updatedAt: Date;
2506
+ deletedAt: Date | null;
2507
+ channelId: string;
2508
+ socialPlatformId: string;
2509
+ }[] | undefined;
2510
+ activityLogs?: {
2511
+ id: string;
2512
+ description: string;
2513
+ createdAt: Date;
2514
+ updatedAt: Date;
2515
+ deletedAt: Date | null;
2516
+ entityId: string;
2517
+ entityType: {
2518
+ id: string;
2519
+ description: string | null;
1567
2520
  createdAt: Date;
1568
2521
  updatedAt: Date;
1569
2522
  deletedAt: Date | null;
1570
- entityId: string;
1571
- entityType: {
1572
- id: string;
1573
- description: string | null;
1574
- createdAt: Date;
1575
- updatedAt: Date;
1576
- deletedAt: Date | null;
1577
- entity: string;
1578
- };
1579
- }[] | undefined;
1580
- }>, "many">;
1581
- };
2523
+ entity: string;
2524
+ };
2525
+ }[] | undefined;
2526
+ }>;
1582
2527
  };
1583
- createContactByPhone: {
2528
+ createContactPlatform: {
1584
2529
  request: z.ZodObject<{
1585
2530
  phoneNumber: z.ZodEffects<z.ZodString, string, string>;
2531
+ name: z.ZodString;
2532
+ channelType: z.ZodString;
2533
+ channelId: z.ZodString;
1586
2534
  }, "strip", z.ZodTypeAny, {
2535
+ name: string;
2536
+ channelId: string;
2537
+ channelType: string;
1587
2538
  phoneNumber: string;
1588
2539
  }, {
2540
+ name: string;
2541
+ channelId: string;
2542
+ channelType: string;
1589
2543
  phoneNumber: string;
1590
2544
  }>;
1591
2545
  response: z.ZodObject<{
@@ -1783,6 +2737,59 @@ export declare const ContactContractValidationSchema: {
1783
2737
  phone?: string | null | undefined;
1784
2738
  industry?: string | null | undefined;
1785
2739
  }>>;
2740
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2741
+ id: z.ZodString;
2742
+ createdAt: z.ZodDate;
2743
+ updatedAt: z.ZodDate;
2744
+ deletedAt: z.ZodNullable<z.ZodDate>;
2745
+ channelId: z.ZodString;
2746
+ socialPlatformId: z.ZodString;
2747
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
2748
+ metadata: z.ZodObject<{
2749
+ id: z.ZodString;
2750
+ name: z.ZodString;
2751
+ picture: z.ZodOptional<z.ZodString>;
2752
+ additionalCredentials: z.ZodAny;
2753
+ }, "strip", z.ZodTypeAny, {
2754
+ id: string;
2755
+ name: string;
2756
+ picture?: string | undefined;
2757
+ additionalCredentials?: any;
2758
+ }, {
2759
+ id: string;
2760
+ name: string;
2761
+ picture?: string | undefined;
2762
+ additionalCredentials?: any;
2763
+ }>;
2764
+ }, "strip", z.ZodTypeAny, {
2765
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2766
+ id: string;
2767
+ metadata: {
2768
+ id: string;
2769
+ name: string;
2770
+ picture?: string | undefined;
2771
+ additionalCredentials?: any;
2772
+ };
2773
+ createdAt: Date;
2774
+ updatedAt: Date;
2775
+ deletedAt: Date | null;
2776
+ channelId: string;
2777
+ socialPlatformId: string;
2778
+ }, {
2779
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2780
+ id: string;
2781
+ metadata: {
2782
+ id: string;
2783
+ name: string;
2784
+ picture?: string | undefined;
2785
+ additionalCredentials?: any;
2786
+ };
2787
+ createdAt: Date;
2788
+ updatedAt: Date;
2789
+ deletedAt: Date | null;
2790
+ channelId: string;
2791
+ socialPlatformId: string;
2792
+ }>, "many">>;
1786
2793
  customFields: z.ZodArray<z.ZodObject<{
1787
2794
  id: z.ZodString;
1788
2795
  createdAt: z.ZodDate;
@@ -2162,6 +3169,21 @@ export declare const ContactContractValidationSchema: {
2162
3169
  deletedAt: Date | null;
2163
3170
  phone: string;
2164
3171
  }[];
3172
+ platformContacts?: {
3173
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3174
+ id: string;
3175
+ metadata: {
3176
+ id: string;
3177
+ name: string;
3178
+ picture?: string | undefined;
3179
+ additionalCredentials?: any;
3180
+ };
3181
+ createdAt: Date;
3182
+ updatedAt: Date;
3183
+ deletedAt: Date | null;
3184
+ channelId: string;
3185
+ socialPlatformId: string;
3186
+ }[] | undefined;
2165
3187
  activityLogs?: {
2166
3188
  id: string;
2167
3189
  description: string;
@@ -2258,6 +3280,21 @@ export declare const ContactContractValidationSchema: {
2258
3280
  deletedAt: Date | null;
2259
3281
  phone: string;
2260
3282
  }[];
3283
+ platformContacts?: {
3284
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3285
+ id: string;
3286
+ metadata: {
3287
+ id: string;
3288
+ name: string;
3289
+ picture?: string | undefined;
3290
+ additionalCredentials?: any;
3291
+ };
3292
+ createdAt: Date;
3293
+ updatedAt: Date;
3294
+ deletedAt: Date | null;
3295
+ channelId: string;
3296
+ socialPlatformId: string;
3297
+ }[] | undefined;
2261
3298
  activityLogs?: {
2262
3299
  id: string;
2263
3300
  description: string;
@@ -2479,6 +3516,59 @@ export declare const ContactContractValidationSchema: {
2479
3516
  phone?: string | null | undefined;
2480
3517
  industry?: string | null | undefined;
2481
3518
  }>>;
3519
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3520
+ id: z.ZodString;
3521
+ createdAt: z.ZodDate;
3522
+ updatedAt: z.ZodDate;
3523
+ deletedAt: z.ZodNullable<z.ZodDate>;
3524
+ channelId: z.ZodString;
3525
+ socialPlatformId: z.ZodString;
3526
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
3527
+ metadata: z.ZodObject<{
3528
+ id: z.ZodString;
3529
+ name: z.ZodString;
3530
+ picture: z.ZodOptional<z.ZodString>;
3531
+ additionalCredentials: z.ZodAny;
3532
+ }, "strip", z.ZodTypeAny, {
3533
+ id: string;
3534
+ name: string;
3535
+ picture?: string | undefined;
3536
+ additionalCredentials?: any;
3537
+ }, {
3538
+ id: string;
3539
+ name: string;
3540
+ picture?: string | undefined;
3541
+ additionalCredentials?: any;
3542
+ }>;
3543
+ }, "strip", z.ZodTypeAny, {
3544
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3545
+ id: string;
3546
+ metadata: {
3547
+ id: string;
3548
+ name: string;
3549
+ picture?: string | undefined;
3550
+ additionalCredentials?: any;
3551
+ };
3552
+ createdAt: Date;
3553
+ updatedAt: Date;
3554
+ deletedAt: Date | null;
3555
+ channelId: string;
3556
+ socialPlatformId: string;
3557
+ }, {
3558
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3559
+ id: string;
3560
+ metadata: {
3561
+ id: string;
3562
+ name: string;
3563
+ picture?: string | undefined;
3564
+ additionalCredentials?: any;
3565
+ };
3566
+ createdAt: Date;
3567
+ updatedAt: Date;
3568
+ deletedAt: Date | null;
3569
+ channelId: string;
3570
+ socialPlatformId: string;
3571
+ }>, "many">>;
2482
3572
  customFields: z.ZodArray<z.ZodObject<{
2483
3573
  id: z.ZodString;
2484
3574
  createdAt: z.ZodDate;
@@ -2858,6 +3948,21 @@ export declare const ContactContractValidationSchema: {
2858
3948
  deletedAt: Date | null;
2859
3949
  phone: string;
2860
3950
  }[];
3951
+ platformContacts?: {
3952
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3953
+ id: string;
3954
+ metadata: {
3955
+ id: string;
3956
+ name: string;
3957
+ picture?: string | undefined;
3958
+ additionalCredentials?: any;
3959
+ };
3960
+ createdAt: Date;
3961
+ updatedAt: Date;
3962
+ deletedAt: Date | null;
3963
+ channelId: string;
3964
+ socialPlatformId: string;
3965
+ }[] | undefined;
2861
3966
  activityLogs?: {
2862
3967
  id: string;
2863
3968
  description: string;
@@ -2954,6 +4059,21 @@ export declare const ContactContractValidationSchema: {
2954
4059
  deletedAt: Date | null;
2955
4060
  phone: string;
2956
4061
  }[];
4062
+ platformContacts?: {
4063
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4064
+ id: string;
4065
+ metadata: {
4066
+ id: string;
4067
+ name: string;
4068
+ picture?: string | undefined;
4069
+ additionalCredentials?: any;
4070
+ };
4071
+ createdAt: Date;
4072
+ updatedAt: Date;
4073
+ deletedAt: Date | null;
4074
+ channelId: string;
4075
+ socialPlatformId: string;
4076
+ }[] | undefined;
2957
4077
  activityLogs?: {
2958
4078
  id: string;
2959
4079
  description: string;
@@ -3178,6 +4298,59 @@ export declare const ContactContractValidationSchema: {
3178
4298
  phone?: string | null | undefined;
3179
4299
  industry?: string | null | undefined;
3180
4300
  }>>;
4301
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
4302
+ id: z.ZodString;
4303
+ createdAt: z.ZodDate;
4304
+ updatedAt: z.ZodDate;
4305
+ deletedAt: z.ZodNullable<z.ZodDate>;
4306
+ channelId: z.ZodString;
4307
+ socialPlatformId: z.ZodString;
4308
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
4309
+ metadata: z.ZodObject<{
4310
+ id: z.ZodString;
4311
+ name: z.ZodString;
4312
+ picture: z.ZodOptional<z.ZodString>;
4313
+ additionalCredentials: z.ZodAny;
4314
+ }, "strip", z.ZodTypeAny, {
4315
+ id: string;
4316
+ name: string;
4317
+ picture?: string | undefined;
4318
+ additionalCredentials?: any;
4319
+ }, {
4320
+ id: string;
4321
+ name: string;
4322
+ picture?: string | undefined;
4323
+ additionalCredentials?: any;
4324
+ }>;
4325
+ }, "strip", z.ZodTypeAny, {
4326
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4327
+ id: string;
4328
+ metadata: {
4329
+ id: string;
4330
+ name: string;
4331
+ picture?: string | undefined;
4332
+ additionalCredentials?: any;
4333
+ };
4334
+ createdAt: Date;
4335
+ updatedAt: Date;
4336
+ deletedAt: Date | null;
4337
+ channelId: string;
4338
+ socialPlatformId: string;
4339
+ }, {
4340
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4341
+ id: string;
4342
+ metadata: {
4343
+ id: string;
4344
+ name: string;
4345
+ picture?: string | undefined;
4346
+ additionalCredentials?: any;
4347
+ };
4348
+ createdAt: Date;
4349
+ updatedAt: Date;
4350
+ deletedAt: Date | null;
4351
+ channelId: string;
4352
+ socialPlatformId: string;
4353
+ }>, "many">>;
3181
4354
  customFields: z.ZodArray<z.ZodObject<{
3182
4355
  id: z.ZodString;
3183
4356
  createdAt: z.ZodDate;
@@ -3557,6 +4730,21 @@ export declare const ContactContractValidationSchema: {
3557
4730
  deletedAt: Date | null;
3558
4731
  phone: string;
3559
4732
  }[];
4733
+ platformContacts?: {
4734
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4735
+ id: string;
4736
+ metadata: {
4737
+ id: string;
4738
+ name: string;
4739
+ picture?: string | undefined;
4740
+ additionalCredentials?: any;
4741
+ };
4742
+ createdAt: Date;
4743
+ updatedAt: Date;
4744
+ deletedAt: Date | null;
4745
+ channelId: string;
4746
+ socialPlatformId: string;
4747
+ }[] | undefined;
3560
4748
  activityLogs?: {
3561
4749
  id: string;
3562
4750
  description: string;
@@ -3653,6 +4841,21 @@ export declare const ContactContractValidationSchema: {
3653
4841
  deletedAt: Date | null;
3654
4842
  phone: string;
3655
4843
  }[];
4844
+ platformContacts?: {
4845
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4846
+ id: string;
4847
+ metadata: {
4848
+ id: string;
4849
+ name: string;
4850
+ picture?: string | undefined;
4851
+ additionalCredentials?: any;
4852
+ };
4853
+ createdAt: Date;
4854
+ updatedAt: Date;
4855
+ deletedAt: Date | null;
4856
+ channelId: string;
4857
+ socialPlatformId: string;
4858
+ }[] | undefined;
3656
4859
  activityLogs?: {
3657
4860
  id: string;
3658
4861
  description: string;
@@ -3939,6 +5142,59 @@ export declare const ContactContractValidationSchema: {
3939
5142
  phone?: string | null | undefined;
3940
5143
  industry?: string | null | undefined;
3941
5144
  }>>;
5145
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
5146
+ id: z.ZodString;
5147
+ createdAt: z.ZodDate;
5148
+ updatedAt: z.ZodDate;
5149
+ deletedAt: z.ZodNullable<z.ZodDate>;
5150
+ channelId: z.ZodString;
5151
+ socialPlatformId: z.ZodString;
5152
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
5153
+ metadata: z.ZodObject<{
5154
+ id: z.ZodString;
5155
+ name: z.ZodString;
5156
+ picture: z.ZodOptional<z.ZodString>;
5157
+ additionalCredentials: z.ZodAny;
5158
+ }, "strip", z.ZodTypeAny, {
5159
+ id: string;
5160
+ name: string;
5161
+ picture?: string | undefined;
5162
+ additionalCredentials?: any;
5163
+ }, {
5164
+ id: string;
5165
+ name: string;
5166
+ picture?: string | undefined;
5167
+ additionalCredentials?: any;
5168
+ }>;
5169
+ }, "strip", z.ZodTypeAny, {
5170
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5171
+ id: string;
5172
+ metadata: {
5173
+ id: string;
5174
+ name: string;
5175
+ picture?: string | undefined;
5176
+ additionalCredentials?: any;
5177
+ };
5178
+ createdAt: Date;
5179
+ updatedAt: Date;
5180
+ deletedAt: Date | null;
5181
+ channelId: string;
5182
+ socialPlatformId: string;
5183
+ }, {
5184
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5185
+ id: string;
5186
+ metadata: {
5187
+ id: string;
5188
+ name: string;
5189
+ picture?: string | undefined;
5190
+ additionalCredentials?: any;
5191
+ };
5192
+ createdAt: Date;
5193
+ updatedAt: Date;
5194
+ deletedAt: Date | null;
5195
+ channelId: string;
5196
+ socialPlatformId: string;
5197
+ }>, "many">>;
3942
5198
  customFields: z.ZodArray<z.ZodObject<{
3943
5199
  id: z.ZodString;
3944
5200
  createdAt: z.ZodDate;
@@ -4318,6 +5574,21 @@ export declare const ContactContractValidationSchema: {
4318
5574
  deletedAt: Date | null;
4319
5575
  phone: string;
4320
5576
  }[];
5577
+ platformContacts?: {
5578
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5579
+ id: string;
5580
+ metadata: {
5581
+ id: string;
5582
+ name: string;
5583
+ picture?: string | undefined;
5584
+ additionalCredentials?: any;
5585
+ };
5586
+ createdAt: Date;
5587
+ updatedAt: Date;
5588
+ deletedAt: Date | null;
5589
+ channelId: string;
5590
+ socialPlatformId: string;
5591
+ }[] | undefined;
4321
5592
  activityLogs?: {
4322
5593
  id: string;
4323
5594
  description: string;
@@ -4414,6 +5685,21 @@ export declare const ContactContractValidationSchema: {
4414
5685
  deletedAt: Date | null;
4415
5686
  phone: string;
4416
5687
  }[];
5688
+ platformContacts?: {
5689
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5690
+ id: string;
5691
+ metadata: {
5692
+ id: string;
5693
+ name: string;
5694
+ picture?: string | undefined;
5695
+ additionalCredentials?: any;
5696
+ };
5697
+ createdAt: Date;
5698
+ updatedAt: Date;
5699
+ deletedAt: Date | null;
5700
+ channelId: string;
5701
+ socialPlatformId: string;
5702
+ }[] | undefined;
4417
5703
  activityLogs?: {
4418
5704
  id: string;
4419
5705
  description: string;
@@ -4463,20 +5749,26 @@ export declare const ContactContractValidationSchema: {
4463
5749
  page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4464
5750
  pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4465
5751
  keyword: z.ZodOptional<z.ZodString>;
5752
+ channelType: z.ZodOptional<z.ZodString>;
5753
+ channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4466
5754
  withEmail: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4467
- relations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"company">, z.ZodLiteral<"contactEmails">, z.ZodLiteral<"contactPhones">]>, "many">>>;
5755
+ relations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"company">, z.ZodLiteral<"contactEmails">, z.ZodLiteral<"contactPhones">, z.ZodLiteral<"platformContacts">]>, "many">>>;
4468
5756
  }, "strip", z.ZodTypeAny, {
4469
5757
  page?: number | undefined;
4470
5758
  pageSize?: number | undefined;
4471
5759
  keyword?: string | undefined;
5760
+ channelType?: string | undefined;
5761
+ channelIds?: string[] | undefined;
4472
5762
  withEmail?: boolean | undefined;
4473
- relations?: ("company" | "contactEmails" | "contactPhones")[] | undefined;
5763
+ relations?: ("company" | "platformContacts" | "contactEmails" | "contactPhones")[] | undefined;
4474
5764
  }, {
4475
5765
  page?: number | undefined;
4476
5766
  pageSize?: number | undefined;
4477
5767
  keyword?: string | undefined;
5768
+ channelType?: string | undefined;
5769
+ channelIds?: string[] | undefined;
4478
5770
  withEmail?: boolean | undefined;
4479
- relations?: ("company" | "contactEmails" | "contactPhones")[] | undefined;
5771
+ relations?: ("company" | "platformContacts" | "contactEmails" | "contactPhones")[] | undefined;
4480
5772
  }>;
4481
5773
  response: {
4482
5774
  page: z.ZodNumber;
@@ -4678,6 +5970,59 @@ export declare const ContactContractValidationSchema: {
4678
5970
  phone?: string | null | undefined;
4679
5971
  industry?: string | null | undefined;
4680
5972
  }>>;
5973
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
5974
+ id: z.ZodString;
5975
+ createdAt: z.ZodDate;
5976
+ updatedAt: z.ZodDate;
5977
+ deletedAt: z.ZodNullable<z.ZodDate>;
5978
+ channelId: z.ZodString;
5979
+ socialPlatformId: z.ZodString;
5980
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
5981
+ metadata: z.ZodObject<{
5982
+ id: z.ZodString;
5983
+ name: z.ZodString;
5984
+ picture: z.ZodOptional<z.ZodString>;
5985
+ additionalCredentials: z.ZodAny;
5986
+ }, "strip", z.ZodTypeAny, {
5987
+ id: string;
5988
+ name: string;
5989
+ picture?: string | undefined;
5990
+ additionalCredentials?: any;
5991
+ }, {
5992
+ id: string;
5993
+ name: string;
5994
+ picture?: string | undefined;
5995
+ additionalCredentials?: any;
5996
+ }>;
5997
+ }, "strip", z.ZodTypeAny, {
5998
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5999
+ id: string;
6000
+ metadata: {
6001
+ id: string;
6002
+ name: string;
6003
+ picture?: string | undefined;
6004
+ additionalCredentials?: any;
6005
+ };
6006
+ createdAt: Date;
6007
+ updatedAt: Date;
6008
+ deletedAt: Date | null;
6009
+ channelId: string;
6010
+ socialPlatformId: string;
6011
+ }, {
6012
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6013
+ id: string;
6014
+ metadata: {
6015
+ id: string;
6016
+ name: string;
6017
+ picture?: string | undefined;
6018
+ additionalCredentials?: any;
6019
+ };
6020
+ createdAt: Date;
6021
+ updatedAt: Date;
6022
+ deletedAt: Date | null;
6023
+ channelId: string;
6024
+ socialPlatformId: string;
6025
+ }>, "many">>;
4681
6026
  customFields: z.ZodArray<z.ZodObject<{
4682
6027
  id: z.ZodString;
4683
6028
  createdAt: z.ZodDate;
@@ -5057,6 +6402,21 @@ export declare const ContactContractValidationSchema: {
5057
6402
  deletedAt: Date | null;
5058
6403
  phone: string;
5059
6404
  }[];
6405
+ platformContacts?: {
6406
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6407
+ id: string;
6408
+ metadata: {
6409
+ id: string;
6410
+ name: string;
6411
+ picture?: string | undefined;
6412
+ additionalCredentials?: any;
6413
+ };
6414
+ createdAt: Date;
6415
+ updatedAt: Date;
6416
+ deletedAt: Date | null;
6417
+ channelId: string;
6418
+ socialPlatformId: string;
6419
+ }[] | undefined;
5060
6420
  activityLogs?: {
5061
6421
  id: string;
5062
6422
  description: string;
@@ -5153,6 +6513,21 @@ export declare const ContactContractValidationSchema: {
5153
6513
  deletedAt: Date | null;
5154
6514
  phone: string;
5155
6515
  }[];
6516
+ platformContacts?: {
6517
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6518
+ id: string;
6519
+ metadata: {
6520
+ id: string;
6521
+ name: string;
6522
+ picture?: string | undefined;
6523
+ additionalCredentials?: any;
6524
+ };
6525
+ createdAt: Date;
6526
+ updatedAt: Date;
6527
+ deletedAt: Date | null;
6528
+ channelId: string;
6529
+ socialPlatformId: string;
6530
+ }[] | undefined;
5156
6531
  activityLogs?: {
5157
6532
  id: string;
5158
6533
  description: string;