@kl1/contracts 1.0.57 → 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
@@ -1544,6 +1544,10 @@ var ReceiveMessageSchema = z32.object({
1544
1544
  previewUrl: z32.string().optional(),
1545
1545
  imageSetId: z32.string().optional(),
1546
1546
  room: z32.object({
1547
+ id: z32.string().uuid(),
1548
+ createdAt: z32.string(),
1549
+ updatedAt: z32.string(),
1550
+ deletedAt: z32.string().nullable(),
1547
1551
  lastMessage: z32.string(),
1548
1552
  handleTime: z32.number(),
1549
1553
  closeAt: z32.date(),
@@ -1553,12 +1557,19 @@ var ReceiveMessageSchema = z32.object({
1553
1557
  isLatest: z32.boolean(),
1554
1558
  direction: MessageDirectionTypeSchema,
1555
1559
  platformContact: z32.object({
1560
+ id: z32.string().uuid(),
1561
+ createdAt: z32.string(),
1562
+ updatedAt: z32.string(),
1563
+ deletedAt: z32.string().nullable(),
1556
1564
  channelId: z32.string().uuid(),
1557
1565
  socialPlatformId: z32.string(),
1558
1566
  type: ChannelTypeSchema,
1559
1567
  metadata: PlatformContactMetadataSchema,
1560
1568
  contact: z32.object({
1561
1569
  id: z32.string().uuid(),
1570
+ createdAt: z32.string(),
1571
+ updatedAt: z32.string(),
1572
+ deletedAt: z32.string().nullable(),
1562
1573
  name: z32.string(),
1563
1574
  address: z32.string().nullable(),
1564
1575
  channel: z32.string().nullable(),
@@ -1566,7 +1577,7 @@ var ReceiveMessageSchema = z32.object({
1566
1577
  contactProfile: z32.string().nullable(),
1567
1578
  socialProfileUrl: z32.string().nullable(),
1568
1579
  tags: z32.array(TagSchema).optional(),
1569
- company: CompanySchema.omit({ customFields: true }).nullable(),
1580
+ company: CompanySchema.omit({ customFields: true }).optional(),
1570
1581
  // room: z.array(RoomSchema).optional(),
1571
1582
  customFields: z32.array(ContactCustomFieldSchema).optional(),
1572
1583
  contactEmails: z32.array(ContactEmailsSchema).optional(),
@@ -1574,11 +1585,63 @@ var ReceiveMessageSchema = z32.object({
1574
1585
  activityLogs: z32.array(ContactActivitySchema).optional()
1575
1586
  })
1576
1587
  }),
1577
- actor: UserSchema,
1578
- 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(),
1579
1642
  channel: ChannelSchema2,
1580
1643
  cxlog: CxLogSchema
1581
- }).partial(),
1644
+ }).partial().nullable(),
1582
1645
  upload: z32.object({
1583
1646
  bucketName: z32.string().nullable(),
1584
1647
  fileName: z32.string().nullable(),
@@ -1591,9 +1654,9 @@ var ReceiveMessageSchema = z32.object({
1591
1654
  updatedAt: z32.string(),
1592
1655
  deletedAt: z32.string().nullable()
1593
1656
  }).optional(),
1594
- actor: UserSchema.optional(),
1595
- assignee: UserSchema.optional(),
1596
- sender: UserSchema.optional()
1657
+ actor: UserSchema.optional().nullable(),
1658
+ assignee: UserSchema.optional().nullable(),
1659
+ sender: UserSchema.optional().nullable()
1597
1660
  })
1598
1661
  });
1599
1662