@kl1/contracts 1.0.56 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1527,6 +1527,10 @@ var ChannelServiceResponseSchema = DefaultSuccessResponseSchema.extend(
1527
1527
  );
1528
1528
  var ReceiveMessageSchema = z32.object({
1529
1529
  message: z32.object({
1530
+ id: z32.string().uuid(),
1531
+ createdAt: z32.string(),
1532
+ updatedAt: z32.string(),
1533
+ deletedAt: z32.string().nullable(),
1530
1534
  message: z32.string().optional(),
1531
1535
  direction: MessageDirectionTypeSchema,
1532
1536
  type: MessageTypeSchema,
@@ -1540,6 +1544,10 @@ var ReceiveMessageSchema = z32.object({
1540
1544
  previewUrl: z32.string().optional(),
1541
1545
  imageSetId: z32.string().optional(),
1542
1546
  room: z32.object({
1547
+ id: z32.string().uuid(),
1548
+ createdAt: z32.string(),
1549
+ updatedAt: z32.string(),
1550
+ deletedAt: z32.string().nullable(),
1543
1551
  lastMessage: z32.string(),
1544
1552
  handleTime: z32.number(),
1545
1553
  closeAt: z32.date(),
@@ -1549,12 +1557,19 @@ var ReceiveMessageSchema = z32.object({
1549
1557
  isLatest: z32.boolean(),
1550
1558
  direction: MessageDirectionTypeSchema,
1551
1559
  platformContact: z32.object({
1560
+ id: z32.string().uuid(),
1561
+ createdAt: z32.string(),
1562
+ updatedAt: z32.string(),
1563
+ deletedAt: z32.string().nullable(),
1552
1564
  channelId: z32.string().uuid(),
1553
1565
  socialPlatformId: z32.string(),
1554
1566
  type: ChannelTypeSchema,
1555
1567
  metadata: PlatformContactMetadataSchema,
1556
1568
  contact: z32.object({
1557
1569
  id: z32.string().uuid(),
1570
+ createdAt: z32.string(),
1571
+ updatedAt: z32.string(),
1572
+ deletedAt: z32.string().nullable(),
1558
1573
  name: z32.string(),
1559
1574
  address: z32.string().nullable(),
1560
1575
  channel: z32.string().nullable(),
@@ -1562,7 +1577,7 @@ var ReceiveMessageSchema = z32.object({
1562
1577
  contactProfile: z32.string().nullable(),
1563
1578
  socialProfileUrl: z32.string().nullable(),
1564
1579
  tags: z32.array(TagSchema).optional(),
1565
- company: CompanySchema.omit({ customFields: true }).nullable(),
1580
+ company: CompanySchema.omit({ customFields: true }).optional(),
1566
1581
  // room: z.array(RoomSchema).optional(),
1567
1582
  customFields: z32.array(ContactCustomFieldSchema).optional(),
1568
1583
  contactEmails: z32.array(ContactEmailsSchema).optional(),
@@ -1570,11 +1585,63 @@ var ReceiveMessageSchema = z32.object({
1570
1585
  activityLogs: z32.array(ContactActivitySchema).optional()
1571
1586
  })
1572
1587
  }),
1573
- actor: UserSchema,
1574
- assignee: UserSchema,
1588
+ actor: z32.object({
1589
+ id: z32.string().uuid(),
1590
+ createdAt: z32.string(),
1591
+ updatedAt: z32.string(),
1592
+ deletedAt: z32.string().nullable(),
1593
+ name: z32.string(),
1594
+ email: z32.string().email(),
1595
+ emailVerifiedAt: z32.date().optional(),
1596
+ password: z32.string(),
1597
+ address: z32.string().nullable(),
1598
+ phone: z32.string().nullable(),
1599
+ notificationCount: z32.number().nullable(),
1600
+ roles: z32.array(RoleSchema).optional(),
1601
+ extension: z32.object({
1602
+ id: z32.string().uuid(),
1603
+ createdAt: z32.date(),
1604
+ updatedAt: z32.date(),
1605
+ deletedAt: z32.date().nullable(),
1606
+ userId: z32.string().nullable(),
1607
+ sipServerUrl: z32.string(),
1608
+ sipUserName: z32.string(),
1609
+ webphoneLoginUser: z32.string(),
1610
+ extensionId: z32.string().nullable(),
1611
+ extensionName: z32.string(),
1612
+ telephonySignature: z32.string().nullable()
1613
+ }).optional()
1614
+ }).nullable(),
1615
+ assignee: z32.object({
1616
+ id: z32.string().uuid(),
1617
+ createdAt: z32.string(),
1618
+ updatedAt: z32.string(),
1619
+ deletedAt: z32.string().nullable(),
1620
+ name: z32.string(),
1621
+ email: z32.string().email(),
1622
+ emailVerifiedAt: z32.date().optional(),
1623
+ password: z32.string(),
1624
+ address: z32.string().nullable(),
1625
+ phone: z32.string().nullable(),
1626
+ notificationCount: z32.number().nullable(),
1627
+ roles: z32.array(RoleSchema).optional(),
1628
+ extension: z32.object({
1629
+ id: z32.string().uuid(),
1630
+ createdAt: z32.date(),
1631
+ updatedAt: z32.date(),
1632
+ deletedAt: z32.date().nullable(),
1633
+ userId: z32.string().nullable(),
1634
+ sipServerUrl: z32.string(),
1635
+ sipUserName: z32.string(),
1636
+ webphoneLoginUser: z32.string(),
1637
+ extensionId: z32.string().nullable(),
1638
+ extensionName: z32.string(),
1639
+ telephonySignature: z32.string().nullable()
1640
+ }).optional()
1641
+ }).nullable(),
1575
1642
  channel: ChannelSchema2,
1576
1643
  cxlog: CxLogSchema
1577
- }).partial(),
1644
+ }).partial().nullable(),
1578
1645
  upload: z32.object({
1579
1646
  bucketName: z32.string().nullable(),
1580
1647
  fileName: z32.string().nullable(),
@@ -1587,9 +1654,9 @@ var ReceiveMessageSchema = z32.object({
1587
1654
  updatedAt: z32.string(),
1588
1655
  deletedAt: z32.string().nullable()
1589
1656
  }).optional(),
1590
- actor: UserSchema.optional(),
1591
- assignee: UserSchema.optional(),
1592
- sender: UserSchema.optional()
1657
+ actor: UserSchema.optional().nullable(),
1658
+ assignee: UserSchema.optional().nullable(),
1659
+ sender: UserSchema.optional().nullable()
1593
1660
  })
1594
1661
  });
1595
1662
 
@@ -1760,7 +1827,7 @@ var mainChatContract = initContract7().router(
1760
1827
  },
1761
1828
  readRoom: {
1762
1829
  method: "POST",
1763
- path: "/room/read/:roomid",
1830
+ path: "/room/read/:roomId",
1764
1831
  pathParams: z33.object({
1765
1832
  roomId: z33.string().uuid()
1766
1833
  }),
@@ -5958,6 +6025,7 @@ export {
5958
6025
  apiContract,
5959
6026
  attributeContract,
5960
6027
  categoryContract,
6028
+ channelContract,
5961
6029
  chatContract,
5962
6030
  commentActivityContract,
5963
6031
  commentContract,
@@ -5966,8 +6034,10 @@ export {
5966
6034
  dashboardContract,
5967
6035
  evaluateFormContract,
5968
6036
  extensionContract2 as extensionContract,
6037
+ mainChatContract,
5969
6038
  permissionContract,
5970
6039
  platformContract,
6040
+ receiveMessageContract,
5971
6041
  tagContract,
5972
6042
  telephonyCdrContract,
5973
6043
  telephonyContract,