@kl1/contracts 1.0.74 → 1.0.75

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.
@@ -1600,14 +1600,14 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1600
1600
  telephonySignature: string | null;
1601
1601
  };
1602
1602
  }>;
1603
- channel: z.ZodOptional<z.ZodObject<{
1604
- id: z.ZodOptional<z.ZodString>;
1605
- createdAt: z.ZodOptional<z.ZodDate>;
1606
- updatedAt: z.ZodOptional<z.ZodDate>;
1607
- deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1608
- name: z.ZodOptional<z.ZodString>;
1609
- type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
1610
- metadata: z.ZodOptional<z.ZodObject<{
1603
+ channel: z.ZodObject<{
1604
+ id: z.ZodString;
1605
+ createdAt: z.ZodDate;
1606
+ updatedAt: z.ZodDate;
1607
+ deletedAt: z.ZodNullable<z.ZodDate>;
1608
+ name: z.ZodString;
1609
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
1610
+ metadata: z.ZodObject<{
1611
1611
  id: z.ZodString;
1612
1612
  name: z.ZodString;
1613
1613
  accessToken: z.ZodString;
@@ -1625,14 +1625,14 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1625
1625
  accessToken: string;
1626
1626
  channelSecret?: string | undefined;
1627
1627
  additionalCredentials?: any;
1628
- }>>;
1629
- brandName: z.ZodOptional<z.ZodString>;
1630
- platformId: z.ZodOptional<z.ZodString>;
1631
- status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
1632
- isReloginRequired: z.ZodOptional<z.ZodBoolean>;
1633
- connectedUserName: z.ZodOptional<z.ZodString>;
1634
- connectedUserId: z.ZodOptional<z.ZodString>;
1635
- actor: z.ZodOptional<z.ZodObject<{
1628
+ }>;
1629
+ brandName: z.ZodString;
1630
+ platformId: z.ZodString;
1631
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
1632
+ isReloginRequired: z.ZodBoolean;
1633
+ connectedUserName: z.ZodString;
1634
+ connectedUserId: z.ZodString;
1635
+ actor: z.ZodObject<{
1636
1636
  id: z.ZodString;
1637
1637
  createdAt: z.ZodDate;
1638
1638
  updatedAt: z.ZodDate;
@@ -1835,28 +1835,23 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1835
1835
  extensionName: string;
1836
1836
  telephonySignature: string | null;
1837
1837
  };
1838
- }>>;
1838
+ }>;
1839
1839
  }, "strip", z.ZodTypeAny, {
1840
- id?: string | undefined;
1841
- createdAt?: Date | undefined;
1842
- updatedAt?: Date | undefined;
1843
- deletedAt?: Date | null | undefined;
1844
- name?: string | undefined;
1845
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1846
- metadata?: {
1840
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1841
+ id: string;
1842
+ name: string;
1843
+ metadata: {
1847
1844
  id: string;
1848
1845
  name: string;
1849
1846
  accessToken: string;
1850
1847
  channelSecret?: string | undefined;
1851
1848
  additionalCredentials?: any;
1852
- } | undefined;
1853
- brandName?: string | undefined;
1854
- platformId?: string | undefined;
1855
- status?: boolean | undefined;
1856
- isReloginRequired?: boolean | undefined;
1857
- connectedUserName?: string | undefined;
1858
- connectedUserId?: string | undefined;
1859
- actor?: {
1849
+ };
1850
+ status: boolean;
1851
+ createdAt: Date;
1852
+ updatedAt: Date;
1853
+ deletedAt: Date | null;
1854
+ actor: {
1860
1855
  id: string;
1861
1856
  address: string | null;
1862
1857
  name: string;
@@ -1899,28 +1894,28 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1899
1894
  extensionName: string;
1900
1895
  telephonySignature: string | null;
1901
1896
  };
1902
- } | undefined;
1897
+ };
1898
+ brandName: string;
1899
+ platformId: string;
1900
+ isReloginRequired: boolean;
1901
+ connectedUserName: string;
1902
+ connectedUserId: string;
1903
1903
  }, {
1904
- id?: string | undefined;
1905
- createdAt?: Date | undefined;
1906
- updatedAt?: Date | undefined;
1907
- deletedAt?: Date | null | undefined;
1908
- name?: string | undefined;
1909
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
1910
- metadata?: {
1904
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1905
+ id: string;
1906
+ name: string;
1907
+ metadata: {
1911
1908
  id: string;
1912
1909
  name: string;
1913
1910
  accessToken: string;
1914
1911
  channelSecret?: string | undefined;
1915
1912
  additionalCredentials?: any;
1916
- } | undefined;
1917
- brandName?: string | undefined;
1918
- platformId?: string | undefined;
1919
- status?: boolean | undefined;
1920
- isReloginRequired?: boolean | undefined;
1921
- connectedUserName?: string | undefined;
1922
- connectedUserId?: string | undefined;
1923
- actor?: {
1913
+ };
1914
+ status: boolean;
1915
+ createdAt: Date;
1916
+ updatedAt: Date;
1917
+ deletedAt: Date | null;
1918
+ actor: {
1924
1919
  id: string;
1925
1920
  address: string | null;
1926
1921
  name: string;
@@ -1963,10 +1958,80 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
1963
1958
  extensionName: string;
1964
1959
  telephonySignature: string | null;
1965
1960
  };
1966
- } | undefined;
1967
- }>>;
1961
+ };
1962
+ brandName: string;
1963
+ platformId: string;
1964
+ isReloginRequired: boolean;
1965
+ connectedUserName: string;
1966
+ connectedUserId: string;
1967
+ }>;
1968
1968
  }, "strip", z.ZodTypeAny, {
1969
1969
  id: string;
1970
+ channel: {
1971
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
1972
+ id: string;
1973
+ name: string;
1974
+ metadata: {
1975
+ id: string;
1976
+ name: string;
1977
+ accessToken: string;
1978
+ channelSecret?: string | undefined;
1979
+ additionalCredentials?: any;
1980
+ };
1981
+ status: boolean;
1982
+ createdAt: Date;
1983
+ updatedAt: Date;
1984
+ deletedAt: Date | null;
1985
+ actor: {
1986
+ id: string;
1987
+ address: string | null;
1988
+ name: string;
1989
+ email: string;
1990
+ createdAt: Date;
1991
+ updatedAt: Date;
1992
+ deletedAt: Date | null;
1993
+ emailVerifiedAt: Date | null;
1994
+ password: string;
1995
+ phone: string | null;
1996
+ notificationCount: number | null;
1997
+ roles: {
1998
+ id: string;
1999
+ description: string | null;
2000
+ createdAt: Date;
2001
+ updatedAt: Date;
2002
+ deletedAt: Date | null;
2003
+ systemName: string;
2004
+ displayName: string;
2005
+ permissions: {
2006
+ id: string;
2007
+ description: string | null;
2008
+ createdAt: Date;
2009
+ updatedAt: Date;
2010
+ deletedAt: Date | null;
2011
+ systemName: string;
2012
+ displayName: string;
2013
+ }[];
2014
+ }[];
2015
+ extension: {
2016
+ id: string;
2017
+ createdAt: Date;
2018
+ updatedAt: Date;
2019
+ deletedAt: Date | null;
2020
+ userId: string | null;
2021
+ sipServerUrl: string;
2022
+ sipUserName: string;
2023
+ webphoneLoginUser: string;
2024
+ extensionId: string | null;
2025
+ extensionName: string;
2026
+ telephonySignature: string | null;
2027
+ };
2028
+ };
2029
+ brandName: string;
2030
+ platformId: string;
2031
+ isReloginRequired: boolean;
2032
+ connectedUserName: string;
2033
+ connectedUserId: string;
2034
+ };
1970
2035
  direction: "incoming" | "outgoing" | "system";
1971
2036
  createdAt: Date;
1972
2037
  updatedAt: Date;
@@ -2178,27 +2243,24 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
2178
2243
  telephonySignature: string | null;
2179
2244
  };
