@kl1/contracts 1.0.54 → 1.0.56

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
@@ -1116,6 +1116,7 @@ var CxLogSchemaWithRelations = DefaultEntitySchema.extend({
1116
1116
  caseId: z29.number(),
1117
1117
  entityId: z29.string().uuid(),
1118
1118
  entityName: z29.string(),
1119
+ customerPhone: z29.string().nullable(),
1119
1120
  channelType: z29.string().nullable(),
1120
1121
  channel: z29.string().nullable(),
1121
1122
  direction: z29.string().nullable(),
@@ -1526,7 +1527,7 @@ var ChannelServiceResponseSchema = DefaultSuccessResponseSchema.extend(
1526
1527
  );
1527
1528
  var ReceiveMessageSchema = z32.object({
1528
1529
  message: z32.object({
1529
- message: z32.string(),
1530
+ message: z32.string().optional(),
1530
1531
  direction: MessageDirectionTypeSchema,
1531
1532
  type: MessageTypeSchema,
1532
1533
  metadata: z32.any(),
@@ -1574,7 +1575,18 @@ var ReceiveMessageSchema = z32.object({
1574
1575
  channel: ChannelSchema2,
1575
1576
  cxlog: CxLogSchema
1576
1577
  }).partial(),
1577
- upload: UploadSchema.optional(),
1578
+ upload: z32.object({
1579
+ bucketName: z32.string().nullable(),
1580
+ fileName: z32.string().nullable(),
1581
+ fileSize: z32.number().nullable(),
1582
+ fileKey: z32.string().nullable(),
1583
+ fileUrl: z32.string().optional(),
1584
+ status: z32.string().optional(),
1585
+ id: z32.string().uuid(),
1586
+ createdAt: z32.string(),
1587
+ updatedAt: z32.string(),
1588
+ deletedAt: z32.string().nullable()
1589
+ }).optional(),
1578
1590
  actor: UserSchema.optional(),
1579
1591
  assignee: UserSchema.optional(),
1580
1592
  sender: UserSchema.optional()
@@ -1748,7 +1760,7 @@ var mainChatContract = initContract7().router(
1748
1760
  },
1749
1761
  readRoom: {
1750
1762
  method: "POST",
1751
- path: "/room/:roomid/read",
1763
+ path: "/room/read/:roomid",
1752
1764
  pathParams: z33.object({
1753
1765
  roomId: z33.string().uuid()
1754
1766
  }),
@@ -5113,7 +5125,7 @@ var ticketContract = initContract30().router(
5113
5125
  headers: DefaultHeaderSchema,
5114
5126
  responses: {
5115
5127
  201: DefaultSuccessResponseSchema.extend({
5116
- message: TicketSchema
5128
+ data: TicketSchema
5117
5129
  }),
5118
5130
  400: z78.object({
5119
5131
  message: z78.string()