2180
2245
  };
2181
- channel?: {
2182
- id?: string | undefined;
2183
- createdAt?: Date | undefined;
2184
- updatedAt?: Date | undefined;
2185
- deletedAt?: Date | null | undefined;
2186
- name?: string | undefined;
2187
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2188
- metadata?: {
2246
+ }, {
2247
+ id: string;
2248
+ channel: {
2249
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
2250
+ id: string;
2251
+ name: string;
2252
+ metadata: {
2189
2253
  id: string;
2190
2254
  name: string;
2191
2255
  accessToken: string;
2192
2256
  channelSecret?: string | undefined;
2193
2257
  additionalCredentials?: any;
2194
- } | undefined;
2195
- brandName?: string | undefined;
2196
- platformId?: string | undefined;
2197
- status?: boolean | undefined;
2198
- isReloginRequired?: boolean | undefined;
2199
- connectedUserName?: string | undefined;
2200
- connectedUserId?: string | undefined;
2201
- actor?: {
2258
+ };
2259
+ status: boolean;
2260
+ createdAt: Date;
2261
+ updatedAt: Date;
2262
+ deletedAt: Date | null;
2263
+ actor: {
2202
2264
  id: string;
2203
2265
  address: string | null;
2204
2266
  name: string;
@@ -2241,10 +2303,13 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
2241
2303
  extensionName: string;
2242
2304
  telephonySignature: string | null;
2243
2305
  };
2244
- } | undefined;
2245
- } | undefined;
2246
- }, {
2247
- id: string;
2306
+ };
2307
+ brandName: string;
2308
+ platformId: string;
2309
+ isReloginRequired: boolean;
2310
+ connectedUserName: string;
2311
+ connectedUserId: string;
2312
+ };
2248
2313
  direction: "incoming" | "outgoing" | "system";
2249
2314
  createdAt: Date;
2250
2315
  updatedAt: Date;
@@ -2456,71 +2521,6 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
2456
2521
  telephonySignature: string | null;
2457
2522
  };
2458
2523
  };
2459
- channel?: {
2460
- id?: string | undefined;
2461
- createdAt?: Date | undefined;
2462
- updatedAt?: Date | undefined;
2463
- deletedAt?: Date | null | undefined;
2464
- name?: string | undefined;
2465
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
2466
- metadata?: {
2467
- id: string;
2468
- name: string;
2469
- accessToken: string;
2470
- channelSecret?: string | undefined;
2471
- additionalCredentials?: any;
2472
- } | undefined;
2473
- brandName?: string | undefined;
2474
- platformId?: string | undefined;
2475
- status?: boolean | undefined;
2476
- isReloginRequired?: boolean | undefined;
2477
- connectedUserName?: string | undefined;
2478
- connectedUserId?: string | undefined;
2479
- actor?: {
2480
- id: string;
2481
- address: string | null;
2482
- name: string;
2483
- email: string;
2484
- createdAt: Date;
2485
- updatedAt: Date;
2486
- deletedAt: Date | null;
2487
- emailVerifiedAt: Date | null;
2488
- password: string;
2489
- phone: string | null;
2490
- notificationCount: number | null;
2491
- roles: {
2492
- id: string;
2493
- description: string | null;
2494
- createdAt: Date;
2495
- updatedAt: Date;
2496
- deletedAt: Date | null;
2497
- systemName: string;
2498
- displayName: string;
2499
- permissions: {
2500
- id: string;
2501
- description: string | null;
2502
- createdAt: Date;
2503
- updatedAt: Date;
2504
- deletedAt: Date | null;
2505
- systemName: string;
2506
- displayName: string;
2507
- }[];
2508
- }[];
2509
- extension: {
2510
- id: string;
2511
- createdAt: Date;
2512
- updatedAt: Date;
2513
- deletedAt: Date | null;
2514
- userId: string | null;
2515
- sipServerUrl: string;
2516
- sipUserName: string;
2517
- webphoneLoginUser: string;
2518
- extensionId: string | null;
2519
- extensionName: string;
2520
- telephonySignature: string | null;
2521
- };
2522
- } | undefined;
2523
- } | undefined;
2524
2524
  }>>;
2525
2525
  telephonyCdr: z.ZodNullable<z.ZodObject<{
2526
2526
  id: z.ZodString;
@@ -5053,6 +5053,71 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5053
5053
  } | null;
5054
5054
  room: {
5055
5055
  id: string;
5056
+ channel: {
5057
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5058
+ id: string;
5059
+ name: string;
5060
+ metadata: {
5061
+ id: string;
5062
+ name: string;
5063
+ accessToken: string;
5064
+ channelSecret?: string | undefined;
5065
+ additionalCredentials?: any;
5066
+ };
5067
+ status: boolean;
5068
+ createdAt: Date;
5069
+ updatedAt: Date;
5070
+ deletedAt: Date | null;
5071
+ actor: {
5072
+ id: string;
5073
+ address: string | null;
5074
+ name: string;
5075
+ email: string;
5076
+ createdAt: Date;
5077
+ updatedAt: Date;
5078
+ deletedAt: Date | null;
5079
+ emailVerifiedAt: Date | null;
5080
+ password: string;
5081
+ phone: string | null;
5082
+ notificationCount: number | null;
5083
+ roles: {
5084
+ id: string;
5085
+ description: string | null;
5086
+ createdAt: Date;
5087
+ updatedAt: Date;
5088
+ deletedAt: Date | null;
5089
+ systemName: string;
5090
+ displayName: string;
5091
+ permissions: {
5092
+ id: string;
5093
+ description: string | null;
5094
+ createdAt: Date;
5095
+ updatedAt: Date;
5096
+ deletedAt: Date | null;
5097
+ systemName: string;
5098
+ displayName: string;
5099
+ }[];
5100
+ }[];
5101
+ extension: {
5102
+ id: string;
5103
+ createdAt: Date;
5104
+ updatedAt: Date;
5105
+ deletedAt: Date | null;
5106
+ userId: string | null;
5107
+ sipServerUrl: string;
5108
+ sipUserName: string;
5109
+ webphoneLoginUser: string;
5110
+ extensionId: string | null;
5111
+ extensionName: string;
5112
+ telephonySignature: string | null;
5113
+ };
5114
+ };
5115
+ brandName: string;
5116
+ platformId: string;
5117
+ isReloginRequired: boolean;
5118
+ connectedUserName: string;
5119
+ connectedUserId: string;
5120
+ };
5056
5121
  direction: "incoming" | "outgoing" | "system";
5057
5122
  createdAt: Date;
5058
5123
  updatedAt: Date;
@@ -5264,71 +5329,6 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5264
5329
  telephonySignature: string | null;
5265
5330
  };
5266
5331
  };
5267
- channel?: {
5268
- id?: string | undefined;
5269
- createdAt?: Date | undefined;
5270
- updatedAt?: Date | undefined;
5271
- deletedAt?: Date | null | undefined;
5272
- name?: string | undefined;
5273
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5274
- metadata?: {
5275
- id: string;
5276
- name: string;
5277
- accessToken: string;
5278
- channelSecret?: string | undefined;
5279
- additionalCredentials?: any;
5280
- } | undefined;
5281
- brandName?: string | undefined;
5282
- platformId?: string | undefined;
5283
- status?: boolean | undefined;
5284
- isReloginRequired?: boolean | undefined;
5285
- connectedUserName?: string | undefined;
5286
- connectedUserId?: string | undefined;
5287
- actor?: {
5288
- id: string;
5289
- address: string | null;
5290
- name: string;
5291
- email: string;
5292
- createdAt: Date;
5293
- updatedAt: Date;
5294
- deletedAt: Date | null;
5295
- emailVerifiedAt: Date | null;
5296
- password: string;
5297
- phone: string | null;
5298
- notificationCount: number | null;
5299
- roles: {
5300
- id: string;
5301
- description: string | null;
5302
- createdAt: Date;
5303
- updatedAt: Date;
5304
- deletedAt: Date | null;
5305
- systemName: string;
5306
- displayName: string;
5307
- permissions: {
5308
- id: string;
5309
- description: string | null;
5310
- createdAt: Date;
5311
- updatedAt: Date;
5312
- deletedAt: Date | null;
5313
- systemName: string;
5314
- displayName: string;
5315
- }[];
5316
- }[];
5317
- extension: {
5318
- id: string;
5319
- createdAt: Date;
5320
- updatedAt: Date;
5321
- deletedAt: Date | null;
5322
- userId: string | null;
5323
- sipServerUrl: string;
5324
- sipUserName: string;
5325
- webphoneLoginUser: string;
5326
- extensionId: string | null;
5327
- extensionName: string;
5328
- telephonySignature: string | null;
5329
- };
5330
- } | undefined;
5331
- } | undefined;
5332
5332
  } | null;
5333
5333
  customerPhone: string | null;
5334
5334
  channelType: string | null;
@@ -5720,6 +5720,71 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5720
5720
  } | null;
5721
5721
  room: {
5722
5722
  id: string;
5723
+ channel: {
5724
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
5725
+ id: string;
5726
+ name: string;
5727
+ metadata: {
5728
+ id: string;
5729
+ name: string;
5730
+ accessToken: string;
5731
+ channelSecret?: string | undefined;
5732
+ additionalCredentials?: any;
5733
+ };
5734
+ status: boolean;
5735
+ createdAt: Date;
5736
+ updatedAt: Date;
5737
+ deletedAt: Date | null;
5738
+ actor: {
5739
+ id: string;
5740
+ address: string | null;
5741
+ name: string;
5742
+ email: string;
5743
+ createdAt: Date;
5744
+ updatedAt: Date;
5745
+ deletedAt: Date | null;
5746
+ emailVerifiedAt: Date | null;
5747
+ password: string;
5748
+ phone: string | null;
5749
+ notificationCount: number | null;
5750
+ roles: {
5751
+ id: string;
5752
+ description: string | null;
5753
+ createdAt: Date;
5754
+ updatedAt: Date;
5755
+ deletedAt: Date | null;
5756
+ systemName: string;
5757
+ displayName: string;
5758
+ permissions: {
5759
+ id: string;
5760
+ description: string | null;
5761
+ createdAt: Date;
5762
+ updatedAt: Date;
5763
+ deletedAt: Date | null;
5764
+ systemName: string;
5765
+ displayName: string;
5766
+ }[];
5767
+ }[];
5768
+ extension: {
5769
+ id: string;
5770
+ createdAt: Date;
5771
+ updatedAt: Date;
5772
+ deletedAt: Date | null;
5773
+ userId: string | null;
5774
+ sipServerUrl: string;
5775
+ sipUserName: string;
5776
+ webphoneLoginUser: string;
5777
+ extensionId: string | null;
5778
+ extensionName: string;
5779
+ telephonySignature: string | null;
5780
+ };
5781
+ };
5782
+ brandName: string;
5783
+ platformId: string;
5784
+ isReloginRequired: boolean;
5785
+ connectedUserName: string;
5786
+ connectedUserId: string;
5787
+ };
5723
5788
  direction: "incoming" | "outgoing" | "system";
5724
5789
  createdAt: Date;
5725
5790
  updatedAt: Date;
@@ -5931,71 +5996,6 @@ export declare const CxLogSchemaWithRelations: z.ZodObject<{
5931
5996
  telephonySignature: string | null;
5932
5997
  };
5933
5998
  };
5934
- channel?: {
5935
- id?: string | undefined;
5936
- createdAt?: Date | undefined;
5937
- updatedAt?: Date | undefined;
5938
- deletedAt?: Date | null | undefined;
5939
- name?: string | undefined;
5940
- type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5941
- metadata?: {
5942
- id: string;
5943
- name: string;
5944
- accessToken: string;
5945
- channelSecret?: string | undefined;
5946
- additionalCredentials?: any;
5947
- } | undefined;
5948
- brandName?: string | undefined;
5949
- platformId?: string | undefined;
5950
- status?: boolean | undefined;
5951
- isReloginRequired?: boolean | undefined;
5952
- connectedUserName?: string | undefined;
5953
- connectedUserId?: string | undefined;
5954
- actor?: {
5955
- id: string;
5956
- address: string | null;
5957
- name: string;
5958
- email: string;
5959
- createdAt: Date;
5960
- updatedAt: Date;
5961
- deletedAt: Date | null;
5962
- emailVerifiedAt: Date | null;
5963
- password: string;
5964
- phone: string | null;
5965
- notificationCount: number | null;
5966
- roles: {
5967
- id: string;
5968
- description: string | null;
5969
- createdAt: Date;
5970
- updatedAt: Date;
5971
- deletedAt: Date | null;
5972
- systemName: string;
5973
- displayName: string;
5974
- permissions: {
5975
- id: string;
5976
- description: string | null;
5977
- createdAt: Date;
5978
- updatedAt: Date;
5979
- deletedAt: Date | null;
5980
- systemName: string;
5981
- displayName: string;
5982
- }[];
5983
- }[];
5984
- extension: {
5985
- id: string;
5986
- createdAt: Date;
5987
- updatedAt: Date;
5988
- deletedAt: Date | null;
5989
- userId: string | null;
5990
- sipServerUrl: string;
5991
- sipUserName: string;
5992
- webphoneLoginUser: string;
5993
- extensionId: string | null;
5994
- extensionName: string;
5995
- telephonySignature: string | null;
5996
- };
5997
- } | undefined;
5998
- } | undefined;
5999
5999
  } | null;
6000
6000
  customerPhone: string | null;
6001
6001
  channelType: string | null;